/* Shared styles for auxiliary pages (legal + customer tracking) */
:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-surface: #1a1a25;
    --text-primary: #f1f1f7;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --gradient-primary: linear-gradient(135deg, #7c3aed, #ec4899);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}
.page-nav {
    border-bottom: 1px solid var(--border);
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    position: sticky; top: 0; z-index: 100;
}
.page-nav .inner {
    max-width: 900px; margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 36px; height: 36px; border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; }
.logo-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.back-link { color: var(--text-secondary); font-size: 0.9rem; text-decoration: none; transition: var(--transition); }
.back-link:hover { color: var(--primary-light); }
.page-wrap { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }
.page-wrap h1 {
    font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 8px;
}
.page-wrap .updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 32px; }
.page-wrap h2 {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem;
    margin: 32px 0 12px; color: var(--text-primary);
}
.page-wrap p, .page-wrap li { color: var(--text-secondary); margin-bottom: 12px; }
.page-wrap ul { padding-left: 22px; margin-bottom: 12px; }
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-full); font-weight: 600;
    font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition);
    font-family: inherit; text-decoration: none;
}
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.4); }
.btn-block { width: 100%; }

/* Tracking page */
.track-card {
    max-width: 560px; margin: 0 auto; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px;
}
.track-card h1 { text-align: center; font-size: 1.6rem; }
.track-card .sub { text-align: center; color: var(--text-secondary); margin-bottom: 28px; }
.field label { display:block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }
.input {
    width: 100%; padding: 12px 16px; border-radius: var(--radius-md);
    background: var(--bg-surface); border: 1px solid var(--border);
    color: var(--text-primary); font-size: 0.95rem; font-family: inherit; outline: none;
    transition: var(--transition); margin-bottom: 16px;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.track-error {
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-md); padding: 10px 14px; font-size: 0.85rem;
    color: #f87171; margin-bottom: 16px; display: none;
}
.track-results { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.order-card {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    border-radius: var(--radius-lg); background: var(--bg-surface); border: 1px solid var(--border);
}
.order-card img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.order-card .oc-info { flex: 1; }
.order-card .oc-plan { font-weight: 600; }
.order-card .oc-meta { font-size: 0.78rem; color: var(--text-muted); }
.badge { padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.badge-pending { background: rgba(245,158,11,0.1); color: #fbbf24; }
.badge-processing { background: rgba(59,130,246,0.1); color: #60a5fa; }
.badge-completed { background: rgba(16,185,129,0.1); color: #34d399; }
.badge-cancelled { background: rgba(239,68,68,0.1); color: #f87171; }
.track-steps { display: flex; gap: 6px; margin-top: 10px; }
.track-steps .step { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-card); }
.track-steps .step.on { background: var(--gradient-primary); }
.empty { text-align: center; color: var(--text-muted); padding: 24px; }

/* Real growth chart */
.growth-box { margin-top: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; }
.growth-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.growth-head strong { color: var(--text-secondary); }
.growth-head strong.up { color: #34d399; }
.growth-svg { width: 100%; height: 60px; display: block; }
.growth-foot { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.growth-empty { margin-top: 12px; font-size: 0.78rem; color: var(--text-muted); background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 12px; text-align: center; }
.growth-empty i { color: var(--primary-light); margin-right: 6px; }
