/* ============================================================
   DigiRox — plan.digirox.in
   Matches digirox.in's dark theme:
   near-black purple bg / card panels / coral accent / icon circles
   ============================================================ */

:root {
    --bg: #120F1C;
    --bg-alt: #17132A;
    --card: #1E1A33;
    --card-border: #2C2745;
    --coral: #F1653D;
    --coral-deep: #D9502A;
    --blue: #6C8CFF;
    --green: #22B37A;
    --purple: #9B5CF6;
    --pink: #EC4899;
    --amber: #F1953B;
    --text: #F5F4FA;
    --text-muted: #A6A3C4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.55;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    margin: 0;
}

a { color: inherit; text-decoration: none; }

/* ---- Header ---- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}
.logo img { height: 34px; display: block; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
}
.main-nav a:hover { color: var(--coral); }
.nav-phone {
    font-family: 'JetBrains Mono', monospace;
    color: var(--coral) !important;
}

/* ---- Hero ---- */
.hero {
    background: var(--bg);
    padding: 80px 24px 96px;
    text-align: left;
}
.hero-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    color: var(--coral);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.08;
    max-width: 14ch;
}
.hero-sub {
    max-width: 48ch;
    color: var(--text-muted);
    font-size: 17px;
    margin: 22px 0 32px;
}
.btn {
    display: inline-block;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.btn-primary {
    background: var(--coral);
    color: #fff;
}
.btn-primary:hover { background: var(--coral-deep); }

/* ---- Plans section ---- */
.plans-section { padding: 88px 0 96px; background: var(--bg-alt); }
.section-title { font-size: 30px; color: var(--text); }
.section-sub {
    color: var(--text-muted);
    max-width: 56ch;
    margin: 14px 0 48px;
    font-size: 16px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.ticket {
    position: relative;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    padding: 4px;
}
.ticket-popular {
    border-color: var(--coral);
    box-shadow: 0 0 0 1px var(--coral);
}
.ticket-ribbon {
    position: absolute;
    top: -13px;
    left: 24px;
    background: var(--coral);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
}

.ticket-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 24px 0 16px 26px;
}

.ticket-body { padding: 0 26px 8px; flex-grow: 1; }
.ticket-name { font-size: 19px; color: var(--text); }
.ticket-tagline {
    color: var(--text-muted);
    font-size: 14px;
    margin: 8px 0 20px;
}

.ticket-price { margin-bottom: 22px; }
.price-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.price-amount {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 32px;
    color: var(--coral);
}
.price-period {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
}

.ticket-features {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--card-border);
    padding-top: 18px;
}
.ticket-features li {
    font-size: 13.5px;
    padding: 6px 0 6px 22px;
    position: relative;
    color: var(--text);
}
.ticket-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.ticket-cta {
    display: block;
    text-align: center;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text);
    font-weight: 600;
    font-size: 14.5px;
    padding: 14px;
    margin: 20px 22px 22px;
    border-radius: 8px;
}
.ticket-cta:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.ticket-popular .ticket-cta { background: var(--coral); border-color: var(--coral); color: #fff; }
.ticket-popular .ticket-cta:hover { background: var(--coral-deep); }

.empty-state { color: var(--text-muted); font-size: 15px; }

/* ---- Process section ---- */
.process-section {
    background: var(--bg);
    padding: 88px 0 96px;
}
.process-steps {
    list-style: none;
    margin: 48px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}
.process-steps li {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 24px;
}
.step-num {
    font-family: 'JetBrains Mono', monospace;
    color: var(--coral);
    font-weight: 700;
    font-size: 14px;
}
.process-steps h3 {
    font-size: 16px;
    color: var(--text);
    margin: 10px 0 8px;
}
.process-steps p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--card-border);
    color: var(--text);
    padding: 48px 24px 24px;
}
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--card-border);
}
.footer-logo img { height: 28px; margin-bottom: 10px; }
.footer-legal { color: var(--text-muted); font-size: 13px; margin: 2px 0; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer-contact a { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--coral); }
.footer-copyright {
    max-width: 1120px;
    margin: 20px auto 0;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 12.5px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .main-nav { gap: 16px; }
    .main-nav a { font-size: 13px; }
    .hero { padding: 56px 24px 72px; }
    .footer-row { flex-direction: column; }
    .footer-contact { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

a:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

/* ============================================================
   Plan detail page
   ============================================================ */

.detail-hero {
    background: var(--bg);
    padding: 40px 24px 56px;
    border-bottom: 1px solid var(--card-border);
}
.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 20px;
}
.back-link:hover { color: var(--coral); }
.detail-ribbon {
    display: inline-block;
    background: var(--coral);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.detail-hero h1 { font-size: clamp(28px, 5vw, 42px); }
.detail-tagline { color: var(--text-muted); font-size: 16px; margin-top: 10px; }

.detail-section { padding: 64px 0 96px; background: var(--bg); }
.detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}
.section-title-sm { font-size: 18px; color: var(--text); margin-bottom: 20px; }
.detail-feature-list { list-style: none; margin: 0; padding: 0; }
.detail-feature-list li {
    font-size: 15px;
    padding: 12px 0 12px 28px;
    position: relative;
    border-bottom: 1px solid var(--card-border);
}
.detail-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.detail-purchase-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 28px;
    position: sticky;
    top: 24px;
}
.billing-toggle {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}
.toggle-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 9px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
}
.toggle-btn.active { background: var(--coral); color: #fff; }
.detail-price { margin-bottom: 6px; }
.detail-price .price-amount {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 34px;
    color: var(--coral);
}
.detail-price .price-period { font-size: 13px; color: var(--text-muted); margin-left: 4px; }
.detail-note { font-size: 12.5px; color: var(--text-muted); margin: 12px 0 22px; }
.btn-full { display: block; width: 100%; text-align: center; }

@media (max-width: 760px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-purchase-card { position: static; }
}

/* ============================================================
   Purchase form
   ============================================================ */

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin: 20px 0 6px;
}
.form-label:first-of-type { margin-top: 0; }
.optional { color: var(--text-muted); font-weight: 400; }

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background: var(--card);
    color: var(--text);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { outline: none; border-color: var(--coral); }

.phone-row { display: flex; gap: 10px; align-items: stretch; }
.phone-row .form-input { flex: 1; }

.btn-secondary {
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--text);
    white-space: nowrap;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
}
.btn-secondary:hover { border-color: var(--coral); color: var(--coral); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.otp-block {
    margin-top: 8px;
    padding: 16px;
    background: var(--card);
    border: 1px dashed var(--card-border);
    border-radius: 8px;
}
.otp-status { font-size: 13px; margin: 10px 0 0; color: var(--text-muted); }
.otp-status.otp-success { color: var(--green); font-weight: 600; }
.otp-status.otp-error { color: #F87171; font-weight: 600; }

.form-errors {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #FCA5A5;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
}
.form-errors p { margin: 4px 0; }

.form-success {
    background: rgba(34, 179, 122, 0.12);
    border: 1px solid rgba(34, 179, 122, 0.35);
    color: #6EE7B7;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
}

/* ============================================================
   Tracking page
   ============================================================ */

.track-lookup-form { max-width: 480px; margin: 0 auto; }

.status-timeline { display: flex; justify-content: space-between; margin: 40px 0; position: relative; }
.status-timeline::before {
    content: "";
    position: absolute;
    top: 7px; left: 7px; right: 7px;
    height: 2px;
    background: var(--card-border);
    z-index: 0;
}
.status-step { position: relative; z-index: 1; flex: 1; text-align: center; }
.status-dot {
    display: block;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--card-border);
    margin: 0 auto 10px;
}
.status-step-done .status-dot { background: var(--green); border-color: var(--green); }
.status-step-rejected .status-dot { background: #F87171; border-color: #F87171; }
.status-step-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.status-step-done .status-step-label { color: var(--text); }

.detail-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.detail-table td { padding: 8px 0; border-bottom: 1px solid var(--card-border); }
.detail-table td:first-child { color: var(--text-muted); width: 40%; }

.history-log { margin-top: 32px; }
.history-log ul { list-style: none; margin: 0; padding: 0; }
.history-log li { padding: 14px 0; border-bottom: 1px solid var(--card-border); font-size: 14px; }
.history-log li p { margin: 4px 0 0; color: var(--text-muted); }
.history-log li a { color: var(--coral); font-weight: 600; }
.history-date { color: var(--text-muted); font-size: 12.5px; margin-left: 8px; }
