/* ============================================
   PrintExpress - Main Stylesheet
   ============================================ */

:root {
  --primary: #2563EB;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #F97316;
  --accent-dark: #ea6c0a;
  --success: #16a34a;
  --success-light: #dcfce7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.1);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--gray-700); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--primary); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all .2s;
  padding: .75rem 1.5rem; font-size: 1rem;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; border-radius: var(--radius); }
.btn-primary.btn-sm { padding: .4rem .9rem; font-size: .875rem; }
.btn-primary.btn-block { width: 100%; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); border-radius: var(--radius-sm);
  font-family: var(--font); font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all .2s;
  padding: .75rem 1.5rem; font-size: 1rem;
}
.btn-outline:hover { background: var(--primary-light); }
.btn-outline.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; border-radius: var(--radius); }
.btn-outline.btn-block { width: 100%; }

.btn-pix {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  background: linear-gradient(135deg, #32bcad, #00a09d);
  color: white; border: none; border-radius: var(--radius);
  font-family: var(--font); font-weight: 700; font-size: 1.15rem;
  padding: 1.1rem 2rem; cursor: pointer; width: 100%;
  transition: all .2s; box-shadow: 0 4px 15px rgba(50,188,173,.3);
}
.btn-pix:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(50,188,173,.4); }
.pix-icon { font-size: 1.3rem; }
.pix-hint { text-align: center; font-size: .875rem; color: var(--gray-500); margin-top: .5rem; }

.btn-icon { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--gray-500); padding: .25rem; }
.btn-icon:hover { color: var(--danger); }
.btn-copy {
  background: var(--primary); color: white; border: none;
  border-radius: var(--radius-sm); padding: .5rem 1rem;
  font-family: var(--font); font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .2s;
}
.btn-copy:hover { background: var(--primary-dark); }

/* ── FLASH MESSAGES ── */
.flash-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.flash { padding: .75rem 1.25rem; border-radius: var(--radius-sm); font-weight: 500; box-shadow: var(--shadow); }
.flash-success { background: var(--success-light); color: var(--success); }
.flash-error { background: var(--danger-light); color: var(--danger); }

/* ── NAVBAR ── */
.navbar { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); text-decoration: none; }
.logo-sm { font-size: 1.1rem; font-weight: 700; color: var(--primary); text-decoration: none; }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%); padding: 5rem 0 4rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.badge-pill { display: inline-block; background: var(--primary-light); color: var(--primary); border-radius: 999px; padding: .35rem .9rem; font-size: .875rem; font-weight: 600; margin-bottom: 1rem; }
.highlight { color: var(--accent); }
.subtitle { font-size: 1.15rem; color: var(--gray-700); margin: 1.25rem 0 2rem; max-width: 520px; }
.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.download-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.badge-apk, .badge-soon {
  display: flex; align-items: center; gap: .75rem;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: .6rem 1rem;
  text-decoration: none; transition: all .2s;
}
.badge-apk { border-color: var(--primary); }
.badge-apk:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.badge-soon { opacity: .6; }
.badge-icon { font-size: 1.5rem; }
.badge-apk small, .badge-soon small { display: block; font-size: .7rem; color: var(--gray-500); }
.badge-apk strong, .badge-soon strong { font-size: .9rem; color: var(--gray-900); }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone-mockup {
  width: 260px; height: 520px;
  background: var(--gray-900); border-radius: 40px;
  padding: 20px 15px; box-shadow: var(--shadow-lg), 0 0 0 8px var(--gray-700);
  position: relative;
}
.phone-screen { background: var(--white); border-radius: 28px; height: 100%; padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: .75rem; overflow: hidden; }
.mock-header { font-weight: 700; color: var(--primary); font-size: 1rem; text-align: center; border-bottom: 1px solid var(--gray-100); padding-bottom: .5rem; }
.mock-step, .mock-price, .mock-status, .mock-notify {
  background: var(--gray-50); border-radius: 8px; padding: .6rem .75rem; font-size: .8rem; color: var(--gray-700);
}
.mock-price { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.mock-status { background: var(--success-light); color: var(--success); }
.mock-notify { background: var(--warning-light); color: var(--warning); font-weight: 600; }

/* ── STEPS ── */
.steps { padding: 5rem 0; background: var(--white); }
.section-title { text-align: center; margin-bottom: .75rem; }
.section-sub { text-align: center; color: var(--gray-500); margin-bottom: 3rem; }
.steps-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: start; }
.step-card { background: var(--gray-50); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; transition: all .2s; }
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.step-number { width: 36px; height: 36px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; margin: 0 auto 1rem; }
.step-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.step-card h3 { margin-bottom: .5rem; }
.step-connector { font-size: 1.5rem; color: var(--gray-300); display: flex; align-items: center; justify-content: center; padding-top: 2rem; }
.text-center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.mt-md { margin-top: 1.5rem; }

/* ── PRICING ── */
.pricing { padding: 5rem 0; background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%); }
.pricing-card { max-width: 480px; margin: 0 auto; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 3rem 2.5rem; text-align: center; border: 1px solid rgba(255,255,255,.2); }
.pricing-card h2 { color: white; margin-bottom: 1.5rem; }
.price-big { font-size: 3.5rem; font-weight: 800; color: white; margin-bottom: 1.5rem; }
.price-big span { font-size: 1.25rem; font-weight: 400; color: rgba(255,255,255,.7); }
.price-features { list-style: none; text-align: left; margin-bottom: 2rem; }
.price-features li { color: rgba(255,255,255,.9); padding: .4rem 0; font-size: 1rem; }

/* ── DOWNLOAD ── */
.download-section { padding: 5rem 0; background: var(--gray-50); }
.download-content { max-width: 700px; margin: 0 auto; text-align: center; }
.download-content h2 { margin-bottom: .75rem; }
.download-content p { margin-bottom: 2.5rem; }
.download-options { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.download-btn-main {
  display: flex; align-items: center; gap: 1rem;
  background: var(--gray-900); color: white;
  border-radius: var(--radius); padding: 1rem 2rem;
  text-decoration: none; font-weight: 600; transition: all .2s;
  box-shadow: var(--shadow);
}
.download-btn-main:hover { background: var(--primary); transform: translateY(-2px); }
.download-btn-main span { font-size: 1.5rem; }
.dl-label { display: block; font-size: 1rem; }
.dl-version { display: block; font-size: .75rem; color: rgba(255,255,255,.7); }
.coming-soon-box { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1.5px dashed var(--gray-300); max-width: 300px; text-align: center; }
.coming-soon-box p { margin-bottom: 1rem; font-weight: 500; }
.store-pills { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.store-pill { background: var(--gray-100); color: var(--gray-500); border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; }
.store-pill.disabled { opacity: .5; }
.notify-form small { display: block; color: var(--gray-500); font-size: .8rem; margin-bottom: .5rem; }
.notify-input-row { display: flex; gap: .5rem; }
.notify-input-row input { flex: 1; padding: .5rem .75rem; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-family: var(--font); font-size: .875rem; }
.notify-input-row button { background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); padding: .5rem 1rem; font-family: var(--font); font-weight: 600; cursor: pointer; }
.success-msg { color: var(--success); font-weight: 600; }

/* ── FAQ ── */
.faq { padding: 5rem 0; background: var(--white); }
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 1.25rem 1.5rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background .15s; }
.faq-item summary:hover { background: var(--gray-50); }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.5rem 1.25rem; color: var(--gray-700); }

/* ── FOOTER ── */
.footer { background: var(--gray-900); color: var(--gray-300); padding: 3rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand .logo { color: white; display: block; margin-bottom: .5rem; }
.footer-brand p { font-size: .9rem; }
.footer-contact p { margin-bottom: .75rem; }
.whatsapp-btn { display: inline-flex; align-items: center; gap: .5rem; background: #25D366; color: white; text-decoration: none; border-radius: var(--radius-sm); padding: .6rem 1.2rem; font-weight: 600; transition: opacity .2s; }
.whatsapp-btn:hover { opacity: .85; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; text-align: center; }
.footer-bottom p { font-size: .875rem; color: var(--gray-500); }

/* ── APP SHELL ── */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--gray-50); }
.app-header { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.app-main { flex: 1; padding: 2rem 1.5rem; max-width: 600px; margin: 0 auto; width: 100%; }

/* ── STEP INDICATOR ── */
.step-indicator { display: flex; align-items: center; gap: .25rem; }
.step { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; color: var(--gray-500); }
.step.active { border-color: var(--primary); background: var(--primary); color: white; }
.step.done { border-color: var(--success); background: var(--success); color: white; }
.step-line { width: 24px; height: 2px; background: var(--gray-300); }
.step-line.filled { background: var(--success); }

/* ── CARD ── */
.card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.card-icon { font-size: 2.5rem; text-align: center; margin-bottom: .75rem; }
.card h2 { text-align: center; margin-bottom: .5rem; }
.card-sub { text-align: center; color: var(--gray-500); margin-bottom: 1.75rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.form-group input { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-family: var(--font); font-size: 1rem; transition: border-color .2s; background: var(--white); }
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.field-hint { display: block; font-size: .8rem; color: var(--gray-500); margin-top: .3rem; }

/* ── UPLOAD ── */
.upload-card h2 { margin-bottom: .25rem; }
.upload-area { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 2.5rem; text-align: center; transition: all .2s; cursor: default; }
.upload-area.drag-over { border-color: var(--primary); background: var(--primary-light); }
.upload-icon { font-size: 3rem; margin-bottom: 1rem; }
.upload-formats { font-size: .8rem; color: var(--gray-400); margin-top: .75rem; }
.upload-placeholder p { color: var(--gray-600); margin: .25rem 0; }
.upload-preview { display: flex; align-items: center; gap: 1rem; background: var(--gray-50); border-radius: var(--radius-sm); padding: 1rem; text-align: left; }
.preview-icon { font-size: 2rem; }
.preview-info { flex: 1; }
.preview-name { font-weight: 600; color: var(--gray-900); word-break: break-all; }
.preview-pages { font-size: .875rem; color: var(--primary); font-weight: 600; margin-top: .2rem; }
.progress-bar { height: 6px; background: var(--gray-200); border-radius: 999px; overflow: hidden; margin-top: 1rem; }
.progress-fill { height: 100%; background: var(--primary); width: 0; transition: width .3s; border-radius: 999px; }
.upload-status { color: var(--success); font-weight: 500; text-align: center; margin-top: .75rem; font-size: .9rem; }
.upload-error { color: var(--danger); font-weight: 500; text-align: center; margin-top: .75rem; font-size: .9rem; }
.alert-box { background: var(--warning-light); color: var(--warning); border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.alert-box a { color: var(--primary); font-weight: 600; }

/* ── CONFIG ── */
.config-section { margin-bottom: 1.75rem; border-bottom: 1px solid var(--gray-100); padding-bottom: 1.75rem; }
.config-section:last-of-type { border-bottom: none; }
.config-section h3 { margin-bottom: 1rem; font-size: 1rem; color: var(--gray-700); text-transform: uppercase; letter-spacing: .05em; font-size: .875rem; }
.radio-group { display: flex; flex-direction: column; gap: .5rem; }
.radio-option { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); cursor: pointer; transition: all .15s; }
.radio-option:hover { border-color: var(--primary); background: var(--primary-light); }
.radio-option.selected { border-color: var(--primary); background: var(--primary-light); }
.radio-option input { accent-color: var(--primary); width: 18px; height: 18px; }
.custom-pages { margin-top: 1rem; }
.custom-pages input { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-family: var(--font); font-size: 1rem; }
.custom-pages input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.pages-preview { margin-top: .5rem; font-size: .875rem; font-weight: 500; }
.qty-control { display: flex; align-items: center; gap: 1rem; }
.qty-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gray-300); background: var(--white); font-size: 1.2rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-display { font-size: 1.5rem; font-weight: 700; min-width: 40px; text-align: center; }
.summary-box { background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%); color: white; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.75rem; }
.summary-title { font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; opacity: .85; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .95rem; opacity: .9; }
.summary-divider { border-top: 1px solid rgba(255,255,255,.2); margin: .75rem 0; }
.summary-price { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; }
.summary-note { font-size: .8rem; opacity: .7; text-align: right; margin-top: .25rem; }

/* ── PAYMENT ── */
.payment-card {}
.payment-summary { display: flex; justify-content: space-between; align-items: center; background: var(--gray-50); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1.75rem; font-size: .95rem; color: var(--gray-600); }
.payment-total { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }
.pix-qr { margin-top: 1.5rem; }
.pix-qr-img-wrap { text-align: center; margin-bottom: 1.25rem; }
.pix-qr-img-wrap img { width: 220px; height: 220px; border-radius: var(--radius-sm); border: 3px solid var(--gray-200); }
.qr-instruction { text-align: center; font-weight: 600; color: var(--gray-700); margin-bottom: 1rem; }
.pix-code-box { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.pix-code-box input { flex: 1; padding: .75rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .8rem; background: var(--gray-50); color: var(--gray-700); }
.pix-polling { display: flex; align-items: center; gap: .75rem; justify-content: center; color: var(--gray-500); font-size: .875rem; padding: .75rem; background: var(--gray-50); border-radius: var(--radius-sm); }
.spinner { width: 18px; height: 18px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.divider-or { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--gray-400); font-size: .875rem; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.card-form { margin-top: 1rem; }
.info-box { background: var(--primary-light); color: var(--primary); border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .9rem; margin-bottom: 1rem; }

/* ── ACOMPANHAMENTO ── */
.header-badge { font-size: .8rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; }
.status-card { text-align: center; }
.status-emoji { font-size: 3.5rem; margin-bottom: .75rem; }
.status-badge { display: inline-block; padding: .5rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: 1rem; margin: .75rem 0 1.5rem; }
.status-pago { background: var(--warning-light); color: var(--warning); }
.status-em_impressao { background: var(--primary-light); color: var(--primary); }
.status-pronto { background: var(--success-light); color: var(--success); }
.status-cancelado { background: var(--danger-light); color: var(--danger); }
.estimate-box { background: var(--gray-50); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.estimate-box p { color: var(--gray-700); margin-bottom: .5rem; }
.queue-progress {}
.queue-bar { height: 8px; background: var(--gray-200); border-radius: 999px; margin-bottom: .4rem; overflow: hidden; }
.queue-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .5s; }
.queue-progress small { font-size: .8rem; color: var(--gray-500); }
.queue-next { color: var(--success); font-weight: 700; }
.timeline { text-align: left; margin-top: 1.5rem; }
.tl-item { display: flex; gap: 1rem; padding: .75rem 0; position: relative; }
.tl-item:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 2.5rem; width: 2px; height: calc(100% - 1rem); background: var(--gray-200); }
.tl-item.done::after { background: var(--success); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; background: white; z-index: 1; }
.tl-item.done .tl-dot { border-color: var(--success); background: var(--success); color: white; }
.tl-item.active .tl-dot { border-color: var(--primary); background: var(--primary); color: white; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,.4); } 50% { box-shadow: 0 0 0 8px rgba(37,99,235,0); } }
.tl-content strong { font-size: .95rem; display: block; }
.tl-content span { font-size: .8rem; color: var(--gray-500); }
.details-card summary { font-weight: 600; cursor: pointer; padding: .25rem 0; list-style: none; }
.details-card summary::after { content: ' ▾'; }
.details-card[open] summary::after { content: ' ▴'; }
.details-body { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.detail-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .4rem 0; border-bottom: 1px solid var(--gray-100); }
.detail-row:last-child { border-bottom: none; }
.ready-banner { background: var(--success-light); color: var(--success); border-radius: var(--radius); padding: 1.25rem; text-align: center; font-weight: 700; font-size: 1.1rem; }

/* ── ADMIN ── */
.admin-login-page { min-height: 100vh; background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-logo { font-size: 1.75rem; font-weight: 800; color: var(--primary); text-align: center; margin-bottom: .25rem; }
.login-card h2 { text-align: center; margin-bottom: 1.75rem; font-size: 1.25rem; color: var(--gray-700); }
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; }
.alert-error { background: var(--danger-light); color: var(--danger); }
.alert-success { background: var(--success-light); color: var(--success); }

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: var(--gray-900); color: white; display: flex; flex-direction: column; padding: 1.5rem 0; flex-shrink: 0; }
.sidebar-logo { font-size: 1.2rem; font-weight: 800; color: white; padding: 0 1.5rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-nav { padding: 1rem 0; flex: 1; }
.nav-item { display: block; padding: .75rem 1.5rem; color: rgba(255,255,255,.7); text-decoration: none; font-size: .95rem; transition: all .15s; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.1); color: white; }
.nav-item.logout { margin-top: auto; color: var(--danger); }
.admin-main { flex: 1; overflow: auto; }
.admin-header { background: white; padding: 1.25rem 2rem; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; box-shadow: var(--shadow-sm); }
.admin-header h1 { font-size: 1.5rem; }
.admin-date { font-size: .85rem; color: var(--gray-500); }
.config-form { display: flex; align-items: center; gap: .5rem; font-size: .9rem; flex-wrap: wrap; }
.config-form input { padding: .4rem .6rem; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-family: var(--font); }
.stats-row { display: flex; gap: 1.5rem; padding: 1.5rem 2rem; flex-wrap: wrap; }
.stat-card { background: white; border-radius: var(--radius); padding: 1.5rem 2rem; box-shadow: var(--shadow-sm); flex: 1; min-width: 150px; text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .875rem; color: var(--gray-500); margin-top: .25rem; }
.table-wrap { padding: 0 2rem 2rem; overflow-x: auto; }
.queue-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.queue-table th { background: var(--gray-900); color: white; padding: .85rem 1rem; text-align: left; font-size: .875rem; font-weight: 600; }
.queue-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: .9rem; vertical-align: middle; }
.queue-table tr:last-child td { border-bottom: none; }
.status-row-pago { background: white; }
.status-row-em_impressao { background: #eff6ff; }
.empty-queue { text-align: center; color: var(--gray-500); padding: 3rem !important; }
.file-type { background: var(--gray-100); color: var(--gray-600); border-radius: 4px; padding: .15rem .4rem; font-size: .75rem; font-weight: 600; margin-right: .25rem; }
.status-pill { display: inline-block; padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.actions-cell { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-action { padding: .4rem .85rem; border-radius: var(--radius-sm); border: none; font-family: var(--font); font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.btn-start { background: var(--primary-light); color: var(--primary); }
.btn-start:hover { background: var(--primary); color: white; }
.btn-done { background: var(--success-light); color: var(--success); }
.btn-done:hover { background: var(--success); color: white; }
.btn-cancel { background: var(--danger-light); color: var(--danger); }
.btn-cancel:hover { background: var(--danger); color: white; }
.pos-cell { font-weight: 700; color: var(--gray-500); }

/* ── UTILITIES ── */
.hidden { display: none !important; }

/* ── ADMIN CONFIG SECTION ── */
.config-details { margin: 2rem; background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.config-summary { padding: 1rem 1.5rem; font-size: 1.1rem; font-weight: 600; cursor: pointer; user-select: none; color: var(--gray-700); border-bottom: 1px solid var(--gray-200); }
.config-summary:hover { background: var(--gray-50); }
.config-body { padding: 1.5rem; }
.config-form-full { display: flex; flex-direction: column; }
.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.config-group { background: var(--gray-50); padding: 1.25rem; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }
.config-group h4 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--gray-900); }
.config-group .form-group { margin-bottom: 0.75rem; }
.config-group .form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.3rem; }
.config-group .form-group input { width: 100%; padding: 0.5rem 0.75rem; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.9rem; }
.config-group .form-group input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-light); }
.config-group .form-group small { display: block; margin-top: 0.25rem; font-size: 0.78rem; color: var(--gray-500); }
.config-group .form-group small a { color: var(--primary); text-decoration: none; }
.config-group .form-group small a:hover { text-decoration: underline; }
.btn-toggle-pass { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1rem; padding: 4px; }

/* ── WHATSAPP BUTTONS ── */
.btn-whatsapp-sm { display: inline-block; margin-top: 4px; padding: 2px 8px; background: #25d366; color: white; border-radius: 4px; font-size: 0.72rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-whatsapp-sm:hover { background: #128c7e; color: white; }

/* ── AGUARDANDO ROW ── */
.status-row-aguardando { background: var(--warning-light); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { transform: rotate(90deg); }
  .footer-inner { grid-template-columns: 1fr; }
  .download-options { flex-direction: column; align-items: center; }
  .admin-sidebar { display: none; }
  .admin-header { flex-direction: column; align-items: flex-start; }
  .stats-row { padding: 1rem; }
  .table-wrap { padding: 0 1rem 1rem; }
  .config-details { margin: 1rem; }
  .config-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cta-group { flex-direction: column; }
  .app-main { padding: 1.5rem 1rem; }
  .card { padding: 1.5rem 1.25rem; }
}
