:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --bg-dark: #090d16;
    --bg-card: #111827;
    --bg-card-hover: #1f2937;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --text-sub: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --glass: rgba(17, 24, 39, 0.85);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TOP INFO BAR & HEADER --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.top-info-bar {
    background: rgba(14, 165, 233, 0.08);
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
    font-size: 0.825rem;
    padding: 0.4rem 0;
    color: var(--text-muted);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    gap: 1.5rem;
}

.top-contact span i {
    color: var(--primary);
    margin-right: 0.3rem;
}

.top-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- NAVBAR --- */
.nav-wrapper {
    padding: 0.85rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
    color: #fff;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 0.9rem;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: #fff;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.nav-link.highlight-student {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    color: var(--primary-light);
    border: 1px solid rgba(14, 165, 233, 0.4);
}

.nav-link.highlight-student:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.btn-admin {
    border: 1px solid var(--border-color);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-wrapper {
    position: relative;
    padding: 5rem 0 4rem;
    background: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.15) 0%, rgba(9, 13, 22, 0.95) 70%),
                url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    border-bottom: 1px solid var(--border-color);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(9, 13, 22, 0.85) 0%, rgba(9, 13, 22, 0.98) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--primary-light);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn-primary-hero, .btn-secondary-hero, .btn-accent-hero {
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
}

.btn-primary-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.35);
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.5);
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-color);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-accent-hero {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-accent-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.h-stat {
    display: flex;
    flex-direction: column;
}

.h-stat .num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-light);
}

.h-stat .lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- CONTAINERS & LAYOUT --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 4rem 0;
}

.page-section.hidden {
    display: none;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- FEATURE BOXES GRID --- */
.grid-3-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.f-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.feature-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.service-img-placeholder {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.s-category {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: rgba(14, 165, 233, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.service-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.service-btn:hover {
    background: #10b981;
    color: #fff;
}

/* --- TRABAJOS (GALERÍA) --- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.work-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.work-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.work-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.work-card:hover .work-img-wrapper img {
    transform: scale(1.06);
}

.work-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(8px);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.work-content {
    padding: 1.25rem;
}

.work-content h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: #fff;
}

.work-content p {
    font-size: 0.875rem;
    color: var(--text-muted);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- CURSOS GRID --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(17, 24, 39, 0.7) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 14px 35px rgba(14, 165, 233, 0.15);
}

.course-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.course-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-right: 4rem;
    color: #fff;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.c-duration {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.c-duration i {
    color: var(--primary);
    margin-right: 0.3rem;
}

.c-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--success);
}

.course-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-course-enroll {
    flex: 1;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.3s;
}

.btn-course-enroll:hover {
    background: var(--primary-dark);
}

.course-cta-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.cta-text p {
    color: var(--text-muted);
}

/* --- PORTAL DEL ALUMNO --- */
.student-portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    max-width: 850px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.portal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.portal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35);
}

.portal-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.portal-header p {
    color: var(--text-muted);
}

.search-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.input-with-icon {
    position: relative;
    flex: 1;
}

.input-with-icon i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-with-icon input {
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 3rem;
    background: rgba(9, 13, 22, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: #fff;
    font-size: 1.05rem;
    transition: border-color 0.3s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-search {
    padding: 0 1.75rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-search:hover {
    background: var(--primary-dark);
}

.student-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.student-info-header h3 {
    font-size: 1.25rem;
    color: #fff;
}

.sub-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.section-subtitle {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.fees-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fee-card {
    background: rgba(9, 13, 22, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
}

.fee-card:hover {
    border-color: var(--primary);
}

.fee-month {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.fee-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
}

.btn-pay {
    background: linear-gradient(135deg, #009ee3 0%, #007eb7 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 158, 227, 0.3);
    transition: transform 0.25s, box-shadow 0.25s;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 158, 227, 0.45);
}

/* --- ADMIN PANEL --- */
.admin-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.admin-header-bar h2 {
    font-size: 1.6rem;
    color: #fff;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #ef4444;
    color: #fff;
}

.admin-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.admin-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab.active {
    color: #fff;
    background: var(--primary);
}

.admin-tab-content.hidden {
    display: none;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card h3 {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.stat-card i.icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 4.5rem;
    opacity: 0.08;
    color: var(--primary);
}

.stat-card.accent {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(14, 165, 233, 0.12) 100%);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .content-grid { grid-template-columns: 1fr; }
}

.card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Forms */
.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(9, 13, 22, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

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

th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.badge {
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--primary-light);
    font-size: 1.25rem;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: color 0.2s;
}

.btn-icon:hover { color: #fff; }
.btn-icon.delete { color: #ef4444; }
.btn-icon.delete:hover { color: #f87171; }

/* Admin Works & Courses Grid */
.admin-works-grid, .admin-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.admin-work-item, .admin-course-item {
    background: rgba(9, 13, 22, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
}

.admin-work-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.admin-work-item h5, .admin-course-item h5 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.admin-work-item p, .admin-course-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-delete-item {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden { display: none; }

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-content.wide { max-width: 700px; }
.modal-content.small { max-width: 400px; }

.modal-content.image-lightbox {
    max-width: 800px;
    padding: 0;
    overflow: hidden;
}

.modal-content.image-lightbox img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.lightbox-info {
    padding: 1.5rem;
}

.close-modal, .close-modal-fees, .close-login, .close-modal-img {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
}

.close-modal:hover, .close-modal-fees:hover, .close-login:hover, .close-modal-img:hover {
    color: #fff;
}

/* Overlay Loading */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 13, 22, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.overlay.hidden { display: none; }

.loading-box {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 24px;
    max-width: 400px;
}

.wallet-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.animation-bounce {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Footer */
.main-footer {
    background: rgba(9, 13, 22, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .student-portal-card { padding: 1.75rem; }
    .top-contact { display: none; }
}
