.account-page.light-mode {
    background: #f3f4f6;
    min-height: 100vh;
}

.account-page:not(.light-mode) {
    background: var(--darker-bg);
    min-height: 100vh;
}

.account-page.light-mode .navigation {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.account-page:not(.light-mode) .navigation {
    background: rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.account-page .nav-container {
    position: relative;
}

.account-page .nav-actions {
    position: relative;
    z-index: 10;
}

.account-page .logo {
    z-index: 10;
}

.account-page.light-mode .nav-link,
.account-page.light-mode .login-link {
    color: #1f2937;
}

.account-page:not(.light-mode) .nav-link,
.account-page:not(.light-mode) .login-link {
    color: rgba(255, 255, 255, 0.85);
}

.account-page.light-mode .nav-link:hover {
    color: #8b5cf6;
}

.account-page:not(.light-mode) .nav-link:hover {
    color: #ffffff;
}

.account-page.light-mode .user-profile-nav span {
    color: #1f2937;
}

.account-page:not(.light-mode) .user-profile-nav span {
    color: rgba(255, 255, 255, 0.85);
}

.account-page.light-mode .logo-image {
    filter: brightness(0) saturate(100%) invert(0);
}

.account-page:not(.light-mode) .logo-image {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

.account-layout {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

.account-page.light-mode .account-sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.account-page:not(.light-mode) .account-sidebar {
    width: 280px;
    background: rgba(20, 20, 25, 0.8);
    border-right: 1px solid rgba(139, 92, 246, 0.15);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
}

.sidebar-nav {
    padding: 24px 16px;
    flex: 1;
}

.account-page.light-mode .sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
}

.account-page:not(.light-mode) .sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
}

.account-page.light-mode .sidebar-item:hover {
    background: #f9fafb;
    color: #111827;
}

.account-page:not(.light-mode) .sidebar-item:hover {
    background: rgba(139, 92, 246, 0.08);
    color: rgba(255, 255, 255, 0.95);
}

.account-page.light-mode .sidebar-item.active,
.account-page:not(.light-mode) .sidebar-item.active {
    background: #8b5cf6;
    color: #ffffff;
}

.sidebar-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.account-page.light-mode .sidebar-footer {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
}

.account-page:not(.light-mode) .sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.logout-sidebar {
    color: #ef4444;
}

.account-page.light-mode .logout-sidebar:hover {
    background: #fee2e2;
    color: #dc2626;
}

.account-page:not(.light-mode) .logout-sidebar:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ff6464;
}

.account-page.light-mode .account-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: #f3f4f6;
}

.account-page:not(.light-mode) .account-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(20px);
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

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

.account-page.light-mode .section-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.account-page:not(.light-mode) .section-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.account-page.light-mode .section-header p {
    font-size: 16px;
    color: #6b7280;
}

.account-page:not(.light-mode) .section-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.account-page.light-mode .stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.account-page:not(.light-mode) .stat-card {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s;
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-page.light-mode .stat-content h3 {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 4px;
}

.account-page:not(.light-mode) .stat-content h3 {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-bottom: 4px;
}

.account-page.light-mode .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.account-page:not(.light-mode) .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.account-page.light-mode .content-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.account-page:not(.light-mode) .content-card {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

.account-page.light-mode .content-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

.account-page:not(.light-mode) .content-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.account-page.light-mode .empty-state p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 16px;
}

.account-page:not(.light-mode) .empty-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-bottom: 16px;
}

.browse-btn,
.add-payment-btn {
    background: #8b5cf6;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.browse-btn:hover,
.add-payment-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.profile-content {
    max-width: 900px;
}

.account-page.light-mode .profile-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e5e7eb;
}

.account-page:not(.light-mode) .profile-card {
    background: rgba(25, 25, 30, 0.6);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

.account-page.light-mode .profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.account-page:not(.light-mode) .profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
}

.account-page.light-mode .change-avatar-btn {
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-page:not(.light-mode) .change-avatar-btn {
    padding: 10px 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-page.light-mode .change-avatar-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.account-page:not(.light-mode) .change-avatar-btn:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    color: #ffffff;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.account-page.light-mode .form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.account-page:not(.light-mode) .form-group label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.account-page.light-mode .form-input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: all 0.2s;
}

.account-page:not(.light-mode) .form-input {
    padding: 12px 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(139, 92, 246, 0.08);
    transition: all 0.2s;
}

.account-page.light-mode .form-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.account-page:not(.light-mode) .form-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.12);
}

.account-page.light-mode .form-input:read-only {
    background: #f9fafb;
    color: #6b7280;
}

.account-page:not(.light-mode) .form-input:read-only {
    background: rgba(139, 92, 246, 0.05);
    color: rgba(255, 255, 255, 0.5);
}

.form-input::placeholder {
    color: #9ca3af;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.save-btn {
    padding: 12px 32px;
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
}

.save-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.courses-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.account-page.light-mode .filter-btn {
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #6b7280;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-page:not(.light-mode) .filter-btn {
    padding: 10px 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-page.light-mode .filter-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.account-page:not(.light-mode) .filter-btn:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.12);
    color: #ffffff;
}

.filter-btn.active {
    background: #8b5cf6;
    color: #ffffff;
    border-color: #8b5cf6;
}

.account-page.light-mode .courses-list,
.account-page.light-mode .purchases-list {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e5e7eb;
}

.account-page:not(.light-mode) .courses-list,
.account-page:not(.light-mode) .purchases-list {
    background: rgba(25, 25, 30, 0.6);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

.billing-content {
    max-width: 900px;
}

.account-page.light-mode .payment-methods {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e5e7eb;
}

.account-page:not(.light-mode) .payment-methods {
    background: rgba(25, 25, 30, 0.6);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

.account-page.light-mode .payment-methods h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
}

.account-page:not(.light-mode) .payment-methods h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
}

.security-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-page.light-mode .security-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e5e7eb;
}

.account-page:not(.light-mode) .security-card {
    background: rgba(25, 25, 30, 0.6);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

.account-page.light-mode .security-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.account-page:not(.light-mode) .security-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.account-page.light-mode .security-description {
    color: #6b7280;
    margin-bottom: 24px;
}

.account-page:not(.light-mode) .security-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

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

.enable-2fa-btn {
    padding: 12px 32px;
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
}

.enable-2fa-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.notifications-content {
    max-width: 900px;
}

.account-page.light-mode .notification-group {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e5e7eb;
}

.account-page:not(.light-mode) .notification-group {
    background: rgba(25, 25, 30, 0.6);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

.account-page.light-mode .notification-group h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
}

.account-page:not(.light-mode) .notification-group h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
}

.account-page.light-mode .notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.account-page:not(.light-mode) .notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

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

.account-page.light-mode .notification-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.account-page:not(.light-mode) .notification-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.account-page.light-mode .notification-info p {
    font-size: 14px;
    color: #6b7280;
}

.account-page:not(.light-mode) .notification-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #8b5cf6;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.settings-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-page.light-mode .settings-group {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e5e7eb;
}

.account-page:not(.light-mode) .settings-group {
    background: rgba(25, 25, 30, 0.6);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

.account-page.light-mode .settings-group h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
}

.account-page:not(.light-mode) .settings-group h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
}

.account-page.light-mode .setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.account-page:not(.light-mode) .setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

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

.account-page.light-mode .setting-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.account-page:not(.light-mode) .setting-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.account-page.light-mode .setting-info p {
    font-size: 14px;
    color: #6b7280;
}

.account-page:not(.light-mode) .setting-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.account-page.light-mode .setting-select {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    cursor: pointer;
    min-width: 200px;
}

.account-page:not(.light-mode) .setting-select {
    padding: 8px 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(139, 92, 246, 0.08);
    cursor: pointer;
    min-width: 200px;
}

.setting-select:focus {
    outline: none;
    border-color: #8b5cf6;
}

.danger-zone {
    border-color: #ef4444;
}

.danger-zone h2 {
    color: #ef4444;
}

.danger-actions {
    padding-top: 8px;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-page.light-mode .danger-item h3 {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.account-page:not(.light-mode) .danger-item h3 {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.account-page.light-mode .danger-item p {
    font-size: 14px;
    color: #6b7280;
}

.account-page:not(.light-mode) .danger-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.delete-account-btn {
    padding: 10px 24px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-account-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10003;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

body:not(.light-mode) .mobile-menu-toggle.active {
    background: rgba(139, 92, 246, 0.15);
}

body.light-mode .mobile-menu-toggle.active {
    background: rgba(139, 92, 246, 0.1);
}

.menu-bar {
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.light-mode) .menu-bar {
    background: #ffffff;
}

body.light-mode .menu-bar {
    background: #8b5cf6;
}

.mobile-menu-toggle.active .menu-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .menu-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

body:not(.light-mode) .mobile-menu-overlay {
    background: rgba(10, 1, 24, 0.98);
    backdrop-filter: blur(20px);
}

body.light-mode .mobile-menu-overlay {
    background: rgba(243, 244, 246, 0.98);
    backdrop-filter: blur(20px);
}

.mobile-menu-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 80px 24px 24px;
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.mobile-menu-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-menu-header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

body:not(.light-mode) .mobile-menu-header {
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

body.light-mode .mobile-menu-header {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-header.logged-out-header {
    display: none;
}

body:not(.light-mode) .mobile-menu-header.logged-out-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

body.light-mode .mobile-menu-header.logged-out-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

body:not(.light-mode) .mobile-menu-header.logged-out-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

body.light-mode .mobile-menu-header.logged-out-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.mobile-user-info {
    flex: 1;
}

body:not(.light-mode) .mobile-user-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

body.light-mode .mobile-user-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

body:not(.light-mode) .mobile-user-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

body.light-mode .mobile-user-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.mobile-menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding: 8px 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-overlay.active .mobile-menu-link {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-menu-nav .mobile-menu-link:nth-child(1) {
    transition-delay: 0.15s;
}

.mobile-menu-overlay.active .mobile-menu-nav .mobile-menu-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-menu-nav .mobile-menu-link:nth-child(3) {
    transition-delay: 0.25s;
}

.mobile-menu-overlay.active .mobile-menu-nav .mobile-menu-link:nth-child(4) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-menu-nav .mobile-menu-link:nth-child(5) {
    transition-delay: 0.35s;
}

.mobile-menu-overlay.active .mobile-menu-footer .mobile-menu-link:nth-child(1) {
    transition-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-menu-footer .mobile-menu-link:nth-child(2) {
    transition-delay: 0.45s;
}

body:not(.light-mode) .mobile-menu-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.light-mode .mobile-menu-link {
    color: #1f2937 !important;
}

body:not(.light-mode) .mobile-menu-link:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #ffffff !important;
}

body.light-mode .mobile-menu-link:hover {
    background: #f9fafb;
    color: #111827 !important;
}

body:not(.light-mode) .mobile-menu-link.active {
    background: rgba(139, 92, 246, 0.15);
    color: #ffffff !important;
}

body.light-mode .mobile-menu-link.active {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6 !important;
}

body:not(.light-mode) .mobile-menu-link svg {
    color: rgba(255, 255, 255, 0.85);
}

body.light-mode .mobile-menu-link svg {
    color: #1f2937;
}

.mobile-menu-link:active {
    transform: scale(0.98);
}

.mobile-menu-link svg {
    flex-shrink: 0;
}

.mobile-menu-footer {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(10px);
}

.mobile-menu-overlay.active .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
}

body:not(.light-mode) .mobile-menu-footer {
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

body.light-mode .mobile-menu-footer {
    border-top: 1px solid #e5e7eb;
}

body:not(.light-mode) .mobile-logout-btn {
    color: #ff6464 !important;
}

body.light-mode .mobile-logout-btn {
    color: #ef4444 !important;
}

body:not(.light-mode) .mobile-logout-btn svg {
    color: #ff6464;
}

body.light-mode .mobile-logout-btn svg {
    color: #ef4444;
}

body:not(.light-mode) .mobile-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ff8080 !important;
}

body.light-mode .mobile-logout-btn:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.mobile-start-now-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: #ffffff !important;
}

.mobile-start-now-btn svg {
    color: #ffffff !important;
}

.mobile-start-now-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
}

.mobile-account-nav-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    justify-content: center;
}

body:not(.light-mode) .mobile-account-nav-toggle {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #ffffff;
}

body.light-mode .mobile-account-nav-toggle {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
}

.mobile-account-nav-toggle:active {
    transform: scale(0.95);
}

.mobile-account-nav-toggle svg {
    display: block;
}

.mobile-account-nav-panel {
    display: none;
    position: fixed;
    top: 70px;
    left: -80px;
    height: calc(100vh - 70px);
    width: 72px;
    z-index: 998;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
}

.mobile-account-nav-panel.active {
    left: 0;
}

body:not(.light-mode) .mobile-account-nav-panel {
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(139, 92, 246, 0.2);
}

body.light-mode .mobile-account-nav-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid #e5e7eb;
}

.mobile-account-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    gap: 8px;
    height: 100%;
}

.mobile-account-nav-item {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

body:not(.light-mode) .mobile-account-nav-item {
    color: rgba(255, 255, 255, 0.7);
}

body.light-mode .mobile-account-nav-item {
    color: #6b7280;
}

body:not(.light-mode) .mobile-account-nav-item:hover,
body:not(.light-mode) .mobile-account-nav-item.active {
    background: rgba(139, 92, 246, 0.15);
    color: #ffffff;
}

body.light-mode .mobile-account-nav-item:hover,
body.light-mode .mobile-account-nav-item.active {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.mobile-account-nav-item:active {
    transform: scale(0.95);
}

.mobile-account-nav-item svg {
    flex-shrink: 0;
}

.mobile-dashboard-nav-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    justify-content: center;
}

body:not(.light-mode) .mobile-dashboard-nav-toggle {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #ffffff;
}

body.light-mode .mobile-dashboard-nav-toggle {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
}

.mobile-dashboard-nav-toggle:active {
    transform: scale(0.95);
}

.mobile-dashboard-nav-toggle svg {
    display: block;
}

.mobile-dashboard-nav-panel {
    display: none;
    position: fixed;
    top: 70px;
    left: -80px;
    height: calc(100vh - 70px);
    width: 72px;
    z-index: 998;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
}

.mobile-dashboard-nav-panel.active {
    left: 0;
}

body:not(.light-mode) .mobile-dashboard-nav-panel {
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(139, 92, 246, 0.2);
}

body.light-mode .mobile-dashboard-nav-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid #e5e7eb;
}

.mobile-dashboard-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    gap: 8px;
    height: 100%;
}

.mobile-dashboard-nav-item {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

body:not(.light-mode) .mobile-dashboard-nav-item {
    color: rgba(255, 255, 255, 0.7);
}

body.light-mode .mobile-dashboard-nav-item {
    color: #6b7280;
}

body:not(.light-mode) .mobile-dashboard-nav-item:hover,
body:not(.light-mode) .mobile-dashboard-nav-item.active {
    background: rgba(139, 92, 246, 0.15);
    color: #ffffff;
}

body.light-mode .mobile-dashboard-nav-item:hover,
body.light-mode .mobile-dashboard-nav-item.active {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.mobile-dashboard-nav-item:active {
    transform: scale(0.95);
}

.mobile-dashboard-nav-item svg {
    flex-shrink: 0;
}

@media (min-width: 769px) {
    body.account-page.light-mode .logo-image.logo-default {
        opacity: 0;
        z-index: 1;
    }

    body.account-page.light-mode .logo-image.logo-hover {
        opacity: 1;
        z-index: 2;
    }

    body.account-page.light-mode .logo-container:hover .logo-image.logo-default {
        opacity: 1;
    }

    body.account-page.light-mode .logo-container:hover .logo-image.logo-hover {
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    .account-layout {
        flex-direction: column;
    }

    .account-page.light-mode .account-sidebar,
    .account-page:not(.light-mode) .account-sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 80px;
        z-index: 999;
        border-right: none;
    }

    .account-page.light-mode .account-sidebar {
        border-bottom: 1px solid #e5e7eb;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .account-page:not(.light-mode) .account-sidebar {
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
        background: rgba(20, 20, 25, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px 16px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .sidebar-item {
        margin-bottom: 0;
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 16px;
    }

    .sidebar-item span {
        display: inline;
    }

    .sidebar-footer {
        display: none;
    }

    .account-main {
        padding: 20px 16px;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .section-header h1 {
        font-size: 24px !important;
    }

    .section-header p {
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    .navigation {
        padding: 1rem 0;
        position: fixed !important;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 10002 !important;
    }

    .account-page:not(.light-mode) .navigation {
        background: rgba(10, 1, 24, 0.95) !important;
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    }

    .account-page.light-mode .navigation {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px);
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-container {
        padding: 0 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative;
        max-width: none !important;
    }

    .logo {
        z-index: 10003 !important;
        position: relative;
        order: 1;
    }

    .logo-container {
        height: 38px !important;
        position: relative;
    }

    .logo-image {
        height: 38px !important;
        width: auto !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .logo-image.logo-default {
        display: block !important;
        opacity: 1 !important;
        z-index: 2 !important;
    }

    .logo-image.logo-hover {
        display: none !important;
        opacity: 0 !important;
        z-index: 1 !important;
    }

    body.light-mode .logo-image.logo-default {
        display: none !important;
        opacity: 0 !important;
        z-index: 1 !important;
    }

    body.light-mode .logo-image.logo-hover {
        display: block !important;
        opacity: 1 !important;
        z-index: 2 !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        z-index: 10003 !important;
        order: 2;
    }

    .nav-links {
        display: none !important;
    }

    .nav-actions {
        display: none !important;
    }

    .courses-nav-btn {
        display: none !important;
    }

    .user-menu-wrapper {
        display: none !important;
    }

    .account-layout {
        padding-top: 70px;
    }

    .account-page.light-mode .account-sidebar,
    .account-page:not(.light-mode) .account-sidebar {
        display: none !important;
    }

    .mobile-dashboard-nav-toggle,
    .mobile-account-nav-toggle {
        display: flex !important;
    }

    .mobile-dashboard-nav-panel,
    .mobile-account-nav-panel {
        display: block !important;
    }

    .account-main {
        padding: 16px 12px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h1 {
        font-size: 22px !important;
        margin-bottom: 6px !important;
    }

    .section-header p {
        font-size: 13px !important;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .account-page.light-mode .stat-card,
    .account-page:not(.light-mode) .stat-card {
        padding: 16px;
        gap: 12px;
        -webkit-tap-highlight-color: transparent;
    }

    .stat-card:active {
        transform: translateY(0);
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon svg {
        width: 28px;
        height: 28px;
    }

    .stat-content h3 {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }

    .stat-number {
        font-size: 24px !important;
    }

    .dashboard-content {
        gap: 16px;
    }

    .account-page.light-mode .content-card,
    .account-page:not(.light-mode) .content-card {
        padding: 16px;
        border-radius: 10px;
    }

    .content-card h2 {
        font-size: 18px !important;
        margin-bottom: 16px !important;
    }

    .empty-state {
        padding: 32px 16px;
    }

    .empty-state svg {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .empty-state p {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }

    .browse-btn,
    .add-payment-btn {
        padding: 12px 24px;
        font-size: 13px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    .browse-btn:active,
    .add-payment-btn:active {
        transform: scale(0.98);
    }

    .dashboard-courses-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 16px;
    }

    .dashboard-course-card {
        -webkit-tap-highlight-color: transparent;
    }

    .dashboard-course-card:active {
        transform: translateY(-2px);
    }

    .dashboard-course-card .course-thumbnail {
        height: 140px;
    }

    .dashboard-course-card .course-info {
        padding: 12px;
    }

    .dashboard-course-card h3 {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }

    .course-progress-bar {
        height: 5px;
        margin-bottom: 6px;
    }

    .progress-text {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    .continue-btn {
        padding: 10px 16px;
        font-size: 12px;
        min-height: 40px;
        -webkit-tap-highlight-color: transparent;
    }

    .continue-btn:active {
        transform: translateX(0);
        opacity: 0.8;
    }

    .activity-list {
        margin-top: 16px;
    }

    .activity-item {
        padding: 12px !important;
        margin-bottom: 8px !important;
        border-radius: 8px !important;
        -webkit-tap-highlight-color: transparent;
    }

    .activity-item:active {
        transform: translateX(2px);
    }

    .activity-icon {
        width: 32px;
        height: 32px;
    }

    .activity-icon svg {
        width: 18px;
        height: 18px;
    }

    .activity-title {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }

    .activity-time {
        font-size: 11px !important;
    }

    .courses-filter {
        display: flex;
        gap: 8px;
        margin-bottom: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .courses-filter::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 40px;
        -webkit-tap-highlight-color: transparent;
    }

    .filter-btn:active {
        transform: scale(0.96);
    }

    .account-page.light-mode .courses-list,
    .account-page:not(.light-mode) .courses-list,
    .account-page.light-mode .purchases-list,
    .account-page:not(.light-mode) .purchases-list {
        padding: 16px;
        border-radius: 10px;
    }

    .user-courses-grid {
        gap: 12px;
        margin-top: 16px;
    }

    .user-course-card {
        flex-direction: column !important;
        border-radius: 10px !important;
        -webkit-tap-highlight-color: transparent;
    }

    .user-course-card:active {
        transform: translateY(-2px);
    }
    
    .user-course-card .course-thumbnail {
        width: 100% !important;
        min-height: 160px !important;
    }

    .user-course-card .course-details {
        padding: 16px !important;
    }

    .user-course-card h3 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }

    .course-description {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }

    .course-meta {
        margin-top: 6px !important;
        margin-bottom: 12px !important;
        gap: 10px !important;
        flex-wrap: wrap;
    }

    .completed-badge {
        padding: 3px 10px;
        font-size: 11px;
    }

    .course-actions {
        gap: 10px;
        margin-top: 8px;
        flex-wrap: wrap;
    }

    .course-action-btn {
        padding: 11px 18px !important;
        font-size: 13px !important;
        flex: 1;
        min-width: 120px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    .course-action-btn:active {
        transform: scale(0.98);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .setting-item,
    .danger-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .setting-select {
        width: 100%;
    }

    .profile-avatar-section {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        padding-bottom: 24px !important;
    }

    .profile-avatar-large {
        width: 80px !important;
        height: 80px !important;
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    .logo-container {
        height: 32px !important;
    }

    .logo-image {
        height: 32px !important;
    }

    .sidebar-nav {
        padding: 6px 8px;
    }

    .sidebar-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .sidebar-item svg {
        width: 16px;
        height: 16px;
    }

    .account-main {
        padding: 12px 8px;
    }

    .section-header h1 {
        font-size: 20px !important;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 14px !important;
    }

    .stat-icon {
        width: 44px !important;
        height: 44px !important;
    }

    .stat-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .stat-content h3 {
        font-size: 12px !important;
    }

    .stat-number {
        font-size: 22px !important;
    }

    .content-card {
        padding: 14px !important;
    }

    .content-card h2 {
        font-size: 16px !important;
    }

    .empty-state {
        padding: 24px 12px;
    }

    .empty-state svg {
        width: 40px;
        height: 40px;
    }

    .user-course-card .course-thumbnail {
        min-height: 140px !important;
    }

    .course-action-btn {
        width: 100%;
        min-width: 100%;
    }
}

.avatar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

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

.account-page.light-mode .avatar-modal .modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.account-page:not(.light-mode) .avatar-modal .modal-content {
    position: relative;
    background: rgba(25, 25, 30, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    z-index: 1;
}

.account-page.light-mode .avatar-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.account-page:not(.light-mode) .avatar-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.account-page.light-mode .avatar-modal .modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.account-page:not(.light-mode) .avatar-modal .modal-close:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
}

.account-page.light-mode .avatar-modal h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.account-page:not(.light-mode) .avatar-modal h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.account-page.light-mode .modal-subtitle {
    color: #6b7280;
    margin-bottom: 24px;
}

.account-page:not(.light-mode) .modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.account-page.light-mode .upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.account-page:not(.light-mode) .upload-area {
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.upload-area.drag-over {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
}

.upload-area svg {
    margin: 0 auto 16px;
}

.account-page.light-mode .upload-text {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.account-page:not(.light-mode) .upload-text {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}

.account-page.light-mode .upload-or {
    color: #9ca3af;
    margin: 16px 0;
    font-size: 14px;
}

.account-page:not(.light-mode) .upload-or {
    color: rgba(255, 255, 255, 0.6);
    margin: 16px 0;
    font-size: 14px;
}

.browse-file-btn {
    padding: 10px 24px;
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.browse-file-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.account-page.light-mode .upload-hint {
    color: #9ca3af;
    font-size: 13px;
    margin-top: 12px;
}

.account-page:not(.light-mode) .upload-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 12px;
}

.preview-area {
    text-align: center;
}

.preview-area.hidden {
    display: none;
}

.account-page.light-mode .preview-image-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.account-page:not(.light-mode) .preview-image-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.preview-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.scale-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.scale-controls input[type="range"] {
    width: 200px;
    height: 6px;
    background: linear-gradient(to right, #8b5cf6 0%, #8b5cf6 50%, #e5e7eb 50%, #e5e7eb 100%);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.scale-controls input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: #8b5cf6;
}

.scale-controls input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #8b5cf6;
}

.scale-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: 3px solid #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.scale-controls input[type="range"]::-webkit-slider-thumb:hover {
    border-color: #7c3aed;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.scale-controls input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: 3px solid #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.scale-controls input[type="range"]::-moz-range-thumb:hover {
    border-color: #7c3aed;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

#scaleValue {
    font-size: 14px;
    font-weight: 600;
    color: #8b5cf6;
    min-width: 50px;
}

.preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.account-page.light-mode .change-image-btn {
    padding: 10px 24px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-page:not(.light-mode) .change-image-btn {
    padding: 10px 24px;
    background: rgba(139, 92, 246, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-page.light-mode .change-image-btn:hover {
    background: #e5e7eb;
}

.account-page:not(.light-mode) .change-image-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #ffffff;
}

.upload-avatar-btn {
    padding: 10px 24px;
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-avatar-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.account-page.light-mode .notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 20000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.account-page:not(.light-mode) .notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 20000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.05);
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.notification.info {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.05);
}

.delete-account-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.delete-account-modal.active {
    display: flex;
}

.delete-warning {
    color: #ef4444 !important;
    font-weight: 600;
}

.account-page.light-mode .reauth-message {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.account-page:not(.light-mode) .reauth-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
}

.delete-account-form {
    margin-top: 24px;
}

.delete-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.account-page.light-mode .cancel-delete-btn {
    flex: 1;
    padding: 12px 24px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-page:not(.light-mode) .cancel-delete-btn {
    flex: 1;
    padding: 12px 24px;
    background: rgba(139, 92, 246, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-page.light-mode .cancel-delete-btn:hover {
    background: #e5e7eb;
}

.account-page:not(.light-mode) .cancel-delete-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #ffffff;
}

.confirm-delete-btn {
    flex: 1;
    padding: 12px 24px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-delete-btn:hover {
    background: #dc2626;
}

.confirm-delete-btn:disabled {
    background: #fca5a5;
    cursor: not-allowed;
}

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

.account-page.light-mode .dashboard-course-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    cursor: pointer;
}

.account-page:not(.light-mode) .dashboard-course-card {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.dashboard-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.dashboard-course-card .course-thumbnail {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dashboard-course-card .course-info {
    padding: 16px;
}

.account-page.light-mode .dashboard-course-card h3 {
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.account-page:not(.light-mode) .dashboard-course-card h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.course-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.course-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6d28d9);
    transition: width 0.3s ease;
}

.account-page.light-mode .progress-text {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 12px;
    display: block;
}

.account-page:not(.light-mode) .progress-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 12px;
    display: block;
}

.continue-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #8b5cf6;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.continue-btn:hover {
    background: #7c3aed;
    transform: translateX(2px);
}

.activity-list {
    margin-top: 20px;
}

.account-page.light-mode .activity-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.account-page:not(.light-mode) .activity-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.activity-item:hover {
    transform: translateX(4px);
}

.activity-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 6px;
}

.activity-content {
    flex: 1;
}

.account-page.light-mode .activity-title {
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.account-page:not(.light-mode) .activity-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.account-page.light-mode .activity-time {
    color: #6b7280;
    font-size: 12px;
}

.account-page:not(.light-mode) .activity-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.user-courses-grid {
    display: grid;
    gap: 24px;
    margin-top: 20px;
}

.account-page.light-mode .user-course-card {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.account-page:not(.light-mode) .user-course-card {
    display: flex;
    gap: 20px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.user-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.user-course-card .course-thumbnail {
    width: 200px;
    min-height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

.user-course-card .course-details {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.account-page.light-mode .user-course-card h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.account-page:not(.light-mode) .user-course-card h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.account-page.light-mode .course-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.account-page:not(.light-mode) .course-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.completed-badge {
    padding: 4px 12px;
    background: #10b981;
    color: #ffffff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.course-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.course-action-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

.course-action-btn.primary {
    background: #8b5cf6;
    color: #ffffff;
}

.course-action-btn.primary:hover {
    background: #7c3aed;
}

.account-page.light-mode .course-action-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.account-page:not(.light-mode) .course-action-btn.secondary {
    background: rgba(139, 92, 246, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.account-page.light-mode .course-action-btn.secondary:hover {
    background: #e5e7eb;
}

.account-page:not(.light-mode) .course-action-btn.secondary:hover {
    background: rgba(139, 92, 246, 0.2);
}

@media (max-width: 768px) {
    .user-course-card {
        flex-direction: column;
    }
    
    .user-course-card .course-thumbnail {
        width: 100%;
        min-height: 180px;
    }
    
    .dashboard-courses-grid {
        grid-template-columns: 1fr;
    }
}

