/* ========================================
   UPU-CC PREMIUM DESIGN SYSTEM V2.0
   Modern Minimalist with Glassmorphism
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Primary Navy Palette */
    --navy-900: #002642;
    --navy-800: #003D5C;
    --navy-700: #005273;
    --navy-600: #006789;
    --navy-500: #007BA0;

    /* Primary Sky Palette */
    --sky-600: #0284C7;
    --sky-500: #0EA5E9;
    --sky-400: #38BDF8;
    --sky-300: #7DD3FC;
    --sky-200: #BAE6FD;

    /* Neutral Palette */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Semantic Colors */
    --success-600: #059669;
    --success-500: #10B981;
    --success-400: #34D399;
    --warning-600: #D97706;
    --warning-500: #F59E0B;
    --warning-400: #FBBF24;
    --danger-600: #DC2626;
    --danger-500: #EF4444;
    --danger-400: #F87171;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Spacing Scale */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */

    /* Typography */
    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   BASE STYLES
   ======================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
}

h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 600;
}

h5 {
    font-size: var(--text-lg);
    font-weight: 600;
}

h6 {
    font-size: var(--text-base);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-4);
    color: var(--gray-600);
}

a {
    color: var(--sky-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--sky-600);
}

/* ========================================
   LAYOUT
   ======================================== */

.app-layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #F8FAFC, #E2E8F0);
}

/* ========================================
   SIDEBAR - PREMIUM VERSION
   ======================================== */

.sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

.sidebar-brand {
    padding: var(--space-5) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sidebar-brand .brand-text {
    font-size: var(--text-lg);
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

/* Navigation Links */
.nav-section-title {
    padding: var(--space-6) var(--space-6) var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
    margin: var(--space-1) 0;
}

.nav-link:hover {
    background: rgba(14, 165, 233, 0.12);
    color: white;
    border-left-color: var(--sky-400);
}

.nav-link.active {
    background: rgba(14, 165, 233, 0.2);
    color: white;
    border-left-color: var(--sky-400);
    font-weight: 600;
}

.nav-link svg {
    flex-shrink: 0;
}

/* User Profile in Sidebar */
.sidebar-user {
    margin-top: auto;
    padding: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--sky-500), var(--sky-300));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--text-base);
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: var(--text-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

main {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header Bar (NEW) */
.top-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-500);
    font-size: var(--text-sm);
}

.breadcrumbs a {
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--sky-500);
}

.breadcrumb-current {
    color: var(--gray-900);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Content Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-8);
    flex: 1;
}

/* Page Header */
.page-header {
    margin-bottom: var(--space-8);
}

.page-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.page-description {
    color: var(--gray-600);
    font-size: var(--text-base);
}

/* ========================================
   CARDS - PREMIUM VERSION
   ======================================== */

.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sky-500), var(--sky-300));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
    border-color: var(--sky-200);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-900);
}

.card-actions {
    display: flex;
    gap: var(--space-2);
}

/* Glass Card Variant */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Stats Card */
.stats-card {
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.stats-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.stats-icon.blue {
    background: linear-gradient(135deg, var(--sky-500), var(--sky-400));
}

.stats-icon.green {
    background: linear-gradient(135deg, var(--success-500), var(--success-400));
}

.stats-icon.orange {
    background: linear-gradient(135deg, var(--warning-500), var(--warning-400));
}

.stats-icon.red {
    background: linear-gradient(135deg, var(--danger-500), var(--danger-400));
}

.stats-value {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.stats-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-weight: 500;
}

/* ========================================
   BUTTONS - PREMIUM VERSION
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
    color: white;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--sky-500);
    border: 2px solid var(--sky-500);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--sky-500);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
}

.btn-success {
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--gray-100);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* Icon Button */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-lg);
}

.btn-icon:hover {
    transform: scale(1.05);
}

/* ========================================
   FORMS - PREMIUM VERSION
   ======================================== */

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.form-label-required::after {
    content: '*';
    color: var(--danger-500);
    margin-left: var(--space-1);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: var(--text-base);
    transition: all var(--transition-base);
    background: white;
    color: var(--gray-900);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--sky-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

input:disabled,
textarea:disabled,
select:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
    color: var(--gray-500);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-helper {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.form-error {
    color: var(--danger-500);
    font-size: var(--text-xs);
    margin-top: var(--space-2);
}

/* ========================================
   TABLES - PREMIUM VERSION
   ======================================== */

.table-wrapper {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

th {
    padding: var(--space-4) var(--space-6);
    text-align: left;
    font-weight: 700;
    color: var(--gray-700);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

td {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: var(--text-sm);
}

tbody tr {
    transition: background var(--transition-fast);
}

tbody tr:hover {
    background: var(--gray-50);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    color: var(--gray-700);
}

.badge-success {
    background: var(--success-100, #D1FAE5);
    color: var(--success-700, #047857);
}

.badge-warning {
    background: var(--warning-100, #FEF3C7);
    color: var(--warning-700, #B45309);
}

.badge-danger {
    background: var(--danger-100, #FEE2E2);
    color: var(--danger-700, #B91C1C);
}

.badge-info {
    background: var(--sky-100, #E0F2FE);
    color: var(--sky-700, #0369A1);
}

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */

.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: start;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
    color: white;
}

/* ========================================
   UTILITIES
   ======================================== */

.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar-brand .brand-text,
    .nav-link span,
    .nav-section-title {
        display: none;
    }

    .sidebar-user-info .user-details {
        display: none;
    }

    main {
        margin-left: 70px;
    }

    .container {
        padding: var(--space-4);
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.animate-slideUp {
    animation: slideUp 0.4s ease-out;
}

.animate-scaleIn {
    animation: scaleIn 0.3s ease-out;
}

/* ========================================
   PUBLIC LANDING PAGE STYLES
   ======================================== */

/* Public Header */
.public-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.public-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    padding: 0 var(--space-6);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-section img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-text {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--navy-800);
    letter-spacing: -0.02em;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.public-nav a {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.public-nav a:hover {
    color: var(--sky-500);
}

.public-nav a.btn {
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--sky-600) 100%);
    color: white;
    padding: 6rem var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-6);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: white;
    color: var(--navy-800);
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-section .btn:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Features Section */
.features-section {
    padding: 5rem var(--space-6);
    background: var(--gray-50);
}

.features-section .container {
    max-width: 1200px;
}

.features-section h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    color: var(--navy-800);
}

.features-section>.container>p {
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-12);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--sky-300);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--sky-500), var(--sky-400));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.feature-icon svg {
    color: white;
}

.feature-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.feature-card p {
    font-size: var(--text-base);
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Design - Public Pages */
@media (max-width: 768px) {
    .public-header .container {
        padding: 0 var(--space-4);
    }

    .public-nav {
        gap: var(--space-4);
    }

    .public-nav a:not(.btn) {
        display: none;
    }

    .hero-section {
        padding: 4rem var(--space-4);
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: var(--text-base);
    }

    .features-section {
        padding: 3rem var(--space-4);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .feature-card {
        padding: var(--space-6);
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: var(--text-base);
    }

    .logo-section img {
        width: 40px;
        height: 40px;
    }

    .hero-section .btn {
        font-size: var(--text-base);
        padding: var(--space-3) var(--space-6);
    }
}

/* ========================================
   AUTH PAGES - BACK TO HOME BUTTON
   ======================================== */

.btn-ghost.back-to-home,
a[href*="page=home"].btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--gray-600);
    transition: all var(--transition-base);
    padding: var(--space-2) 0;
}

.btn-ghost.back-to-home:hover,
a[href*="page=home"].btn-ghost:hover {
    color: var(--sky-500);
    transform: translateX(-3px);
}

.btn-ghost.back-to-home i,
a[href*="page=home"].btn-ghost i {
    transition: transform var(--transition-base);
}

.btn-ghost.back-to-home:hover i,
a[href*="page=home"].btn-glass:hover i {
    transform: translateX(-2px);
}

/* ========================================
   MODAL COMPONENTS
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: var(--space-6) var(--space-6) var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: var(--text-2xl);
    color: var(--gray-900);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--space-6);
}

.modal-body .form-group {
    margin-bottom: var(--space-5);
}

.modal-body .form-group:last-of-type {
    margin-bottom: 0;
}

.modal-body label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.modal-body input,
.modal-body select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: var(--text-base);
    transition: all var(--transition-base);
    background: white;
    color: var(--gray-900);
}

.modal-body input:focus,
.modal-body select:focus {
    outline: none;
    border-color: var(--sky-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.modal-body .btn {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-base);
    justify-content: center;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal.active .modal-backdrop {
    animation: modalFadeIn 0.3s ease-out;
}

.modal.active .modal-content {
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Responsive Modal */
@media (max-width: 568px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: var(--radius-xl);
    }

    .modal-header {
        padding: var(--space-4);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .modal-header h2 {
        font-size: var(--text-xl);
    }

    .modal-body {
        padding: var(--space-4);
    }

    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}