/**
 * swapkenya.com - Modern World-Class Design System
 * Version: 2.0
 */

/* ===================================
   CSS RESET & BASE
   =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
    overflow-x: hidden;
}

/* ===================================
   DESIGN TOKENS
   =================================== */
:root {
    /* Colors - Primary */
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;

    /* Colors - Pink Accent */
    --color-accent: #db2777;
    --color-accent-light: #fdf2f8;
    --color-accent-dark: #9f1239;

    /* Colors - Success */
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-success-dark: #065f46;

    /* Colors - Warning */
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-warning-dark: #92400e;

    /* Colors - Error */
    --color-error: #ef4444;
    --color-error-light: #fee2e2;
    --color-error-dark: #991b1b;

    /* Colors - Neutral */
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    /* Semantic Colors */
    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-h1: 3.5rem;
    --text-h2: 2.5rem;
    --text-h3: 2rem;
    --text-h4: 1.5rem;
    --text-small: 0.875rem;

    /* Spacing */
    --space-8: 0.5rem;
    --space-12: 0.75rem;
    --space-16: 1rem;
    --space-24: 1.5rem;
    --space-32: 2rem;
    --space-40: 2.5rem;
    --space-48: 3rem;
    --space-64: 4rem;
    --space-80: 5rem;
    --space-96: 6rem;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 20px 40px -10px rgba(59, 130, 246, 0.2);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --timing-fast: 150ms;
    --timing-normal: 250ms;
    --timing-slow: 350ms;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--text-h1);
}

h2 {
    font-size: var(--text-h2);
}

h3 {
    font-size: var(--text-h3);
}

h4 {
    font-size: var(--text-h4);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

a {
    color: var(--color-primary-600);
    text-decoration: none;
    transition: color var(--timing-fast) var(--ease);
}

a:hover {
    color: var(--color-primary-700);
}

/* Page Titles */
.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

.section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-24);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-32);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-32);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-24);
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-16);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-16);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-16);
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
    gap: var(--space-16);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-24);
    flex-wrap: wrap;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* ===================================
   CARD COMPONENT
   =================================== */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-32);
    box-shadow: var(--shadow-sm);
    transition: all var(--timing-normal) var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: var(--space-24);
    padding-bottom: var(--space-24);
    border-bottom: 1px solid var(--color-border);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.card-body {
    padding: var(--space-24) 0;
}

.card-footer {
    margin-top: var(--space-24);
    padding-top: var(--space-24);
    border-top: 1px solid var(--color-border);
}

/* Glass Card Effect */
.card.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .card {
        padding: var(--space-24);
        border-radius: var(--radius-xl);
    }
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--timing-fast) var(--ease);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-xs);
    height: 36px;
}

.btn-md {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-sm);
    height: 44px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-base);
    height: 52px;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: var(--text-lg);
    height: 60px;
}

/* Button Variants */
.btn-primary {
    background: var(--color-primary-600);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-700);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-gray-100);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background: var(--color-gray-200);
}

.btn-accent {
    background: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    background: var(--color-accent-dark);
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover {
    background: var(--color-success-dark);
}

.btn-danger {
    background: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background: var(--color-error-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary-600);
    color: var(--color-primary-600);
}

.btn-outline:hover {
    background: var(--color-primary-600);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-primary);
}

.btn-ghost:hover {
    background: var(--color-gray-100);
}

/* Button Shapes */
.btn-pill {
    border-radius: var(--radius-full);
}

.btn-block {
    width: 100%;
    display: flex;
}

/* Icon Button */
.btn-icon {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .btn-lg {
        height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: var(--text-sm);
    }

    .btn-xl {
        height: 52px;
        padding: 1rem 2rem;
        font-size: var(--text-base);
    }
}

/* ===================================
   FORMS & INPUTS
   =================================== */
.form-group {
    margin-bottom: var(--space-24);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: " *";
    color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--color-text-primary);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--timing-fast) var(--ease);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    background: var(--color-gray-50);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-textarea,
textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Select Dropdown Arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

/* Input with Icon */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--color-text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group .form-input,
.input-group input {
    padding-left: 2.75rem;
}

.input-suffix {
    position: absolute;
    right: 1rem;
    color: var(--color-text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Input Action Button (like send icon) */
.input-action-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary-600);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--timing-fast);
    width: 36px;
    height: 36px;
}

.input-action-btn:hover {
    background: var(--color-primary-700);
    transform: translateY(-50%) scale(1.05);
}

.input-action-btn [data-lucide] {
    width: 18px;
    height: 18px;
}

/* Form Validation */
.form-input.error,
.form-select.error,
.form-textarea.error,
input.error,
select.error,
textarea.error {
    border-color: var(--color-error);
}

.form-input.success,
.form-select.success,
.form-textarea.success,
input.success,
select.success,
textarea.success {
    border-color: var(--color-success);
}

.form-error {
    display: block;
    margin-top: 0.5rem;
    font-size: var(--text-sm);
    color: var(--color-error);
    font-weight: 500;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"],
input[type="checkbox"],
input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    cursor: pointer;
    accent-color: var(--color-primary-600);
    margin-top: 0.125rem;
}

.form-check label {
    cursor: pointer;
    font-size: var(--text-sm);
    line-height: 1.6;
}

@media (max-width: 768px) {

    .form-input,
    .form-select,
    .form-textarea,
    input,
    select,
    textarea {
        font-size: var(--text-sm);
        padding: 0.75rem 0.875rem;
    }

    select {
        background-position: right 0.875rem center;
    }
}

/* ===================================
   MULTI-STEP FORM WIZARD
   =================================== */
.wizard-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Progress Steps */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-48);
    padding: 0 1rem;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    position: relative;
}

.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: var(--color-gray-200);
    z-index: -1;
}

.wizard-step.active:not(:last-child)::after,
.wizard-step.completed:not(:last-child)::after {
    background: var(--color-primary-600);
}

.wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-gray-100);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    border: 2px solid var(--color-gray-200);
    transition: all var(--timing-normal);
}

.wizard-step.active .wizard-step-number {
    background: var(--color-primary-600);
    color: white;
    border-color: var(--color-primary-600);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.wizard-step.completed .wizard-step-number {
    background: var(--color-success);
    color: white;
    border-color: var(--color-success);
}

.wizard-step-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    transition: color var(--timing-fast);
}

.wizard-step.active .wizard-step-label {
    color: var(--color-primary-600);
}

.wizard-step.completed .wizard-step-label {
    color: var(--color-success);
}

/* Wizard Content */
.wizard-content {
    min-height: 400px;
}

.wizard-panel {
    display: none;
    animation: fadeInSlide 0.4s var(--ease);
}

.wizard-panel.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: var(--space-32);
}

.wizard-nav-btn {
    flex: 1;
    max-width: 200px;
}

.wizard-nav-btn.next {
    margin-left: auto;
}

@media (max-width: 768px) {
    .wizard-steps {
        padding: 0;
        margin-bottom: var(--space-32);
    }

    .wizard-step-label {
        font-size: 0.65rem;
    }

    .wizard-step-number {
        width: 36px;
        height: 36px;
    }

    .wizard-step:not(:last-child)::after {
        top: 18px;
    }

    .wizard-navigation {
        flex-direction: column-reverse;
    }

    .wizard-nav-btn {
        max-width: 100%;
    }

    .wizard-nav-btn.next {
        margin-left: 0;
    }
}

/* Step Header Inside Card */
.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--space-32);
    padding-bottom: var(--space-24);
    border-bottom: 2px solid var(--color-border);
}

.step-number-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.step-header h3 {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: 700;
}

@media (max-width: 768px) {
    .step-header {
        gap: 0.75rem;
        margin-bottom: var(--space-24);
        padding-bottom: var(--space-16);
    }

    .step-number-badge {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }

    .step-header h3 {
        font-size: var(--text-xl);
    }
}

/* ===================================
   BADGES & TAGS
   =================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: var(--color-primary-100);
    color: var(--color-primary-700);
}

.badge-success {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.badge-warning {
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
}

.badge-error {
    background: var(--color-error-light);
    color: var(--color-error-dark);
}

.badge-gray {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
}

/* ===================================
   LISTING CARDS
   =================================== */
.listing-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-24);
    transition: all var(--timing-normal);
    position: relative;
    overflow: hidden;
}

.listing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-primary-200);
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-16);
}

.listing-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: var(--space-16);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.listing-location {
    background: var(--color-gray-50);
    padding: var(--space-16);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-16);
}

.location-route {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.location-dot.from {
    background: var(--color-gray-400);
}

.location-dot.to {
    background: var(--color-primary-500);
}

.location-divider {
    width: 2px;
    height: 20px;
    background: var(--color-border);
    margin: 0.5rem 0 0.5rem 4px;
}

.listing-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: var(--space-16);
    border-top: 1px solid var(--color-border);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-100);
    color: var(--color-primary-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ===================================
   TABLES
   =================================== */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

thead {
    background: var(--color-gray-50);
    border-bottom: 2px solid var(--color-border);
}

thead th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background var(--timing-fast);
}

tbody tr:hover {
    background: var(--color-gray-50);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 1rem 1.5rem;
    color: var(--color-text-primary);
    vertical-align: middle;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-container {
        border-radius: var(--radius-lg);
    }

    thead th,
    tbody td {
        padding: 0.75rem 1rem;
        font-size: var(--text-xs);
    }

    .table-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ===================================
   FILTERS & SEARCH
   =================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
    align-items: center;
    padding: var(--space-24);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-32);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    outline: none;
    transition: all var(--timing-fast);
}

.search-box input:focus {
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: var(--space-12);
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    min-width: 180px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    background: var(--color-surface);
    cursor: pointer;
    outline: none;
}

.filter-select:focus {
    border-color: var(--color-primary-500);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-16);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--color-primary-100);
    color: var(--color-primary-700);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.filter-tag button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: opacity var(--timing-fast);
}

.filter-tag button:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-16);
    }

    .search-box {
        width: 100%;
        min-width: 0;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
        min-width: 0;
    }
}

/* ===================================
   ALERTS & NOTIFICATIONS
   =================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    margin-bottom: var(--space-24);
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: var(--text-sm);
}

.alert-message {
    font-size: var(--text-sm);
    opacity: 0.9;
    line-height: 1.5;
}

.alert-info {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.alert-success {
    background: var(--color-success-light);
    border-color: var(--color-success);
    color: var(--color-success-dark);
}

.alert-warning {
    background: var(--color-warning-light);
    border-color: var(--color-warning);
    color: var(--color-warning-dark);
}

.alert-error {
    background: var(--color-error-light);
    border-color: var(--color-error);
    color: var(--color-error-dark);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    min-width: 320px;
    max-width: 480px;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    z-index: 10000;
    animation: slideInUp 0.3s var(--ease);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        min-width: 0;
    }
}

/* ===================================
   DROPDOWN MENUS
   =================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 280px;
    max-width: 400px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s var(--ease);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: background var(--timing-fast);
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--color-gray-50);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .dropdown-content {
        left: 0;
        right: 0;
        min-width: 0;
    }
}

/* ===================================
   MODALS
   =================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    animation: fadeIn 0.2s var(--ease);
}

.modal {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s var(--ease);
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }

    .modal {
        border-radius: var(--radius-xl);
        max-height: calc(100vh - 2rem);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }
}

/* ===================================
   TABS
   =================================== */
.tabs {
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--space-32);
    overflow-x: auto;
}

.tab-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: min-content;
}

.tab-item {
    padding: 1rem 0;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all var(--timing-fast);
    position: relative;
    bottom: -2px;
    white-space: nowrap;
}

.tab-item:hover {
    color: var(--color-text-primary);
}

.tab-item.active {
    color: var(--color-primary-600);
    border-bottom-color: var(--color-primary-600);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s var(--ease);
}

@media (max-width: 768px) {
    .tab-list {
        gap: 1rem;
    }

    .tab-item {
        padding: 0.75rem 0;
        font-size: var(--text-sm);
    }
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--space-48);
    flex-wrap: wrap;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--timing-fast);
    text-decoration: none;
}

.pagination-item:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

.pagination-item.active {
    background: var(--color-primary-600);
    color: white;
    border-color: var(--color-primary-600);
}

.pagination-item:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .pagination {
        gap: 0.25rem;
    }

    .pagination-item {
        min-width: 36px;
        height: 36px;
        padding: 0 0.5rem;
        font-size: var(--text-xs);
    }
}

/* ===================================
   LOADING STATES
   =================================== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg,
            var(--color-gray-200) 25%,
            var(--color-gray-100) 50%,
            var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
/* Text Alignment */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Font Weights */
.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

/* Text Colors */
.text-primary {
    color: var(--color-text-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-success {
    color: var(--color-success);
}

.text-error {
    color: var(--color-error);
}

.text-warning {
    color: var(--color-warning);
}

/* Background Colors */
.bg-white {
    background: white;
}

.bg-gray-50 {
    background: var(--color-gray-50);
}

.bg-primary {
    background: var(--color-primary-600);
}

.bg-success {
    background: var(--color-success);
}

/* Spacing Utilities */
.m-0 {
    margin: 0;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.p-0 {
    padding: 0;
}

/* Display */
.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.d-flex {
    display: flex;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

/* Position */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

/* Z-Index */
.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-50 {
    z-index: 50;
}

/* Border Radius */
.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* Shadows */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* ===================================
   ANIMATIONS
   =================================== */
.animate-fade-up {
    animation: fadeUp 0.6s var(--ease) forwards;
    opacity: 0;
}

.animate-fade-up.stagger-1 {
    animation-delay: 0.1s;
}

.animate-fade-up.stagger-2 {
    animation-delay: 0.2s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   HEADER SPECIFIC STYLES
   =================================== */
header {
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--timing-normal);
}

header.scrolled {
    height: 64px;
    background: white !important;
    box-shadow: var(--shadow-md);
}

.nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-48);
    width: 100%;
}

.nav-logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color var(--timing-fast);
}

.nav-logo a:hover {
    color: var(--color-primary-700);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-32);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 0.5rem 0;
    transition: color var(--timing-fast);
    text-decoration: none;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-500);
    transition: width var(--timing-normal);
}

.nav-links a:hover {
    color: var(--color-primary-500);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-16);
}

.login-link {
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color var(--timing-fast);
}

.login-link:hover {
    color: var(--color-primary-500);
}

.user-action-group {
    display: flex;
    align-items: center;
    gap: var(--space-16);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-error);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background var(--timing-fast);
}

.hamburger:hover {
    background: var(--color-gray-100);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--timing-fast);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ===================================
   FOOTER SPECIFIC STYLES
   =================================== */
footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-400);
}

footer a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color var(--timing-fast);
}

footer a:hover {
    color: white;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer h4 {
    color: white;
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-premium {
    position: relative;
    overflow: hidden;
    background: var(--color-primary-50);
}

/* ===================================
   ICON ALIGNMENT FIXES
   =================================== */
[data-lucide] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    stroke-width: 2;
    vertical-align: middle;
}

button [data-lucide],
a [data-lucide] {
    margin: 0;
}

.btn [data-lucide] {
    width: 18px;
    height: 18px;
}

.btn-icon [data-lucide] {
    width: 20px;
    height: 20px;
}

/* Font Awesome Icon Alignment */
.fa,
.fas,
.far,
.fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Bootstrap Icons Alignment */
.bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    :root {
        --text-h1: 2.5rem;
        --text-h2: 2rem;
    }

    .nav {
        gap: var(--space-24);
    }

    .nav-links {
        gap: var(--space-24);
    }
}

@media (max-width: 868px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-24);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        grid-template-columns: 1fr auto;
        gap: var(--space-16);
    }

    .nav-actions {
        order: 2;
    }
}

@media (max-width: 768px) {
    :root {
        --text-h1: 2rem;
        --text-h2: 1.75rem;
        --text-h3: 1.5rem;
    }

    body {
        font-size: 15px;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {

    header,
    footer,
    .hamburger,
    .btn,
    .filter-bar,
    .wizard-navigation {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===================================
   ANIMATED TEXT EFFECTS
   =================================== */
.text-animate {
    animation: textReveal 0.8s var(--ease) forwards;
    opacity: 0;
}

.text-animate-gradient {
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-accent), var(--color-primary-500));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.text-animate-typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--color-primary-500);
    animation: typing 2s steps(30) forwards, blink 0.7s step-end infinite;
}

.text-shimmer {
    background: linear-gradient(90deg, var(--color-text-primary) 0%, var(--color-primary-500) 50%, var(--color-text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes shimmerText {
    to {
        background-position: 200% center;
    }
}

/* Staggered Animation Delays */
.text-animate.delay-1 {
    animation-delay: 0.1s;
}

.text-animate.delay-2 {
    animation-delay: 0.2s;
}

.text-animate.delay-3 {
    animation-delay: 0.3s;
}

.text-animate.delay-4 {
    animation-delay: 0.4s;
}

/* ===================================
   ENHANCED TITLE STYLES
   =================================== */
.page-header {
    text-align: center;
    margin-bottom: var(--space-64);
}

.page-header .badge-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--color-primary-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-header h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.page-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.step-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--space-32);
    padding-bottom: var(--space-24);
    border-bottom: 2px solid var(--color-border);
}

.step-title h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
}

.subsection-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-12);
    display: block;
}

/* ===================================
   STYLED LISTS
   =================================== */
.styled-list,
.numbered-list,
.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-24) 0;
}

.styled-list li,
.numbered-list li,
.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: var(--space-12);
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Bullet List with Custom Markers */
.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    background: var(--color-primary-500);
    border-radius: 50%;
}

.styled-list.accent li::before {
    background: var(--color-accent);
}

.styled-list.success li::before {
    background: var(--color-success);
}

/* Numbered List */
.numbered-list {
    counter-reset: list-counter;
}

.numbered-list li {
    counter-increment: list-counter;
    padding-left: 2.5rem;
}

.numbered-list li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 24px;
    height: 24px;
    background: var(--color-primary-100);
    color: var(--color-primary-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
}

/* Check List */
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 20px;
    height: 20px;
    background: var(--color-success-light);
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Description List */
.definition-list {
    margin: 0 0 var(--space-24) 0;
}

.definition-list dt {
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
    font-size: var(--text-sm);
}

.definition-list dd {
    margin: 0 0 var(--space-16) 0;
    padding-left: 1rem;
    border-left: 3px solid var(--color-primary-100);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Inline List */
.inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.inline-list li {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: var(--text-xs);
    font-weight: 600;
}

/* ===================================
   ENHANCED FORM CONTROLS
   =================================== */
/* Floating Label Input */
.input-floating {
    position: relative;
    margin-bottom: var(--space-24);
}

.input-floating input,
.input-floating textarea {
    width: 100%;
    padding: 1.5rem 1rem 0.5rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    background: var(--color-surface);
    transition: all var(--timing-fast);
}

.input-floating label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: var(--text-base);
    pointer-events: none;
    transition: all var(--timing-fast);
}

.input-floating input:focus,
.input-floating textarea:focus {
    border-color: var(--color-primary-500);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-floating input:focus+label,
.input-floating input:not(:placeholder-shown)+label,
.input-floating textarea:focus+label,
.input-floating textarea:not(:placeholder-shown)+label {
    top: 0.5rem;
    transform: translateY(0);
    font-size: var(--text-xs);
    color: var(--color-primary-600);
    font-weight: 600;
}

/* Enhanced Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon .icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    z-index: 2;
}

.input-with-icon .icon-left [data-lucide] {
    width: 20px;
    height: 20px;
}

.input-with-icon input {
    padding-left: 3rem;
}

.input-with-icon input:focus+.icon-left,
.input-with-icon input:focus~.icon-left {
    color: var(--color-primary-500);
}

/* Character Counter */
.char-counter {
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.char-counter.warning {
    color: var(--color-warning);
}

.char-counter.error {
    color: var(--color-error);
}

/* Textarea Auto-Resize Hint */
textarea.auto-resize {
    resize: none;
    overflow: hidden;
    min-height: 120px;
    transition: height 0.2s ease;
}

/* ===================================
   SEND ICON & ACTION BUTTONS
   =================================== */
.input-with-send {
    position: relative;
}

.input-with-send input,
.input-with-send textarea {
    padding-right: 3.5rem;
}

.send-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-primary-600);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--timing-fast);
}

.send-btn:hover {
    background: var(--color-primary-700);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.send-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.send-btn [data-lucide] {
    width: 18px;
    height: 18px;
    transition: transform var(--timing-fast);
}

.send-btn:hover [data-lucide] {
    transform: translateX(2px);
}

/* Loading State */
.send-btn.loading {
    pointer-events: none;
}

.send-btn.loading [data-lucide] {
    animation: spin 1s linear infinite;
}

/* Success State */
.send-btn.success {
    background: var(--color-success);
}

.send-btn.success [data-lucide] {
    animation: bounceIn 0.4s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Action Button Group */
.action-btn-group {
    display: flex;
    gap: 0.5rem;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.action-btn {
    width: 36px;
    height: 36px;
    background: var(--color-gray-100);
    color: var(--color-text-secondary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--timing-fast);
}

.action-btn:hover {
    background: var(--color-gray-200);
    color: var(--color-text-primary);
}

.action-btn.primary {
    background: var(--color-primary-600);
    color: white;
}

.action-btn.primary:hover {
    background: var(--color-primary-700);
}

/* ===================================
   MOBILE RESPONSIVENESS FIXES
   =================================== */
/* Prevent horizontal overflow */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Safe area support for notched devices */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* Mobile-first container adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Ensure cards don't overflow */
    .card {
        max-width: 100%;
        overflow: hidden;
    }

    /* Stack 2-column grids */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 1.5fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Reduce large padding on mobile */
    [style*="padding: 48px"],
    [style*="padding: 56px"],
    [style*="padding: 64px"] {
        padding: 24px !important;
    }

    /* Touch-friendly tap targets */
    .btn,
    button,
    input[type="submit"],
    input[type="button"],
    a.btn {
        min-height: 44px;
    }

    /* Adjust font sizes for readability */
    h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem) !important;
    }

    h3 {
        font-size: clamp(1.25rem, 3vw, 1.5rem) !important;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix tables on mobile */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Stack flex containers */
    .flex-between {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-16);
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .card {
        padding: var(--space-16) !important;
        border-radius: var(--radius-xl) !important;
    }

    /* Reduce wizard step labels */
    .wizard-step-label {
        display: none;
    }

    /* Stack inline lists */
    .inline-list {
        flex-direction: column;
    }
}

/* Hide elements on mobile */
.hide-mobile {
    display: block;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Show only on mobile */
.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .show-mobile {
        display: block !important;
    }
}

/* Overflow safe wrapper */
.overflow-safe {
    overflow: hidden;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===================================
   INTERACTIVE WIZARD ENHANCEMENTS
   =================================== */
.wizard-container.interactive {
    max-width: 800px;
    margin: 0 auto;
}

.wizard-container.interactive .wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-48);
    padding: 0 var(--space-16);
}

.wizard-container.interactive .wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: all var(--timing-normal);
}

.wizard-container.interactive .wizard-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    right: -50%;
    height: 3px;
    background: var(--color-gray-200);
    z-index: 0;
    transition: background var(--timing-normal);
}

.wizard-container.interactive .wizard-step:last-child::after {
    display: none;
}

.wizard-container.interactive .wizard-step.completed::after {
    background: var(--color-success);
}

.wizard-container.interactive .wizard-step.active::after {
    background: linear-gradient(90deg, var(--color-primary-500) 50%, var(--color-gray-200) 50%);
}

.wizard-container.interactive .wizard-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-gray-100);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    border: 3px solid var(--color-gray-200);
    z-index: 1;
    transition: all var(--timing-normal);
}

.wizard-container.interactive .wizard-step.active .wizard-step-number {
    background: var(--color-primary-600);
    color: white;
    border-color: var(--color-primary-600);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
    transform: scale(1.1);
}

.wizard-container.interactive .wizard-step.completed .wizard-step-number {
    background: var(--color-success);
    color: white;
    border-color: var(--color-success);
}

.wizard-container.interactive .wizard-step.completed .wizard-step-number::after {
    content: '✓';
    font-size: 1rem;
}

.wizard-container.interactive .wizard-step-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    transition: all var(--timing-fast);
    max-width: 80px;
}

.wizard-container.interactive .wizard-step.active .wizard-step-label {
    color: var(--color-primary-600);
    font-weight: 700;
}

.wizard-container.interactive .wizard-step.completed .wizard-step-label {
    color: var(--color-success);
}

/* Wizard Panel Animations */
.wizard-panel {
    display: none;
    opacity: 0;
}

.wizard-panel.active {
    display: block;
    animation: wizardSlideIn 0.5s var(--ease) forwards;
}

.wizard-panel.exit-left {
    animation: wizardSlideOutLeft 0.3s var(--ease) forwards;
}

.wizard-panel.exit-right {
    animation: wizardSlideOutRight 0.3s var(--ease) forwards;
}

@keyframes wizardSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes wizardSlideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

@keyframes wizardSlideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: var(--space-32);
    padding-top: var(--space-24);
    border-top: 1px solid var(--color-border);
}

.wizard-nav .btn-prev {
    background: var(--color-gray-100);
    color: var(--color-text-primary);
}

.wizard-nav .btn-prev:hover {
    background: var(--color-gray-200);
}

.wizard-nav .btn-next {
    margin-left: auto;
}

@media (max-width: 768px) {
    .wizard-container.interactive .wizard-steps {
        padding: 0;
        margin-bottom: var(--space-32);
    }

    .wizard-container.interactive .wizard-step-number {
        width: 36px;
        height: 36px;
        font-size: var(--text-xs);
    }

    .wizard-container.interactive .wizard-step::after {
        top: 18px;
    }

    .wizard-nav {
        flex-direction: column-reverse;
        gap: var(--space-12);
    }

    .wizard-nav .btn {
        width: 100%;
    }

    .wizard-nav .btn-next {
        margin-left: 0;
    }
}

/* ===================================
   FILTER PILLS ENHANCEMENT
   =================================== */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: var(--space-24);
    align-items: center;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: var(--color-gray-100);
    color: var(--color-gray-600);
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--timing-fast);
    cursor: pointer;
    border: 2px solid transparent;
}

.filter-pill:hover {
    background: var(--color-gray-200);
}

.filter-pill.active {
    background: var(--color-primary-100);
    color: var(--color-primary-700);
    border-color: var(--color-primary-200);
}

.filter-pill .remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-pill {
        flex-shrink: 0;
    }
}

/* ===================================
   MATCH CARD - HERO COMPONENT
   =================================== */
.match-card-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.match-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.match-card:hover {
    transform: rotateY(-5deg) rotateX(5deg) translateY(-8px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.match-card:active {
    transform: rotateY(-2deg) rotateX(2deg) translateY(-4px);
}

/* Match Card Floating Elements Animation */
.match-card-wrapper>div:first-child {
    animation: floatBadge 3s ease-in-out infinite;
}

.match-card-wrapper>div:last-child {
    animation: floatBadge 3s ease-in-out infinite 0.5s;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* TSC Badge specific float */
.match-card-wrapper>div:last-child {
    animation-name: floatVerified;
}

@keyframes floatVerified {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Responsive Match Card */
@media (max-width: 768px) {
    .match-card-wrapper {
        margin-top: 40px;
    }

    .match-card {
        padding: 24px !important;
        max-width: 100% !important;
    }

    .match-card:hover {
        transform: none;
    }
}

/* ===================================
   ADMIN LAYOUT
   =================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--color-background);
}

.admin-sidebar {
    width: 280px;
    background: var(--color-gray-900);
    color: var(--color-gray-400);
    display: flex;
    flex-direction: column;
    padding: var(--space-32);
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.admin-sidebar .nav-logo {
    margin-bottom: var(--space-64);
}

.admin-sidebar .nav-logo a {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.admin-nav {
    display: grid;
    gap: var(--space-8);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--timing-fast) var(--ease);
}

.admin-nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.admin-nav-item.logout {
    color: #f87171;
}

.admin-content {
    flex: 1;
    margin-left: 280px;
    padding: var(--space-48) var(--space-64);
}

.admin-header {
    margin-bottom: var(--space-48);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.admin-header-actions {
    display: flex;
    gap: 16px;
}

.admin-header-actions .btn {
    background: white;
    border: 1px solid var(--color-border);
    width: 48px;
    padding: 0;
}

/* Admin Stats */
.admin-stat-card {
    padding: var(--space-24);
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-sm);
    background: var(--color-surface);
}

.admin-stat-card:hover {
    transform: translateY(-2px);
}

.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.admin-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.admin-stat-label {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
}

/* Alert messages in admin */
.admin-alert {
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-32);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.admin-alert-success {
    background: var(--color-success-light);
    color: var(--color-success);
    border-left: 4px solid var(--color-success);
}

.admin-alert-error {
    background: var(--color-error-light);
    color: var(--color-error);
    border-left: 4px solid var(--color-error);
}

/* Premium Tables in admin */
.premium-table-container {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.premium-table-container:hover {
    transform: none;
}

.premium-table-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-table-header h3 {
    margin: 0;
    font-family: var(--font-heading);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-table th {
    padding: 14px 24px;
    text-align: left;
    font-weight: 700;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-border);
}

.premium-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-gray-100);
    vertical-align: middle;
}

.premium-table tbody tr:last-child td {
    border-bottom: none;
}

.premium-table tbody tr:hover {
    background: var(--color-gray-50);
}

/* Table cells */
.table-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-product-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}

.table-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--timing-fast);
}

.table-action-btn:hover {
    border-color: var(--color-primary-300);
    color: var(--color-primary-600);
    background: var(--color-primary-50);
}

.table-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
}

.status-process {
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
}

.status-delivered {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

@media (max-width: 1024px) {
    .admin-sidebar {
        width: 240px;
        padding: var(--space-24);
    }

    .admin-content {
        margin-left: 240px;
        padding: var(--space-32);
    }
}

@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        padding: var(--space-16);
    }

    .admin-sidebar .nav-logo {
        margin-bottom: 0;
    }

    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-8);
        width: 100%;
    }

    .admin-content {
        margin-left: 0;
        padding: var(--space-24);
    }
}

/* ===================================
   ADMIN EDIT LISTING
   =================================== */
.admin-edit-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-32);
}

.admin-form-card {
    padding: var(--space-32);
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-sm);
    background: var(--color-surface);
}

.admin-form-card:hover {
    transform: none;
}

.admin-form-card h3 {
    margin: 0 0 var(--space-24);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-lg);
}

.admin-form-card h3 i {
    width: 20px;
    color: var(--color-primary-500);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.admin-form-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-gray-500);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    background: var(--color-background);
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-form-input:disabled {
    background: var(--color-gray-100);
    color: var(--color-gray-500);
}

.admin-direction-indicator {
    text-align: center;
    padding: 16px 0;
    color: var(--color-primary-500);
}

.admin-direction-indicator span {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    background: var(--color-background);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
}

.admin-checkbox-label span {
    font-weight: 700;
    font-size: 0.9rem;
}

.admin-checkbox-label p {
    margin: 2px 0 0;
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}

.admin-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-gray-100);
    font-size: 0.85rem;
}

.admin-meta-row:last-child {
    border-bottom: none;
}

.admin-meta-row span {
    color: var(--color-gray-500);
}

.admin-quick-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid;
    transition: all var(--timing-fast);
    font-family: inherit;
    font-size: var(--text-sm);
    gap: 8px;
}

.admin-quick-btn.verify {
    background: var(--color-success-light);
    color: var(--color-success);
    border-color: #A7F3D0;
}

.admin-quick-btn.flag {
    background: var(--color-error-light);
    color: var(--color-error);
    border-color: #FECACA;
}

.admin-quick-btn.view {
    background: white;
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

/* Breadcrumb */
.admin-breadcrumb {
    margin-bottom: 24px;
}

.admin-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-breadcrumb a:hover {
    color: var(--color-primary-600);
}

/* Status Badge */
.status-badge {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
}

.status-badge.verified {
    background: var(--color-success-light);
    color: var(--color-success);
}

.status-badge.pending {
    background: var(--color-warning-light);
    color: #D97706;
}

.status-badge.flagged {
    background: var(--color-error-light);
    color: var(--color-error);
}

@media (max-width: 768px) {
    .admin-edit-layout {
        grid-template-columns: 1fr;
    }

    .admin-form-grid,
    .admin-form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   SWAP DETAILS PAGE
   =================================== */
.detail-hero {
    background: linear-gradient(135deg, var(--color-gray-900) 0%, #1E3A5F 100%);
    color: white;
    padding: 60px 0 120px;
}

.detail-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray-400);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.detail-hero .back-link:hover {
    color: white;
}

.detail-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-hero-avatar {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.detail-hero-name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    color: white;
}

.detail-hero-meta {
    color: var(--color-gray-400);
    font-size: 0.95rem;
    margin: 0;
}

.detail-hero-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.detail-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-badge.verified {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
}

.detail-badge.new {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
}

/* Detail Card */
.detail-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.12);
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.detail-card:hover {
    transform: none;
}

.detail-section {
    padding: var(--space-32) var(--space-40);
    border-bottom: 1px solid var(--color-gray-100);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    margin: 0 0 20px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-lg);
}

.detail-section h3 i {
    width: 20px;
    color: var(--color-primary-500);
}

.detail-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-gray-400);
    margin-bottom: 6px;
}

.detail-value {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-gray-800);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24);
}

/* Transfer Route Visual */
.route-visual {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: var(--space-32);
    background: linear-gradient(135deg, var(--color-background), var(--color-primary-50));
    border-radius: 20px;
}

.route-point {
    flex: 1;
    padding: var(--space-24);
    border-radius: 16px;
    text-align: center;
}

.route-point.from {
    background: white;
    border: 2px solid var(--color-border);
}

.route-point.to {
    background: var(--color-primary-50);
    border: 2px solid var(--color-primary-200);
}

.route-point-county {
    font-size: var(--text-xl);
    font-weight: 800;
    margin-bottom: 4px;
}

.route-point.from .route-point-county {
    color: var(--color-gray-800);
}

.route-point.to .route-point-county {
    color: var(--color-primary-600);
}

.route-point-sub {
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

.route-point.to .route-point-sub {
    color: var(--color-primary-500);
}

.route-point-school {
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    margin-top: 4px;
}

.route-point.to .route-point-school {
    color: var(--color-primary-400);
}

.route-arrow {
    width: 48px;
    height: 48px;
    background: var(--color-primary-500);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Contact Blur */
.contact-blur {
    filter: blur(3px);
    user-select: none;
}

/* Privacy Notice */
.privacy-notice {
    background: #FFF7ED;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.privacy-notice p {
    margin: 0;
    color: var(--color-warning-dark);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar Cards */
.detail-sidebar {
    display: grid;
    gap: var(--space-24);
    align-content: start;
}

.detail-sidebar .card {
    border: none;
}

.detail-sidebar .card:hover {
    transform: none;
}

.detail-cta-card {
    padding: var(--space-32);
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.detail-cta-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary-50);
    color: var(--color-primary-500);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.detail-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.detail-stat-row+.detail-stat-row {
    border-top: 1px solid var(--color-gray-100);
}

.detail-stat-label {
    color: var(--color-gray-500);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-share-buttons {
    display: flex;
    gap: 8px;
}

.detail-share-buttons .btn {
    flex: 1;
    height: 40px;
    font-weight: 700;
    font-size: var(--text-xs);
    border: none;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-copy {
    background: var(--color-gray-100);
    color: var(--color-gray-600);
}

.btn-copy:hover {
    background: var(--color-gray-200);
}

/* Sidebar layout */
.detail-page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-32);
}

/* Error state */
.detail-error {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.detail-error-icon {
    width: 100px;
    height: 100px;
    background: var(--color-error-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-32);
    color: var(--color-error);
}

@media (max-width: 768px) {
    .detail-hero {
        padding: 40px 0 100px;
    }

    .detail-section {
        padding: var(--space-24) var(--space-24);
    }

    .route-visual {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .route-arrow {
        transform: rotate(90deg);
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-page-layout {
        grid-template-columns: 1fr;
    }

    .detail-hero-name {
        font-size: var(--text-xl);
    }
}

/* ===================================
   SITE FOOTER
   =================================== */
.site-footer {
    background: linear-gradient(180deg, #0F172A 0%, #020617 100%);
    color: var(--color-gray-400);
}

/* Footer CTA */
.footer-cta {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 72px 0;
}

.footer-cta-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-2xl);
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-cta-text {
    max-width: 460px;
}

.footer-cta-text h2 {
    color: white;
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    line-height: 1.2;
}

.footer-cta-text p {
    margin: 0;
    color: var(--color-gray-400);
    line-height: 1.7;
}

.footer-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-cta-actions .btn-primary {
    box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.4);
}

.btn-footer-outline {
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-footer-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Footer Main */
.footer-main {
    padding: 72px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 48px;
}

/* Footer Brand */
.footer-brand-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-brand-logo img {
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand-text {
    margin: 0 0 28px;
    line-height: 1.8;
    color: var(--color-gray-400);
    font-size: 0.9rem;
}

/* Footer Newsletter */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 20px;
}

.footer-newsletter h4 {
    color: white;
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.footer-newsletter p {
    margin: 0 0 12px;
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}

.footer-newsletter-form {
    position: relative;
}

.footer-newsletter-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 12px 52px 12px 16px;
    border-radius: var(--radius-lg);
    outline: none;
    font-size: var(--text-sm);
    transition: border-color var(--timing-fast);
}

.footer-newsletter-input::placeholder {
    color: var(--color-gray-500);
}

.footer-newsletter-input:focus {
    border-color: rgba(59, 130, 246, 0.4);
}

.footer-newsletter-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    background: var(--color-primary-600);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--timing-fast);
}

.footer-newsletter-btn:hover {
    background: var(--color-primary-700);
}

.footer-newsletter-status {
    margin-top: 8px;
    font-size: var(--text-xs);
    font-weight: 600;
}

/* Footer Columns */
.footer-col-title {
    color: white;
    margin: 0 0 20px;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray-400);
    text-decoration: none;
    font-size: var(--text-sm);
    padding: 4px 0;
    transition: color var(--timing-fast), padding-left var(--timing-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 6px;
}

.footer-links i {
    width: 15px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Footer Contact Info */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon.email {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.footer-contact-icon.phone {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.footer-contact-icon.location {
    background: rgba(168, 85, 247, 0.1);
    color: #A855F7;
}

.footer-contact-label {
    font-size: 0.65rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-contact-value {
    color: white;
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
}

a.footer-contact-value:hover {
    color: var(--color-primary-400);
}

/* Footer Social */
.footer-social-label {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.footer-social-links {
    display: flex;
    gap: 8px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    transition: all var(--timing-normal) var(--ease);
    text-decoration: none;
}

.footer-social-link:hover {
    color: white;
    transform: translateY(-3px);
}

.footer-social-link.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.footer-social-link.twitter:hover {
    background: #1E293B;
    border-color: #334155;
}

.footer-social-link.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.footer-social-link.instagram:hover {
    background: #E4405F;
    border-color: #E4405F;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-dot {
    width: 3px;
    height: 3px;
    background: var(--color-gray-600);
    border-radius: 50%;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-cta {
        padding: 48px 0;
    }

    .footer-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .footer-cta-text {
        max-width: 100%;
    }

    .footer-cta-actions {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-main {
        padding: 48px 0 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-left {
        flex-direction: column;
        gap: 4px;
    }

    .footer-bottom-dot {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-cta-actions {
        flex-direction: column;
    }

    .footer-cta-actions .btn {
        width: 100%;
    }

    /* Utility: Spin Animation */
    .spin {
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }
}

/* ===================================
   LEARNING CENTER
   =================================== */
.learning-section-title {
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 800; 
    margin-bottom: 24px; 
    letter-spacing: -0.02em;
}

.learning-section-subtitle {
    font-size: 1.25rem; 
    color: var(--color-primary-100); 
    max-width: 600px; 
    margin: 0 auto; 
    line-height: 1.6;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
    margin: 0 auto;
    max-width: 1100px;
}

/* Learning Card specifically styled after the reference image */
.learning-card {
    background: #EAF7FE; /* Top light blue section */
    border-radius: 28px;
    overflow: hidden; /* For clipping the split background */
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
}

/* 
The large Step Number watermark. 
Styled to match the light blue, semi-transparent number in the reference.
*/
.learning-card .step-number {
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
    color: #93E0F4;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    font-family: inherit;
    /* Soft gradient matching the reference */
    background: -webkit-linear-gradient(-45deg, #BCEEFF 0%, #D4F4FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.learning-card .card-header-content {
    padding: 40px;
    position: relative;
    z-index: 2; /* Keep above the step number */
    flex-grow: 1;
}

.learning-card .card-header-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    position: relative;
}

.learning-card .card-header-content p {
    color: #64748B;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 90%; /* prevent overlap with the huge number if possible */
}

/* Bottom slightly darker blue section housing the video */
.learning-card .card-video-content {
    background: #D8F2FE; /* Bottom slightly contrasting section */
    padding: 0;
    position: relative;
    z-index: 2;
    min-height: 240px; /* give it space */
}

/* The white box inside the bottom blue section to hold the video iframe */
.learning-card .video-container {
    background: #ffffff;
    margin: 40px;
    margin-top: 0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    transform: translateY(-20px); /* Lift it up across the color transition */
    /* 16:9 Aspect Ratio */
    padding-bottom: 56.25%; 
}

.learning-card .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .learning-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    .learning-card .step-number {
        font-size: 140px;
        right: 20px;
    }
    .learning-card .card-header-content {
        padding: 30px;
    }
    .learning-card .video-container {
        margin: 30px;
        margin-top: 0;
    }
}

/* Learning Center Hero Section */
.learning-hero {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-800) 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

.learning-hero-shape-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    filter: blur(40px);
}

.learning-hero-shape-2 {
    position: absolute;
    bottom: -50px;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    filter: blur(20px);
}

.learning-hero-content {
    position: relative;
    z-index: 1;
}

.learning-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.learning-hero-title span {
    color: var(--color-primary-200);
}

.learning-hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-primary-100);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}