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

body {
    font-family: 'Inter', sans-serif;
    background-color: #faf9f7;
    color: #2d3748;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: white;
    border-right: 1px solid #f1f1f1;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.logo {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f1f1;
}

.logo img {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.nav-menu {
    padding: 24px 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #718096;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #2d3748;
}

.nav-item.active {
    background-color: #fff5f2;
    color: #b59c61;
    border-left-color: #b59c61;
}

.nav-item i {
    width: 20px;
    font-size: 16px;
}

/* Upgrade Button */
.upgrade-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    margin: 0 12px 12px;
    background: linear-gradient(135deg, #b59c61, #d4af37);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.upgrade-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 156, 97, 0.3);
}

.upgrade-card i {
    font-size: 16px;
}

.sidebar-bottom {
    padding: 12px 0;
    border-top: 1px solid #f1f1f1;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
}

/* Header - Consistent across all pages */
.header {
    background: white;
    padding: 16px 32px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-bar {
    position: relative;
    width: 400px;
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    background: #f8f9fa;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    border-color: #b59c61;
    background: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 14px;
}

.notification-wrapper {
    position: relative;
}

.notification {
    position: relative;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification i {
    font-size: 20px;
    color: #718096;
    transition: color 0.2s ease;
}

.notification:hover i {
    color: #2d3748;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f5576c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    width: 400px;
    max-height: 600px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 8px;
}

.notification-dropdown.active {
    display: block;
}

.notification-header {
    padding: 16px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #2d3748;
}

.mark-all-read {
    background: none;
    border: none;
    color: #b59c61;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mark-all-read:hover {
    color: #d4af37;
}

.notification-list {
    max-height: 500px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: #faf9f7;
}

.notification-item.unread {
    background: #f8f9fa;
}

.notification-item-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    color: white;
}

.notification-item-icon.document {
    background: #667eea;
}

.notification-item-icon.quiz {
    background: #764ba2;
}

.notification-item-text h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.notification-item-text p {
    margin: 0;
    font-size: 13px;
    color: #718096;
}

.notification-item-time {
    font-size: 12px;
    color: #a0aec0;
}

.no-notifications {
    padding: 24px;
    text-align: center;
    color: #718096;
}


.avatar {
    position: relative;
    padding: 8px;
    cursor: pointer;
    font-size: 24px;
    color: #b59c61;
    transition: all 0.2s ease;
}

.avatar:hover {
    color: #d4af37;
}

/* Profile Modal */
.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-modal.active {
    display: flex;
}

.profile-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #718096;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #2d3748;
}

.profile-header {
    text-align: center;
    margin-bottom: 32px;
}

.avatar-section {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b59c61, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    margin: 0 auto;
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #b59c61;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #b59c61;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.avatar-upload:hover {
    background: #f8f9fa;
    border-color: #d4af37;
    color: #d4af37;
}

.profile-header h2 {
    font-size: 24px;
    color: #2d3748;
    margin: 0;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.form-group input {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #b59c61;
    background: white;
}

.change-password-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #b59c61, #d4af37);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.change-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 156, 97, 0.3);
}

/* Change Password Modal */
.change-password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.change-password-modal.active {
    display: flex;
}

.password-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.password-modal-content h2 {
    font-size: 22px;
    color: #2d3748;
    margin: 0 0 24px 0;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.profile img {
    width: 36px;
    height: 36px;
    border-radius: 3px;
    object-fit: cover;
}

.profile span {
    font-weight: 500;
    color: #2d3748;
}

/* Dashboard Content */
.dashboard-content {
    padding: 32px;
    max-width: 2400px;
    margin: 0 auto;
}

.welcome-section {
    margin-bottom: 32px;
}

.welcome-section h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.welcome-section p {
    color: #718096;
    font-size: 16px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s ease;
    border: 1px solid #f1f1f1;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    display: none;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 3px;
}

.stat-change.positive {
    color: #b59c61;
    background: #f0fff4;
}

.stat-change.negative {
    color: #b59c61;
    background: #fff5f5;
}

.stat-change.same {
    color: #718096;
    background: #f8f9fa;
}

.stat-change i {
    font-size: 10px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.card {
    background: white;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

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

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

/* Tabs */
.tabs-container {
    margin-bottom: 24px;
}

.tabs {
    display: flex;
    gap: 24px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0;
}

.tab {
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    color: #718096;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: #2d3748;
}

.tab.active {
    color: #b59c61;
    border-bottom-color: #b59c61;
}

/* Tab Panes */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Activity List */
.activity-list {
    padding: 0 24px 24px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.activity-icon.math {
    background: linear-gradient(135deg,#b59c61,#b59c61);
}

.activity-icon.achievement {
    background: linear-gradient(135deg, #b59c61, #b59c61);
}

.activity-icon.devotional {
    background: linear-gradient(135deg, #b59c61, #b59c61);
}

.activity-icon.science {
    background: linear-gradient(135deg, #b59c61, #b59c61);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    font-size: 14px;
    color: #b59c61;
    margin-bottom: 4px;
    font-weight: 500;
}

.activity-detail {
    font-size: 13px;
    color: #b59c61;
    display: block;
    margin-bottom: 4px;
}

.time {
    font-size: 12px;
    color: #a0aec0;
}

/* Quick Actions */
.actions-list {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #f1f1f1;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-item:hover {
    border-color: #b59c61;
    background: #fff5f2;
    transform: translateY(-1px);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 3px;
    background: linear-gradient(135deg,#b59c61, #b59c61);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.action-content {
    flex: 1;
}

.action-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #b59c61;
    margin-bottom: 2px;
}

.action-content p {
    font-size: 12px;
    color:#b59c61;
}

.action-item > i {
    color: #b59c61;
    font-size: 12px;
}

/* Performance Card */
.performance-card, .progress-card, .actions-card, .activity-card {
    padding: 24px;
}

.performance-stats, .progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.performance-stat, .progress-item {
    padding: 16px;
    background: #faf9f7;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value, .progress-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.progress-value.trending-up {
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-list, .recent-achievements {
    margin-top: 20px;
}

.quiz-item {
    padding: 16px;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-item:hover {
    border-color: #b59c61;
    background: #fff5f2;
}

.quiz-item-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.quiz-item-info p {
    margin: 0;
    font-size: 13px;
    color: #718096;
}

.quiz-item-score {
    font-size: 18px;
    font-weight: 700;
    color: #b59c61;
    min-width: 60px;
    text-align: right;
}

.no-data {
    padding: 40px 20px;
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
}

/* Schedule */
.schedule-card {
    grid-column: 1 / -1;
}

.view-all {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    background: white;
    color: #718096;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all:hover {
    border-color: #b59c61;
    color: #b59c61;
}

.schedule-timeline {
    padding: 0 24px 24px;
}

.schedule-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.schedule-time {
    font-size: 14px;
    font-weight: 500;
    color: #b59c61;
    min-width: 80px;
}

.schedule-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.schedule-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 4px;
}

.schedule-dot.green {
    background: #b59c61;
}

.schedule-dot.peach {
    background: #b59c61;
}

.schedule-info h4 {
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 4px;
}

.schedule-info p {
    font-size: 14px;
    color:#b59c61;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1002;
        background: white;
        color: #374151;
        border: none;
        padding: 12px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 18px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        background: #f7f7f7;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        transition: opacity 0.3s ease;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 16px 20px 16px 70px;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .search-bar {
        width: 100%;
        max-width: 300px;
        order: 3;
        flex-basis: 100%;
    }
    
    .header-right {
        gap: 12px;
        flex-wrap: wrap;
        margin-left: auto;
        justify-content: flex-end;
        width: 100%;
    }

    .notification {
        margin-left: auto;
    }
    
    .profile span {
        display: none;
    }
    
    .date {
        font-size: 12px;
    }
    
    .dashboard-content {
        padding: 16px;
    }
    
    .welcome-section h1 {
        font-size: 24px;
    }
    
    .welcome-section p {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card {
        margin-bottom: 16px;
    }
    
    .card-header {
        padding: 20px 20px 0;
    }
    
    .activity-list,
    .actions-list,
    .schedule-list {
        padding: 0 20px 20px;
    }
    
    .activity-item,
    .action-item,
    .schedule-item {
        padding: 12px 0;
    }
    
    .activity-content p,
    .action-content h4 {
        font-size: 14px;
    }
    
    .activity-detail,
    .action-content p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        top: 15px;
        left: 15px;
        padding: 10px;
        font-size: 16px;
    }
    
    .header {
        padding: 12px 15px 12px 60px;
    }
    
    .search-bar {
        height: 32px;
    }
    
    .search-bar input {
        font-size: 13px;
        padding: 6px 10px 6px 35px;
    }
    
    .dashboard-content {
        padding: 12px;
    }
    
    .welcome-section h1 {
        font-size: 20px;
    }
    
    .welcome-section p {
        font-size: 13px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .card-header h2 {
        font-size: 16px;
    }
    
    .activity-icon,
    .action-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .schedule-bar {
        width: 3px;
        height: 32px;
    }
}

/* Hide mobile toggle on desktop */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}
/* Schedule */
.schedule-list {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.schedule-item:hover {
    background: #fff5f2;
    transform: translateY(-1px);
}

.schedule-bar {
    width: 4px;
    height: 40px;
    border-radius: 2px;
}

.schedule-bar.math {
    background: linear-gradient(135deg, #b59c61, #b59c61);
}

.schedule-bar.reading {
    background: linear-gradient(135deg, #b59c61, #b59c61);
}

.schedule-bar.science {
    background: linear-gradient(135deg, #b59c61, #b59c61);
}

.schedule-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.schedule-content p {
    font-size: 14px;
    color: #b59c61;
}

.edit-link {
    color: #b59c61;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.edit-link:hover {
    color: #b59c61;
}

.view-all {
    color: #b59c61;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all:hover {
    color: #b59c61;
}

/* Premium Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}

.close:hover {
    color: #000;
}

.premium-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.premium-form h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.premium-form h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.premium-form .billing-info {
    margin-bottom: 24px;
}

.premium-form .form-group {
    margin-bottom: 12px;
}

.premium-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.premium-form .form-group input,
.premium-form .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background-color: white;
}

.premium-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.premium-form .payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.premium-plan-info {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.premium-plan-info h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.premium-plan-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.premium-plan-info .features ul {
    list-style: none;
    margin-bottom: 20px;
}

.premium-plan-info .features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6b7280;
}

.premium-plan-info .features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: #f59e0b;
    border-radius: 50%;
}

.premium-plan-info .billing-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.premium-plan-info .billing-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.premium-plan-info .switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.premium-plan-info .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.premium-plan-info .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3b82f6;
    transition: .4s;
    border-radius: 24px;
}

.premium-plan-info .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    right: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.premium-plan-info .price {
    margin-left: auto;
    font-weight: 600;
    color: #1a1a1a;
}

.premium-plan-info .charged-today {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.premium-plan-info .charged-today .amount {
    font-weight: 600;
    color: #1a1a1a;
}

.premium-plan-info .confirm-btn {
    width: 100%;
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}

.premium-plan-info .confirm-btn:hover {
    background-color: #374151;
}

.premium-plan-info .terms {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.premium-plan-info .terms a {
    color: #3b82f6;
    text-decoration: none;
}

@media (max-width: 768px) {
    .premium-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}

.tool-locked {
    position: relative;
    opacity: 0.82;
}

.tool-locked .cc-btn.disabled-link {
    pointer-events: auto;
    background: #d9d9d9;
    color: #5f5f5f;
}

.lock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #ffe3ad;
    color: #6d4f0f;
    padding: 4px 8px;
    border-radius: 999px;
}
