* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --danger: #ef4444;
}

body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.logo i {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--accent);
}

nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(30, 41, 59, 0) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #f59e0b, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
  .students-table td:last-child {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
  }
  .students-table .whatsapp-btn,
  .students-table .delete-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
  }

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

.hero-image {
    position: absolute;
    right: -50px;
    bottom: 20px;
    width: 50%;
    max-width: 600px;
    opacity: 0.9;
    
}

/* Section Styling */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    background: linear-gradient(to right, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent), var(--primary));
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.about-text p {
    margin-bottom: 15px;
    color: #cbd5e1;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: rgba(30, 41, 59, 0.7);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.stat-box h4 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Section */
.content {
    background: rgba(15, 23, 42, 0.8);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.course-content p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.9rem;
}

/* Others Section */
.others-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.community-box {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.community-box h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.community-box p {
    color: #94a3b8;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light);
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.page-indicator {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.page-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
    cursor: pointer;
    transition: background 0.3s;
}

.page-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    max-width: 600px;
    margin: 50px auto;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    animation: modalOpen 0.4s ease-out;
}

@keyframes modalOpen {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: var(--secondary);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: rgb(255, 255, 255);
    font-size: 1.8rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.modal-footer {
    padding: 20px 30px;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Course Detail Styles */
.course-detail {
    display: none;
    padding: 50px 0;
}

.course-hero {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.course-info {
    flex: 1;
}

.course-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.course-info p {
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.course-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: rgba(30, 41, 59, 0.7);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--accent);
}

.course-image-large {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.course-modules {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
}

.module-item {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.module-item:last-child {
    border-bottom: none;
}

.module-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.module-title h3 {
    color: var(--accent);
    font-size: 1.3rem;
}

.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.module-content.show {
    max-height: 500px;
    padding-top: 15px;
}

.module-content ul {
    padding-left: 20px;
    margin-top: 10px;
}

.module-content li {
    margin-bottom: 8px;
    color: #94a3b8;
}

/* Payment Receipt */
.receipt {
    background: white;
    color: #1e293b;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #cbd5e1;
}

.receipt-header h2 {
    color: var(--primary);
}

.receipt-details {
    margin-bottom: 25px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #1e293b;
}

.paid-status {
    text-align: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 20px;
}

.paid {
    background: #10b981;
    color: white;
}

.unpaid {
    background: #ef4444;
    color: white;
}

/* Admin Dashboard */
.admin-dashboard {
    display: none;
    padding: 50px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.admin-course-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.admin-course-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
 .admin-course-card h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: var(--accent);
        }
   .admin-course-card p {
            margin: 8px 0;
            color: var(--light-text);
        }
        .table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 10px;
    background: #0f172a;
    padding: 10px;
     overflow-x: auto;
  }
.students-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.admin-course-card h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

.students-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

  .students-table th, .students-table td {
    padding: 12px 10px;
    text-align: left;
    white-space: nowrap;
  }
  .students-table tr:last-child td {
            border-bottom: none;
        }
          .students-table tr:hover td {
            background-color: #2d3748;
        }

         .status-badge {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }

         .whatsapp-btn {
    background-color: #25d366;
  }
        .whatsapp-btn:hover {
            background-color: #128C7E;
            transform: scale(1.1);
        }
            .action-buttons {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .action-buttons button,
    .action-buttons a {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
        
    .delete-btn {
    background-color: #d32f2f;
  }
        
        .delete-btn:hover {
            background-color: #dc2626;
            transform: scale(1.1);
        }
        
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 25px;
            border-radius: 8px;
            background-color: var(--success);
            color: white;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            transform: translateX(200%);
            transition: transform 0.3s ease;
            z-index: 1000;
        }
        
        .notification.show {
            transform: translateX(0);
        }
        
        .no-students {
            text-align: center;
            padding: 40px;
            color: var(--light-text);
            font-size: 1.1rem;
        }
        
        .search-container {
            margin-bottom: 20px;
            display: flex;
            gap: 15px;
        }
        
        .search-box {
            flex: 1;
            padding: 12px 20px;
            background-color: #1e293b;
            border: 1px solid #334155;
            border-radius: 8px;
            color: var(--text);
            font-size: 1rem;
        }
        
        .search-box:focus {
            outline: none;
            border-color: var(--accent);
        }
  .students-table th {
    background-color: #1e293b;
    color: #f1f5f9;
    position: sticky;
    top: 0;
  }

.students-table tr:hover {
    background: rgba(30, 41, 59, 0.5);
}

.student-action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.complete-btn {
    background: var(--success);
    color: white;
}

.complete-btn:hover {
    background: #0da271;
}

.defer-btn {
    background: var(--accent);
    color: white;
    margin-left: 5px;
}

.defer-btn:hover {
    background: #e08c00;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .hero-image {
        position: relative;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        margin-top: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .course-hero {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 0;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(30, 41, 59, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
    }
    
    nav ul.show {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .course-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .course-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}
/* Registration Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: rgb(22, 176, 190);
    z-index: 10;
}

.academy-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #2c3e50;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    background: rgb(22, 176, 190);
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    position: relative;
    margin-bottom: 20px;
}
    /* ===== CHATBOT STYLES ===== */
        .academy-chat-launcher {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #4361ee, #3a0ca3);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 10px 25px rgba(67, 97, 238, 0.5);
            z-index: 999;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            animation: float 4s ease-in-out infinite;
            font-size: 28px;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .academy-chat-launcher:hover {
            transform: scale(1.1) rotate(10deg);
            background: linear-gradient(135deg, #3f37c9, #2d0a8c);
            box-shadow: 0 15px 30px rgba(67, 97, 238, 0.7);
            animation: none;
        }

        .academy-chat-container {
            position: fixed;
            bottom: 120px;
            right: 30px;
            width: 380px;
            height: 520px;
            background: linear-gradient(145deg, rgba(15, 15, 40, 0.132), rgba(82, 82, 249, 0.95));
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 1000;
            transform: translateY(20px);
            opacity: 0;
            pointer-events: none;
            transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                        opacity 0.5s ease;
            border: 1px solid rgba(67, 97, 238, 0.3);
            backdrop-filter: blur(10px);
        }

        .academy-chat-container.active {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

      .academy-chat-header {
            background: linear-gradient(45deg, #2c3e50, #4a6491);
            color: white;
            padding: 18px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }
        
        .academy-chat-header h3 {
            font-size: 1.2rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
            letter-spacing: 0.5px;
        }
        
        .academy-chat-close {
            background: rgba(255, 255, 255, 0.25);
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        
        .academy-chat-close:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: rotate(90deg);
        }
        
        .academy-chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
            background: rgba(1, 8, 50, 0.7);
            color: var(--dark);
        }
        
        .academy-msg {
            max-width: 85%;
            padding: 12px 18px;
            border-radius: 18px;
            position: relative;
            animation: fadeIn 0.4s ease;
            line-height: 1.5;
            font-size: 0.95rem;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .academy-user-msg {
            background: linear-gradient(to right, #dcf8c6, #c5f0a4);
            align-self: flex-end;
            border-bottom-right-radius: 5px;
            animation-delay: 0.1s;
        }
        
        .academy-bot-msg {
            background: linear-gradient(to right, #e3f2fd, #d3e9ff);
            align-self: flex-start;
            border-bottom-left-radius: 5px;
            animation-delay: 0.2s;
        }
        
        .academy-msg-time {
            display: block;
            font-size: 0.65rem;
            color: #777;
            margin-top: 6px;
            text-align: right;
        }
        
        .academy-typing-indicator {
            display: flex;
            padding: 12px;
        }
        
        .academy-typing-dot {
            width: 8px;
            height: 8px;
            background: #777;
            border-radius: 50%;
            margin: 0 4px;
            animation: typing-dot 1.4s infinite;
        }
        
        .academy-typing-dot:nth-child(2) {
            animation-delay: 0.2s;
        }
        
        .academy-typing-dot:nth-child(3) {
            animation-delay: 0.4s;
        }
        
        @keyframes typing-dot {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-6px); }
        }
        
        .academy-quick-replies {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }
        
        .academy-quick-reply-btn {
            background: rgba(52, 152, 219, 0.15);
            color: #2c3e50;
            border: none;
            border-radius: 20px;
            padding: 8px 14px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .academy-quick-reply-btn:hover {
            background: #3498db;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        .academy-whatsapp-btn {
            background: linear-gradient(to right, #25D366, #128C7E);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 16px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            font-weight: 500;
            margin-top: 12px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.9rem;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        .academy-whatsapp-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
        
        .academy-chat-input-container {
            display: flex;
            padding: 15px;
            background: rgba(255, 255, 255, 0.9);
            border-top: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .academy-chat-input {
            flex: 1;
            padding: 12px 18px;
            border: none;
            border-radius: 30px;
            font-size: 0.95rem;
            outline: none;
            transition: all 0.3s;
            background: rgba(240, 242, 255, 0.8);
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
        }
        
        .academy-chat-input:focus {
            background: white;
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3), inset 0 2px 5px rgba(0, 0, 0, 0.05);
        }
        
        .academy-chat-send-btn {
            background: linear-gradient(to right, #3498db, #2980b9);
            color: white;
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            margin-left: 12px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        .academy-chat-send-btn:hover {
            transform: scale(1.05) rotate(10deg);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
        
        .academy-course-badge {
            display: inline-block;
            background: linear-gradient(45deg, #3498db, #9b59b6);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            margin: 8px 0;
            font-weight: 600;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
        }
        
        .academy-info-item {
            margin: 8px 0;
            padding-left: 18px;
            position: relative;
            font-size: 0.92rem;
        }
        
        .academy-info-item:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #3498db;
            font-weight: bold;
            font-size: 1.2rem;
        }
        
        .academy-tutor-options {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            margin-top: 15px;
        }
        
        .academy-tutor-option {
            background: rgba(255, 255, 255, 0.7);
            border-radius: 12px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
        }
        
        .academy-tutor-option:hover {
            background: white;
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        }
        
        .academy-tutor-name {
            font-weight: 600;
            margin-bottom: 4px;
            color: #2c3e50;
            font-size: 1rem;
        }
        
        .academy-tutor-course {
            font-size: 0.85rem;
            color: #7f8c8d;
        }
        
        .academy-greeting {
            background: linear-gradient(45deg, #3498db, #9b59b6);
            color: white;
            border-radius: 18px;
            padding: 15px;
            text-align: center;
            margin-bottom: 15px;
            font-size: 1rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        /* Floating Chatbot Launcher */
        .academy-chat-launcher {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 65px;
            height: 65px;
            background: linear-gradient(to right, #4e54c8, #8f94fb);
            color: white;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            animation: pulse 2s infinite;
            transition: all 0.3s;
        }
        
        .academy-chat-launcher:hover {
            transform: scale(1.1) rotate(10deg);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(78, 84, 200, 0.7); }
            70% { box-shadow: 0 0 0 18px rgba(78, 84, 200, 0); }
            100% { box-shadow: 0 0 0 0 rgba(78, 84, 200, 0); }
        }
        
        /* Prediction badge */
        .academy-prediction-badge {
            background: rgba(255, 193, 7, 0.15);
            border-left: 3px solid #FFC107;
            padding: 8px 12px;
            border-radius: 0 10px 10px 0;
            margin: 8px 0;
            font-size: 0.85rem;
            color: #333;
        }
        
        .academy-prediction-item {
            padding: 6px 0;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .academy-prediction-item:hover {
            color: #3498db;
            transform: translateX(5px);
        }
        
        @media (max-width: 600px) {
            .academy-chat-container {
                width: 320px;
                height: 480px;
                right: 15px;
                bottom: 80px;
            }
            
            .shape {
                transform: scale(0.8);
            }
        }




        /* ===== MESSAGING SYSTEM STYLES ===== */
.msg-floating-btn {
  position: fixed;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #0ea5e9;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.msg-floating-btn:hover {
  background: #0284c7;
  transform: scale(1.1);
}

.msg-modal {
  display: none;
  position: fixed;
  bottom: 160px;
  right: 20px;
  width: 350px;
  max-height: 60vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow: hidden;
}

.msg-modal-content {
  padding: 20px;
}

.msg-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
}

.msg-modal h3 {
  color: #0f172a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#msg_messageForm input,
#msg_messageForm textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
}

#msg_messageForm textarea {
  min-height: 100px;
  resize: vertical;
}

#msg_messageForm button {
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  transition: background 0.3s;
}

#msg_messageForm button:hover {
  background: #0284c7;
}

#msg_conversationHistory {
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

.msg-message {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 14px;
}

.msg-user-message {
  background: #f1f5f9;
  border-left: 3px solid #0ea5e9;
}

.msg-admin-message {
  background: #f8fafc;
  border-left: 3px solid #f59e0b;
}

.msg-message small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
}
.msg-send-btn {
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.msg-send-btn:hover {
  background: #0284c7;
}

.msg-form-actions {
  margin-top: 15px;
}
