/* ============================================
   CSS VARIABLES - Brand Colors, Glassmorphism & Fonts
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Malayalam:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary: #048ca3;
    --primary-light: #05b1a1;
    --primary-dark: #036d7f;
    
    /* Neutral Colors */
    --bg-gradient-start: #f0f9ff;
    --bg-gradient-end: #e0f2fe;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-white: #ffffff;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(4, 140, 163, 0.15);
    
    /* Spacing */
    --header-height: 70px;
    --bottom-nav-height: 70px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-malayalam: 'Noto Serif Malayalam', 'Noto Sans Malayalam', serif;

    /* Status Colors */
    --status-live: #10b981;
    --status-recorded: #ef4444;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ============================================
   MALAYALAM TEXT STYLING - FIXED
   ============================================ */
.malayalam-text,
.malayalam-text * {
    font-family: var(--font-malayalam) !important;
    font-weight: 400 !important;
    line-height: 1.9 !important;
    direction: ltr;
    unicode-bidi: embed;
    letter-spacing: 0.01em;
}

/* Preserve paragraph breaks in descriptions */
.course-details-description,
.description-with-paragraphs {
    white-space: pre-line;
}

.course-details-description p,
.description-with-paragraphs p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ============================================
   GLASSMORPHISM UTILITY
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    padding: 0 var(--spacing-md);
    z-index: 100;
    border-radius: 0;
    border-bottom: 1px solid var(--glass-border);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 45px;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.welcome-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.05);
    border-color: var(--primary-light);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding-top: calc(var(--header-height) + var(--spacing-md));
    padding-bottom: calc(var(--bottom-nav-height) + var(--spacing-md));
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

/* ============================================
   ANIMATED FADE IN UP (ALL TAB CONTENT)
   ============================================ */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   LIVE CLASS ALERT
   ============================================ */
.live-alert {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
}

.live-indicator {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.live-content {
    flex: 1;
}

.live-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-course {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-top: 2px;
}

.btn-live {
    padding: var(--spacing-xs) var(--spacing-md);
    background: #ef4444;
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-live:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ============================================
   HERO SECTION - TYPEWRITER ANIMATION
   ============================================ */
.hero-section {
    padding: var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(4, 140, 163, 0.1), rgba(5, 177, 161, 0.05));
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.hero-title-static {
    color: var(--primary);
    display: inline;
}

.hero-title-animated {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    min-width: 250px;
    text-align: center;
}

.hero-title-animated::after {
    content: '|';
    -webkit-text-fill-color: var(--primary);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ============================================
   CONTENT CARDS
   ============================================ */
.content-card {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   ANIMATED COUNTER (STATS) - FIXED SIZING
   ============================================ */
.heritage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(4, 140, 163, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    word-break: keep-all;
    white-space: nowrap;
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
    line-height: 1.3;
    text-align: center;
}

/* ============================================
   INSTRUCTOR CARD
   ============================================ */
.instructor-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.instructor-image-container {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--primary);
}

.instructor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info {
    text-align: center;
}

.instructor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.instructor-title {
    font-size: 0.95rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.instructor-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

/* Desktop layout for instructor */
@media (min-width: 768px) {
    .instructor-card {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .instructor-image-container {
        margin: 0;
        flex-shrink: 0;
    }
    
    .instructor-info {
        text-align: left;
    }
}

/* ============================================
   COURSES GRID
   ============================================ */
.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

/* ============================================
   LOADING SKELETON - FIXED
   ============================================ */
.loading-skeleton {
    padding: var(--spacing-xl);
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    min-height: 200px;
}

.loading-skeleton::before {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid rgba(4, 140, 163, 0.2);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   COURSE CARD - REDESIGNED
   ============================================ */
.course-card {
    position: relative;
    overflow: visible;
    cursor: pointer;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(4, 140, 163, 0.25);
}

/* Thumbnail Container with Join Button */
.course-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image {
    transform: scale(1.05);
}

/* Join Button on Thumbnail */
.course-join-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;
}

.btn-join {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-join:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-join:disabled {
    background: rgba(100, 116, 139, 0.8);
    cursor: not-allowed;
    transform: none;
}

/* Course Body - Enhanced */
.course-body {
    padding: var(--spacing-md);
}

.course-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badges Container */
.course-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.course-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(4, 140, 163, 0.1);
    color: var(--text-secondary);
}

.course-badge svg {
    width: 14px;
    height: 14px;
}

/* Status Badge - Live */
.badge-live {
    background: rgba(16, 185, 129, 0.15);
    color: var(--status-live);
}

.badge-live .status-dot {
    width: 8px;
    height: 8px;
    background: var(--status-live);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Status Badge - Recorded */
.badge-recorded {
    background: rgba(239, 68, 68, 0.15);
    color: var(--status-recorded);
}

/* Show Details Button */
.btn-details {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 2px solid rgba(4, 140, 163, 0.3);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-details:hover {
    background: rgba(4, 140, 163, 0.05);
    border-color: var(--primary);
}

/* ============================================
   COURSE DETAILS MODAL/EXPANDED
   ============================================ */
.course-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: var(--spacing-md);
}

.course-details-content {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--spacing-lg);
    position: relative;
}

.course-details-header {
    margin-bottom: var(--spacing-md);
}

.course-details-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.course-details-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.course-details-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.detail-value.price {
    color: var(--primary);
    font-size: 1.5rem;
}

.course-details-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary, .btn-secondary, .btn-back {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 140, 163, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn-back {
    background: var(--glass-bg);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   COURSE DETAILS VIEW (Legacy Support)
   ============================================ */
.course-header {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.course-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.course-expiry {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Course Sub-Navigation */
.course-sub-nav {
    display: flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    overflow-x: auto;
}

.sub-nav-btn {
    flex: 1;
    min-width: 100px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.sub-nav-btn.active {
    background: rgba(4, 140, 163, 0.1);
    color: var(--primary);
}

.sub-nav-btn:hover {
    background: rgba(4, 140, 163, 0.05);
}

.sub-nav-btn svg {
    width: 24px;
    height: 24px;
}

.sub-nav-btn span {
    font-size: 0.85rem;
    font-weight: 600;
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
}

/* ============================================
   RECORDINGS LIST
   ============================================ */
.recordings-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.recording-item {
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.recording-item:hover {
    background: rgba(4, 140, 163, 0.05);
}

.recording-info h4 {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.recording-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.recording-completed {
    color: #10b981;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   CERTIFICATES
   ============================================ */

/* Hide Certificate Tab for Guests */
.nav-btn[data-tab="certificates"].hidden-for-guest {
    display: none;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.certificate-card {
    padding: var(--spacing-lg);
    text-align: center;
}

.certificate-preview {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-white);
    font-size: 3rem;
}

.empty-state {
    padding: var(--spacing-xl);
    text-align: center;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* ============================================
   PROFILE
   ============================================ */

/* Center Sign-In Button for Guests */
#profile-signed-out {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

#profile-signed-out .profile-card {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-card {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.logo-vertical {
    width: 150px;
    margin: 0 auto var(--spacing-lg);
    display: block;
}

.profile-header {
    text-align: center;
}

.profile-pic-large {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--spacing-md);
    border: 3px solid var(--primary);
}

.profile-email {
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

/* ============================================
   PROFILE NAME DISPLAY MODE
   ============================================ */
.profile-display-mode {
    display: none;
}

.profile-display-mode.active {
    display: block;
}

.profile-edit-mode {
    display: block;
}

.profile-edit-mode.hidden {
    display: none;
}

.profile-display-info {
    padding: var(--spacing-md);
    background: rgba(4, 140, 163, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(4, 140, 163, 0.1);
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.profile-info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}
.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(4, 140, 163, 0.2);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Contact Links */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(4, 140, 163, 0.05);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-link:hover {
    background: rgba(4, 140, 163, 0.1);
    transform: translateX(4px);
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    border-radius: 0;
    border-top: 1px solid var(--glass-border);
}

.nav-btn {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.nav-btn.active {
    color: var(--primary);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
}

.nav-btn span {
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   MODALS
   ============================================ */
.modal, .course-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: var(--spacing-md);
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--spacing-lg);
    position: relative;
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Video Modal */
.video-modal-content {
    max-width: 900px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius-sm);
    margin: var(--spacing-md) 0;
}

#youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
}

.control-btn {
    background: rgba(4, 140, 163, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.control-btn:hover {
    background: rgba(4, 140, 163, 0.2);
}

.seekbar, .volume-slider {
    flex: 1;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(4, 140, 163, 0.2);
    outline: none;
    -webkit-appearance: none;
}

.seekbar::-webkit-slider-thumb,
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: var(--primary);
    cursor: pointer;
}

#video-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Exam Modal */
.exam-modal-content {
    max-width: 700px;
}

.exam-question {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 1px dashed rgba(4, 140, 163, 0.3);
    border-radius: var(--radius-sm);
}

.exam-question label {
    display: block;
    padding: var(--spacing-xs);
    cursor: pointer;
}

.exam-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.exam-result {
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
}

.exam-result.pass {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.exam-result.fail {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Admin Panel */
.admin-panel-content {
    max-width: 800px;
}

.admin-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(4, 140, 163, 0.2);
}

.admin-section:last-child {
    border-bottom: none;
}

.enrollment-item {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
}

/* ============================================
   LOADING & UTILITY
   ============================================ */
.hidden {
    display: none !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(4, 140, 163, 0.2);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-title-animated {
        min-width: 200px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .courses-grid, .certificates-grid {
        grid-template-columns: 1fr;
    }

    .course-details-info {
        grid-template-columns: 1fr;
    }
    
    .modal-content, .course-details-content {
        max-width: 100%;
        margin: var(--spacing-sm);
        padding: var(--spacing-md);
    }
}

@media (min-width: 769px) {
    .main-content {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
    
    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

/* ============================================
   COURSE DISABLED BUTTON
   ============================================ */
.btn-disabled {
    background: rgba(239, 68, 68, 0.7) !important;
    cursor: not-allowed !important;
}

/* ============================================
   LIVE CLASSES LIST
   ============================================ */
.live-classes-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.live-class-item {
    padding: var(--spacing-md);
}

.live-class-item.status-live {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
}

.live-class-item.status-upcoming {
    border-left: 4px solid #10b981;
}

.live-class-item.status-completed {
    opacity: 0.7;
    border-left: 4px solid #64748b;
}

.live-class-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.live-class-header h4 {
    color: var(--text-primary);
    font-weight: 600;
}

.live-status {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(4, 140, 163, 0.1);
}

.status-live .live-status {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: pulse 2s infinite;
}

.live-class-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.live-class-details p {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-zoom {
    width: 100%;
    justify-content: center;
}

/* ============================================
   LESSON NOTES
   ============================================ */
#lesson-notes-container {
    padding: var(--spacing-md);
    background: rgba(4, 140, 163, 0.05);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-md);
}

.notes-language-toggle {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.notes-lang-btn {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-md);
    background: transparent;
    border: 2px solid rgba(4, 140, 163, 0.3);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.notes-lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.lesson-notes-content {
    position: relative;
}

.notes-block {
    display: none;
    line-height: 1.8;
    color: var(--text-primary);
}

.notes-block.active {
    display: block;
}

.notes-block p {
    margin-bottom: var(--spacing-sm);
}

.notes-block ul, .notes-block ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   PROFESSIONAL VIDEO PLAYER
   ============================================ */
.video-container {
    width: 100%;
    margin-top: var(--spacing-md);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}

#youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

/* ============================================
   CUSTOM VIDEO CONTROLS
   ============================================ */
.custom-video-controls {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    cursor: pointer;
    overflow: visible;
}

.progress-filled {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.progress-container:hover .progress-handle {
    opacity: 1;
}

.progress-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.progress-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Controls Row */
.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn i {
    width: 20px;
    height: 20px;
}

/* Skip buttons with text overlay */
.skip-text {
    position: absolute;
    font-size: 9px;
    font-weight: 700;
    color: white;
    pointer-events: none;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    position: relative;
}

.volume-slider-container {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.3s, opacity 0.3s;
}

.volume-control.active .volume-slider-container {
    width: 80px;
    opacity: 1;
}

.volume-slider {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Time Display */
.time-display {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    margin-left: var(--spacing-sm);
}

/* Speed Button */
.speed-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-video-controls {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
    
    .control-btn i {
        width: 18px;
        height: 18px;
    }
    
    .time-display {
        font-size: 0.75rem;
    }
    
    .volume-slider-container {
        display: none;
    }
}

/* ============================================
   PWA INSTALL PROMPT
   ============================================ */
.pwa-install-prompt {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    animation: slideUp 0.3s ease;
}

.pwa-install-prompt.hidden {
    display: none;
}

.pwa-install-content {
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pwa-install-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: block;
    border-radius: var(--radius-md);
}

.pwa-install-content h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.pwa-install-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.pwa-install-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.pwa-install-actions button {
    flex: 1;
    max-width: 150px;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Hide install prompt when in standalone mode (installed) */
@media all and (display-mode: standalone) {
    .pwa-install-prompt {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .pwa-install-prompt {
        bottom: 70px;
        width: 95%;
    }
}
/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-panel-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--spacing-xl);
}

.admin-panel-content h2 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.8rem;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-tab-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    position: relative;
}

.admin-tab-btn:hover {
    color: var(--primary);
    background: rgba(4, 140, 163, 0.1);
}

.admin-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-badge {
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-tab-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

/* Pending Enrollments List */
.pending-enrollments-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.enrollment-request-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.enrollment-request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.enrollment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}

.enrollment-user-info h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.enrollment-user-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.enrollment-status {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.enrollment-status.pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.enrollment-course-info {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.enrollment-course-info p {
    margin: 0.3rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.enrollment-course-info strong {
    color: var(--text-primary);
}

.enrollment-proof {
    margin-bottom: var(--spacing-md);
}

.enrollment-proof a {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--accent);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(5, 177, 161, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(5, 177, 161, 0.3);
    transition: all 0.3s ease;
}

.enrollment-proof a:hover {
    background: rgba(5, 177, 161, 0.2);
    border-color: var(--accent);
}

.enrollment-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-approve, .btn-reject {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
}

.btn-approve {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-reject {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-reject:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

/* Course Management */
.courses-management-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.course-manage-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.course-manage-info h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.course-manage-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.course-manage-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.btn-toggle-course {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-toggle-course.enable {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-toggle-course.disable {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-toggle-course:hover {
    transform: translateY(-2px);
}

/* Admin Form */
.admin-form {
    max-width: 500px;
}

.admin-form .form-group {
    margin-bottom: var(--spacing-md);
}

.admin-form label {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.admin-form input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
}

.admin-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-panel-content {
        padding: var(--spacing-md);
    }
    
    .enrollment-header {
        flex-direction: column;
    }
    
    .enrollment-actions {
        flex-direction: column;
    }
    
    .course-manage-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .course-manage-actions {
        width: 100%;
    }
    
    .btn-toggle-course {
        flex: 1;
    }
}
/* ============================================
   ENROLLMENT MODAL - COMPLETE STYLES
   ============================================ */

/* Modal Base */
.enrollment-modal-content {
    max-width: 550px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    background: #ffffff;
    color: #3c4257;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar */
.enrollment-modal-content::-webkit-scrollbar {
    width: 8px;
}

.enrollment-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.enrollment-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.enrollment-modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================
   HEADER SECTION
   ========================================== */
.enrollment-header-razorpay {
    background: linear-gradient(135deg, #0c4da2 0%, #4facfe 100%);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    color: white;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.enrollment-header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.enrollment-header-icon i {
    width: 32px;
    height: 32px;
    color: white;
}

.enrollment-header-razorpay h2 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.enrollment-header-razorpay p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.modal-close-razorpay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.modal-close-razorpay:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-close-razorpay i {
    width: 20px;
    height: 20px;
}

/* ==========================================
   COURSE SUMMARY CARD
   ========================================== */
.course-summary-card {
    margin: -1.5rem 1.5rem 1.5rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ebf1;
}

.course-summary-header {
    margin-bottom: 0.5rem;
}

.summary-label {
    font-size: 0.75rem;
    color: #7c8db5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.course-summary-title {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    color: #1a1f36;
    font-weight: 600;
    line-height: 1.4;
}

.course-summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e8ebf1;
    flex-wrap: wrap;
    gap: 1rem;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-label {
    font-size: 0.85rem;
    color: #7c8db5;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0c4da2;
}

.price-validity {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #7c8db5;
    background: #f6f9fc;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
}

.price-validity i {
    width: 16px;
    height: 16px;
}

/* ==========================================
   FORM BASE
   ========================================== */
.enrollment-form-razorpay {
    padding: 0 1.5rem 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #1a1f36;
    font-weight: 600;
}

.section-title i {
    width: 20px;
    height: 20px;
    color: #0c4da2;
}

/* ==========================================
   PAYMENT METHODS CARD
   ========================================== */
.payment-methods-card {
    background: white;
    border: 1px solid #e8ebf1;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ==========================================
   UPI MAIN CARD
   ========================================== */
.upi-main-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.upi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.upi-logo-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.upi-logo {
    height: 28px;
    width: auto;
    background: white;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    object-fit: contain;
}

.upi-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* UPI ID Display */
.upi-id-display {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.upi-id-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.upi-id-label i {
    width: 16px;
    height: 16px;
}

.upi-id-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.upi-number {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    letter-spacing: 2px;
}

.copy-btn-upi {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn-upi:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copy-btn-upi i {
    width: 16px;
    height: 16px;
}

/* UPI Note */
.upi-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.5;
}

.upi-note i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================
   UPI INSTRUCTIONS
   ========================================== */
.upi-instructions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f6f9fc;
    border-radius: 10px;
    border: 1px solid #e8ebf1;
    transition: all 0.3s ease;
}

.instruction-item:hover {
    background: #eef5ff;
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.instruction-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.instruction-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.instruction-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.instruction-text strong {
    color: #1a1f36;
    font-size: 1rem;
}

.instruction-text span {
    color: #7c8db5;
    font-size: 0.85rem;
}

/* ==========================================
   WHATSAPP SECTION
   ========================================== */
.whatsapp-section {
    margin-top: 1.5rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0 1rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e8ebf1;
}

.divider span {
    padding: 0 1rem;
    color: #7c8db5;
    font-weight: 600;
    font-size: 0.85rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-icon svg {
    width: 28px;
    height: 28px;
}

.whatsapp-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.whatsapp-text strong {
    font-size: 1.05rem;
    font-weight: 600;
}

.whatsapp-text span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.whatsapp-btn > i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ==========================================
   UPLOAD SECTION
   ========================================== */
.upload-section-card {
    background: white;
    border: 1px solid #e8ebf1;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.upload-instructions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #0c4da2, #4facfe);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.instruction-step p {
    margin: 0;
    color: #3c4257;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 2px;
}

.instruction-step strong {
    color: #0c4da2;
    font-weight: 600;
}

/* File Upload Area */
.file-upload-area {
    position: relative;
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: #f6f9fc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: #eef5ff;
    border-color: #0c4da2;
}

.upload-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.upload-icon i {
    width: 28px;
    height: 28px;
    color: #0c4da2;
}

.upload-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.upload-text strong {
    color: #1a1f36;
    font-size: 1rem;
}

.upload-text span {
    color: #7c8db5;
    font-size: 0.85rem;
}

/* File Preview */
.file-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #eef5ff;
    border: 2px solid #0c4da2;
    border-radius: 12px;
    margin-top: 1rem;
}

.file-preview.hidden {
    display: none;
}

.file-preview i:first-child {
    width: 24px;
    height: 24px;
    color: #0c4da2;
    flex-shrink: 0;
}

.file-preview span {
    flex: 1;
    color: #1a1f36;
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-word;
}

.remove-file {
    background: #dc2626;
    border: none;
    border-radius: 6px;
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-file:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.remove-file i {
    width: 16px;
    height: 16px;
    color: white;
}

/* ==========================================
   SECURITY BADGE
   ========================================== */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.security-badge i {
    width: 18px;
    height: 18px;
    color: #16a34a;
    flex-shrink: 0;
}

.security-badge span {
    color: #166534;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* ==========================================
   ACTION BUTTONS
   ========================================== */
.enrollment-actions-razorpay {
    display: flex;
    gap: 1rem;
}

.btn-cancel-razorpay,
.btn-submit-razorpay {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cancel-razorpay {
    background: white;
    color: #3c4257;
    border: 2px solid #e8ebf1;
}

.btn-cancel-razorpay:hover {
    background: #f6f9fc;
    border-color: #cbd5e1;
}

.btn-submit-razorpay {
    background: linear-gradient(135deg, #0c4da2, #4facfe);
    color: white;
    box-shadow: 0 4px 12px rgba(12, 77, 162, 0.3);
}

.btn-submit-razorpay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 77, 162, 0.4);
}

.btn-submit-razorpay i {
    width: 20px;
    height: 20px;
}

/* ==========================================
   COPY TOAST NOTIFICATION
   ========================================== */
.copy-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.copy-toast i {
    width: 20px;
    height: 20px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .enrollment-modal-content {
        width: 98%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .enrollment-header-razorpay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .enrollment-header-razorpay h2 {
        font-size: 1.5rem;
    }
    
    .course-summary-card {
        margin: -1rem 1rem 1rem;
        padding: 1.25rem;
    }
    
    .course-summary-title {
        font-size: 1.15rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .course-summary-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .enrollment-form-razorpay {
        padding: 0 1rem 1rem;
    }
    
    .upi-header {
        justify-content: center;
    }
    
    .upi-logo {
        height: 24px;
    }
    
    .upi-number {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .copy-btn-upi {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .instruction-icon {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-btn {
        padding: 1rem;
    }
    
    .whatsapp-icon {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .upload-text strong {
        font-size: 0.95rem;
    }
    
    .enrollment-actions-razorpay {
        flex-direction: column;
    }
    
    .copy-toast {
        bottom: 90px;
        width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .enrollment-header-icon {
        width: 56px;
        height: 56px;
    }
    
    .enrollment-header-icon i {
        width: 28px;
        height: 28px;
    }
    
    .upi-id-value {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-btn-upi {
        width: 100%;
        justify-content: center;
    }
    
    .instruction-item {
        padding: 0.75rem;
    }
    
    .file-upload-label {
        padding: 1.5rem;
    }
    
    .upload-icon {
        width: 48px;
        height: 48px;
    }
    
    .upload-icon i {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   PROFILE FORM HIGHLIGHT ANIMATION
   ============================================ */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(4, 140, 163, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 24px rgba(4, 140, 163, 0.4);
    }
}

/* ============================================
   ENHANCED ADMIN ENROLLMENT CARDS
   ============================================ */

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state i {
    width: 64px;
    height: 64px;
    color: #7c8db5;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #1a1f36;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #7c8db5;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 3rem 2rem;
}

.error-state i {
    width: 64px;
    height: 64px;
    color: #dc2626;
    margin-bottom: 1rem;
}

.error-state h3 {
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.error-state p {
    color: #7c8db5;
    margin-bottom: 1.5rem;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    color: #10b981;
}

.verified-badge i {
    width: 18px;
    height: 18px;
}

/* Contact Link */
.contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #0c4da2;
    text-decoration: underline;
}

/* User ID Small */
.user-id-small {
    font-size: 0.8rem;
    font-family: monospace;
    opacity: 0.7;
}

/* Status Dot Animation */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ffa500;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Course Info Grid */
.course-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-label {
    font-size: 0.75rem;
    color: #7c8db5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-size: 0.95rem;
    color: #1a1f36;
    font-weight: 500;
}

.price-highlight {
    color: #0c4da2;
    font-weight: 700;
    font-size: 1.1rem;
}

.days-badge {
    display: inline-block;
    background: #eef5ff;
    color: #0c4da2;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Payment Proof Button */
.btn-view-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #eef5ff;
    color: #0c4da2;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-proof:hover {
    background: #0c4da2;
    color: white;
    border-color: #0c4da2;
}

.btn-view-proof i {
    width: 18px;
    height: 18px;
}

/* Payment Proof Preview */
.proof-preview {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e8ebf1;
    transition: all 0.3s ease;
}

.proof-preview:hover {
    border-color: #0c4da2;
    box-shadow: 0 4px 12px rgba(12, 77, 162, 0.2);
}

.proof-preview img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    background: #f6f9fc;
}

/* Error Card */
.error-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc2626;
    margin: 0;
}

.error-message i {
    width: 20px;
    height: 20px;
}

/* Badge Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .course-info-grid {
        grid-template-columns: 1fr;
    }
    
    .proof-preview img {
        max-height: 150px;
    }
}

/* ============================================
   ENHANCED PROFILE PICTURE
   ============================================ */
.profile-pic-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.profile-pic-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.profile-pic-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-pic-badge i {
    width: 18px;
    height: 18px;
    color: white;
}

.profile-header {
    text-align: center;
    padding: 2rem;
}

.profile-header h2 {
    margin: 0.5rem 0 0.25rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.profile-email {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-pic-container {
        width: 100px;
        height: 100px;
    }
    
    .profile-pic-large {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   PROFESSIONAL SEARCH BAR IN COUNTRY DROPDOWN
   ============================================ */

/* Country Dropdown Container */
.iti__country-list {
    position: absolute;
    z-index: 1000;
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    max-height: 350px;
    overflow: hidden; /* Changed from overflow-y */
    width: 320px;
    animation: dropdownSlideIn 0.2s ease-out;
    display: flex;
    flex-direction: column;
}

/* Search Input - Sticky at Top */
.iti__search-input {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    background: rgba(4, 140, 163, 0.08);
    backdrop-filter: blur(20px);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 12px 16px;
    margin: 0;
    width: 100%;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.iti__search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.iti__search-input:focus {
    outline: none;
    background: rgba(4, 140, 163, 0.12);
    border-bottom-color: var(--primary);
    box-shadow: 0 2px 12px rgba(4, 140, 163, 0.3);
}

/* Country List - Scrollable Area */
.iti__country-list .iti__country-container {
    overflow-y: auto;
    max-height: 298px; /* 350px - 52px search height */
}

/* Custom Scrollbar for Country List */
.iti__country-list::-webkit-scrollbar {
    width: 8px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 var(--radius-lg) 0;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.iti__country-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Country Items */
.iti__country {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.iti__country:hover {
    background: rgba(4, 140, 163, 0.1);
    border-left-color: var(--primary);
}

.iti__country.iti__highlight {
    background: rgba(4, 140, 163, 0.15);
    border-left-color: var(--primary);
}

.iti__country.iti__active {
    background: rgba(4, 140, 163, 0.2);
    border-left-color: var(--accent);
    font-weight: 600;
}

.iti__country:first-child {
    margin-top: 0;
}

/* Flag */
.iti__flag {
    width: 24px;
    height: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Country Name */
.iti__country-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dial Code */
.iti__dial-code {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin-left: auto;
}

/* Divider for Preferred Countries */
.iti__divider {
    padding: 0;
    margin: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 0 rgba(4, 140, 163, 0.1);
}

/* Preferred Countries Highlight */
.iti__country.iti__preferred {
    background: rgba(5, 177, 161, 0.05);
}

/* Empty Search Result */
.iti__country.iti__search-result-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* Dropdown Animation */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .iti__country-list {
        width: calc(100vw - 40px);
        max-width: 340px;
        max-height: 400px;
    }
    
    .iti__search-input {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 14px 16px;
    }
}

/* ============================================
   MOBILE INPUT - GLASSMORPHIC DESIGN
   ============================================ */

/* Main Input Field */
.iti__tel-input {
    width: 100%;
    padding: 14px 16px 14px 90px !important;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 52px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.iti__tel-input:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.07) 100%
    );
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.iti__tel-input:focus {
    outline: none;
    background: linear-gradient(
        135deg,
        rgba(4, 140, 163, 0.12) 0%,
        rgba(4, 140, 163, 0.08) 100%
    );
    border-color: var(--primary);
    box-shadow: 
        0 0 0 3px rgba(4, 140, 163, 0.15),
        0 4px 16px rgba(4, 140, 163, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.iti__tel-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
    font-weight: 400;
}

/* Error State */
.iti__tel-input.error {
    border-color: #ef4444;
    background: linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.08) 0%,
        rgba(239, 68, 68, 0.05) 100%
    );
    box-shadow: 
        0 0 0 3px rgba(239, 68, 68, 0.15),
        0 2px 8px rgba(239, 68, 68, 0.2);
}

.iti__tel-input.error:focus {
    box-shadow: 
        0 0 0 3px rgba(239, 68, 68, 0.2),
        0 4px 16px rgba(239, 68, 68, 0.25);
}

/* Flag Container - Glassmorphic */
.iti__flag-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* Selected Flag Button */
.iti__selected-flag {
    padding: 0 10px 0 14px;
    background: transparent;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.iti__selected-flag:hover {
    background: rgba(4, 140, 163, 0.08);
}

.iti__selected-flag:focus {
    outline: none;
    background: rgba(4, 140, 163, 0.12);
}

.iti__selected-flag:focus-visible {
    box-shadow: inset 0 0 0 2px var(--primary);
}

/* Flag */
.iti__flag {
    width: 24px;
    height: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Arrow Icon */
.iti__arrow {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-secondary);
    margin-left: 6px;
    transition: all 0.3s ease;
}

.iti__arrow--up {
    border-top: none;
    border-bottom: 5px solid var(--primary);
    transform: rotate(0deg);
}

.iti__selected-flag:hover .iti__arrow {
    border-top-color: var(--primary);
}

/* Selected Dial Code */
.iti__selected-dial-code {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 6px;
    font-family: 'Courier New', monospace;
}

/* Container */
.iti {
    width: 100%;
    display: block;
    position: relative;
}

.iti--allow-dropdown .iti__flag-container:hover {
    cursor: pointer;
}

.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
    background: rgba(4, 140, 163, 0.08);
}

/* Disabled State */
.iti__tel-input:disabled {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.iti__tel-input:disabled + .iti__flag-container {
    opacity: 0.4;
    pointer-events: none;
}

/* Loading State */
.iti__tel-input.loading {
    position: relative;
    pointer-events: none;
}

.iti__tel-input.loading::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(4, 140, 163, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Country Dropdown */
.iti__country-list {
    position: absolute;
    z-index: 1000;
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(255, 255, 255, 0.1) inset;
    max-height: 350px;
    overflow: hidden;
    width: 320px;
    animation: dropdownSlideIn 0.2s ease-out;
    display: flex;
    flex-direction: column;
}

/* Search Input in Dropdown */
.iti__search-input {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 140, 163, 0.1) 0%,
        rgba(4, 140, 163, 0.05) 100%
    );
    backdrop-filter: blur(20px);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 12px 16px;
    margin: 0;
    width: 100%;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.iti__search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.iti__search-input:focus {
    outline: none;
    background: linear-gradient(
        135deg,
        rgba(4, 140, 163, 0.15) 0%,
        rgba(4, 140, 163, 0.08) 100%
    );
    border-bottom-color: var(--primary);
    box-shadow: 
        0 2px 12px rgba(4, 140, 163, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Scrollbar */
.iti__country-list::-webkit-scrollbar {
    width: 8px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 var(--radius-lg) 0;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(4, 140, 163, 0.5) 0%,
        rgba(4, 140, 163, 0.3) 100%
    );
    border-radius: 4px;
}

.iti__country-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(4, 140, 163, 0.7) 0%,
        rgba(4, 140, 163, 0.5) 100%
    );
}

/* Country Items */
.iti__country {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.iti__country:hover {
    background: linear-gradient(
        90deg,
        rgba(4, 140, 163, 0.12) 0%,
        rgba(4, 140, 163, 0.05) 100%
    );
    border-left-color: var(--primary);
}

.iti__country.iti__highlight {
    background: linear-gradient(
        90deg,
        rgba(4, 140, 163, 0.15) 0%,
        rgba(4, 140, 163, 0.08) 100%
    );
    border-left-color: var(--primary);
}

.iti__country.iti__active {
    background: linear-gradient(
        90deg,
        rgba(5, 177, 161, 0.2) 0%,
        rgba(5, 177, 161, 0.1) 100%
    );
    border-left-color: var(--accent);
    font-weight: 600;
}

.iti__country-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    flex: 1;
}

.iti__dial-code {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.iti__divider {
    padding: 0;
    margin: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 0 rgba(4, 140, 163, 0.1);
}

/* Animations */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .iti__tel-input {
        font-size: 16px; /* Prevent iOS zoom */
        height: 50px;
        padding: 12px 16px 12px 85px !important;
    }
    
    .iti__country-list {
        width: calc(100vw - 40px);
        max-width: 340px;
    }
}


/* ============================================
   INTERNATIONAL PHONE INPUT - GLASSMORPHIC
   ============================================ */

/* Container */
.iti {
    width: 100%;
    display: block;
    position: relative;
}

/* Main Input Field - Matches Your Form Inputs */
.iti__tel-input {
    width: 100%;
    padding: 14px 16px 14px 90px !important;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: 500;
    transition: var(--transition);
    height: 52px;
    box-shadow: var(--glass-shadow);
}

.iti__tel-input:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(4, 140, 163, 0.12);
}

.iti__tel-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--primary);
    box-shadow: 
        0 0 0 3px rgba(4, 140, 163, 0.15),
        0 8px 32px rgba(4, 140, 163, 0.2);
}

.iti__tel-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
    font-weight: 400;
}

/* Error State */
.iti__tel-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    box-shadow: 
        0 0 0 3px rgba(239, 68, 68, 0.1),
        0 4px 16px rgba(239, 68, 68, 0.15);
}

/* Flag Container - Glassmorphic */
.iti__flag-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* Selected Flag Button */
.iti__selected-flag {
    padding: 0 10px 0 14px;
    background: transparent;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.iti__selected-flag:hover {
    background: rgba(4, 140, 163, 0.08);
}

.iti__selected-flag:focus {
    outline: none;
    background: rgba(4, 140, 163, 0.12);
}

/* Flag */
.iti__flag {
    width: 24px;
    height: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Arrow Icon */
.iti__arrow {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-secondary);
    margin-left: 6px;
    transition: var(--transition);
}

.iti__arrow--up {
    border-top: none;
    border-bottom: 5px solid var(--primary);
}

.iti__selected-flag:hover .iti__arrow {
    border-top-color: var(--primary);
}

/* Selected Dial Code */
.iti__selected-dial-code {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 6px;
    font-family: 'Courier New', monospace;
}

/* Country Dropdown List */
.iti__country-list {
    position: absolute;
    z-index: 1000;
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    max-height: 350px;
    overflow: hidden;
    width: 320px;
    animation: dropdownSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* Search Input in Dropdown */
.iti__search-input {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    background: rgba(4, 140, 163, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-bottom: 2px solid var(--glass-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 12px 16px;
    margin: 0;
    width: 100%;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-main);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.iti__search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.iti__search-input:focus {
    outline: none;
    background: rgba(4, 140, 163, 0.12);
    border-bottom-color: var(--primary);
    box-shadow: 0 2px 12px rgba(4, 140, 163, 0.2);
}

/* Country Items */
.iti__country {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.iti__country:hover {
    background: rgba(4, 140, 163, 0.1);
    border-left-color: var(--primary);
}

.iti__country.iti__highlight {
    background: rgba(4, 140, 163, 0.15);
    border-left-color: var(--primary);
}

.iti__country.iti__active {
    background: rgba(5, 177, 161, 0.15);
    border-left-color: var(--primary-light);
    font-weight: 600;
}

.iti__country-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    flex: 1;
}

.iti__dial-code {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.iti__divider {
    padding: 0;
    margin: 8px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 0 rgba(4, 140, 163, 0.05);
}

/* Preferred Countries */
.iti__country.iti__preferred {
    background: rgba(4, 140, 163, 0.03);
}

/* Scrollbar */
.iti__country-list::-webkit-scrollbar {
    width: 8px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 var(--radius-lg) 0;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: rgba(4, 140, 163, 0.3);
    border-radius: 4px;
}

.iti__country-list::-webkit-scrollbar-thumb:hover {
    background: rgba(4, 140, 163, 0.5);
}

/* Dropdown Animation */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Disabled State */
.iti__tel-input:disabled {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.iti__tel-input:disabled + .iti__flag-container {
    opacity: 0.4;
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .iti__tel-input {
        font-size: 16px; /* Prevent iOS zoom */
        height: 50px;
        padding: 12px 16px 12px 85px !important;
    }
    
    .iti__country-list {
        width: calc(100vw - 40px);
        max-width: 340px;
        max-height: 400px;
    }
    
    .iti__search-input {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

