/* Reset dan Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #1d1d1f;
  background: url('https://files.catbox.moe/lo3vcv.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  padding: 20px 0;
  position: relative;
}

.page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: -1;
}

.container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header */
.header {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.social-links {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Upload Section */
.upload-section {
  padding: 2rem;
  border-bottom: 1px solid rgba(236, 240, 241, 0.5);
}

.qris-input {
  text-align: center;
}

.custom-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.9), rgba(46, 204, 113, 0.9));
  color: white;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
  backdrop-filter: blur(10px);
}

.custom-file-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.qris-input__file {
  display: none;
}

.qris-input__canvas {
  display: none;
}

.upload-hint {
  margin-top: 1rem;
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* Merchant Info */
.merchant-info {
  padding: 1.5rem 2rem;
  background: rgba(232, 244, 253, 0.8);
  margin: 0 2rem;
  border-radius: 15px;
  border-left: 5px solid rgba(52, 152, 219, 0.8);
  backdrop-filter: blur(10px);
}

.merchant-info__title {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.merchant-info__text {
  margin: 0.5rem 0;
  color: #34495e;
}

/* Form Styles */
.form {
  padding: 2rem;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
}

.form__input,
.form__select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(236, 240, 241, 0.7);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
}

.form__input:focus,
.form__select:focus {
  outline: none;
  border-color: rgba(52, 152, 219, 0.8);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  backdrop-filter: blur(10px);
}

.form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* Service Fee Options */
.service-fee {
  background: rgba(248, 249, 250, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid rgba(231, 76, 60, 0.8);
  backdrop-filter: blur(10px);
}

/* Result Section */
.result {
  padding: 2rem;
  background: rgba(236, 240, 241, 0.8);
  margin: 0 2rem 2rem;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.result h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.result__qrcode {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.qr-image-section {
  margin-top: 2rem;
}

.qr-image {
  max-width: 300px;
  height: auto;
  border: 1px solid rgba(189, 195, 199, 0.5);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.download-button,
.share-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.download-button {
  background: rgba(39, 174, 96, 0.9);
  color: white;
}

.download-button:hover {
  background: rgba(33, 150, 82, 0.9);
  transform: translateY(-2px);
}

.share-button {
  background: rgba(230, 126, 34, 0.9);
  color: white;
}

.share-button:hover {
  background: rgba(211, 84, 0, 0.9);
  transform: translateY(-2px);
}

/* API Section */
.api-section {
  padding: 2rem;
  background: rgba(248, 249, 250, 0.8);
  margin: 0 2rem 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.api-section h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.api-endpoint {
  margin-bottom: 1.5rem;
}

.api-endpoint label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.api-url-container {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.api-url {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(189, 195, 199, 0.5);
  border-radius: 10px;
  word-break: break-all;
  font-size: 0.9rem;
  color: #3498db;
  text-decoration: none;
  font-family: 'Courier New', monospace;
  backdrop-filter: blur(5px);
}

.api-url:hover {
  background: rgba(248, 249, 250, 0.8);
  text-decoration: underline;
}

.copy-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.75rem 1rem;
  background: rgba(149, 165, 166, 0.9);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
  min-width: 80px;
  backdrop-filter: blur(10px);
}

.copy-button:hover {
  background: rgba(127, 140, 141, 0.9);
}

.api-instruction {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border-left: 4px solid rgba(155, 89, 182, 0.8);
  backdrop-filter: blur(10px);
}

.api-instruction h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-instruction pre {
  background: rgba(44, 62, 80, 0.9);
  color: #ecf0f1;
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* About Section */
.about {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.about__title {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.about__content {
  line-height: 1.8;
}

.features {
  margin: 1.5rem 0;
}

.features h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.features ul {
  list-style: none;
  padding-left: 0;
}

.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0;
  color: #34495e;
}

.api-example {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.api-example h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-example pre {
  background: rgba(44, 62, 80, 0.9);
  color: #ecf0f1;
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
  backdrop-filter: blur(10px);
}

/* Live Chat Section */
.live-chat {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  margin: 0 2rem 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.live-chat h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.chat-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hilangkan floating tab "Open Cbox" */
iframe.cbox-embed + div,
#cbox_float_tab,
.cbox_float_tab,
#cbox_widget_opener,
.cbox_open,
.cbox_tab,
div[id*="cbox"] a[id*="opener"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  background: rgba(52, 73, 94, 0.9);
  color: #bdc3c7;
  margin-top: 2rem;
  backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 95%;
    margin: 10px auto;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .form,
  .upload-section,
  .result,
  .api-section,
  .live-chat {
    padding: 1rem;
  }
  
  .merchant-info {
    margin: 0 1rem;
  }
  
  .result {
    margin: 0 1rem 1rem;
  }
  
  .api-section {
    margin: 0 1rem 1rem;
  }
  
  .live-chat {
    margin: 0 1rem 1rem;
  }
  
  .api-url-container {
    flex-direction: column;
  }
  
  .copy-button {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .download-button,
  .share-button {
    width: 200px;
  }
  
  .qr-image {
    max-width: 250px;
  }
  
  .social-links {
    position: static;
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.8rem;
  }
  
  .custom-file-upload {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .form__input,
  .form__select {
    padding: 0.6rem 0.8rem;
  }
  
  .qr-image {
    max-width: 200px;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success Animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4CAF50;
}

.check-icon::before {
  content: '';
  position: absolute;
  top: 3px;
  left: -2px;
  width: 30px;
  height: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.check-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  width: 60px;
  height: 30px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotate-circle 4.25s ease-in;
}

.icon-line {
  height: 5px;
  background-color: #4CAF50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(76, 175, 80, .5);
}

.icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: white;
}

@keyframes rotate-circle {
  0% {
    transform: rotate(-45deg);
  }
  5% {
    transform: rotate(-45deg);
  }
  12% {
    transform: rotate(-405deg);
  }
  100% {
    transform: rotate(-405deg);
  }
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }
  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }
  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }
  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}