/**
 * Grid Iron Mind UI System
 * A minimal design system with soft tones and subtle depth
 * Like UI elements cut from white glass on a pristine table
 *
 * Import in your HTML:
 * <link rel="stylesheet" href="https://nfl.wearemachina.com/ui-system.css">
 *
 * Or in your CSS:
 * @import url('https://nfl.wearemachina.com/ui-system.css');
 */

/* ============================================
   DESIGN TOKENS - White Glass Table Aesthetic
   ============================================ */

:root {
    /* Colors - Soft Tones */
    --soft-white: #ffffff;
    --soft-bg: #fafafa;
    --soft-surface: rgba(255, 255, 255, 0.7);
    --soft-border: rgba(0, 0, 0, 0.06);
    --soft-border-subtle: rgba(0, 0, 0, 0.04);
    --soft-text: #2c2c2c;
    --soft-text-light: #6b6b6b;
    --soft-text-lighter: #9a9a9a;

    /* Shadows - Minimal Depth */
    --soft-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    --soft-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06);
    --soft-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.07);

    /* Accents - Soft Blue */
    --soft-accent: rgba(100, 120, 255, 0.08);
    --soft-accent-border: rgba(100, 120, 255, 0.12);
    --soft-accent-hover: rgba(100, 120, 255, 0.12);

    /* Status Colors - Soft Versions */
    --soft-success: rgba(100, 200, 100, 0.1);
    --soft-success-border: rgba(100, 200, 100, 0.2);
    --soft-warning: rgba(255, 200, 100, 0.1);
    --soft-warning-border: rgba(255, 200, 100, 0.2);
    --soft-error: rgba(255, 100, 100, 0.1);
    --soft-error-border: rgba(255, 100, 100, 0.2);

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: var(--font-family);
    background: var(--soft-bg);
    color: var(--soft-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    color: var(--soft-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.12) 0%, rgba(100, 150, 255, 0.12) 50%, rgba(255, 200, 150, 0.08) 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: inherit;
}

.btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn:hover::before {
    opacity: 1.3;
}

.btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.btn-primary::before {
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.2) 0%, rgba(100, 150, 255, 0.2) 50%, rgba(255, 200, 150, 0.15) 100%);
}

.btn-primary:hover::before {
    opacity: 1.5;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* Glassmorphic Gradient Button */
.btn-glass {
    position: relative;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 400;
    border-radius: 9999px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.15) 100%
    );
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--soft-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(150, 130, 200, 0.12) 0%,
        rgba(100, 150, 255, 0.12) 50%,
        rgba(255, 200, 150, 0.08) 100%
    );
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: inherit;
}

.btn-glass:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 100%
    );
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

.btn-glass:hover::before {
    opacity: 1.3;
}

.btn-glass:active {
    transform: translateY(0);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.08) 0%, rgba(100, 150, 255, 0.08) 50%, rgba(255, 200, 150, 0.05) 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.card:hover::before {
    opacity: 1.3;
}

.card-header {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    color: var(--soft-text);
}

.card-body {
    color: var(--soft-text-light);
    font-weight: 300;
}

.card-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glass Card Variant */
.card-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.card-glass::before {
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.1) 0%, rgba(100, 150, 255, 0.1) 50%, rgba(255, 200, 150, 0.06) 100%);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: var(--spacing-xs);
    color: var(--soft-text);
}

.form-input,
.form-select,
.form-textarea {
    position: relative;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 300;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    color: var(--soft-text);
    transition: all 0.3s ease;
    font-family: var(--font-family);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.form-input::before,
.form-select::before,
.form-textarea::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.12) 0%, rgba(100, 150, 255, 0.12) 50%, rgba(255, 200, 150, 0.08) 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.form-input:focus::before,
.form-select:focus::before,
.form-textarea:focus::before {
    opacity: 1.3;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    border-radius: var(--radius-2xl);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.form-checkbox,
.form-radio {
    position: relative;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: var(--spacing-xs);
    vertical-align: middle;
    overflow: hidden;
}

.form-checkbox::before,
.form-radio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.12) 0%, rgba(100, 150, 255, 0.12) 50%, rgba(255, 200, 150, 0.08) 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-radio {
    border-radius: 50%;
}

.form-checkbox:hover,
.form-radio:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.form-checkbox:hover::before,
.form-radio:hover::before {
    opacity: 1.2;
}

.form-checkbox:checked,
.form-radio:checked {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-checkbox:checked::before,
.form-radio:checked::before {
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.3) 0%, rgba(100, 150, 255, 0.3) 50%, rgba(255, 200, 150, 0.2) 100%);
    opacity: 1.5;
}

.form-checkbox:focus,
.form-radio:focus {
    outline: 2px solid rgba(100, 150, 255, 0.3);
    outline-offset: 2px;
}

.form-checkbox:focus-visible,
.form-radio:focus-visible {
    outline: 2px solid rgba(100, 150, 255, 0.5);
    outline-offset: 2px;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 400;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--soft-text);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.15) 0%, rgba(100, 150, 255, 0.15) 50%, rgba(255, 200, 150, 0.1) 100%);
    opacity: 1;
    border-radius: inherit;
    z-index: 0;
}

.badge > * {
    position: relative;
    z-index: 1;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.badge:hover::before {
    opacity: 1.2;
}

.badge-success::before {
    background: linear-gradient(135deg, rgba(100, 200, 100, 0.2) 0%, rgba(100, 200, 150, 0.15) 100%);
}

.badge-warning::before {
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.2) 0%, rgba(255, 180, 100, 0.15) 100%);
}

.badge-error::before {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2) 0%, rgba(255, 120, 120, 0.15) 100%);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    position: relative;
    padding: var(--spacing-md);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.12) 0%, rgba(100, 150, 255, 0.12) 50%, rgba(255, 200, 150, 0.08) 100%);
    opacity: 1;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
}

.alert > * {
    position: relative;
    z-index: 1;
}

.alert-success::before {
    background: linear-gradient(135deg, rgba(100, 200, 100, 0.15) 0%, rgba(100, 200, 150, 0.1) 100%);
}

.alert-warning::before {
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.15) 0%, rgba(255, 180, 100, 0.1) 100%);
}

.alert-error::before {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.15) 0%, rgba(255, 120, 120, 0.1) 100%);
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.12) 0%, rgba(100, 150, 255, 0.12) 50%, rgba(255, 200, 150, 0.08) 100%);
    opacity: 1;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
}

.modal-header {
    position: relative;
    z-index: 1;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    color: var(--soft-text);
}

.modal-body {
    position: relative;
    z-index: 1;
    color: var(--soft-text-light);
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
}

.modal-footer {
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-tabs {
    display: flex;
    gap: var(--spacing-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: var(--spacing-lg);
}

.nav-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    color: var(--soft-text-light);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 9999px;
}

.nav-tab:hover {
    position: relative;
    color: var(--soft-text);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: 9999px;
    overflow: hidden;
}

.nav-tab:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.1) 0%, rgba(100, 150, 255, 0.1) 50%, rgba(255, 200, 150, 0.05) 100%);
    opacity: 1;
    border-radius: inherit;
    z-index: 0;
}

.nav-tab.active {
    position: relative;
    color: var(--soft-text);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 9999px;
    border-bottom-color: transparent;
    overflow: hidden;
}

.nav-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.15) 0%, rgba(100, 150, 255, 0.15) 50%, rgba(255, 200, 150, 0.1) 100%);
    opacity: 1;
    border-radius: inherit;
    z-index: 0;
}

/* ============================================
   TABLES
   ============================================ */

.table {
    position: relative;
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(150, 130, 200, 0.08) 0%,      /* Purple */
        rgba(100, 150, 255, 0.08) 50%,     /* Blue */
        rgba(255, 200, 150, 0.05) 100%);   /* Orange */
    opacity: 1;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
}

.table th {
    position: relative;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--soft-text-light);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 1;
}

.table th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(150, 130, 200, 0.1) 0%,
        rgba(100, 150, 255, 0.1) 50%,
        rgba(255, 200, 150, 0.06) 100%);
    z-index: -1;
    pointer-events: none;
}

.table td {
    position: relative;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 300;
    color: var(--soft-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.table tr:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(150, 130, 200, 0.12) 0%,
        rgba(100, 150, 255, 0.12) 50%,
        rgba(255, 200, 150, 0.08) 100%);
    z-index: 0;
    pointer-events: none;
}

.table tr:hover td {
    position: relative;
    z-index: 1;
}

/* ============================================
   LOADING STATES
   ============================================ */

.spinner {
    position: relative;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    overflow: hidden;
}

.spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(150, 130, 200, 0.4) 0%,
        rgba(100, 150, 255, 0.4) 50%,
        rgba(255, 200, 150, 0.3) 100%);
    border-radius: inherit;
    z-index: -1;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 50% 0%);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(150, 130, 200, 0.05) 0%,
        rgba(100, 150, 255, 0.15) 50%,
        rgba(255, 200, 150, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: inherit;
    z-index: 0;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(150, 130, 200, 0.08) 0%,
        rgba(100, 150, 255, 0.08) 50%,
        rgba(255, 200, 150, 0.05) 100%);
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
}

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

/* Loading Button State */
.btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--soft-text);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.skeleton-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
   PHASE 4: ENHANCED STATUS COLORS
   ============================================ */

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.btn-success::before {
    background: linear-gradient(135deg, rgba(100, 200, 100, 0.2) 0%, rgba(100, 200, 150, 0.2) 50%, rgba(100, 220, 120, 0.15) 100%);
}

.btn-success:hover::before {
    opacity: 1.5;
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.btn-warning::before {
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.2) 0%, rgba(255, 180, 100, 0.2) 50%, rgba(255, 190, 80, 0.15) 100%);
}

.btn-warning:hover::before {
    opacity: 1.5;
}

/* Error/Danger Button */
.btn-error,
.btn-danger {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.btn-error::before,
.btn-danger::before {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2) 0%, rgba(255, 120, 120, 0.2) 50%, rgba(255, 110, 110, 0.15) 100%);
}

.btn-error:hover::before,
.btn-danger:hover::before {
    opacity: 1.5;
}

/* ============================================
   PHASE 4: TYPOGRAPHY REFINEMENTS
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, rgba(150, 130, 200, 1) 0%, rgba(100, 150, 255, 1) 50%, rgba(255, 200, 150, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-xl {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-size: 36px;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.heading-md {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
}

.heading-sm {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

/* ============================================
   UTILITIES
   ============================================ */

/* Spacing */
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

/* Text */
.text-light { color: var(--soft-text-light); }
.text-lighter { color: var(--soft-text-lighter); }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Display */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scale {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

.anim-fade-in { animation: fadeIn 0.3s ease; }
.anim-slide-up { animation: slideUp 0.3s ease; }
.anim-scale { animation: scale 0.2s ease; }

/* ============================================
   PHASE 4: ADDITIONAL INTERACTIVE ELEMENTS
   ============================================ */

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    color: #ffffff;
    font-size: 12px;
    border-radius: 9999px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(24px);
    background: linear-gradient(135deg, rgba(100, 200, 100, 0.9) 0%, rgba(100, 220, 120, 0.9) 100%);
}

/* Progress Bar */
.progress {
    position: relative;
    height: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.8) 0%, rgba(100, 150, 255, 0.8) 50%, rgba(255, 200, 150, 0.6) 100%);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.12) 0%, rgba(100, 150, 255, 0.12) 50%, rgba(255, 200, 150, 0.08) 100%);
    z-index: -1;
    pointer-events: none;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 16px;
    color: var(--soft-text);
    text-decoration: none;
    display: block;
    border-radius: var(--radius-2xl);
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
}

/* Accordion */
.accordion-item {
    margin-bottom: var(--spacing-sm);
}

.accordion-header {
    position: relative;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.accordion-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.12) 0%, rgba(100, 150, 255, 0.12) 50%, rgba(255, 200, 150, 0.08) 100%);
    z-index: 0;
    pointer-events: none;
}

.accordion-header:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 var(--spacing-md);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: var(--spacing-md);
}

/* ============================================
   PHASE 4: ADVANCED CARD VARIANTS
   ============================================ */

/* Card with Image */
.card-image {
    position: relative;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    overflow: hidden;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pricing Card */
.card-pricing {
    text-align: center;
}

.card-pricing-price {
    font-size: 48px;
    font-weight: 300;
    margin: var(--spacing-lg) 0;
}

.card-pricing-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
}

.card-pricing-features li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stat Card */
.card-stat {
    text-align: center;
}

.card-stat-value {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: var(--spacing-xs);
}

.card-stat-label {
    color: var(--soft-text-light);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hoverable Card with Tilt Effect */
.card-tilt {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-tilt:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ============================================
   PHASE 4: ADVANCED LAYOUT COMPONENTS
   ============================================ */

/* Navbar */
.navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.12) 0%, rgba(100, 150, 255, 0.12) 50%, rgba(255, 200, 150, 0.08) 100%);
    z-index: 0;
    pointer-events: none;
}

.navbar > * {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 400;
    color: var(--soft-text);
}

.navbar-nav {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-link {
    color: var(--soft-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar-link:hover {
    color: var(--soft-text);
}

/* Hero Section */
.hero {
    position: relative;
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(150, 130, 200, 0.12) 0%, rgba(100, 150, 255, 0.12) 50%, rgba(255, 200, 150, 0.08) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   PHASE 4: ENHANCED FORM FEATURES
   ============================================ */

/* Input with Icon */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--soft-text-light);
    pointer-events: none;
    z-index: 2;
}

.input-group .form-input {
    padding-left: 40px;
}

/* Floating Label */
.form-floating {
    position: relative;
}

.form-floating .form-input {
    padding-top: 20px;
    padding-bottom: 4px;
}

.form-floating label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--soft-text-light);
    font-size: 14px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.form-floating .form-input:focus + label,
.form-floating .form-input:not(:placeholder-shown) + label {
    top: 8px;
    font-size: 11px;
    transform: translateY(0);
}

/* Input Validation States */
.form-input.is-valid,
.form-select.is-valid {
    border-color: rgba(100, 200, 100, 0.4);
}

.form-input.is-valid::before,
.form-select.is-valid::before {
    background: linear-gradient(135deg, rgba(100, 200, 100, 0.15) 0%, rgba(100, 200, 150, 0.15) 50%, rgba(100, 220, 120, 0.1) 100%);
}

.form-input.is-invalid,
.form-select.is-invalid {
    border-color: rgba(255, 100, 100, 0.4);
}

.form-input.is-invalid::before,
.form-select.is-invalid::before {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.15) 0%, rgba(255, 120, 120, 0.15) 50%, rgba(255, 110, 110, 0.1) 100%);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .modal {
        width: 95%;
        padding: var(--spacing-lg);
    }
}
