@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* HSL Tailored Colors for Light Cream & Green Theme */
  --bg-primary: hsl(36, 40%, 97%);        /* Soft warm light cream */
  --bg-secondary: hsl(0, 0%, 100%);        /* Pure white for cards */
  --bg-tertiary: hsl(36, 25%, 92%);        /* Slightly darker cream for buttons/inputs */
  
  --accent-color: hsl(167, 100%, 28%);     /* Deep rich emerald green for readability on light */
  --accent-hover: hsl(167, 100%, 22%);
  --accent-glow: hsla(167, 100%, 28%, 0.12);
  
  --text-primary: hsl(222, 25%, 12%);      /* Deep navy-charcoal for crisp contrast */
  --text-secondary: hsl(222, 12%, 40%);    /* Slate gray for secondary details */
  --text-muted: hsl(222, 8%, 55%);
  
  --border-color: hsla(222, 15%, 10%, 0.06);
  --glass-bg: hsla(0, 0%, 100%, 0.75);     /* Semi-transparent white for frosted glass */
  --glass-border: hsla(222, 15%, 10%, 0.05);
  
  --danger-color: hsl(355, 75%, 55%);
  --success-color: hsl(167, 100%, 28%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Elegant Light Pastel Floating Background Glow Blobs */
.bg-glow-1 {
  position: absolute;
  top: -15%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, hsla(167, 100%, 37%, 0.08) 0%, hsla(0, 0%, 100%, 0) 70%);
  z-index: -1;
  pointer-events: none;
  animation: float-glow-1 25s infinite alternate ease-in-out;
}

.bg-glow-2 {
  position: absolute;
  bottom: -15%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, hsla(36, 100%, 65%, 0.08) 0%, hsla(0, 0%, 100%, 0) 70%);
  z-index: -1;
  pointer-events: none;
  animation: float-glow-2 30s infinite alternate ease-in-out;
}

@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 5%) scale(1.1); }
}

@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10%, -5%) scale(1.08); }
}

/* Header Styling */
header {
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: hsla(36, 40%, 97%, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(142, 126, 106, 0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-svg {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-container:hover .logo-svg {
  transform: rotate(-10deg) scale(1.05);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, var(--text-primary), hsl(222, 25%, 30%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  color: var(--accent-color);
  -webkit-text-fill-color: var(--accent-color);
}

.admin-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: hsla(0, 0%, 100%, 0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

/* Main Content Layout */
main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  position: relative;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 0.85rem;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Premium Light Ad Space Layout */
.ad-slot {
  width: 100%;
  margin: 2rem 0;
  padding: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, hsla(36, 25%, 92%, 0.4) 0%, hsla(36, 25%, 92%, 0.8) 100%);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  overflow: hidden;
  position: relative;
}

.ad-slot::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
  animation: shine-ad 6s infinite linear;
}

@keyframes shine-ad {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Main Premium Glassmorphic Card (Light) */
.main-card {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 45px rgba(142, 126, 106, 0.12), 
              inset 0 1px 0 rgba(255, 255, 255, 0.6),
              0 0 40px rgba(0, 168, 132, 0.01);
  backdrop-filter: blur(24px);
  margin-bottom: 3rem;
}

/* File Upload Area */
.upload-zone {
  border: 2px dashed rgba(0, 168, 132, 0.2);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  cursor: pointer;
  background-color: rgba(0, 168, 132, 0.005);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.upload-zone:hover {
  border-color: var(--accent-color);
  background-color: rgba(0, 168, 132, 0.025);
  box-shadow: 0 0 30px rgba(0, 168, 132, 0.04), 
              inset 0 0 15px rgba(0, 168, 132, 0.01);
  transform: translateY(-3px);
}

.upload-icon {
  width: 72px;
  height: 72px;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 16px rgba(142, 126, 106, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.upload-zone:hover .upload-icon {
  background: linear-gradient(135deg, #05ffc5, #00a884);
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.08) translateY(-2px);
}

.upload-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}

.upload-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.file-input {
  display: none;
}

/* Processing State */
.processing-container {
  display: none;
  text-align: center;
  padding: 2.5rem 0;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--bg-tertiary);
  border-top: 5px solid var(--accent-color);
  border-right: 5px solid #00d2fe;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 2rem;
  box-shadow: 0 0 20px rgba(0, 168, 132, 0.08);
}

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

.processing-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.processing-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: var(--bg-tertiary);
  border-radius: 20px;
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #05ffc5, #00a884, #00d2fe);
  background-size: 200% 100%;
  border-radius: 20px;
  position: absolute;
  left: 0;
  top: 0;
  transition: width 0.25s ease-out;
  animation: shimmer-bar 1.5s infinite linear;
}

@keyframes shimmer-bar {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Results Section */
.results-container {
  display: none;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.results-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.btn-reset {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-reset:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

.btn-download-all {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #05ffc5, #00a884);
  border: none;
  color: white;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 168, 132, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.btn-download-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 132, 0.45);
}

.action-bar {
  margin-bottom: 2rem;
  text-align: right;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .split-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.split-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 12px rgba(142, 126, 106, 0.04);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.split-item:hover {
  border-color: rgba(0, 168, 132, 0.2);
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(142, 126, 106, 0.08);
}

.split-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.split-title {
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-all;
  letter-spacing: -0.2px;
}

.split-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  gap: 0.85rem;
}

.btn-download-single {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: rgba(0, 168, 132, 0.05);
  border: 1px solid rgba(0, 168, 132, 0.12);
  color: var(--accent-color);
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-download-single:hover {
  background: linear-gradient(135deg, #05ffc5, #00a884);
  color: white;
  border-color: var(--accent-color);
  box-shadow: 0 4px 10px var(--accent-glow);
}

/* Button Row for Download + Share */
.btn-actions-row {
  display: flex;
  gap: 0.6rem;
}

.btn-actions-row .btn-download-single,
.btn-actions-row .btn-share-whatsapp {
  flex: 1;
}

.btn-share-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  color: #25D366;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: inherit;
}

.btn-share-whatsapp:hover {
  background-color: #25D366;
  color: white;
  border-color: #25D366;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.btn-share-whatsapp:hover svg path {
  fill: white;
}

/* Instructions and FAQ Section */
.info-section {
  margin-top: 2rem;
}

.info-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -0.5px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(142, 126, 106, 0.03);
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.2px;
}

.faq-item h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-color);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer Styling */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  background-color: hsla(36, 40%, 97%, 0.6);
  backdrop-filter: blur(8px);
}

footer p {
  max-width: 600px;
  margin: 0 auto;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Wake-up Toast (Deprecated) */
.wakeup-toast {
  display: none;
}

/* WhatsApp Verification & Bot Offline Styles */
.bot-offline-container {
  text-align: center;
  padding: 2.5rem 0;
}

.bot-offline-container .warning-icon {
  font-size: 3.5rem;
  color: var(--danger-color);
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.verification-container {
  width: 100%;
}

.verify-step-card {
  display: flex;
  flex-direction: column;
}

.verify-header {
  text-align: center;
  margin-bottom: 2rem;
}

.verify-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.verify-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

.verify-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto 1rem auto;
  width: 100%;
  max-width: 500px;
}

@media (min-width: 768px) {
  .verify-steps {
    /* Keep it centered and max-width on desktop */
    margin: 0 auto 2rem auto;
  }
}

.step-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  width: 100%;
  box-shadow: 0 4px 12px rgba(142, 126, 106, 0.03);
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(142, 126, 106, 0.06);
  border-color: rgba(0, 168, 132, 0.15);
}

.step-badge {
  width: 36px;
  height: 36px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px var(--accent-glow);
}

.step-content {
  flex: 1;
  width: 100%;
}

.step-content h4 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.verify-input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.verify-input-group .form-control {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.verify-input-group .form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* File Details Container Styling */
.file-details-card {
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  background-color: var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(142, 126, 106, 0.02);
}

.file-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.file-info-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.file-icon-wrapper {
  color: var(--accent-color);
  background-color: var(--accent-glow);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-name-meta h4 {
  font-weight: 700;
  word-break: break-all;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}

.file-name-meta p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Success WhatsApp Alert styling */
.whatsapp-alert {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background-color: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
}

.whatsapp-alert-icon {
  color: #25D366;
  font-size: 1.75rem;
  line-height: 1;
}

.whatsapp-alert-content h4 {
  color: hsl(167, 100%, 20%);
  font-weight: 800;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}

.whatsapp-alert-content p {
  font-size: 0.95rem;
  color: hsl(167, 100%, 15%);
  line-height: 1.6;
  margin: 0;
}

/* Mobile Responsive Overrides */
@media (max-width: 600px) {
  main {
    padding: 1.5rem 1rem;
  }
  .hero h1 {
    font-size: 2.1rem;
    letter-spacing: -1px;
  }
  .hero p {
    font-size: 1rem;
  }
  .main-card {
    padding: 1.75rem 1.25rem;
    border-radius: 18px;
  }
  .upload-zone {
    padding: 2.5rem 1rem;
    gap: 1rem;
  }
  .upload-icon {
    width: 56px;
    height: 56px;
  }
  header {
    padding: 1rem 1.25rem;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  
  /* Fix Verification Steps Mobile Overflow */
  .step-card {
    padding: 1.25rem;
    gap: 0.85rem;
    flex-direction: column;
  }
  .verify-input-group {
    flex-direction: column;
  }
  .btn-share-whatsapp {
    width: 100% !important;
    justify-content: center;
  }
  
  /* Fix File Details / Caption Mobile Layout */
  .file-details-card {
    padding: 1.25rem;
  }
  .file-details-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .file-details-header .btn-reset {
    width: 100%;
    text-align: center;
  }
}

. i t i   {   w i d t h :   1 0 0 % ;   }  
 