/* 
  Tani Digitals - E-Roll PDF to Excel Converter & Digital Services Studio
  Modern Glassmorphic Dark UI Design System
*/

:root {
  --bg-dark: #0b0f19;
  --bg-card: rgba(18, 26, 44, 0.75);
  --bg-card-border: rgba(255, 255, 255, 0.1);
  --bg-card-hover: rgba(26, 37, 62, 0.85);

  --primary-color: #6366f1;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --success-color: #10b981;
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --whatsapp-color: #25d366;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.5);

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.font-mono {
  font-family: monospace;
}

/* Background Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 450px;
  height: 450px;
  background: rgba(99, 102, 241, 0.15);
  top: -100px;
  left: -100px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.12);
  bottom: -150px;
  right: -100px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 15, 25, 0.8);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 16px 24px;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e09f3e;
  box-shadow: 0 4px 14px rgba(224, 159, 62, 0.35);
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-mini-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e09f3e;
  vertical-align: middle;
}
.brand-logo {
  width: 42px;
  height: 42px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.brand-info {
  display: flex;
  flex-direction: column;
}
.company-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #e09f3e !important;
  text-transform: uppercase;
}
.product-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

/* Main Content Layout Container */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
  position: relative;
  z-index: 1;
}
.main-content.homepage {
  max-width: 1100px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 40px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-card-container {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}
.hero-logo-box {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.2);
  background: #0b101d;
  transition: var(--transition-smooth);
}
.hero-logo-box:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(99, 102, 241, 0.35);
}
.hero-eroll-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-align: left;
}
.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .hero-card-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .hero-text-content {
    align-items: center;
  }
  .hero-title, .hero-subtitle {
    text-align: center;
  }
}

/* Banner Frame */
.banner-frame-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin: 24px auto 0 auto;
}
.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Homepage Software Showcase Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-smooth);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  background: var(--bg-card-hover);
}
.product-card.featured {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
}
.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.product-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(224, 159, 62, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tani Core Values Grid Bar */
.tani-values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .tani-values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tani-values-grid { grid-template-columns: 1fr; }
}
.value-item-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(224, 159, 62, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}
.value-item-card:hover {
  border-color: #e09f3e;
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-2px);
}
.value-icon {
  font-size: 20px;
  color: #e09f3e;
}
.value-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}
.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}
.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.product-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-tag {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.opacity-muted { opacity: 0.7; }

/* Contact Info Grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .contact-info-grid { grid-template-columns: 1fr; }
}
.contact-item-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.contact-icon {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 4px;
}

/* Converter Card Widget */
.converter-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.converter-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.form-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.step-num {
  width: 28px;
  height: 28px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.optional-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 4px;
}
.required-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger-color);
  margin-left: 4px;
}

/* Drop Zone File Upload */
.drop-zone {
  position: relative;
  border: 2px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: var(--shadow-glow);
}
.file-input-hidden { display: none; }
.dropzone-logo-box {
  margin-bottom: 12px;
}
.eroll-dropzone-logo-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid rgba(224, 159, 62, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: var(--transition-fast);
}
.drop-zone:hover .eroll-dropzone-logo-img {
  transform: scale(1.06);
  border-color: #e09f3e;
}
.upload-icon {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.drop-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.drop-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.browse-link {
  color: #818cf8;
  text-decoration: underline;
  cursor: pointer;
}
.file-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Multiple Uploaded Files List Container */
.file-list-container {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 8px;
}
.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-card-border);
  margin-bottom: 12px;
}
.file-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.file-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--bg-card-border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.file-item-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(30, 41, 59, 0.95);
}
.file-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.file-item-icon {
  width: 36px;
  height: 36px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.file-item-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.file-item-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}
.file-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}
.file-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-remove-file {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition-fast);
}
.btn-remove-file:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.05);
}

/* Dynamic Fee Calculator Box */
.fee-calculator-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
}
.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.calc-title {
  font-weight: 700;
  font-size: 15px;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}
.calc-row strong { color: var(--text-main); }
.calc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0;
}
.calc-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}
.total-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--success-color);
}

/* Form Controls */
.input-icon-wrapper { position: relative; }
.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.text-whatsapp { color: var(--whatsapp-color) !important; }
.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px 14px 44px;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: var(--transition-fast);
}
.form-control-sm {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-control.is-invalid {
  border-color: var(--danger-color) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}
.error-msg {
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.help-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Format Options Radio Cards */
.format-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .format-options { grid-template-columns: 1fr; }
}
.format-card {
  position: relative;
  cursor: pointer;
}
.format-card input { position: absolute; opacity: 0; }
.format-card-content {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition-fast);
}
.format-card:hover .format-card-content {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(30, 41, 59, 0.8);
}
.format-card input:checked + .format-card-content {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}
.format-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.format-icon.excel { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.format-icon.pdf { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.format-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.format-name { font-weight: 700; font-size: 14px; }
.format-desc { font-size: 12px; color: var(--text-muted); }
.format-check {
  color: var(--primary-color);
  font-size: 18px;
  opacity: 0;
  transition: var(--transition-fast);
}
.format-card input:checked + .format-card-content .format-check { opacity: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-success { background: var(--success-gradient); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
}
.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-outline:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.btn-icon:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.1); }
.btn-link { background: transparent; border: none; color: var(--text-muted); cursor: pointer; }
.btn-link:hover { color: var(--text-main); text-decoration: underline; }

/* Confirmation Success View */
.confirmation-view {
  text-align: center;
  padding: 20px 0;
}
.success-icon-badge {
  width: 72px;
  height: 72px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px auto;
}
.confirmation-view h2 { margin-bottom: 28px; }
.confirmation-subtitle { color: var(--text-muted); margin-bottom: 24px; }
.order-summary-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}
.order-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-card-border);
  margin-bottom: 12px;
}
.order-id-code {
  font-family: monospace;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.txn-id-code {
  font-family: monospace;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.summary-item strong { color: var(--text-main); }
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-primary { color: #818cf8 !important; }

/* Modern Math Formula Display Card */
.pricing-info-section {
  margin-top: 60px;
  text-align: center;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.formula-card-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.formula-header {
  font-size: 13px;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.formula-math-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  flex-wrap: wrap;
}
.f-var { color: #c084fc; }
.f-op { color: var(--text-muted); font-size: 18px; }
.f-bracket {
  font-size: 28px;
  color: var(--primary-color);
  font-weight: 300;
  line-height: 1;
}
.f-fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.f-num {
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  color: #818cf8;
  font-size: 14px;
}
.f-den {
  padding-top: 2px;
  color: var(--text-muted);
  font-size: 14px;
}
.f-base {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.f-slab {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.formula-subnote {
  font-size: 12px;
  color: var(--text-dim);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition-fast);
}
.pricing-card.highlighted {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}
.slab-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.slab-fee {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.slab-calc {
  font-size: 12px;
  color: var(--text-dim);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}
.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-primary { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.badge-info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  background: #111827;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-card.modal-lg {
  max-width: 1100px;
  max-height: 92vh;
}

/* Customer My Orders History Modal */
#myOrdersModal {
  z-index: 10000 !important;
}
#myOrdersModal.show-modal,
.modal-backdrop.show-modal {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
#myOrdersModal .modal-card.modal-lg {
  max-width: 1100px;
  max-height: 90vh;
  width: 95vw;
}

/* Full-Screen Workspace Modal for Admin Portal */
.modal-backdrop.modal-fullscreen-backdrop {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background: rgba(9, 13, 22, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.modal-card.modal-fullscreen {
  max-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
}
.modal-card.modal-fullscreen .modal-header {
  padding: 16px 32px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-card.modal-fullscreen .modal-body,
.modal-card.modal-fullscreen .admin-dashboard {
  flex: 1;
  overflow-y: auto;
  padding: 24px 36px 48px 36px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--bg-card-border);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-body { padding: 24px; overflow-y: auto; }

/* Admin Portal Layout & Stats Grid */
.admin-auth-box {
  text-align: center;
  padding: 40px 20px;
  max-width: 360px;
  margin: 0 auto;
}
.auth-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px auto;
}
.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}
@media (max-width: 600px) {
  .admin-stats-grid { grid-template-columns: 1fr; }
}
.stat-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.icon-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.icon-orange { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.icon-rose { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.stat-data {
  display: flex;
  flex-direction: column;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.stat-data strong {
  font-size: 20px;
  font-weight: 800;
}

/* Base Price & Slab Rate Manager Card */
.admin-config-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
}
.config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.config-body {
  display: flex;
  flex-direction: column;
}
.config-inputs-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.config-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.config-input-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.price-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}
.currency-symbol {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 700;
  z-index: 2;
}
.price-input {
  width: 130px;
  padding-left: 30px;
}

/* Admin Orders Table */
.admin-table-container {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.table-responsive {
  overflow-x: auto;
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.orders-table th {
  background: rgba(30, 41, 59, 0.8);
  padding: 12px 14px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--bg-card-border);
  white-space: nowrap;
}
.orders-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bg-card-border);
  vertical-align: middle;
}
.orders-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.pdf-links-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 220px;
}
.pdf-link-item {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.audit-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.audit-date {
  font-size: 11px;
  color: var(--text-dim);
}
.audit-gateway {
  font-size: 11px;
  color: var(--text-muted);
}

/* Email Delivery Preview Card */
.email-preview-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.email-preview-header {
  background: rgba(30, 41, 59, 0.9);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #a5b4fc;
  border-bottom: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.email-preview-body {
  padding: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.email-preview-body strong { color: var(--text-main); }
.email-template-box {
  background: rgba(11, 15, 25, 0.8);
  border: 1px dashed var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text-main);
  line-height: 1.5;
}

/* Top Stats Analytics Header & Separate Date Filter Bar */
.stats-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}
.stats-date-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Admin Filter Controls Bar & Calendar Date Pickers */
.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-group.flex-search { flex: 1.5; min-width: 180px; }
.filter-group label {
  font-size: 11px;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.filter-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Pagination Bar */
.table-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--bg-card-border);
  flex-wrap: wrap;
  gap: 12px;
}
.pagination-info { font-size: 13px; color: var(--text-muted); }
.pagination-info span { font-weight: 700; color: var(--text-main); }
.pagination-controls { display: flex; align-items: center; gap: 16px; }
.page-size-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Utility Helpers */
.hidden { display: none !important; }
.mb-3 { margin-bottom: 12px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 40px; }
.d-block { display: block; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Footer */
.footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid var(--bg-card-border);
  color: var(--text-dim);
  font-size: 13px;
}

/* =============================================================
   TANI DIGITALS HOMEPAGE THEME (Banner & Logo Inspired Aesthetic)
   Scoped to body.homepage-theme ONLY so E-Roll page keeps its own style
   ============================================================= */
body.homepage-theme {
  background-color: #fcfaf7;
  color: #2b1e17;
}

body.homepage-theme .glow-orb.orb-1 {
  background: rgba(224, 159, 62, 0.22);
}
body.homepage-theme .glow-orb.orb-2 {
  background: rgba(217, 119, 6, 0.15);
}

/* Homepage Navbar */
body.homepage-theme .navbar {
  background: rgba(252, 250, 247, 0.92);
  border-bottom: 1px solid rgba(224, 159, 62, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.homepage-theme .company-name {
  color: #b45309 !important;
  font-weight: 800;
}
body.homepage-theme .product-title {
  color: #2b1e17;
}
body.homepage-theme .nav-link {
  color: #6b584c;
}
body.homepage-theme .nav-link:hover, 
body.homepage-theme .nav-link.active {
  color: #b45309;
}

/* Homepage Hero & Badges */
body.homepage-theme .hero-badge {
  background: rgba(224, 159, 62, 0.14);
  border: 1px solid rgba(224, 159, 62, 0.4);
  color: #92400e;
}
body.homepage-theme .hero-title {
  color: #1c130d;
}
body.homepage-theme .gradient-text {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.homepage-theme .hero-subtitle {
  color: #57463a;
}
body.homepage-theme .section-title {
  color: #1c130d;
}
body.homepage-theme .section-subtitle {
  color: #57463a;
}

body.homepage-theme .banner-frame-container {
  border: 1px solid rgba(224, 159, 62, 0.35);
  box-shadow: 0 20px 40px rgba(43, 30, 23, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Homepage Product Showcase Cards */
body.homepage-theme .product-card {
  background: #ffffff;
  border: 1px solid rgba(224, 159, 62, 0.22);
  box-shadow: 0 10px 30px rgba(43, 30, 23, 0.06);
  color: #2b1e17;
}
body.homepage-theme .product-card:hover {
  transform: translateY(-4px);
  border-color: #e09f3e;
  box-shadow: 0 16px 36px rgba(224, 159, 62, 0.2);
  background: #ffffff;
}
body.homepage-theme .product-card.featured {
  border-color: #e09f3e;
  background: linear-gradient(135deg, #fffcf7 0%, #fef3c7 100%);
  box-shadow: 0 12px 32px rgba(224, 159, 62, 0.16);
}
body.homepage-theme .product-name {
  color: #1c130d;
}
body.homepage-theme .product-desc {
  color: #57463a;
}
body.homepage-theme .meta-tag {
  background: rgba(224, 159, 62, 0.14);
  color: #78350f;
}

/* Homepage Action Buttons */
body.homepage-theme .btn-primary {
  background: linear-gradient(135deg, #e09f3e 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(224, 159, 62, 0.35);
}
body.homepage-theme .btn-primary:hover:not(:disabled) {
  box-shadow: 0 12px 28px rgba(224, 159, 62, 0.5);
  transform: translateY(-2px);
}
body.homepage-theme .btn-outline {
  border-color: rgba(224, 159, 62, 0.4);
  color: #2b1e17;
  background: transparent;
}
body.homepage-theme .btn-outline:hover:not(:disabled) {
  background: rgba(224, 159, 62, 0.12);
  border-color: #e09f3e;
  color: #b45309;
}

/* About & Contact Cards on Homepage */
body.homepage-theme .converter-card {
  background: #ffffff;
  border: 1px solid rgba(224, 159, 62, 0.22);
  box-shadow: 0 10px 30px rgba(43, 30, 23, 0.06);
}
body.homepage-theme .contact-item-box {
  background: #fffdfa;
  border: 1px solid rgba(224, 159, 62, 0.25);
  color: #2b1e17;
}
body.homepage-theme .contact-icon {
  color: #d97706;
}
body.homepage-theme .browse-link {
  color: #b45309;
}

/* Tani Core Values Grid (Banner Dark Bar Style) */
body.homepage-theme .tani-values-grid {
  background: #241a14;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 15px 35px rgba(36, 26, 20, 0.25);
}
body.homepage-theme .value-item-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(224, 159, 62, 0.35);
}
body.homepage-theme .value-item-card:hover {
  background: rgba(224, 159, 62, 0.2);
  border-color: #e09f3e;
}
body.homepage-theme .value-icon {
  color: #e09f3e;
}
body.homepage-theme .value-title {
  color: #fef3c7;
}

/* Homepage Footer */
body.homepage-theme .footer {
  border-top: 1px solid rgba(224, 159, 62, 0.25);
  color: #786455;
  background: #f7f3ed;
}

/* ============================================================= */
/* GOOGLE AUTHENTICATION & USER PROFILE STYLES                   */
/* ============================================================= */
.btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.btn-google:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

.user-auth-nav {
  display: flex;
  align-items: center;
}
.user-profile-nav-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--bg-card-border);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}
.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.user-avatar-md {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.user-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}
.user-nav-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.user-nav-text strong {
  font-size: 13px;
  color: var(--text-main);
}
.user-nav-text small {
  font-size: 11px;
}

/* Auth Gate Banner & Logged-In Banner */
.auth-gate-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.auth-gate-content {
  display: flex;
  align-items: center;
  gap: 16px;
}
.auth-gate-icon {
  width: 50px;
  height: 50px;
  background: #ffffff;
  color: #ea4335;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.2);
  flex-shrink: 0;
}
.auth-gate-text h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: var(--text-main);
}
.auth-gate-text p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.logged-in-user-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.user-banner-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-banner-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.user-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-banner-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}
.user-banner-meta {
  font-size: 13px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

/* Google Account Selection List */
.google-account-btn {
  width: 100%;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.google-account-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}
.account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.account-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.account-info strong {
  font-size: 14px;
  color: var(--text-main);
}
.account-info small {
  font-size: 12px;
  color: var(--text-muted);
}

/* Copy to Clipboard Icon Button */
.btn-copy-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 3px 6px;
  font-size: 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}
.btn-copy-icon:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}
