:root {
    /* Industrial Color Palette (Default Light Mode) */
    --color-primary: #D946EF;
    --color-secondary: #E2E8F0;
    --color-accent: #C026D3;
    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-surface-hover: #F1F5F9;
    --color-card: #FFFFFF;
    --color-text: #0F172A;
    --color-text-main: #0F172A;
    --color-text-muted: #64748B;
    --color-success: #10B981;
    --color-success-bg: rgba(16, 185, 129, 0.1);
    --color-error: #EF4444;
    --color-border: rgba(0, 0, 0, 0.1);
    --color-shadow: rgba(0, 0, 0, 0.05);
    
    /* High-Fidelity Tokens */
    --color-glass: rgba(255, 255, 255, 0.7);
    --color-code-bg: #F1F5F9;
    --color-code-border: #E2E8F0;
    --color-premium: #8b5cf6;
    --color-premium-bg: rgba(139, 92, 246, 0.05);
    
    /* Layout Constants */
    --container-max-width: 1200px;
    --header-height: 80px;
    --base-padding: 2rem;
    --border-radius: 12px;
    
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}


[data-theme="dark"] {
    --color-secondary: #1E293B;
    --color-bg: #020617;
    --color-surface: #0F172A;
    --color-surface-hover: #1E293B;
    --color-card: #0F172A;
    --color-text: #F8FAFC;
    --color-text-main: #F8FAFC;
    --color-text-muted: #94A3B8;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-shadow: rgba(0, 0, 0, 0.3);

    /* High-Fidelity Tokens (Dark Mode) */
    --color-glass: rgba(15, 23, 42, 0.7);
    --color-code-bg: #0F172A;
    --color-code-border: #334155;
    --color-premium-bg: rgba(139, 92, 246, 0.15);
}

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

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

.bg-surface {
    background-color: var(--color-surface);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--base-padding);
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Landing Page Hero */
.landing-hero {
    padding: 10rem 0 6rem 0;
    text-align: center;
    background: radial-gradient(circle at top, rgba(59,130,246,0.1), transparent);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-title .accent {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: saturate(0.5);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

/* Dashboard Styles */
.dashboard-hero {
    padding: 6rem 0 4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.asset-table-container {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.asset-table {
    width: 100%;
    border-collapse: collapse;
}

.asset-table th, .asset-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.asset-table th {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Industrial Animations & Refined Control Styles */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.animate-slide-up {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#display-path::placeholder {
    color: rgba(217, 70, 239, 0.4);
    font-style: italic;
}

.grade-option {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.grade-option:hover {
    background: rgba(217, 70, 239, 0.05);
    border-color: rgba(217, 70, 239, 0.3);
    transform: scale(1.02);
}

.grade-option.selected {
    background: rgba(217, 70, 239, 0.15) !important;
    border-color: #D946EF !important;
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.2);
}

#checkout-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 45px rgba(217, 70, 239, 0.5);
    filter: brightness(1.1);
}

#checkout-btn:active {
    transform: translateY(-1px) scale(0.99);
}

/* Custom Scrollbar for Industrial Feel */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(217, 70, 239, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(217, 70, 239, 0.4);
}

/* [STABILIZATION] Mission Secure Highlight */
@keyframes pulse-secure {
    0% { background: rgba(16, 185, 129, 0.05); }
    50% { background: rgba(16, 185, 129, 0.2); border-left: 4px solid #10B981; }
    100% { background: rgba(16, 185, 129, 0.05); }
}

.highlight-secure {
    animation: pulse-secure 2s infinite ease-in-out;
}
