:root {
    --brand-primary: #4F46E5;
    --brand-primary-rgb: 79, 70, 229;
    --brand-secondary: #06B6D4;
    --brand-secondary-rgb: 6, 182, 212;
    --brand-indigo-light: #6366F1;
    --brand-dark: #0B0F19;
    --brand-dark-rgb: 11, 15, 25;
    --brand-surface: rgba(255, 255, 255, 0.95);
    --brand-surface-strong: #ffffff;
    --brand-border: rgba(99, 102, 241, 0.18);
    --brand-muted: #64748B;
    --brand-success: #10B981;
    --brand-warning: #F59E0B;
    --brand-danger: #EF4444;
    --brand-bg-start: #F8FAFC;
    --brand-bg-end: #EEF2F6;
    --ink-900: #0F172A;
    --ink-700: #334155;
    --ink-500: #64748B;
    --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.05);
    --shadow-strong: 0 20px 48px rgba(79, 70, 229, 0.08);
    --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Figtree', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink-900);
    background:
        radial-gradient(circle at 12% 15%, rgba(79, 70, 229, 0.08), transparent 35%),
        radial-gradient(circle at 88% 18%, rgba(6, 182, 212, 0.07), transparent 30%),
        linear-gradient(165deg, var(--brand-bg-start) 0%, var(--brand-bg-end) 100%);
    overflow-x: hidden;
    line-height: 1.5;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Browser Surfaces Theming */
::selection {
    background: rgba(99, 102, 241, 0.22);
    color: var(--ink-900);
}

:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* Background Animated Canvas */
.abc-bg-anim {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.abc-bg-anim::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(79, 70, 229, 0.07) 0 1.2px, transparent 2px) 0 0 / 160px 160px,
        radial-gradient(circle, rgba(6, 182, 212, 0.05) 0 1px, transparent 2px) 50px 30px / 180px 180px;
    opacity: 0.65;
    animation: particlesDrift 50s linear infinite;
}

@keyframes particlesDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-160px); }
}

.circle, .mesh, .truck {
    position: absolute;
    opacity: 0.16;
}

.circle {
    border-radius: 50%;
    filter: blur(1px);
}

.circle.indigo-a {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.22), transparent 70%);
    top: -120px;
    left: -100px;
    animation: pulseOrb 18s ease-in-out infinite alternate;
}

.circle.cyan-b {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 70%);
    top: 40%;
    right: -100px;
    animation: pulseOrb 22s ease-in-out infinite alternate-reverse;
}

@keyframes pulseOrb {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.08) translate(20px, 15px); }
    100% { transform: scale(0.95) translate(-15px, 25px); }
}

.truck {
    width: 200px;
    bottom: 8%;
    right: -240px;
    animation: flightPath 34s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform: rotate(-4deg);
    filter: drop-shadow(0 10px 15px rgba(79, 70, 229, 0.12));
}

@keyframes flightPath {
    0% {
        transform: translate(-120vw, 40px) scale(0.7) rotate(-2deg);
        opacity: 0;
    }
    10% { opacity: 0.35; }
    80% { opacity: 0.35; }
    100% {
        transform: translate(20vw, -120px) scale(1) rotate(-6deg);
        opacity: 0;
    }
}

/* Page Shell */
.page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
}

/* Hero Section */
.hero-panel {
    width: 100%;
    padding: 48px 20px 24px;
    display: flex;
    justify-content: center;
}

.hero-container {
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
}

/* Brand Lockup */
.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2.2px;
    color: var(--brand-primary);
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.20);
    padding: 6px 16px;
    border-radius: 999px;
    text-transform: uppercase;
}

.brand-lockup .logo {
    max-width: 290px;
    height: auto;
    max-height: 72px;
    filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.10));
    transition: transform 0.3s var(--ease-out-expo);
}

.brand-lockup .logo:hover {
    transform: scale(1.02);
}

.tagline {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ink-500);
    text-transform: uppercase;
    margin-top: -4px;
}

.brand-lockup h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.brand-lockup .subtitle {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--ink-700);
    max-width: 580px;
    line-height: 1.5;
}

/* Search Card */
.search-card-wrapper {
    width: 100%;
    max-width: 640px;
}

.search-card {
    background: var(--brand-surface-strong);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    padding: 22px 24px;
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(16px);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.search-card:focus-within {
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 20px 48px rgba(79, 70, 229, 0.14);
}

.search-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
}

.search-card-pill {
    background: rgba(79, 70, 229, 0.08);
    color: var(--brand-primary);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-card-hint {
    color: var(--ink-500);
    font-weight: 500;
}

/* Tracking Form */
.tracking-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

@media (max-width: 640px) {
    .tracking-form {
        flex-direction: column;
    }
}

.input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--ink-500);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.search-input {
    width: 100%;
    height: 52px;
    padding: 0 46px 0 48px;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-900);
    background: #F8FAFC;
    transition: all 0.2s;
}

.search-input:focus {
    background: #FFFFFF;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.search-input:focus + .paste-btn,
.search-input:focus ~ .input-icon {
    color: var(--brand-primary);
}

.paste-btn {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--ink-500);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.paste-btn:hover {
    background: #E2E8F0;
    color: var(--brand-primary);
}

.search-button {
    height: 52px;
    padding: 0 28px;
    background: var(--brand-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.28);
    white-space: nowrap;
}

.search-button:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.35);
}

.search-button:active {
    transform: translateY(1px);
}

.search-button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.status-rail {
    font-size: 0.88rem;
    font-weight: 600;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

/* Shake Animation for invalid inputs */
@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.input-shake {
    animation: shakeInput 0.4s ease-in-out;
    border-color: var(--brand-danger) !important;
}

/* History Panel */
.history-panel {
    max-width: 640px;
    width: 100%;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.history-heading h2 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-clear-btn {
    background: transparent;
    border: none;
    color: var(--ink-500);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.history-clear-btn:hover {
    color: var(--brand-danger);
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-chip {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-700);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-chip:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: #EEF2FF;
}

/* PWA Install Banner */
.install-cta {
    max-width: 640px;
    width: 100%;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.install-cta-content {
    background: #0F172A;
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: var(--shadow-card);
}

.install-cta-icon {
    font-size: 1.4rem;
    color: var(--brand-secondary);
}

.install-cta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.install-cta-text strong {
    font-size: 0.92rem;
    color: #FFFFFF;
}

.install-cta-text span {
    font-size: 0.78rem;
    color: #94A3B8;
}

.install-btn {
    background: var(--brand-primary);
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.install-btn:hover {
    background: #4338CA;
}

/* Results Shell */
.result-shell {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.result-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeIn 0.4s var(--ease-out-expo);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Unified Summary Card */
.unified-summary-card {
    background: var(--brand-surface-strong);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.summary-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.summary-title-area h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ink-900);
}

.kicker {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-badge.both {
    background: #EEF2FF;
    color: #4F46E5;
    border: 1px solid rgba(79, 70, 229, 0.25);
}

.status-badge.pouch,
.status-badge.in_transit {
    background: #EEF2FF;
    color: #4F46E5;
    border: 1px solid rgba(79, 70, 229, 0.25);
}

.status-badge.delivered {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-badge.ncpos {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.status-badge.none,
.status-badge.not_found {
    background: #FFF1F2;
    color: #E11D48;
    border: 1px solid rgba(225, 29, 72, 0.25);
}

/* Estimated Delivery Banner */
.estimate-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F0F9FF;
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    color: #0369A1;
    font-size: 0.9rem;
    margin-top: 8px;
    max-width: fit-content;
}

.estimate-banner strong {
    color: #0C4A6E;
}

/* Stepper Progress Bar */
.stepper-progress-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
}

.stepper-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
}

.stepper-current-label {
    color: var(--ink-700);
}

.stepper-pct-badge {
    background: var(--brand-primary);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.stepper-track {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

.stepper-fill {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5, #06B6D4);
    border-radius: 999px;
    transition: width 0.6s var(--ease-out-expo);
}

/* Timeline Track */
.timeline-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    position: relative;
}

@media (max-width: 768px) {
    .timeline-track {
        grid-template-columns: 1fr;
    }
}

.timeline-step {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.25s;
    text-align: left;
}

.timeline-step.completed {
    background: #FFFFFF;
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.04);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #E2E8F0;
    color: var(--ink-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    position: relative;
    flex-shrink: 0;
}

.timeline-step.completed .step-icon-wrap {
    background: var(--brand-primary);
    color: #FFFFFF;
}

.step-check-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10B981;
    color: #FFFFFF;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

.step-num-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #64748B;
    color: #FFFFFF;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

.step-header-text {
    display: flex;
    flex-direction: column;
}

.step-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink-900);
}

.step-badge-mini {
    font-size: 0.72rem;
    font-weight: 600;
}

.step-badge-mini.done {
    color: #059669;
}

.step-badge-mini.pending {
    color: var(--ink-500);
}

.step-detail {
    font-size: 0.78rem;
    color: var(--ink-700);
    line-height: 1.4;
}

.step-date {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.flow-connector-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.flow-connector-pill {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-500);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Detail Cards Grid */
.detail-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.detail-card {
    background: var(--brand-surface-strong);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 14px;
}

.detail-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-card-title i {
    font-size: 1.25rem;
}

.detail-card-title h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-900);
}

.card-entry-pill {
    background: #EEF2FF;
    color: var(--brand-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Facts Table / Specs Grid */
.facts-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed #E2E8F0;
    font-size: 0.88rem;
}

.fact-row:last-child {
    border-bottom: none;
}

.fact-label {
    color: var(--ink-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fact-value {
    color: var(--ink-900);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* Financial Highlights Box */
.financial-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.financial-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink-900);
}

.financial-total-amount {
    color: #059669;
    font-size: 1.2rem;
}

/* Actions Toolbar */
.card-actions-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
}

.action-btn {
    flex: 1;
    min-width: 140px;
    height: 42px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
}

.action-btn.primary {
    background: var(--brand-primary);
    color: #FFFFFF;
}

.action-btn.primary:hover {
    background: #4338CA;
}

.action-btn.secondary {
    background: #F1F5F9;
    color: var(--ink-900);
    border: 1px solid #CBD5E1;
}

.action-btn.secondary:hover {
    background: #E2E8F0;
}

.action-btn.whatsapp {
    background: #25D366;
    color: #FFFFFF;
}

.action-btn.whatsapp:hover {
    background: #20BD5A;
}

.action-btn.copy {
    background: #F8FAFC;
    color: var(--ink-700);
    border: 1px solid #CBD5E1;
}

.action-btn.copy:hover {
    background: #EEF2FF;
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Not Found Card */
.not-found-card {
    background: #FFFFFF;
    border: 1px solid rgba(225, 29, 72, 0.20);
    border-radius: var(--radius-xl);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 580px;
    margin: 0 auto;
}

.not-found-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FFF1F2;
    color: #E11D48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.not-found-card h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink-900);
}

.not-found-card p {
    color: var(--ink-700);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Skeleton Loading Shimmer */
.skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmer 1.5s infinite;
}

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

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #F1F5F9;
    color: var(--ink-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}

.modal-close-btn:hover {
    background: #E2E8F0;
    color: var(--ink-900);
}

/* Invoice Modal specific */
.invoice-dialog {
    max-width: 820px;
    height: 85vh;
}

.invoice-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
}

.invoice-modal-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #EEF2FF;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.invoice-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink-900);
}

.invoice-subtitle {
    font-size: 0.8rem;
    color: var(--ink-500);
}

.invoice-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 48px;
}

.invoice-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #F1F5F9;
    color: var(--ink-700);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

.invoice-tool-btn:hover {
    background: #E2E8F0;
}

.invoice-iframe-container {
    flex: 1;
    position: relative;
    background: #F8FAFC;
    overflow: hidden;
}

.invoice-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.invoice-loading-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.95rem;
    background: #FFFFFF;
}

.invoice-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
    flex-wrap: wrap;
    gap: 12px;
}

.invoice-footer-info {
    font-size: 0.8rem;
    color: var(--ink-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.invoice-footer-btns {
    display: flex;
    gap: 8px;
}

/* Site Credit Footer */
.site-credit {
    margin-top: auto;
    padding-top: 36px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-500);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-credit a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.site-credit a:hover {
    text-decoration: underline;
}
