/**
 * E3 Learning - Account Pages Styles
 * Form inputs, user menu, toasts, and account-specific components
 * Enhanced with V2 design system animations and effects
 */

/* ============================================
   CSS VARIABLES (extends education-v2.css)
   ============================================ */

:root {
    --v2-input-bg: rgba(30, 41, 59, 0.6);
    --v2-input-bg-focus: rgba(30, 41, 59, 0.9);
    --v2-input-border: var(--v2-border-subtle, #334155);
    --v2-input-border-focus: var(--v2-accent-blue, #3b82f6);
    --v2-input-text: var(--v2-text-primary, #f1f5f9);
    --v2-input-placeholder: var(--v2-text-muted, #94a3b8);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes auth-gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes auth-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes auth-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes auth-fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes auth-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   FORM CONTAINER
   ============================================ */

.v2-auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Animated gradient background matching main site */
    background: linear-gradient(-45deg, #1e3a8a, #0f172a, #1e293b, #3b82f6);
    background-size: 400% 400%;
    animation: auth-gradientShift 15s ease infinite;
    position: relative;
    overflow-x: hidden;
    /* Font matching main site */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
}

/* Header inside auth container — no sticky, just fixed top */
.v2-auth-container .v2-header {
    position: relative;
    flex-shrink: 0;
}

/* Universal box-sizing fix */
.v2-auth-container *,
.v2-auth-container *::before,
.v2-auth-container *::after {
    box-sizing: border-box;
}

/* Animated pattern overlay */
.v2-auth-container::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* Floating orbs for depth */
.v2-auth-container::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    animation: auth-pulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Additional floating orbs via pseudo-elements on main */
.v2-auth-main::before {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -50px;
    animation: auth-pulse 8s ease-in-out infinite 2s;
    pointer-events: none;
    z-index: 0;
}

.v2-auth-main::after {
    content: '';
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 40%;
    left: 10%;
    animation: auth-pulse 7s ease-in-out infinite 1s;
    pointer-events: none;
    z-index: 0;
}

.v2-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.v2-auth-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(26, 36, 54, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--v2-radius-xl, 16px);
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    margin: 0 1rem;
    animation: auth-fadeInUp 0.6s ease-out;
}

/* Top gradient accent line */
.v2-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--v2-accent-blue, #3b82f6) 0%, 
        var(--v2-accent-purple, #8b5cf6) 50%, 
        var(--v2-accent-blue, #3b82f6) 100%);
    background-size: 200% 100%;
    animation: auth-shimmer 3s linear infinite;
}

.v2-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Logo with image support */
.v2-auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--v2-text-primary, #f1f5f9);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.v2-auth-logo:hover {
    transform: scale(1.05);
}

.v2-auth-logo img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.v2-auth-logo span:first-child {
    background: linear-gradient(135deg, var(--v2-accent-blue, #3b82f6), var(--v2-accent-purple, #8b5cf6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v2-auth-logo span:last-child {
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v2-auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v2-text-primary, #f1f5f9);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.v2-auth-subtitle {
    font-size: 0.95rem;
    color: var(--v2-text-muted, #94a3b8);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   FORM INPUTS
   ============================================ */

/* Ensure form doesn't overflow */
.v2-auth-card form {
    width: 100%;
    max-width: 100%;
}

.v2-form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.v2-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--v2-text-primary, #f1f5f9);
    font-weight: 600;
    font-size: 0.875rem;
}

.v2-label--optional::after {
    content: ' (optional)';
    font-weight: 400;
    color: var(--v2-text-muted, #94a3b8);
}

.v2-input {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1rem;
    background: var(--v2-input-bg);
    border: 1px solid var(--v2-input-border);
    border-radius: var(--v2-radius-lg, 12px);
    color: var(--v2-input-text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.15s ease;
    outline: none;
}

.v2-input::placeholder {
    color: var(--v2-input-placeholder);
}

.v2-input:hover {
    border-color: var(--v2-text-muted, #94a3b8);
}

.v2-input:focus {
    border-color: var(--v2-input-border-focus);
    background: var(--v2-input-bg-focus);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.2),
        0 0 20px rgba(59, 130, 246, 0.1);
}

.v2-input--error {
    border-color: var(--v2-accent-red, #ef4444);
}

.v2-input--error:focus {
    border-color: var(--v2-accent-red, #ef4444);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Input with icon */
.v2-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.v2-input-wrapper .v2-input {
    padding-left: 2.75rem;
}

.v2-input-wrapper .v2-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v2-text-muted, #94a3b8);
    pointer-events: none;
}

.v2-input-wrapper .v2-input-icon i,
.v2-input-wrapper .v2-input-icon svg {
    width: 18px;
    height: 18px;
}

.v2-input-wrapper .v2-input:focus + .v2-input-icon,
.v2-input-wrapper .v2-input:focus ~ .v2-input-icon {
    color: var(--v2-accent-blue, #3b82f6);
}

/* Password toggle */
.v2-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--v2-text-muted, #94a3b8);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.v2-password-toggle:hover {
    color: var(--v2-text-primary, #f1f5f9);
}

.v2-password-toggle i,
.v2-password-toggle svg {
    width: 18px;
    height: 18px;
}

/* Select input */
.v2-select {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    background: var(--v2-input-bg);
    border: 1px solid var(--v2-input-border);
    border-radius: var(--v2-radius-lg, 12px);
    color: var(--v2-input-text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.15s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.v2-select:hover {
    border-color: var(--v2-text-muted, #94a3b8);
}

.v2-select:focus {
    border-color: var(--v2-input-border-focus);
    background-color: var(--v2-input-bg-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.v2-select option {
    background: #1e293b;
    color: var(--v2-text-primary, #f1f5f9);
}

/* Checkbox */
.v2-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.v2-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--v2-accent-blue, #3b82f6);
    cursor: pointer;
}

.v2-checkbox-label {
    font-size: 0.875rem;
    color: var(--v2-text-secondary, #e2e8f0);
    cursor: pointer;
}

.v2-checkbox-label a {
    color: var(--v2-accent-blue, #3b82f6);
    text-decoration: none;
}

.v2-checkbox-label a:hover {
    text-decoration: underline;
}

/* Form error message */
.v2-form-error {
    color: var(--v2-accent-red, #ef4444);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.v2-form-error i,
.v2-form-error svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Form hint */
.v2-form-hint {
    color: var(--v2-text-muted, #94a3b8);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.v2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--v2-radius-lg, 12px);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    border: none;
    outline: none;
}

.v2-btn i,
.v2-btn svg {
    width: 18px;
    height: 18px;
}

.v2-btn--primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on hover */
.v2-btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.v2-btn--primary:hover::before {
    left: 100%;
}

.v2-btn--primary:hover {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
}

.v2-btn--primary:active {
    transform: translateY(0);
}

.v2-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.v2-btn--secondary {
    background: transparent;
    border: 1px solid var(--v2-border-subtle, #334155);
    color: var(--v2-text-secondary, #e2e8f0);
}

.v2-btn--secondary:hover {
    border-color: var(--v2-accent-blue, #3b82f6);
    color: var(--v2-text-primary, #f1f5f9);
    background: rgba(59, 130, 246, 0.1);
}

.v2-btn--danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

.v2-btn--danger:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.v2-btn--danger:active {
    transform: translateY(0);
}

.v2-btn--ghost {
    background: transparent;
    color: var(--v2-text-muted, #94a3b8);
    padding: 0.5rem 1rem;
}

.v2-btn--ghost:hover {
    color: var(--v2-accent-blue, #3b82f6);
    background: rgba(59, 130, 246, 0.1);
}

.v2-btn--full {
    width: 100%;
}

.v2-btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.v2-btn--loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: v2-spin 0.8s linear infinite;
}

@keyframes v2-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   MODAL COMPONENT
   ============================================ */

.v2-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.v2-modal--open {
    display: flex;
}

.v2-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.v2-modal__content {
    position: relative;
    background: var(--v2-bg-secondary, #1e293b);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    box-sizing: border-box;
}

.v2-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
    flex-shrink: 0;
}

.v2-modal__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--v2-text-primary, #f1f5f9);
    margin: 0;
}

.v2-modal__title i,
.v2-modal__title svg {
    width: 24px;
    height: 24px;
    color: var(--v2-accent-blue, #3b82f6);
}

.v2-modal__close {
    padding: 0.5rem;
    background: rgba(100, 116, 139, 0.2);
    border: none;
    border-radius: 8px;
    color: var(--v2-text-muted, #94a3b8);
    cursor: pointer;
    transition: all 0.2s;
}

.v2-modal__close:hover {
    background: rgba(100, 116, 139, 0.3);
    color: var(--v2-text-primary, #f1f5f9);
}

.v2-modal__close i,
.v2-modal__close svg {
    width: 20px;
    height: 20px;
}

.v2-modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.v2-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    flex-shrink: 0;
    background: var(--v2-bg-secondary, #1e293b);
}

/* ============================================
   ALERT/MESSAGE BOXES
   ============================================ */

.v2-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--v2-radius-lg, 12px);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.v2-alert i,
.v2-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.v2-alert__content {
    flex: 1;
}

.v2-alert__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.v2-alert__message {
    font-size: 0.9rem;
    opacity: 0.9;
}

.v2-alert--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.v2-alert--success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.v2-alert--warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.v2-alert--info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* ============================================
   AUTH FOOTER LINKS
   ============================================ */

.v2-auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--v2-text-muted, #94a3b8);
}

.v2-auth-footer a {
    color: var(--v2-accent-blue, #3b82f6);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.v2-auth-footer a:hover {
    color: var(--v2-accent-blue-light, #60a5fa);
    text-decoration: underline;
}

/* Back to home link */
.v2-auth-back {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--v2-radius-full, 9999px);
    transition: all 0.3s ease;
    z-index: 100;
}

.v2-auth-back:hover {
    color: #fff;
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(-4px);
}

.v2-auth-back i,
.v2-auth-back svg {
    width: 16px;
    height: 16px;
}

.v2-auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.v2-auth-links a {
    color: var(--v2-text-muted, #94a3b8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.v2-auth-links a:hover {
    color: var(--v2-accent-blue, #3b82f6);
}

/* ============================================
   HEADER USER MENU
   ============================================ */

.v2-header__auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.v2-header__auth-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: var(--v2-radius-lg, 12px);
    transition: all 0.15s ease;
}

.v2-header__auth-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.v2-header__auth-link i,
.v2-header__auth-link svg {
    width: 16px;
    height: 16px;
}

.v2-header__auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--v2-radius-lg, 12px);
    transition: all 0.15s ease;
}

.v2-header__auth-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    transform: translateY(-1px);
}

.v2-header__auth-btn i,
.v2-header__auth-btn svg {
    width: 16px;
    height: 16px;
}

/* User dropdown */
.v2-header__user {
    position: relative;
}

.v2-header__user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--v2-radius-full, 9999px);
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.v2-header__user-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.v2-header__user-btn i,
.v2-header__user-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.v2-header__avatar-placeholder {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.v2-header__username {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-header__user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: linear-gradient(145deg, #1e293b, #1a2436);
    border: 1px solid var(--v2-border-subtle, #334155);
    border-radius: var(--v2-radius-lg, 12px);
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.v2-header__user-dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.v2-header__dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--v2-text-secondary, #e2e8f0);
    text-decoration: none;
    border-radius: var(--v2-radius-md, 8px);
    font-size: 0.875rem;
    transition: all 0.15s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.v2-header__dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--v2-text-primary, #f1f5f9);
}

.v2-header__dropdown-item i,
.v2-header__dropdown-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.v2-header__dropdown-item--danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.v2-header__dropdown-divider {
    border: none;
    border-top: 1px solid var(--v2-border-subtle, #334155);
    margin: 0.5rem 0;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.v2-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    min-width: 300px;
    max-width: 400px;
    background: linear-gradient(145deg, #1e293b, #1a2436);
    border: 1px solid var(--v2-border-subtle, #334155);
    border-radius: var(--v2-radius-lg, 12px);
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.v2-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.v2-toast--hiding {
    opacity: 0;
    transform: translateY(20px);
}

.v2-toast__content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--v2-text-secondary, #e2e8f0);
}

.v2-toast__content i,
.v2-toast__content svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.v2-toast__close {
    background: none;
    border: none;
    color: var(--v2-text-muted, #94a3b8);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.v2-toast__close:hover {
    color: var(--v2-text-primary, #f1f5f9);
    background: rgba(255, 255, 255, 0.1);
}

.v2-toast__close i,
.v2-toast__close svg {
    width: 16px;
    height: 16px;
}

.v2-toast--success {
    border-color: rgba(16, 185, 129, 0.3);
}

.v2-toast--success .v2-toast__content i,
.v2-toast--success .v2-toast__content svg {
    color: #10b981;
}

.v2-toast--error {
    border-color: rgba(239, 68, 68, 0.3);
}

.v2-toast--error .v2-toast__content i,
.v2-toast--error .v2-toast__content svg {
    color: #ef4444;
}

.v2-toast--warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.v2-toast--warning .v2-toast__content i,
.v2-toast--warning .v2-toast__content svg {
    color: #f59e0b;
}

.v2-toast--info {
    border-color: rgba(59, 130, 246, 0.3);
}

.v2-toast--info .v2-toast__content i,
.v2-toast--info .v2-toast__content svg {
    color: #3b82f6;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .v2-auth-card {
        padding: 1.5rem 1.25rem;
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        border-radius: var(--v2-radius-lg, 12px);
    }
    
    .v2-auth-main {
        padding: 1rem 0.5rem;
    }
    
    .v2-input,
    .v2-select {
        font-size: 16px; /* Prevent iOS zoom on focus */
        padding: 0.75rem 1rem;
    }
    
    .v2-input-wrapper .v2-input {
        padding-left: 2.5rem;
    }
    
    .v2-auth-back {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .v2-auth-back span {
        display: none;
    }
    
    .v2-auth-title {
        font-size: 1.3rem;
    }
    
    .v2-auth-subtitle {
        font-size: 0.875rem;
    }
    
    .v2-auth-logo img {
        height: 40px;
    }

    .v2-header__auth {
        gap: 0.5rem;
    }

    .v2-header__auth-link span,
    .v2-header__auth-btn span {
        display: none;
    }

    .v2-header__auth-link,
    .v2-header__auth-btn {
        padding: 0.5rem;
    }

    .v2-header__username {
        display: none;
    }

    .v2-header__user-btn {
        padding: 0.25rem;
    }

    .v2-toast {
        left: 1rem;
        right: 1rem;
        min-width: auto;
        max-width: none;
        bottom: 1rem;
    }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 380px) {
    .v2-auth-card {
        padding: 1.25rem 1rem;
    }
    
    .v2-auth-title {
        font-size: 1.2rem;
    }
    
    .v2-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   PASSWORD STRENGTH INDICATOR
   ============================================ */

.v2-password-strength {
    margin-top: 0.5rem;
}

.v2-password-strength__bar {
    height: 4px;
    background: var(--v2-bg-secondary, #1e293b);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.375rem;
}

.v2-password-strength__fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.v2-password-strength__fill--weak {
    width: 25%;
    background: #ef4444;
}

.v2-password-strength__fill--fair {
    width: 50%;
    background: #f59e0b;
}

.v2-password-strength__fill--good {
    width: 75%;
    background: #3b82f6;
}

.v2-password-strength__fill--strong {
    width: 100%;
    background: #10b981;
}

.v2-password-strength__text {
    font-size: 0.75rem;
    color: var(--v2-text-muted, #94a3b8);
}

/* ============================================
   VERIFICATION PAGE STYLES
   ============================================ */

.v2-verify-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: auth-float 3s ease-in-out infinite;
}

.v2-verify-icon i,
.v2-verify-icon svg {
    width: 44px;
    height: 44px;
    color: var(--v2-accent-blue, #3b82f6);
}

.v2-verify-icon--success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.15));
    border-color: rgba(16, 185, 129, 0.3);
}

.v2-verify-icon--success i,
.v2-verify-icon--success svg {
    color: #10b981;
}

.v2-verify-icon--error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.15));
    border-color: rgba(239, 68, 68, 0.3);
}

.v2-verify-icon--error i,
.v2-verify-icon--error svg {
    color: #ef4444;
}

.v2-verify-message {
    text-align: center;
    color: var(--v2-text-secondary, #e2e8f0);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.v2-verify-message strong {
    color: var(--v2-accent-blue-light, #60a5fa);
}

/* ============================================
   ACCOUNT DASHBOARD STYLES
   ============================================ */

.v2-account-page {
    min-height: 100vh;
    background: var(--v2-bg-primary, #0f172a);
}

.v2-account-hero {
    background: linear-gradient(-45deg, #1e3a8a, #0f172a, #1e293b, #3b82f6);
    background-size: 400% 400%;
    animation: auth-gradientShift 15s ease infinite;
    padding: 6rem 2rem 3rem;
    position: relative;
    overflow: hidden;
}

.v2-account-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.v2-account-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.v2-account-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--v2-accent-blue, #3b82f6), var(--v2-accent-purple, #8b5cf6));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
    flex-shrink: 0;
}

.v2-account-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.v2-account-info p {
    color: var(--v2-text-muted, #94a3b8);
    margin: 0;
}

.v2-account-info .credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--v2-accent-purple-light, #a78bfa);
    padding: 0.25rem 0.75rem;
    border-radius: var(--v2-radius-full, 9999px);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.v2-account-info .credential-badge i,
.v2-account-info .credential-badge svg {
    width: 14px;
    height: 14px;
}

.v2-account-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.v2-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.v2-account-section {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(26, 36, 54, 0.9));
    border: 1px solid var(--v2-border-subtle, #334155);
    border-radius: var(--v2-radius-xl, 16px);
    padding: 1.5rem;
}

.v2-account-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--v2-text-primary, #f1f5f9);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.v2-account-section h2 i,
.v2-account-section h2 svg {
    width: 20px;
    height: 20px;
    color: var(--v2-accent-blue, #3b82f6);
}

/* Stat cards for progress */
.v2-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.v2-stat-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: var(--v2-radius-lg, 12px);
    padding: 1rem;
    text-align: center;
}

.v2-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--v2-accent-blue-light, #60a5fa), var(--v2-accent-green-light, #34d399));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v2-stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--v2-text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Quick action links */
.v2-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.v2-quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: var(--v2-radius-lg, 12px);
    color: var(--v2-text-secondary, #e2e8f0);
    text-decoration: none;
    transition: all 0.2s ease;
}

.v2-quick-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateX(4px);
}

.v2-quick-link i,
.v2-quick-link svg {
    width: 20px;
    height: 20px;
    color: var(--v2-accent-blue, #3b82f6);
}

.v2-quick-link .arrow {
    margin-left: auto;
    color: var(--v2-text-muted, #94a3b8);
    width: 16px;
    height: 16px;
}

/* ============================================
   DASHBOARD SPECIFIC STYLES
   ============================================ */

.v2-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.v2-dashboard-header-actions {
    display: flex;
    gap: 0.75rem;
}

.v2-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v2-text-primary, #f1f5f9);
    margin: 0 0 0.25rem;
}

.v2-text-muted {
    color: var(--v2-text-muted, #94a3b8);
}

/* Stats Grid */
.v2-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.v2-stats-grid .v2-stat-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(26, 36, 54, 0.9));
    border: 1px solid var(--v2-border-subtle, #334155);
    border-radius: var(--v2-radius-xl, 16px);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.v2-stats-grid .v2-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.v2-stats-grid .v2-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.v2-stats-grid .v2-stat-card:hover::before {
    opacity: 1;
}

.v2-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--v2-radius-lg, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.v2-stat-icon i,
.v2-stat-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.v2-stat-content {
    flex: 1;
}

.v2-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v2-text-primary, #f1f5f9);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.v2-stat-label {
    font-size: 0.8rem;
    color: var(--v2-text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Dashboard Grid */
.v2-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.v2-dashboard-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(26, 36, 54, 0.9));
    border: 1px solid var(--v2-border-subtle, #334155);
    border-radius: var(--v2-radius-xl, 16px);
    overflow: hidden;
}

.v2-dashboard-card--full {
    grid-column: 1 / -1;
}

.v2-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--v2-border-subtle, #334155);
}

.v2-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--v2-text-primary, #f1f5f9);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.v2-card-title i,
.v2-card-title svg {
    width: 20px;
    height: 20px;
    color: var(--v2-accent-blue, #3b82f6);
}

.v2-link-sm {
    color: var(--v2-accent-blue, #3b82f6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.v2-link-sm:hover {
    color: var(--v2-accent-blue-light, #60a5fa);
}

.v2-card-body {
    padding: 1.5rem;
}

/* Activity List */
.v2-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.v2-activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: var(--v2-radius-lg, 12px);
    border: 1px solid rgba(51, 65, 85, 0.3);
    transition: all 0.2s ease;
}

.v2-activity-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
}

.v2-activity-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--v2-radius-lg, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v2-activity-icon i,
.v2-activity-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.v2-activity-content {
    flex: 1;
    min-width: 0;
}

.v2-activity-title {
    font-weight: 600;
    color: var(--v2-text-primary, #f1f5f9);
    margin-bottom: 0.25rem;
}

.v2-activity-meta {
    font-size: 0.8rem;
    color: var(--v2-text-muted, #94a3b8);
}

.v2-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--v2-radius-full, 9999px);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.v2-badge--success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.v2-badge--warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

/* Empty State */
.v2-empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.v2-empty-state i,
.v2-empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--v2-text-muted, #94a3b8);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.v2-empty-state p {
    color: var(--v2-text-muted, #94a3b8);
    margin: 0 0 1rem;
}

/* CE Summary */
.v2-ce-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.v2-ce-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: var(--v2-radius-lg, 12px);
    border: 1px solid rgba(51, 65, 85, 0.3);
}

.v2-ce-label {
    font-size: 0.875rem;
    color: var(--v2-text-secondary, #e2e8f0);
}

.v2-ce-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--v2-accent-blue, #3b82f6);
}

/* Topic Mastery Grid */
.v2-mastery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.v2-mastery-item {
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: var(--v2-radius-lg, 12px);
    border: 1px solid rgba(51, 65, 85, 0.3);
    transition: all 0.2s ease;
}

.v2-mastery-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
}

.v2-mastery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.v2-mastery-topic {
    font-weight: 600;
    color: var(--v2-text-primary, #f1f5f9);
    font-size: 0.9rem;
}

.v2-mastery-score {
    font-weight: 700;
    color: var(--v2-accent-blue, #3b82f6);
    font-size: 0.9rem;
}

.v2-progress-bar {
    height: 8px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: var(--v2-radius-full, 9999px);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.v2-progress-fill {
    height: 100%;
    border-radius: var(--v2-radius-full, 9999px);
    transition: width 0.3s ease;
}

.v2-mastery-meta {
    font-size: 0.75rem;
    color: var(--v2-text-muted, #94a3b8);
}

/* Quick Links in Dashboard */
.v2-dashboard-card .v2-quick-links {
    gap: 0.5rem;
}

.v2-dashboard-card .v2-quick-link {
    padding: 0.75rem 1rem;
}

.v2-quick-link-title {
    font-weight: 600;
    color: var(--v2-text-primary, #f1f5f9);
    margin-bottom: 0.125rem;
}

.v2-quick-link-desc {
    font-size: 0.75rem;
    color: var(--v2-text-muted, #94a3b8);
}

/* Spinner */
.v2-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--v2-accent-blue, #3b82f6);
    border-radius: 50%;
    animation: v2-spin 0.8s linear infinite;
}

/* ============================================
   RESPONSIVE DASHBOARD
   ============================================ */

@media (max-width: 1024px) {
    .v2-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .v2-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .v2-mastery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .v2-dashboard-header {
        flex-direction: row;
        align-items: center;
    }
    
    .v2-dashboard-header-actions {
        width: auto;
    }
    
    .v2-dashboard-header-actions .v2-btn {
        flex: none;
    }
    
    .v2-page-title {
        font-size: 1.25rem;
    }
    
    .v2-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .v2-stats-grid .v2-stat-card {
        padding: 1.25rem;
    }
    
    .v2-stat-value {
        font-size: 1.75rem;
    }
    
    .v2-activity-item {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .v2-activity-icon {
        width: 36px;
        height: 36px;
    }
    
    .v2-activity-icon i,
    .v2-activity-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .v2-card-header {
        padding: 1.25rem 1.25rem 0.875rem;
    }
    
    .v2-card-body {
        padding: 1.25rem;
    }
}

/* ============================================
   MAIN LAYOUT STYLES (for dashboard/profile)
   ============================================ */

.v2-main {
    min-height: calc(100vh - 80px);
}

.v2-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   CE TRACKER STYLES
   ============================================ */

/* Base resets for CE tracker - scoped to ce-tracker-page to avoid breaking other layouts */
.ce-tracker-page .v2-main *, .ce-tracker-page .v2-container * {
    box-sizing: border-box;
    max-width: 100%;
}

/* CE Stats Grid */
.ce-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 100%;
}

.ce-stat-card {
    background: var(--v2-bg-secondary);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ce-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--v2-accent-blue), var(--v2-accent-purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.ce-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.3);
}

.ce-stat-card:hover::before {
    opacity: 1;
}

.ce-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ce-stat-icon i,
.ce-stat-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    position: relative;
    z-index: 1;
}

.ce-stat-content {
    flex: 1;
    min-width: 0;
}

.ce-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--v2-text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.ce-stat-label {
    font-size: 0.875rem;
    color: var(--v2-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CE Filters */
.ce-filter-select {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    background: var(--v2-bg-secondary);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    color: var(--v2-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.ce-filter-select:hover {
    border-color: rgba(100, 116, 139, 0.5);
    background-color: rgba(30, 41, 59, 0.8);
}

.ce-filter-select:focus {
    outline: none;
    border-color: var(--v2-accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: var(--v2-bg-secondary);
}

/* License Cards */
.license-card {
    background: var(--v2-bg-secondary);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.license-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    transition: all 0.3s;
}

.license-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(100, 116, 139, 0.5);
}

/* License status classes */
.license-card--expired::before {
    background: linear-gradient(180deg, #ef4444, #dc2626);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.license-card--warning::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.license-card--attention::before {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.license-card--good::before {
    background: linear-gradient(180deg, #10b981, #059669);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.license-info {
    flex: 1;
}

.license-type {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--v2-text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.license-meta {
    font-size: 0.875rem;
    color: var(--v2-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.license-actions {
    display: flex;
    gap: 0.5rem;
}

.license-action-btn {
    padding: 0.625rem;
    background: rgba(100, 116, 139, 0.15);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 8px;
    color: var(--v2-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.license-action-btn:hover {
    background: rgba(100, 116, 139, 0.25);
    border-color: rgba(100, 116, 139, 0.4);
    color: var(--v2-text-primary);
    transform: scale(1.05);
}

.license-action-btn i,
.license-action-btn svg {
    width: 16px;
    height: 16px;
}

.license-dates {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.4));
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

.license-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--v2-text-secondary);
}

.license-date i,
.license-date svg {
    width: 16px;
    height: 16px;
    color: var(--v2-text-muted);
}

.license-status {
    padding: 0.375rem 1rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.license-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.2));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.status-expired::before {
    background: #ef4444;
}

.status-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.status-critical::before {
    background: #ef4444;
}

.status-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.status-warning::before {
    background: #f59e0b;
}

.status-good {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.status-good::before {
    background: #10b981;
}

.license-progress {
    margin-top: 1rem;
}

.license-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.license-progress-header span:first-child {
    color: var(--v2-text-muted);
}

.license-progress-text {
    font-weight: 600;
    color: var(--v2-text-primary);
}

.license-progress-bar {
    height: 10px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.license-progress-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.license-progress-fill {
    height: 100%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, var(--progress-color, #3b82f6) 0%, var(--progress-color-light, #60a5fa) 100%);
    position: relative;
    box-shadow: 0 0 10px var(--progress-color, #3b82f6);
}

.license-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* CE Credit Cards */
.ce-credit-card {
    background: var(--v2-bg-secondary);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ce-credit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--v2-accent-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.ce-credit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(100, 116, 139, 0.5);
}

.ce-credit-card:hover::before {
    opacity: 1;
}

.ce-credit-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ce-credit-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ce-credit-icon i,
.ce-credit-icon svg {
    width: 26px;
    height: 26px;
    color: currentColor;
    position: relative;
    z-index: 1;
}

.ce-credit-info {
    flex: 1;
    min-width: 0;
}

.ce-credit-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--v2-text-primary);
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.ce-credit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--v2-text-muted);
}

.ce-license-tag,
.ce-category-tag {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid;
}

.ce-license-tag {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.ce-category-tag {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

.ce-credit-hours {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    min-width: 90px;
}

.ce-hours-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--v2-accent-blue);
    line-height: 1;
    letter-spacing: -0.02em;
}

.ce-hours-label {
    font-size: 0.75rem;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 0.25rem;
}

.ce-credit-provider {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.4));
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 10px;
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
    color: var(--v2-text-secondary);
    font-weight: 500;
}

.ce-credit-provider i,
.ce-credit-provider svg {
    width: 16px;
    height: 16px;
    color: var(--v2-text-muted);
}

.ce-credit-notes {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.4));
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 10px;
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
    color: var(--v2-text-secondary);
    line-height: 1.65;
    font-style: italic;
}

.ce-credit-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
    color: var(--v2-text-secondary);
    font-weight: 500;
    transition: all 0.2s;
}

.ce-credit-file:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(139, 92, 246, 0.4);
}

.ce-credit-file i,
.ce-credit-file svg {
    width: 16px;
    height: 16px;
    color: #c4b5fd;
}

.ce-credit-file span {
    flex: 1;
}

.ce-file-download {
    padding: 0.625rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #c4b5fd;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-file-download:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

.ce-file-download i,
.ce-file-download svg {
    width: 16px;
    height: 16px;
}

/* File Upload Zone */
.ce-upload-zone {
    border: 2px dashed rgba(100, 116, 139, 0.4);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.4));
    position: relative;
    overflow: hidden;
}

.ce-upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ce-upload-zone:hover {
    border-color: var(--v2-accent-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(30, 41, 59, 0.6));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ce-upload-zone:hover::before {
    opacity: 1;
}

.ce-upload-zone--dragover {
    border-color: var(--v2-accent-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(30, 41, 59, 0.6));
    border-width: 3px;
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.ce-upload-zone--dragover::before {
    opacity: 1;
}

.ce-upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.ce-upload-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

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

.ce-upload-icon i,
.ce-upload-icon svg {
    width: 36px;
    height: 36px;
    color: var(--v2-accent-blue);
}

.ce-upload-text {
    color: var(--v2-text-secondary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.ce-upload-text strong {
    color: var(--v2-text-primary);
    font-weight: 700;
}

.ce-upload-text span {
    color: var(--v2-accent-blue);
    font-weight: 600;
}

.ce-upload-hint {
    font-size: 0.875rem;
    color: var(--v2-text-muted);
    font-weight: 500;
}

.ce-upload-preview {
    display: none;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.ce-file-info {
    flex: 1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ce-file-info > i,
.ce-file-info > svg {
    width: 32px;
    height: 32px;
    color: var(--v2-accent-blue);
    flex-shrink: 0;
}

.ce-file-name {
    font-weight: 600;
    color: var(--v2-text-primary);
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
}

.ce-file-size {
    font-size: 0.8125rem;
    color: #93c5fd;
    font-weight: 500;
}

.ce-file-remove {
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.2));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #fca5a5;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-file-remove:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(239, 68, 68, 0.3));
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.05) rotate(5deg);
}

.ce-file-remove i,
.ce-file-remove svg {
    width: 18px;
    height: 18px;
}

/* Modal enhancements for CE tracker */
.v2-modal__body .v2-input-group {
    margin-bottom: 1.5rem;
}

.v2-modal__body .v2-input-group:last-child {
    margin-bottom: 0;
}

.v2-form-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--v2-text-muted);
    line-height: 1.5;
}

.v2-form-hint i,
.v2-form-hint svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 0.125rem;
    opacity: 0.7;
}

.v2-label--optional::after {
    content: '(optional)';
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--v2-text-muted);
    margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    
    .v2-container {
        padding: 0 0.75rem;
        max-width: 100%;
    }
    
    .ce-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ce-stat-card {
        padding: 1.25rem;
    }
    
    .v2-dashboard-header {
        flex-direction: row;
        align-items: center !important;
        gap: 0.75rem;
    }
    
    .v2-dashboard-header-actions {
        width: auto;
        flex-direction: row;
    }
    
    .v2-dashboard-header-actions button {
        width: auto;
        justify-content: center;
    }
    
    .license-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .license-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .license-dates {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .license-status {
        align-self: flex-start;
    }
    
    .ce-credit-header {
        flex-direction: column;
    }
    
    .ce-credit-hours {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .ce-filter-select {
        width: 100%;
    }
    
    .v2-card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .v2-card-header > div {
        width: 100%;
    }
    
    .ce-upload-zone {
        padding: 1.5rem 1rem;
    }
    
    .ce-upload-icon {
        width: 64px;
        height: 64px;
    }
    
    .ce-upload-icon i,
    .ce-upload-icon svg {
        width: 32px;
        height: 32px;
    }
    
    /* Modal adjustments */
    .v2-modal__content {
        max-width: 95vw !important;
        margin: 1rem;
    }
    
    .v2-form-row {
        flex-direction: column;
    }
    
    .v2-form-row .v2-form-group {
        width: 100%;
    }
    
    /* Prevent input zoom on iOS */
    input, select, textarea {
        font-size: 16px !important;
    }
}
/* ============================================
   EXTRA SMALL SCREENS
   ============================================ */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.25rem;
        margin: 0.5rem;
        border-radius: 12px;
    }

    .auth-title {
        font-size: 1.15rem;
    }

    .auth-subtitle {
        font-size: 0.8rem;
    }

    .auth-form .v2-btn {
        padding: 0.75rem;
    }

    .v2-page-title {
        font-size: 1.25rem;
    }

    .v2-stat-value {
        font-size: 1.5rem;
    }

    .v2-stat-label {
        font-size: 0.75rem;
    }

    .v2-card-header {
        padding: 1rem 1rem 0.75rem;
    }

    .v2-card-body {
        padding: 1rem;
    }

    .v2-container {
        padding: 0 0.75rem;
    }

    .ce-upload-zone {
        padding: 1rem;
    }

    .v2-dashboard-grid {
        gap: 1rem;
    }
}

/* ===== PREMIUM PLAN BADGES ===== */

.v2-header__plan-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    line-height: 1.3;
    white-space: nowrap;
}
.v2-header__plan-badge--premium {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25));
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
}
.v2-header__plan-badge--pro {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.25));
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.v2-header__plan-badge--lifetime {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Dropdown plan status row */
.v2-header__plan-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--v2-radius-md, 8px);
    background: rgba(255, 255, 255, 0.03);
}
.v2-header__plan-status__label {
    font-size: 0.8rem;
    color: var(--v2-text-muted, #94a3b8);
}
.v2-header__plan-status__upgrade {
    font-size: 0.8rem;
    color: var(--v2-accent-blue, #3b82f6);
    text-decoration: none;
    font-weight: 600;
}
.v2-header__plan-status__upgrade:hover {
    color: var(--v2-accent-blue-light, #60a5fa);
    text-decoration: underline;
}

/* Subscription widget for dashboard */
.subscription-widget {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--v2-radius-lg, 12px);
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}
.subscription-widget--free {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1), rgba(100, 116, 139, 0.05));
    border-color: rgba(148, 163, 184, 0.2);
}
.subscription-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}
.subscription-widget__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--v2-text-primary, #f1f5f9);
}
.subscription-widget__title svg { width: 18px; height: 18px; }
.subscription-widget__plan-name {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
}
.subscription-widget__plan-name--free {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}
.subscription-widget__plan-name--premium {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    color: #93c5fd;
}
.subscription-widget__plan-name--pro {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(239, 68, 68, 0.3));
    color: #fcd34d;
}
.subscription-widget__plan-name--lifetime {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.3));
    color: #6ee7b7;
}
.subscription-widget__usage {
    margin-top: 0.625rem;
    margin-bottom: 0.5rem;
}
.subscription-widget__usage-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.subscription-widget__usage-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--v2-accent-blue, #3b82f6), var(--v2-accent-purple, #8b5cf6));
    transition: width 0.5s ease;
}
.subscription-widget__usage-fill--warning {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.subscription-widget__usage-text {
    font-size: 0.75rem;
    color: var(--v2-text-muted, #94a3b8);
    display: flex;
    justify-content: space-between;
}
.subscription-widget__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.375rem;
}
.subscription-widget__actions .v2-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* ############################################################################
   PAGE-SPECIFIC STYLES — ACCOUNT PAGES
   Extracted from inline <style> blocks — February 2026
   ############################################################################ */

/* ============================================================================
   PAGE-SPECIFIC: DASHBOARD
   ============================================================================ */
/* License Warning Banner */
        .license-warning {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: var(--v2-radius-lg);
            padding: 1rem 1.25rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .license-warning__icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(239, 68, 68, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: #ef4444;
        }
        .license-warning__icon svg { width: 20px; height: 20px; }
        .license-warning__content { flex: 1; }
        .license-warning__title { font-weight: 600; color: #ef4444; }
        .license-warning__detail { font-size: 0.9rem; color: var(--v2-text-secondary); margin-top: 0.25rem; }
        .license-warning__link { 
            color: #ef4444; 
            font-weight: 500;
            text-decoration: underline;
        }

        /* Announcements Banner */
        .announcement-banner {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
            border: 1px solid rgba(59, 130, 246, 0.3);
            border-radius: var(--v2-radius-lg);
            padding: 1rem 1.25rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: flex-start;
            gap: 1rem;
        }
        .announcement-banner.warning {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
            border-color: rgba(245, 158, 11, 0.3);
        }
        .announcement-banner.urgent {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
            border-color: rgba(239, 68, 68, 0.3);
        }
        .announcement-banner.success {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
            border-color: rgba(16, 185, 129, 0.3);
        }
        .announcement-banner__icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(59, 130, 246, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: #3b82f6;
        }
        .announcement-banner.warning .announcement-banner__icon { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
        .announcement-banner.urgent .announcement-banner__icon { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
        .announcement-banner.success .announcement-banner__icon { background: rgba(16, 185, 129, 0.2); color: #10b981; }
        .announcement-banner__icon svg { width: 16px; height: 16px; }
        .announcement-banner__content { flex: 1; }
        .announcement-banner__title { font-weight: 600; color: var(--v2-text-primary); font-size: 0.95rem; }
        .announcement-banner__message { font-size: 0.875rem; color: var(--v2-text-secondary); margin-top: 0.25rem; }
        .announcement-banner__dismiss {
            background: none;
            border: none;
            color: var(--v2-text-muted);
            cursor: pointer;
            padding: 0.25rem;
        }
        .announcement-banner__dismiss:hover { color: var(--v2-text-primary); }

        /* ============================================
           TRAINER MINI-CARD — Mobile-first
           ============================================ */
        .trainer-mini {
            background: linear-gradient(145deg, #1a2540, #141d32, #1a2540);
            border: 1px solid rgba(59, 130, 246, 0.12);
            border-radius: var(--v2-radius-lg);
            margin-bottom: 1.25rem;
            overflow: hidden;
            position: relative;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }
        /* Rainbow top accent */
        .trainer-mini::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #f59e0b, #ef4444, #ec4899, #8b5cf6, #3b82f6, #06b6d4);
            z-index: 1;
        }
        /* Ambient corner glow */
        .trainer-mini::after {
            content: '';
            position: absolute;
            top: -40px;
            right: -40px;
            width: 160px;
            height: 160px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
            pointer-events: none;
        }
        .trainer-mini__header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.875rem 1rem 0;
            position: relative;
            z-index: 1;
        }
        .trainer-mini__title {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--v2-text-primary);
        }
        .trainer-mini__title-emoji { font-size: 1.1rem; }
        .trainer-mini__view-link {
            font-size: 0.78rem;
            color: var(--v2-text-muted);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .trainer-mini__view-link i,
        .trainer-mini__view-link svg { width: 14px; height: 14px; }
        .trainer-mini__view-link:hover { color: #60a5fa; }

        /* Help / "?" button */
        .trainer-mini__help-btn {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 1px solid rgba(148, 163, 184, 0.25);
            background: rgba(148, 163, 184, 0.08);
            color: #94a3b8;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .trainer-mini__help-btn:hover {
            background: rgba(59, 130, 246, 0.15);
            border-color: rgba(59, 130, 246, 0.4);
            color: #60a5fa;
        }

        /* Stats explanation overlay */
        .stats-explain-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .stats-explain-overlay.active { display: flex; }
        .stats-explain-modal {
            background: linear-gradient(145deg, #1e293b, #1a2540);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 16px;
            max-width: 420px;
            width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }
        .stats-explain-modal__header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        }
        .stats-explain-modal__title {
            font-weight: 700;
            font-size: 1rem;
            color: var(--v2-text-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .stats-explain-modal__close {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            border: none;
            background: rgba(148, 163, 184, 0.1);
            color: #94a3b8;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }
        .stats-explain-modal__close:hover {
            background: rgba(239, 68, 68, 0.15);
            color: #f87171;
        }
        .stats-explain-modal__close i,
        .stats-explain-modal__close svg { width: 16px; height: 16px; }
        .stats-explain-modal__body {
            padding: 0.75rem 1.25rem 1.25rem;
        }
        .stats-explain-item {
            display: flex;
            gap: 0.75rem;
            padding: 0.65rem 0;
            border-bottom: 1px solid rgba(148, 163, 184, 0.06);
        }
        .stats-explain-item:last-child { border-bottom: none; }
        .stats-explain-abbr {
            flex-shrink: 0;
            width: 44px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 800;
            color: #60a5fa;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .stats-explain-text {
            min-width: 0;
        }
        .stats-explain-name {
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--v2-text-primary);
            margin-bottom: 0.15rem;
        }
        .stats-explain-desc {
            font-size: 0.78rem;
            color: var(--v2-text-muted);
            line-height: 1.4;
        }
        .stats-explain-section {
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--v2-text-muted);
            padding: 0.75rem 0 0.25rem;
        }
        .stats-explain-section:first-child { padding-top: 0.25rem; }

        .trainer-mini__body {
            padding: 0.75rem 1rem 1rem;
            position: relative;
            z-index: 1;
        }

        /* Identity row: level + name + type */
        .trainer-mini__identity {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-bottom: 0.75rem;
        }
        .trainer-mini__level {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            background: linear-gradient(135deg, #f59e0b, #ef4444);
            color: white;
            font-weight: 800;
            font-size: 0.78rem;
            padding: 0.25rem 0.6rem;
            border-radius: 8px;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
            letter-spacing: 0.02em;
        }
        .trainer-mini__level-label { font-weight: 600; opacity: 0.85; }
        .trainer-mini__name {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--v2-text-primary);
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .trainer-mini__type {
            font-size: 0.68rem;
            font-weight: 700;
            padding: 0.18rem 0.55rem;
            border-radius: 999px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            white-space: nowrap;
        }
        .trainer-mini__type.type-emt { background: rgba(22, 163, 74, 0.2); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
        .trainer-mini__type.type-aemt { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
        .trainer-mini__type.type-paramedic { background: rgba(220, 38, 38, 0.2); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }
        .trainer-mini__type.type-ccp { background: rgba(147, 51, 234, 0.2); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.3); }
        .trainer-mini__type.type-nurse { background: rgba(8, 145, 178, 0.2); color: #22d3ee; border: 1px solid rgba(34, 211, 238, 0.3); }
        .trainer-mini__type.type-md { background: rgba(30, 58, 138, 0.2); color: #93c5fd; border: 1px solid rgba(147, 197, 253, 0.3); }
        .trainer-mini__type.type-default { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }

        /* Mobile layout: stats on top, radar below */
        .trainer-mini__content {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        /* Mini radar chart */
        .trainer-mini__radar {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            background: radial-gradient(circle at center, rgba(59, 130, 246, 0.06) 0%, rgba(15, 23, 42, 0.6) 65%, transparent 100%);
            border: 1px solid rgba(59, 130, 246, 0.1);
            border-radius: 16px;
            padding: 0.75rem;
        }
        /* Subtle glow ring behind the chart */
        .trainer-mini__radar::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 140px;
            height: 140px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 70%);
            pointer-events: none;
        }
        .trainer-mini__radar-svg {
            width: 220px;
            height: 220px;
            position: relative;
            z-index: 1;
        }
        .trainer-mini__radar-svg .mini-radar-ring {
            fill: none;
            stroke: rgba(148, 163, 184, 0.12);
            stroke-width: 0.8;
        }
        .trainer-mini__radar-svg .mini-radar-axis {
            stroke: rgba(148, 163, 184, 0.15);
            stroke-width: 0.5;
            stroke-dasharray: 2 3;
        }
        .trainer-mini__radar-svg .mini-radar-shape {
            fill: rgba(59, 130, 246, 0.18);
            stroke: url(#mini-radar-gradient);
            stroke-width: 2;
            filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.35));
            transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .trainer-mini__radar-svg .mini-radar-dot {
            fill: #93c5fd;
            r: 3.5;
            stroke: #3b82f6;
            stroke-width: 1;
            filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.7));
            transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .trainer-mini__radar-svg .mini-radar-label {
            fill: #94a3b8;
            font-size: 9px;
            font-weight: 700;
            text-anchor: middle;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .trainer-mini__radar-svg .mini-radar-value {
            fill: #e2e8f0;
            font-size: 11px;
            font-weight: 800;
            text-anchor: middle;
        }

        /* Quick stats row — glassy cards with individual accent colors */
        .trainer-mini__stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
        }
        .trainer-mini__stat {
            text-align: center;
            padding: 0.6rem 0.25rem 0.5rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(148, 163, 184, 0.08);
            border-radius: var(--v2-radius-md);
            position: relative;
            overflow: hidden;
        }
        .trainer-mini__stat::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
        }
        .trainer-mini__stat--blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
        .trainer-mini__stat--green::before { background: linear-gradient(90deg, #10b981, #34d399); }
        .trainer-mini__stat--amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
        .trainer-mini__stat-icon {
            display: flex;
            justify-content: center;
            margin-bottom: 0.3rem;
        }
        .trainer-mini__stat-icon svg { width: 14px; height: 14px; }
        .trainer-mini__stat--blue .trainer-mini__stat-icon svg { color: #60a5fa; }
        .trainer-mini__stat--green .trainer-mini__stat-icon svg { color: #34d399; }
        .trainer-mini__stat--amber .trainer-mini__stat-icon svg { color: #fbbf24; }
        .trainer-mini__stat-value {
            font-size: 1.35rem;
            font-weight: 800;
            line-height: 1;
        }
        .trainer-mini__stat--blue .trainer-mini__stat-value { color: #60a5fa; }
        .trainer-mini__stat--green .trainer-mini__stat-value { color: #34d399; }
        .trainer-mini__stat--amber .trainer-mini__stat-value { color: #fbbf24; }
        .trainer-mini__stat-label {
            font-size: 0.62rem;
            color: var(--v2-text-muted);
            margin-top: 0.2rem;
            line-height: 1.2;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            font-weight: 600;
        }

        /* Rank & Badges row */
        .trainer-mini__meta {
            display: flex;
            justify-content: center;
            gap: 1.25rem;
            padding-top: 0.25rem;
        }
        .trainer-mini__meta-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.75rem;
            color: var(--v2-text-muted);
        }
        .trainer-mini__meta-item i,
        .trainer-mini__meta-item svg { width: 13px; height: 13px; }
        .trainer-mini__meta-value {
            font-weight: 700;
            color: var(--v2-text-secondary);
        }

        /* XP Bar */
        .trainer-mini__xp {
            margin-top: 0.25rem;
        }
        .trainer-mini__xp-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.35rem;
        }
        .trainer-mini__xp-label {
            font-size: 0.7rem;
            color: var(--v2-text-muted);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .trainer-mini__xp-label i,
        .trainer-mini__xp-label svg { width: 12px; height: 12px; color: #f59e0b; }
        .trainer-mini__xp-value {
            font-size: 0.75rem;
            color: #fbbf24;
            font-weight: 800;
            letter-spacing: 0.02em;
        }
        .trainer-mini__xp-bar {
            height: 8px;
            background: rgba(148, 163, 184, 0.08);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }
        .trainer-mini__xp-fill {
            height: 100%;
            background: linear-gradient(90deg, #f59e0b, #ef4444, #ec4899);
            border-radius: 4px;
            width: 0%;
            transition: width 1.2s ease-out;
            position: relative;
        }
        .trainer-mini__xp-fill::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            width: 20px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
            border-radius: 0 4px 4px 0;
        }
        .trainer-mini__xp-next {
            font-size: 0.65rem;
            color: var(--v2-text-muted);
            margin-top: 0.25rem;
        }

        /* No-data state for trainer mini */
        .trainer-mini__empty {
            text-align: center;
            padding: 1.5rem 0 1rem;
        }
        .trainer-mini__empty-icon { font-size: 2rem; margin-bottom: 0.5rem; }
        .trainer-mini__empty-text {
            font-size: 0.85rem;
            color: var(--v2-text-muted);
        }
        .trainer-mini__empty-link {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            margin-top: 0.75rem;
            font-size: 0.85rem;
            font-weight: 600;
            color: white;
            text-decoration: none;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            padding: 0.45rem 1rem;
            border-radius: 8px;
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .trainer-mini__empty-link:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        /* Desktop: side-by-side layout */
        @media (min-width: 769px) {
            .trainer-mini__header { padding: 1rem 1.25rem 0; }
            .trainer-mini__body { padding: 0.875rem 1.25rem 1.25rem; }
            .trainer-mini__content {
                flex-direction: row;
                align-items: stretch;
            }
            .trainer-mini__info {
                flex: 1;
                min-width: 0;
                display: flex;
                flex-direction: column;
                gap: 0.75rem;
            }
            .trainer-mini__radar {
                padding: 1rem;
            }
            .trainer-mini__radar::before {
                width: 170px;
                height: 170px;
            }
            .trainer-mini__radar-svg {
                width: 260px;
                height: 260px;
            }
            .trainer-mini__stats {
                gap: 0.75rem;
            }
            .trainer-mini__stat {
                padding: 0.7rem 0.5rem 0.6rem;
            }
            .trainer-mini__stat-value { font-size: 1.5rem; }
            .trainer-mini__stat-label { font-size: 0.68rem; }
            .trainer-mini__stat-icon svg { width: 16px; height: 16px; }
            .trainer-mini__name { font-size: 1.05rem; }
            .trainer-mini__meta {
                justify-content: flex-start;
            }
            .trainer-mini__xp-bar { height: 10px; border-radius: 5px; }
            .trainer-mini__xp-fill { border-radius: 5px; }
        }

        /* CE Credits — Collapsible, compact */
        .ce-hero-card {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.04));
            border: 1px solid rgba(139, 92, 246, 0.25);
            border-radius: var(--v2-radius-lg);
            margin-bottom: 1.25rem;
            overflow: hidden;
        }
        .ce-hero-card:not([open]) .ce-hero-body { display: none; }
        .ce-hero-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.875rem 1rem;
            cursor: pointer;
            list-style: none;
            user-select: none;
        }
        .ce-hero-header::-webkit-details-marker { display: none; }
        .ce-hero-header::marker { display: none; content: ''; }
        .ce-hero-title {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--v2-text-primary);
        }
        .ce-hero-title svg { width: 20px; height: 20px; color: #8b5cf6; }
        .ce-hero-chevron {
            transition: transform 0.25s ease;
            color: var(--v2-text-muted);
        }
        .ce-hero-chevron i, .ce-hero-chevron svg { width: 18px; height: 18px; }
        .ce-hero-card[open] .ce-hero-chevron { transform: rotate(180deg); }
        .ce-hero-body { padding: 0 1rem 1rem; }
        .ce-hero-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
        }
        .ce-hero-stat { text-align: center; }
        .ce-hero-stat__value {
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--v2-text-primary);
        }
        .ce-hero-stat__label {
            font-size: 0.7rem;
            color: var(--v2-text-muted);
            margin-top: 0.125rem;
            line-height: 1.2;
        }
        .ce-hero-stat--warning .ce-hero-stat__value { color: #f59e0b; }
        .ce-hero-stat--danger .ce-hero-stat__value { color: #ef4444; }
        .ce-hero-manage-link {
            display: block;
            text-align: center;
            margin-top: 0.75rem;
            color: #8b5cf6;
            font-size: 0.8rem;
            font-weight: 500;
            text-decoration: none;
        }
        .ce-hero-manage-link:hover { text-decoration: underline; }

        @media (min-width: 769px) {
            .ce-hero-header { padding: 1rem 1.25rem; }
            .ce-hero-body { padding: 0 1.25rem 1.25rem; }
            .ce-hero-stats { gap: 1.5rem; }
            .ce-hero-stat__value { font-size: 1.75rem; }
            .ce-hero-stat__label { font-size: 0.8rem; }
        }

        /* ── Community Mini Card ── */
        .community-mini {
            background: linear-gradient(145deg, #1e293b, #162032);
            border: 1px solid rgba(51, 65, 85, 0.5);
            border-radius: var(--v2-radius-lg);
            margin-bottom: 1.5rem;
            overflow: hidden;
        }
        @media (max-width: 768px) {
            .community-mini { margin-bottom: 0.75rem; }
        }
        .community-mini__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.85rem 1.25rem;
            border-bottom: 1px solid rgba(51, 65, 85, 0.4);
        }
        .community-mini__title {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--v2-text-primary);
            margin: 0;
        }
        .community-mini__title i, .community-mini__title svg { width: 20px; height: 20px; color: #8b5cf6; }
        .community-mini__link {
            font-size: 0.78rem;
            color: #8b5cf6;
            text-decoration: none;
            font-weight: 500;
        }
        .community-mini__link:hover { text-decoration: underline; }
        .community-mini__list { padding: 0; }
        .community-mini__item {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            padding: 0.55rem 1.25rem;
        }
        .community-mini__item + .community-mini__item {
            border-top: 1px solid rgba(51, 65, 85, 0.25);
        }
        .community-mini__item--me {
            background: rgba(139, 92, 246, 0.08);
            border-left: 3px solid #8b5cf6;
        }
        .community-mini__rank {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.75rem;
            flex-shrink: 0;
        }
        .community-mini__rank--1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1e293b; }
        .community-mini__rank--2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #1e293b; }
        .community-mini__rank--3 { background: linear-gradient(135deg, #fb923c, #ea580c); color: white; }
        .community-mini__rank--default { background: rgba(51, 65, 85, 0.5); color: var(--v2-text-muted); }
        .community-mini__name {
            flex: 1;
            min-width: 0;
            font-weight: 600;
            font-size: 0.82rem;
            color: var(--v2-text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .community-mini__name .e3-licensure-badge {
            vertical-align: middle;
            margin-left: 0.3rem;
            position: relative;
            top: -1px;
        }
        .community-mini__stat {
            font-size: 0.75rem;
            color: var(--v2-text-muted);
            flex-shrink: 0;
        }
        .community-mini__empty {
            padding: 1.25rem;
            text-align: center;
            font-size: 0.85rem;
            color: var(--v2-text-muted);
        }
        .community-mini__separator {
            padding: 0.2rem 1.25rem;
            text-align: center;
            font-size: 0.65rem;
            color: var(--v2-text-muted);
            border-top: 1px dashed rgba(51, 65, 85, 0.4);
        }

        /* Main Grid Layout — Mobile-first: single column */
        .dashboard-main-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.25rem;
        }
        @media (min-width: 1025px) {
            .dashboard-main-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
        }

        /* Activity Tabs — Mobile-first */
        .v2-tabs {
            display: flex;
            gap: 0;
            border-bottom: 1px solid var(--v2-bg-hover);
            padding: 0 0.75rem;
            margin: 0 -0.75rem;
        }
        .v2-tab {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.625rem 0.75rem;
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            color: var(--v2-text-muted);
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: 500;
            transition: all 0.2s;
            position: relative;
            top: 1px;
        }
        .v2-tab i, .v2-tab svg { width: 16px; height: 16px; }
        .v2-tab:hover {
            color: var(--v2-text-primary);
            background: rgba(255, 255, 255, 0.03);
        }
        .v2-tab--active {
            color: var(--v2-accent-blue);
            border-bottom-color: var(--v2-accent-blue);
        }
        .v2-tab-content { display: none; padding-top: 1rem; }
        .v2-tab-content--active { display: block; }

        /* Quick Links Grid — Mobile-first: 3-col icon grid */
        .quick-links-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
        }
        .quick-link-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 0.4rem;
            padding: 0.875rem 0.5rem;
            background: var(--v2-bg-hover);
            border-radius: var(--v2-radius-md);
            text-decoration: none;
            color: inherit;
            transition: all 0.2s;
            border: 1px solid transparent;
        }
        .quick-link-card:hover {
            background: rgba(59, 130, 246, 0.1);
            border-color: rgba(59, 130, 246, 0.3);
        }
        .quick-link-card__icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .quick-link-card__icon svg { width: 18px; height: 18px; }
        .quick-link-card__title {
            font-weight: 600;
            color: var(--v2-text-primary);
            font-size: 0.75rem;
            line-height: 1.2;
        }
        .quick-link-card__desc {
            display: none;
        }

        /* Desktop: 2-col horizontal layout with descriptions */
        @media (min-width: 769px) {
            .quick-links-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }
            .quick-link-card {
                flex-direction: row;
                text-align: left;
                padding: 0.875rem 1rem;
                gap: 0.75rem;
            }
            .quick-link-card__icon { width: 40px; height: 40px; }
            .quick-link-card__icon svg { width: 20px; height: 20px; }
            .quick-link-card__title { font-size: 0.9rem; }
            .quick-link-card__desc {
                display: block;
                font-size: 0.75rem;
                color: var(--v2-text-muted);
                margin-top: 0.125rem;
            }
        }

        /* Full width card modifier */
        .v2-dashboard-card--full {
            grid-column: 1 / -1;
        }

        /* Mobile: eliminate top padding gap */
        @media (max-width: 768px) {
            .dashboard-container {
                padding-top: 0 !important;
            }
        }


/* ============================================================================
   PAGE-SPECIFIC: SUBSCRIPTION CONFIRMED
   ============================================================================ */

        /* ============================
           CELEBRATION HERO
           ============================ */
        .confirm-hero {
            position: relative;
            overflow: hidden;
            padding: 7rem 2rem 4rem;
            text-align: center;
            background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.25) 0%, transparent 60%),
                        radial-gradient(ellipse at 20% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
                        radial-gradient(ellipse at 80% 60%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                        #0f172a;
        }

        /* Animated particles */
        .confirm-hero::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                radial-gradient(2px 2px at 10% 20%, rgba(139, 92, 246, 0.6) 50%, transparent 50%),
                radial-gradient(2px 2px at 25% 45%, rgba(16, 185, 129, 0.5) 50%, transparent 50%),
                radial-gradient(2px 2px at 40% 15%, rgba(59, 130, 246, 0.5) 50%, transparent 50%),
                radial-gradient(2px 2px at 55% 65%, rgba(245, 158, 11, 0.4) 50%, transparent 50%),
                radial-gradient(2px 2px at 70% 30%, rgba(139, 92, 246, 0.5) 50%, transparent 50%),
                radial-gradient(2px 2px at 85% 55%, rgba(16, 185, 129, 0.4) 50%, transparent 50%),
                radial-gradient(2px 2px at 15% 70%, rgba(59, 130, 246, 0.4) 50%, transparent 50%),
                radial-gradient(2px 2px at 90% 80%, rgba(236, 72, 153, 0.4) 50%, transparent 50%),
                radial-gradient(1.5px 1.5px at 50% 90%, rgba(139, 92, 246, 0.3) 50%, transparent 50%),
                radial-gradient(1.5px 1.5px at 35% 35%, rgba(16, 185, 129, 0.3) 50%, transparent 50%);
            animation: sparkle 4s ease-in-out infinite alternate;
            pointer-events: none;
        }

        @keyframes sparkle {
            0%   { opacity: 0.4; transform: translateY(0); }
            100% { opacity: 1;   transform: translateY(-6px); }
        }

        .confirm-hero-inner {
            position: relative;
            z-index: 1;
            max-width: 700px;
            margin: 0 auto;
        }

        /* Success checkmark animation */
        .confirm-check {
            width: 96px;
            height: 96px;
            margin: 0 auto 2rem;
            border-radius: 50%;
            background: linear-gradient(135deg, #10b981, #059669);
            display: flex;
            align-items: center;
            justify-content: center;
            animation: checkPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
            box-shadow: 0 0 60px rgba(16, 185, 129, 0.3), 0 0 120px rgba(16, 185, 129, 0.15);
        }

        @keyframes checkPop {
            0%   { transform: scale(0); opacity: 0; }
            60%  { transform: scale(1.15); }
            100% { transform: scale(1);   opacity: 1; }
        }

        .confirm-check svg {
            width: 48px;
            height: 48px;
            color: white;
            animation: checkDraw 0.4s 0.3s ease-out both;
        }

        @keyframes checkDraw {
            0%   { opacity: 0; transform: scale(0.5); }
            100% { opacity: 1; transform: scale(1); }
        }

        .confirm-hero h1 {
            font-size: clamp(2rem, 5vw, 2.75rem);
            font-weight: 800;
            background: linear-gradient(135deg, #a7f3d0, #f1f5f9, #c4b5fd);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.75rem;
            animation: fadeUp 0.5s 0.4s ease-out both;
        }

        .confirm-hero p {
            font-size: 1.15rem;
            color: #94a3b8;
            max-width: 500px;
            margin: 0 auto;
            line-height: 1.7;
            animation: fadeUp 0.5s 0.55s ease-out both;
        }

        @keyframes fadeUp {
            0%   { opacity: 0; transform: translateY(16px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        /* ============================
           MAIN CONTENT
           ============================ */
        .confirm-main {
            max-width: 680px;
            margin: 0 auto;
            padding: 0 1.5rem 4rem;
        }

        /* ============================
           RECEIPT CARD
           ============================ */
        .receipt {
            background: linear-gradient(145deg, #1e293b, #1a2436);
            border: 1px solid #334155;
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 2rem;
            animation: fadeUp 0.5s 0.65s ease-out both;
        }

        .receipt-header {
            padding: 1.5rem 2rem;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(16, 185, 129, 0.08));
            border-bottom: 1px solid #334155;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .receipt-header-left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .receipt-header-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(139, 92, 246, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .receipt-header-icon svg {
            width: 20px;
            height: 20px;
            color: #a78bfa;
        }

        .receipt-header-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #f1f5f9;
        }

        .receipt-header-subtitle {
            font-size: 0.8rem;
            color: #64748b;
            margin-top: 0.15rem;
        }

        .receipt-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.3rem 0.75rem;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            background: rgba(16, 185, 129, 0.15);
            color: #6ee7b7;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .receipt-badge svg {
            width: 12px;
            height: 12px;
        }

        .receipt-body {
            padding: 2rem;
        }

        .receipt-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.85rem 0;
            border-bottom: 1px solid rgba(51, 65, 85, 0.5);
        }

        .receipt-row:last-child {
            border-bottom: none;
        }

        .receipt-row-label {
            font-size: 0.9rem;
            color: #94a3b8;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .receipt-row-label svg {
            width: 16px;
            height: 16px;
            color: #64748b;
        }

        .receipt-row-value {
            font-size: 0.95rem;
            color: #f1f5f9;
            font-weight: 600;
            text-align: right;
        }

        .receipt-total {
            margin-top: 0.5rem;
            padding-top: 1.25rem;
            border-top: 2px solid #334155;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .receipt-total-label {
            font-size: 1rem;
            font-weight: 700;
            color: #f1f5f9;
        }

        .receipt-total-value {
            font-size: 1.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, #10b981, #6ee7b7);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .receipt-footer {
            padding: 1rem 2rem;
            background: rgba(15, 23, 42, 0.5);
            border-top: 1px solid #334155;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.8rem;
            color: #64748b;
        }

        .receipt-footer svg {
            width: 14px;
            height: 14px;
            color: #10b981;
        }

        /* ============================
           BENEFITS GRID
           ============================ */
        .benefits {
            animation: fadeUp 0.5s 0.75s ease-out both;
            margin-bottom: 2rem;
        }

        .benefits-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #f1f5f9;
            margin-bottom: 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .benefits-title svg {
            width: 22px;
            height: 22px;
            color: #a78bfa;
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .benefit-card {
            background: linear-gradient(145deg, #1e293b, #1a2436);
            border: 1px solid #334155;
            border-radius: 16px;
            padding: 1.5rem;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .benefit-card:hover {
            transform: translateY(-2px);
            border-color: rgba(139, 92, 246, 0.3);
        }

        .benefit-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
        }

        .benefit-icon svg {
            width: 22px;
            height: 22px;
        }

        .benefit-icon--purple  { background: rgba(139, 92, 246, 0.15); }
        .benefit-icon--purple svg  { color: #a78bfa; }
        .benefit-icon--green   { background: rgba(16, 185, 129, 0.15); }
        .benefit-icon--green svg   { color: #6ee7b7; }
        .benefit-icon--blue    { background: rgba(59, 130, 246, 0.15); }
        .benefit-icon--blue svg    { color: #93c5fd; }
        .benefit-icon--cyan    { background: rgba(6, 182, 212, 0.15); }
        .benefit-icon--cyan svg    { color: #67e8f9; }
        .benefit-icon--amber   { background: rgba(245, 158, 11, 0.15); }
        .benefit-icon--amber svg   { color: #fcd34d; }
        .benefit-icon--pink    { background: rgba(236, 72, 153, 0.15); }
        .benefit-icon--pink svg    { color: #f9a8d4; }

        .benefit-name {
            font-size: 1rem;
            font-weight: 700;
            color: #f1f5f9;
            margin-bottom: 0.35rem;
        }

        .benefit-desc {
            font-size: 0.85rem;
            color: #94a3b8;
            line-height: 1.5;
        }

        /* ============================
           QUICK START SECTION
           ============================ */
        .quickstart {
            animation: fadeUp 0.5s 0.85s ease-out both;
            margin-bottom: 2rem;
        }

        .quickstart-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #f1f5f9;
            margin-bottom: 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .quickstart-title svg {
            width: 22px;
            height: 22px;
            color: #10b981;
        }

        .quickstart-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
        }

        .quickstart-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
            padding: 1.5rem 1rem;
            background: linear-gradient(145deg, #1e293b, #1a2436);
            border: 1px solid #334155;
            border-radius: 16px;
            text-decoration: none;
            color: #f1f5f9;
            transition: all 0.2s ease;
            text-align: center;
        }

        .quickstart-card:hover {
            transform: translateY(-3px);
            border-color: rgba(16, 185, 129, 0.4);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }

        .quickstart-card-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1));
        }

        .quickstart-card-icon svg {
            width: 26px;
            height: 26px;
            color: #a78bfa;
        }

        .quickstart-card-label {
            font-size: 0.9rem;
            font-weight: 600;
        }

        .quickstart-card-desc {
            font-size: 0.78rem;
            color: #64748b;
            line-height: 1.4;
        }

        /* ============================
           EMAIL NOTE
           ============================ */
        .email-note {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            padding: 1.25rem 1.5rem;
            background: rgba(59, 130, 246, 0.06);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 14px;
            margin-bottom: 2rem;
            animation: fadeUp 0.5s 0.95s ease-out both;
        }

        .email-note-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(59, 130, 246, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .email-note-icon svg {
            width: 18px;
            height: 18px;
            color: #93c5fd;
        }

        .email-note-text {
            font-size: 0.875rem;
            color: #94a3b8;
            line-height: 1.6;
        }

        .email-note-text strong {
            color: #cbd5e1;
        }

        /* ============================
           BOTTOM CTA
           ============================ */
        .bottom-cta {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
            animation: fadeUp 0.5s 1.05s ease-out both;
        }

        .cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.85rem 1.75rem;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
            font-family: inherit;
        }

        .cta-btn svg {
            width: 18px;
            height: 18px;
        }

        .cta-btn--primary {
            background: linear-gradient(135deg, #8b5cf6, #6d28d9);
            color: white;
        }

        .cta-btn--primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
        }

        .cta-btn--secondary {
            background: rgba(51, 65, 85, 0.5);
            color: #cbd5e1;
            border: 1px solid #475569;
        }

        .cta-btn--secondary:hover {
            background: rgba(51, 65, 85, 0.8);
            transform: translateY(-1px);
        }

        /* ============================
           LOADING
           ============================ */
        .confirm-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            padding: 6rem 2rem;
            min-height: 60vh;
        }

        .confirm-loading svg {
            width: 32px;
            height: 32px;
            color: #8b5cf6;
            animation: spin 1s linear infinite;
        }

        .confirm-loading p {
            color: #64748b;
            font-size: 0.95rem;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to   { transform: rotate(360deg); }
        }

        /* ============================
           RESPONSIVE
           ============================ */
        @media (max-width: 640px) {
            .confirm-hero { padding: 5.5rem 1rem 3rem; }
            .confirm-main { padding: 0 1rem 3rem; }
            .benefits-grid { grid-template-columns: 1fr; }
            .quickstart-grid { grid-template-columns: 1fr; }
            .receipt-body { padding: 1.5rem; }
            .receipt-header { padding: 1.25rem 1.5rem; }
            .receipt-footer { padding: 0.85rem 1.5rem; }
            .receipt-total-value { font-size: 1.25rem; }
        }

        @media (max-width: 900px) {
        }


/* ============================================================================
   PAGE-SPECIFIC: CE TRACKER
   ============================================================================ */
/* ============================================
           CE TRACKER — FULL OVERHAUL STYLES
           ============================================ */

        /* Page ambient background */
        .ce-tracker-page {
            position: relative;
        }
        .ce-tracker-page::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60vh;
            background: 
                radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }
        .ce-tracker-page > * {
            position: relative;
            z-index: 1;
        }

        /* Stats Grid */
        .ce-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.25rem;
            margin-bottom: 2rem;
        }
        @media (max-width: 1024px) { .ce-stats-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 640px) { .ce-stats-grid { grid-template-columns: 1fr; gap: 1rem; } }

        .ce-stat-card {
            background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(26, 36, 54, 0.95));
            border: 1px solid rgba(100, 116, 139, 0.15);
            border-radius: 14px;
            padding: 1.25rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: all 0.3s ease;
            box-shadow: 
                0 4px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }
        .ce-stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 
                0 12px 32px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            border-color: rgba(59, 130, 246, 0.25);
        }
        .ce-stat-icon {
            width: 48px; height: 48px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
            box-shadow: 
                0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }
        .ce-stat-icon svg, .ce-stat-icon i { width: 24px; height: 24px; color: white; }
        .ce-stat-value { font-size: 1.75rem; font-weight: 700; color: #f1f5f9; line-height: 1; }
        .ce-stat-label {
            font-size: 0.75rem; color: #94a3b8; margin-top: 0.25rem;
            text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
        }

        /* ── Charts Grid ── */
        .ce-charts-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.25rem;
            margin-bottom: 2rem;
        }
        @media (max-width: 900px) { .ce-charts-grid { grid-template-columns: 1fr; } }

        .ce-chart-card {
            background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(26, 36, 54, 0.95));
            border: 1px solid rgba(100, 116, 139, 0.12);
            border-radius: 14px;
            padding: 1.5rem;
            box-shadow: 
                0 4px 20px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }
        .ce-chart-card h3 {
            display: flex; align-items: center; gap: 0.5rem;
            font-size: 1rem; font-weight: 700; color: #f1f5f9; margin: 0 0 1.25rem 0;
        }
        .ce-chart-card h3 svg, .ce-chart-card h3 i { width: 18px; height: 18px; color: #3b82f6; }
        .ce-chart-card canvas { max-height: 260px; }
        .ce-chart-empty {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            min-height: 200px; color: #64748b;
        }
        .ce-chart-empty svg, .ce-chart-empty i { width: 40px; height: 40px; margin-bottom: 0.75rem; opacity: 0.5; }
        .ce-chart-empty p { font-size: 0.875rem; }

        /* ── License Cards ── */
        .ce-licenses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1rem;
        }
        @media (max-width: 640px) { .ce-licenses-grid { grid-template-columns: 1fr; } }

        .license-card {
            background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(26, 36, 54, 0.95));
            border: 1px solid rgba(100, 116, 139, 0.12);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.25s ease;
            display: flex;
            flex-direction: column;
            box-shadow: 
                0 4px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }
        .license-card:hover {
            box-shadow: 
                0 8px 28px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            border-color: rgba(59, 130, 246, 0.2);
            transform: translateY(-2px);
        }

        .license-card-top {
            display: flex; align-items: center; gap: 0.75rem;
            padding: 0.875rem 1rem;
            border-bottom: 1px solid rgba(100, 116, 139, 0.1);
        }
        .license-type-icon {
            width: 40px; height: 40px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            border: 1px solid rgba(59, 130, 246, 0.32);
            background: rgba(59, 130, 246, 0.12);
            color: #60a5fa;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .license-type-icon svg, .license-type-icon i { width: 20px; height: 20px; }
        .license-card:hover .license-type-icon {
            transform: translateY(-1px);
            box-shadow:
                0 10px 22px rgba(15, 23, 42, 0.36),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }

        .license-card-info { flex: 1; min-width: 0; }
        .license-type-name {
            font-size: 0.9375rem; font-weight: 700; color: #f1f5f9;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .license-tags {
            display: flex; align-items: center; gap: 0.375rem; margin-top: 0.125rem;
            flex-wrap: wrap;
        }
        .license-number-tag {
            font-size: 0.6875rem; font-weight: 600; color: #94a3b8;
            background: rgba(100, 116, 139, 0.15); padding: 0.0625rem 0.375rem;
            border-radius: 3px; font-family: 'SF Mono', 'Consolas', monospace;
        }
        .license-state-tag {
            font-size: 0.625rem; font-weight: 700; color: #3b82f6;
            background: rgba(59, 130, 246, 0.12); padding: 0.0625rem 0.375rem;
            border-radius: 3px; text-transform: uppercase; letter-spacing: 0.04em;
        }

        .license-card-actions { display: flex; gap: 0.25rem; flex-shrink: 0; }
        .license-action-btn {
            padding: 0.3rem; background: transparent;
            border: none; border-radius: 5px; color: #64748b; cursor: pointer;
            transition: all 0.15s;
        }
        .license-action-btn:hover { background: rgba(100, 116, 139, 0.2); color: #e2e8f0; }
        .license-action-btn svg, .license-action-btn i { width: 14px; height: 14px; }

        /* Card body */
        .license-card-body { padding: 0.75rem 1rem 1rem; flex: 1; }

        /* Progress row */
        .license-progress-row {
            display: flex; align-items: center; gap: 0.625rem;
            margin-bottom: 0.5rem;
        }
        .progress-bar-track {
            flex: 1; height: 6px; background: rgba(100, 116, 139, 0.15);
            border-radius: 3px; overflow: hidden;
        }
        .progress-bar-fill {
            height: 100%; border-radius: 3px; transition: width 0.6s ease;
        }
        .progress-pct {
            font-size: 0.8125rem; font-weight: 700; color: #e2e8f0;
            min-width: 38px; text-align: right;
        }
        .progress-hours {
            font-size: 0.6875rem; color: #64748b; font-weight: 500;
        }

        /* Expiry + status footer */
        .license-card-footer {
            display: flex; align-items: center; justify-content: space-between;
            gap: 0.5rem; margin-top: 0.375rem;
        }
        .license-expiry {
            display: flex; align-items: center; gap: 0.25rem;
            font-size: 0.75rem; color: #64748b;
        }
        .license-expiry svg, .license-expiry i { width: 12px; height: 12px; }
        .license-status-badge {
            display: inline-flex; align-items: center; gap: 0.2rem;
            padding: 0.1rem 0.4rem; border-radius: 5px;
            font-size: 0.6875rem; font-weight: 600;
        }
        .badge-good { background: rgba(16, 185, 129, 0.12); color: #34d399; }
        .badge-warning { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
        .badge-critical { background: rgba(239, 68, 68, 0.12); color: #f87171; }
        .badge-expired { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
        .badge-complete { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }

        /* Distribution mini bars */
        .license-dist-bars { margin-top: 0.5rem; }
        .category-row {
            display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.375rem;
        }
        .category-label {
            width: 72px; flex-shrink: 0;
            font-size: 0.6875rem; font-weight: 600; color: #64748b;
        }
        .category-bar-track {
            flex: 1; height: 4px; background: rgba(100, 116, 139, 0.12);
            border-radius: 2px; overflow: hidden;
        }
        .category-bar-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
        .category-bar-fill--national { background: #3b82f6; }
        .category-bar-fill--local { background: #f59e0b; }
        .category-bar-fill--individual { background: #8b5cf6; }
        .category-hours {
            width: 60px; text-align: right; flex-shrink: 0;
            font-size: 0.6875rem; color: #64748b; font-weight: 500;
        }

        /* ── Course History Table ── */
        .ce-course-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .ce-course-table { width: 100%; border-collapse: collapse; min-width: 640px; }
        .ce-course-table th {
            padding: 0.75rem 1rem; text-align: left;
            font-size: 0.6875rem; font-weight: 700; color: #64748b;
            text-transform: uppercase; letter-spacing: 0.08em;
            border-bottom: 1px solid rgba(100, 116, 139, 0.15);
            white-space: nowrap; user-select: none;
        }
        .ce-course-table th.sortable { cursor: pointer; }
        .ce-course-table th.sortable:hover { color: #e2e8f0; }
        .ce-course-table th.sort-active { color: #3b82f6; }
        .ce-course-table th .sort-arrow { margin-left: 0.25rem; font-size: 0.625rem; opacity: 0.5; }
        .ce-course-table th.sort-active .sort-arrow { opacity: 1; }

        .ce-course-table td {
            padding: 0.75rem 1rem; font-size: 0.8125rem; color: #e2e8f0;
            border-bottom: 1px solid rgba(100, 116, 139, 0.08);
            white-space: nowrap;
        }
        .ce-course-table td.wrap { white-space: normal; max-width: 280px; }
        .ce-course-table tbody tr { transition: background 0.15s; }
        .ce-course-table tbody tr:hover { background: rgba(59, 130, 246, 0.04); }

        /* Distribution type badges */
        .ce-dist-badge {
            display: inline-flex; align-items: center; gap: 0.25rem;
            padding: 0.125rem 0.5rem; border-radius: 4px;
            font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.03em;
        }
        .ce-dist--national { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
        .ce-dist--local_state { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
        .ce-dist--individual { background: rgba(139, 92, 246, 0.12); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.2); }

        /* Topic badges */
        .ce-topic-badge {
            display: inline-flex; align-items: center; gap: 0.25rem;
            padding: 0.125rem 0.5rem; border-radius: 4px;
            font-size: 0.6875rem; font-weight: 600;
        }
        .ce-topic--pharmacology { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }
        .ce-topic--cardiology { background: rgba(239, 68, 68, 0.12); color: #f87171; }
        .ce-topic--trauma { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
        .ce-topic--pediatrics { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
        .ce-topic--medical { background: rgba(16, 185, 129, 0.12); color: #34d399; }
        .ce-topic--operations { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }
        .ce-topic--other { background: rgba(148, 163, 184, 0.12); color: #94a3b8; }

        /* Attachment link */
        .ce-file-link {
            color: #3b82f6; background: none; border: none; cursor: pointer;
            display: inline-flex; align-items: center; padding: 0.25rem;
            border-radius: 4px; transition: all 0.15s;
        }
        .ce-file-link svg, .ce-file-link i { width: 14px; height: 14px; }
        .ce-file-link:hover { color: #60a5fa; background: rgba(59, 130, 246, 0.1); }

        /* Row actions */
        .ce-row-actions { display: flex; gap: 0.25rem; }
        .ce-row-action {
            padding: 0.25rem; background: none; border: none;
            color: #64748b; cursor: pointer; border-radius: 4px; transition: all 0.15s;
        }
        .ce-row-action:hover { color: #f1f5f9; background: rgba(100, 116, 139, 0.2); }
        .ce-row-action svg, .ce-row-action i { width: 14px; height: 14px; }

        /* ── Filter bar ── */
        .ce-table-filters {
            display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem;
        }
        .ce-filter-select {
            padding: 0.5rem 2rem 0.5rem 0.75rem;
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(100, 116, 139, 0.25);
            border-radius: 8px; color: #e2e8f0; font-size: 0.8125rem;
            cursor: pointer; appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.5rem center;
        }
        .ce-filter-select:focus { outline: none; border-color: #3b82f6; }

        /* ── Modals ── */
        .v2-modal {
            display: none; position: fixed; inset: 0; z-index: 1000;
            align-items: center; justify-content: center; padding: 1rem; overflow: hidden;
        }
        .v2-modal--open { display: flex; }
        .v2-modal__overlay {
            position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
        }
        .v2-modal__content {
            position: relative; 
            background: linear-gradient(145deg, #1e293b, #1a2436);
            border: 1px solid rgba(100, 116, 139, 0.2); border-radius: 16px;
            width: 100%; max-height: calc(100vh - 2rem);
            display: flex; flex-direction: column;
            box-shadow: 
                0 25px 60px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
            overflow: hidden;
        }
        .v2-modal__header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid rgba(100, 116, 139, 0.2); flex-shrink: 0;
        }
        .v2-modal__title {
            display: flex; align-items: center; gap: 0.75rem;
            font-size: 1.25rem; font-weight: 700; color: #f1f5f9; margin: 0;
        }
        .v2-modal__title svg, .v2-modal__title i { width: 24px; height: 24px; color: #3b82f6; }
        .v2-modal__close {
            padding: 0.5rem; background: rgba(100, 116, 139, 0.2);
            border: none; border-radius: 8px; color: #94a3b8; cursor: pointer; transition: all 0.2s;
        }
        .v2-modal__close:hover { background: rgba(100, 116, 139, 0.3); color: #f1f5f9; }
        .v2-modal__close svg, .v2-modal__close i { width: 20px; height: 20px; }
        .v2-modal__body {
            padding: 1.25rem 1.5rem; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch;
        }
        .v2-modal__footer {
            display: flex; justify-content: flex-end; gap: 0.75rem;
            padding: 1.25rem 1.5rem;
            border-top: 1px solid rgba(100, 116, 139, 0.15); flex-shrink: 0; 
            background: rgba(26, 36, 54, 0.8);
        }

        /* ── Recertify Modal ── */
        .recertify-license-name {
            font-size: 1.125rem; font-weight: 700; color: #f1f5f9; margin-bottom: 0.875rem;
        }
        .recertify-warning {
            display: flex; gap: 0.75rem; padding: 0.875rem 1rem;
            background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.2);
            border-radius: 10px; margin-bottom: 1.25rem;
        }
        .recertify-warning > i, .recertify-warning > svg { width: 20px; height: 20px; color: #f59e0b; flex-shrink: 0; margin-top: 0.125rem; }
        .recertify-warning strong { color: #fbbf24; font-size: 0.8125rem; }
        .recertify-warning ul {
            margin: 0.25rem 0 0 1rem; padding: 0;
            font-size: 0.8125rem; color: #94a3b8; line-height: 1.6;
        }
        .recertify-warning li { margin-bottom: 0.125rem; }

        /* ── Form Elements ── */
        .v2-form-group { margin-bottom: 1rem; }
        .v2-form-row { display: flex; gap: 1rem; }
        .v2-form-row .v2-form-group { flex: 1; }
        @media (max-width: 640px) { .v2-form-row { flex-direction: column; gap: 0; } }
        .v2-label { display: block; font-size: 0.8125rem; font-weight: 600; color: #e2e8f0; margin-bottom: 0.375rem; }
        .v2-input, .v2-select {
            width: 100%; padding: 0.625rem 0.875rem;
            background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(100, 116, 139, 0.3);
            border-radius: 8px; color: #f1f5f9; font-size: 0.875rem; transition: all 0.2s;
            box-sizing: border-box;
        }
        .v2-input:focus, .v2-select:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
        .v2-input::placeholder { color: #64748b; }
        textarea.v2-input { min-height: 60px; resize: vertical; }
        .v2-input-wrapper { position: relative; }
        .v2-input-wrapper .v2-input { padding-left: 2.5rem; }
        .v2-input-icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: #64748b; }
        .v2-input-icon svg, .v2-input-icon i { width: 16px; height: 16px; }
        .v2-form-hint { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.25rem; font-size: 0.75rem; color: #64748b; }
        .v2-form-hint svg, .v2-form-hint i { width: 12px; height: 12px; }

        /* ── Buttons ── */
        .v2-btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
            padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 600;
            border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s;
        }
        .v2-btn svg, .v2-btn i { width: 18px; height: 18px; }
        .v2-btn--primary { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
        .v2-btn--primary:hover { background: linear-gradient(135deg, #2563eb, #1d4ed8); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
        .v2-btn--secondary { background: rgba(100, 116, 139, 0.2); color: #e2e8f0; border: 1px solid rgba(100, 116, 139, 0.3); }
        .v2-btn--secondary:hover { background: rgba(100, 116, 139, 0.3); }
        .v2-btn--ghost { background: none; color: #94a3b8; padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
        .v2-btn--ghost:hover { color: #f1f5f9; background: rgba(100, 116, 139, 0.15); }
        .v2-btn--sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
        .v2-btn--sm svg, .v2-btn--sm i { width: 14px; height: 14px; }
        .v2-btn--danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
        .v2-btn--danger:hover { background: rgba(239, 68, 68, 0.25); }

        /* ── Shared Card ── */
        .v2-dashboard-card {
            background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(26, 36, 54, 0.95));
            border: 1px solid rgba(100, 116, 139, 0.12);
            border-radius: 14px; overflow: hidden;
            box-shadow: 
                0 4px 20px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }
        .v2-card-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid rgba(100, 116, 139, 0.15);
        }
        .v2-card-title {
            display: flex; align-items: center; gap: 0.5rem;
            font-size: 1.125rem; font-weight: 700; color: #f1f5f9; margin: 0;
        }
        .v2-card-title svg, .v2-card-title i { width: 20px; height: 20px; color: #3b82f6; }
        .v2-card-body { padding: 1.5rem; }

        /* ── Empty State ── */
        .v2-empty-state { text-align: center; padding: 3rem 2rem; }
        .v2-empty-state svg, .v2-empty-state i { width: 48px; height: 48px; color: #64748b; margin-bottom: 1rem; }
        .v2-empty-state p { color: #94a3b8; margin-bottom: 1.5rem; }

        /* Upload Zone */
        .ce-upload-zone {
            border: 2px dashed rgba(100, 116, 139, 0.35); border-radius: 10px;
            padding: 1.25rem; text-align: center; cursor: pointer;
            transition: all 0.2s; background: rgba(15, 23, 42, 0.4);
        }
        .ce-upload-zone:hover { border-color: #3b82f6; background: rgba(59, 130, 246, 0.05); }
        .ce-upload-zone svg, .ce-upload-zone i { width: 24px; height: 24px; color: #3b82f6; }
        .ce-upload-zone p { color: #94a3b8; margin: 0.125rem 0; font-size: 0.8125rem; }
        .ce-upload-zone strong { color: #e2e8f0; }
        .ce-upload-preview {
            display: none; align-items: center; gap: 1rem; padding: 1rem;
            background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 8px;
        }
        .ce-file-info { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
        .ce-file-info svg, .ce-file-info i { width: 24px; height: 24px; color: #3b82f6; flex-shrink: 0; }
        .ce-file-name { font-weight: 600; color: #f1f5f9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .ce-file-size { font-size: 0.8125rem; color: #94a3b8; }
        .ce-file-remove {
            padding: 0.5rem; background: rgba(239, 68, 68, 0.15);
            border: none; border-radius: 6px; color: #fca5a5; cursor: pointer; flex-shrink: 0;
        }
        .ce-file-remove:hover { background: rgba(239, 68, 68, 0.25); }
        .ce-file-remove svg, .ce-file-remove i { width: 16px; height: 16px; }

        /* Category builder in license modal */
        .category-builder { margin-top: 0.5rem; }
        .category-builder-row {
            display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem;
        }
        .category-builder-row .v2-select { flex: 1.5; }
        .category-builder-row .v2-input { flex: 1; }
        .category-builder-remove {
            padding: 0.375rem; background: rgba(239, 68, 68, 0.12);
            border: none; border-radius: 6px; color: #f87171; cursor: pointer;
        }
        .category-builder-remove:hover { background: rgba(239, 68, 68, 0.2); }
        .category-builder-remove svg, .category-builder-remove i { width: 16px; height: 16px; }

        /* Distribution type radio group */
        .dist-radio-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
        .dist-radio-label {
            display: flex; align-items: center; gap: 0.375rem;
            padding: 0.5rem 0.875rem; border-radius: 8px;
            border: 1px solid rgba(100, 116, 139, 0.25);
            background: rgba(15, 23, 42, 0.4);
            cursor: pointer; transition: all 0.2s;
            font-size: 0.8125rem; color: #94a3b8; font-weight: 500;
        }
        .dist-radio-label:hover { border-color: rgba(100, 116, 139, 0.4); color: #e2e8f0; }
        .dist-radio-label input { display: none; }
        .dist-radio-label input:checked + span { color: white; }
        .dist-radio-label:has(input:checked) { border-color: #3b82f6; background: rgba(59, 130, 246, 0.12); }
        .dist-radio-label.dist-opt--national:has(input:checked) { border-color: #3b82f6; background: rgba(59, 130, 246, 0.12); }
        .dist-radio-label.dist-opt--local:has(input:checked) { border-color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
        .dist-radio-label.dist-opt--individual:has(input:checked) { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.12); }

        /* Page header */
        .v2-dashboard-header {
            display: flex; align-items: flex-start; justify-content: space-between;
            gap: 1.5rem; margin-bottom: 2rem;
        }
        .v2-dashboard-header-actions { display: flex; gap: 0.75rem; }
        @media (max-width: 768px) {
            .v2-dashboard-header { flex-direction: column; }
            .v2-dashboard-header-actions { width: 100%; flex-direction: column; }
            .v2-dashboard-header-actions .v2-btn { width: 100%; }
            .v2-modal__content { margin: 0.5rem; max-width: calc(100vw - 1rem) !important; }
            .v2-modal__body { padding: 1rem; }
            .ce-table-filters { flex-direction: column; }
            .ce-filter-select { width: 100%; }
            .category-builder-row { flex-wrap: wrap; }
        }
        .v2-page-title {
            font-size: 2rem; font-weight: 800; color: #f1f5f9;
            margin: 0 0 0.5rem 0; display: flex; align-items: center; gap: 0.75rem;
        }
        .v2-page-title svg, .v2-page-title i { width: 32px; height: 32px; }
        .v2-text-muted { color: #94a3b8; margin: 0; }
        .v2-link-back {
            display: inline-flex; align-items: center; gap: 0.5rem;
            color: #94a3b8; text-decoration: none; font-size: 0.875rem; transition: color 0.2s;
        }
        .v2-link-back:hover { color: #3b82f6; }
        .v2-link-back svg, .v2-link-back i { width: 16px; height: 16px; }

        /* Alert */
        .v2-alert {
            display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem;
            border-radius: 10px; margin-bottom: 1rem; font-size: 0.875rem;
        }
        .v2-alert svg, .v2-alert i { width: 20px; height: 20px; flex-shrink: 0; }
        .v2-alert--success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: #34d399; }
        .v2-alert--error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #f87171; }
        .v2-alert--warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); color: #fbbf24; }
        .v2-alert--info { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); color: #60a5fa; }

        /* Section divider */
        .ce-section-label {
            font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em;
            color: #64748b; font-weight: 700; padding: 0 0 0.5rem 0;
            border-bottom: 1px solid rgba(100, 116, 139, 0.15); margin-bottom: 1rem;
        }

        /* Export button area */
        .ce-export-actions { display: flex; gap: 0.5rem; }


/* ============================================================================
   PAGE-SPECIFIC: ADMIN
   ============================================================================ */
/* Admin Tabs */
        .admin-tabs {
            display: flex;
            gap: 0.25rem;
            margin-bottom: 2rem;
            background: var(--v2-bg-secondary);
            padding: 0.5rem;
            border-radius: var(--v2-radius-lg);
            border: 1px solid var(--v2-bg-hover);
            overflow-x: auto;
        }
        .admin-tab {
            padding: 0.75rem 1.5rem;
            background: transparent;
            border: none;
            color: var(--v2-text-muted);
            font-size: 0.9rem;
            cursor: pointer;
            border-radius: var(--v2-radius-md);
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            white-space: nowrap;
        }
        .admin-tab:hover { color: var(--v2-text-primary); background: var(--v2-bg-hover); }
        .admin-tab.active {
            color: white;
            background: var(--v2-accent-blue);
        }
        .admin-tab svg { width: 18px; height: 18px; }

        /* Tab Panels */
        .admin-panel { display: none; }
        .admin-panel.active { display: block; }

        /* Admin Tools Launcher */
        .admin-tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 0.9rem;
            margin-bottom: 1.5rem;
        }
        .admin-tool-card {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            padding: 0.95rem 1rem;
            background: var(--v2-bg-secondary);
            border: 1px solid var(--v2-bg-hover);
            border-radius: var(--v2-radius-lg);
            color: var(--v2-text-secondary);
            text-decoration: none;
            transition: all 0.2s ease;
        }
        .admin-tool-card:hover {
            color: var(--v2-text-primary);
            border-color: rgba(59, 130, 246, 0.45);
            background: rgba(59, 130, 246, 0.1);
            transform: translateY(-1px);
        }
        .admin-tool-card--active {
            border-color: rgba(59, 130, 246, 0.65);
            background: rgba(59, 130, 246, 0.12);
            color: var(--v2-text-primary);
            cursor: default;
        }
        .admin-tool-card__icon {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            background: var(--v2-bg-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .admin-tool-card__icon svg {
            width: 18px;
            height: 18px;
        }
        .admin-tool-card__title {
            font-weight: 600;
            color: var(--v2-text-primary);
            line-height: 1.2;
        }
        .admin-tool-card__desc {
            font-size: 0.78rem;
            color: var(--v2-text-muted);
            margin-top: 0.18rem;
        }

        /* Stats Grid */
        .admin-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }
        .admin-stat-card {
            background: var(--v2-bg-secondary);
            border-radius: var(--v2-radius-lg);
            padding: 1.5rem;
            border: 1px solid var(--v2-bg-hover);
        }
        .admin-stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--v2-text-primary);
            line-height: 1;
        }
        .admin-stat-label {
            font-size: 0.85rem;
            color: var(--v2-text-muted);
            margin-top: 0.25rem;
        }
        .admin-stat-change {
            font-size: 0.8rem;
            margin-top: 0.5rem;
        }
        .admin-stat-change.positive { color: var(--v2-accent-green); }
        .admin-stat-change.negative { color: var(--v2-accent-red); }

        /* Data Table */
        .admin-table-wrapper {
            background: var(--v2-bg-secondary);
            border-radius: var(--v2-radius-lg);
            border: 1px solid var(--v2-bg-hover);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        .admin-table-header {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--v2-bg-hover);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        .admin-table-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--v2-text-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .admin-table-title svg { width: 20px; height: 20px; }
        .admin-table {
            width: 100%;
            border-collapse: collapse;
        }
        .admin-table th, .admin-table td {
            padding: 0.875rem 1.5rem;
            text-align: left;
            border-bottom: 1px solid var(--v2-bg-hover);
        }
        .admin-table th {
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--v2-text-muted);
            background: var(--v2-bg-tertiary);
        }
        .admin-table td { font-size: 0.9rem; }
        .admin-table tr:hover td { background: var(--v2-bg-hover); }
        .admin-table tbody tr:last-child td { border-bottom: none; }

        /* Accuracy badge */
        .accuracy-badge {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            border-radius: var(--v2-radius-sm);
            font-size: 0.8rem;
            font-weight: 500;
        }
        .accuracy-badge.high { background: rgba(16, 185, 129, 0.2); color: #10b981; }
        .accuracy-badge.medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
        .accuracy-badge.low { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

        /* User row */
        .user-info { display: flex; align-items: center; gap: 0.75rem; }
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6, #6366f1);
            border: 1px solid rgba(96, 165, 250, 0.45);
            box-shadow: 0 10px 20px rgba(59, 130, 246, 0.28);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.85rem;
            color: white;
        }
        .user-name { font-weight: 500; color: var(--v2-text-primary); }
        .user-email { font-size: 0.8rem; color: var(--v2-text-muted); }
        .user-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }
        .plan-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            border-radius: 999px;
            padding: 0.2rem 0.6rem;
            font-size: 0.72rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            border: 1px solid transparent;
        }
        .plan-pill.free {
            color: #94a3b8;
            background: rgba(148, 163, 184, 0.12);
            border-color: rgba(148, 163, 184, 0.25);
        }
        .plan-pill.premium {
            color: #38bdf8;
            background: rgba(56, 189, 248, 0.16);
            border-color: rgba(56, 189, 248, 0.28);
        }
        .plan-pill.pro {
            color: #f59e0b;
            background: rgba(245, 158, 11, 0.16);
            border-color: rgba(245, 158, 11, 0.3);
        }
        .plan-pill.lifetime {
            color: #34d399;
            background: rgba(52, 211, 153, 0.16);
            border-color: rgba(52, 211, 153, 0.28);
        }
        .plan-pill.unknown {
            color: #94a3b8;
            background: rgba(148, 163, 184, 0.08);
            border-color: rgba(148, 163, 184, 0.2);
        }
        .plan-pill__status {
            font-size: 0.66rem;
            color: var(--v2-text-muted);
            text-transform: none;
            letter-spacing: normal;
            font-weight: 500;
        }
        .usage-pill {
            display: inline-flex;
            align-items: center;
            border: 1px solid var(--v2-bg-hover);
            border-radius: var(--v2-radius-sm);
            padding: 0.22rem 0.42rem;
            font-size: 0.72rem;
            color: var(--v2-text-muted);
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }
        .usage-pill.unlimited {
            border-color: rgba(16, 185, 129, 0.3);
            color: #10b981;
            background: rgba(16, 185, 129, 0.12);
        }

        /* User performance modal */
        .admin-user-modal .v2-modal__content {
            width: min(920px, calc(100vw - 2rem));
            max-width: none !important;
            max-height: calc(100vh - 2rem);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .admin-user-modal .v2-modal__body {
            overflow-y: auto;
        }
        .user-performance {
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid var(--v2-bg-hover);
        }
        .user-performance-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        .user-performance-stat {
            background: var(--v2-bg-secondary);
            border: 1px solid var(--v2-bg-hover);
            border-radius: var(--v2-radius-md);
            padding: 0.75rem;
        }
        .user-performance-stat__value {
            color: var(--v2-text-primary);
            font-size: 1.15rem;
            font-weight: 700;
            line-height: 1.2;
        }
        .user-performance-stat__label {
            color: var(--v2-text-muted);
            font-size: 0.72rem;
            margin-top: 0.2rem;
        }
        .user-performance-tables {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 0.75rem;
        }
        .user-performance-card {
            background: var(--v2-bg-secondary);
            border: 1px solid var(--v2-bg-hover);
            border-radius: var(--v2-radius-md);
            overflow: hidden;
        }
        .user-performance-card__title {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.6rem 0.8rem;
            border-bottom: 1px solid var(--v2-bg-hover);
            color: var(--v2-text-primary);
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .user-mini-table {
            width: 100%;
            border-collapse: collapse;
        }
        .user-mini-table th,
        .user-mini-table td {
            padding: 0.5rem 0.65rem;
            border-bottom: 1px solid var(--v2-bg-hover);
            font-size: 0.78rem;
        }
        .user-mini-table th {
            color: var(--v2-text-muted);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            background: var(--v2-bg-tertiary);
        }
        .user-mini-table td {
            color: var(--v2-text-secondary);
        }
        .user-mini-table tbody tr:last-child td {
            border-bottom: none;
        }
        .user-performance-empty {
            color: var(--v2-text-muted);
            text-align: center;
            font-size: 0.85rem;
            padding: 0.8rem;
        }
        .admin-access-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 0.85rem;
            margin-bottom: 1rem;
        }
        .admin-inline-toggle {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.88rem;
            color: var(--v2-text-secondary);
        }

        /* Announcements form */
        .announcement-form {
            background: var(--v2-bg-secondary);
            border-radius: var(--v2-radius-lg);
            padding: 1.5rem;
            border: 1px solid var(--v2-bg-hover);
            margin-bottom: 2rem;
        }
        .announcement-form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1rem;
        }
        .announcements-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .announcement-card {
            background: var(--v2-bg-secondary);
            border-radius: var(--v2-radius-lg);
            padding: 1.25rem;
            border: 1px solid var(--v2-bg-hover);
        }
        .announcement-card.info { border-left: 4px solid var(--v2-accent-blue); }
        .announcement-card.warning { border-left: 4px solid var(--v2-accent-amber); }
        .announcement-card.success { border-left: 4px solid var(--v2-accent-green); }
        .announcement-card.urgent { border-left: 4px solid var(--v2-accent-red); }
        .announcement-card__header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 0.5rem;
        }
        .announcement-card__title { font-weight: 600; color: var(--v2-text-primary); }
        .announcement-card__message { font-size: 0.9rem; color: var(--v2-text-secondary); }
        .announcement-card__meta { font-size: 0.8rem; color: var(--v2-text-muted); margin-top: 0.75rem; }

        /* Search input */
        .admin-search {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .admin-search input,
        .admin-search select {
            padding: 0.5rem 1rem;
            background: var(--v2-bg-tertiary);
            border: 1px solid var(--v2-bg-hover);
            border-radius: var(--v2-radius-md);
            color: var(--v2-text-primary);
            font-size: 0.9rem;
        }
        .admin-search input:focus,
        .admin-search select:focus {
            outline: none;
            border-color: var(--v2-accent-blue);
        }

        @media (max-width: 768px) {
            .admin-table { font-size: 0.85rem; }
            .admin-table th, .admin-table td { padding: 0.75rem 1rem; }
            .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
        }

        /* Page Analytics — period picker */
        .pages-period-bar {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        .pages-period-bar__label {
            font-size: 0.875rem;
            color: var(--v2-text-muted);
            white-space: nowrap;
        }
        .pages-period-btn {
            padding: 0.35rem 0.9rem;
            border-radius: 6px;
            border: 1px solid var(--v2-bg-hover, #334155);
            background: transparent;
            color: var(--v2-text-muted);
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.15s;
        }
        .pages-period-btn:hover { color: var(--v2-text-primary); border-color: var(--v2-accent-blue); }
        .pages-period-btn.active {
            background: var(--v2-accent-blue);
            color: #fff;
            border-color: var(--v2-accent-blue);
        }
        .section-badge {
            display: inline-block;
            padding: 0.2em 0.55em;
            border-radius: 4px;
            background: var(--v2-bg-hover, #334155);
            color: var(--v2-text-secondary);
            font-size: 0.8em;
            text-transform: capitalize;
            white-space: nowrap;
        }
        .pages-page-link {
            color: var(--v2-accent-blue);
            text-decoration: none;
            display: block;
            max-width: 280px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .pages-page-link:hover { text-decoration: underline; }
        .stat-sub {
            font-size: 0.55em;
            font-weight: 400;
            opacity: 0.8;
            margin-left: 0.1em;
        }


/* ============================================================================
   PAGE-SPECIFIC: CHECKOUT
   ============================================================================ */
        
        /* Hero Section */
        .checkout-hero {
            background: linear-gradient(-45deg, #1e3a8a, #7c3aed, #0f172a, #10b981);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            padding: 6rem 2rem 4rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        .checkout-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(ellipse at center, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
            pointer-events: none;
        }
        
        .checkout-hero-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .checkout-hero-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 1.5rem;
            background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: iconFloat 3s ease-in-out infinite;
        }
        
        @keyframes iconFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }
        
        .checkout-hero-icon svg {
            width: 40px;
            height: 40px;
            color: white;
        }
        
        .checkout-hero h1 {
            font-size: clamp(2rem, 5vw, 3rem);
            font-weight: 800;
            background: linear-gradient(135deg, #c4b5fd, #f1f5f9, #a78bfa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
        }
        
        .checkout-hero p {
            font-size: 1.1rem;
            color: #cbd5e1;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.7;
        }
        
        /* Main Content */
        .checkout-main {
            max-width: 560px;
            margin: 0 auto;
            padding: 3rem 1.5rem;
        }
        
        /* Plan Summary Card */
        .plan-summary {
            background: linear-gradient(145deg, #1e293b, #1a2436);
            border: 1px solid #334155;
            border-radius: 20px;
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .plan-summary-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid #334155;
        }
        
        .plan-summary-icon {
            width: 48px;
            height: 48px;
            background: rgba(139, 92, 246, 0.15);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .plan-summary-icon svg {
            width: 24px;
            height: 24px;
            color: #a78bfa;
        }
        
        .plan-summary-info h2 {
            font-size: 1.25rem;
            color: #f1f5f9;
            font-weight: 600;
        }
        
        .plan-summary-info .plan-badge {
            display: inline-block;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 0.2rem 0.5rem;
            border-radius: 6px;
            background: linear-gradient(135deg, #8b5cf6, #6d28d9);
            color: white;
            margin-left: 0.5rem;
            vertical-align: middle;
        }
        
        .plan-price {
            display: flex;
            align-items: baseline;
            gap: 0.25rem;
            margin-bottom: 1.25rem;
        }
        
        .plan-price-amount {
            font-size: 2.5rem;
            font-weight: 800;
            color: #f1f5f9;
        }
        
        .plan-price-interval {
            font-size: 1rem;
            color: #64748b;
        }
        
        .plan-features {
            list-style: none;
            padding: 0;
            display: grid;
            gap: 0.625rem;
        }
        
        .plan-features li {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.9rem;
            color: #cbd5e1;
        }
        
        .plan-features li i,
        .plan-features li svg {
            width: 16px;
            height: 16px;
            color: #10b981;
            flex-shrink: 0;
        }
        
        /* Payment Card */
        .payment-card {
            background: linear-gradient(145deg, #1e293b, #1a2436);
            border: 1px solid #334155;
            border-radius: 20px;
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .payment-card-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .payment-card-header-icon {
            width: 48px;
            height: 48px;
            background: rgba(16, 185, 129, 0.15);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .payment-card-header-icon svg {
            width: 24px;
            height: 24px;
            color: #10b981;
        }
        
        .payment-card-header h2 {
            font-size: 1.25rem;
            color: #f1f5f9;
            font-weight: 600;
        }
        
        .payment-card-header p {
            font-size: 0.875rem;
            color: #64748b;
            margin-top: 0.25rem;
        }
        
        /* Buttons */
        .btn {
            width: 100%;
            padding: 1rem 1.5rem;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
            color: white;
        }
        
        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
        }
        
        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .btn svg {
            width: 20px;
            height: 20px;
        }
        
        /* Terms Agreement */
        .terms-agreement {
            margin: 1.25rem 0;
        }
        .terms-checkbox-wrapper {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            cursor: pointer;
        }
        .terms-checkbox {
            width: 18px;
            height: 18px;
            margin-top: 2px;
            accent-color: #8b5cf6;
            cursor: pointer;
            flex-shrink: 0;
        }
        .terms-checkbox-label {
            font-size: 0.875rem;
            color: #94a3b8;
            line-height: 1.5;
        }
        .terms-checkbox-label a {
            color: #3b82f6;
            text-decoration: none;
        }
        .terms-checkbox-label a:hover {
            text-decoration: underline;
        }
        .terms-error {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
            padding: 0.5rem 0.75rem;
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 6px;
            font-size: 0.8rem;
            color: #fca5a5;
        }
        .terms-error i, .terms-error svg {
            width: 14px;
            height: 14px;
            color: #ef4444;
        }

        /* Stripe Payment Element Container */
        #payment-element {
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: #0f172a;
            border: 2px solid #334155;
            border-radius: 12px;
        }
        
        /* Status Messages */
        .status-message {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem;
            border-radius: 12px;
            font-size: 0.9rem;
            margin-top: 1rem;
        }
        
        .status-message svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }
        
        .status-message.info {
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.3);
            color: #93c5fd;
        }
        
        .status-message.error {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #fca5a5;
        }
        
        .status-message.success {
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: #6ee7b7;
        }
        
        .status-message:empty {
            display: none;
        }
        
        /* Security Badge */
        .security-badge {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 2rem;
            padding: 1rem;
            background: rgba(16, 185, 129, 0.05);
            border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: 12px;
            color: #6ee7b7;
            font-size: 0.875rem;
        }
        
        .security-badge svg {
            width: 18px;
            height: 18px;
        }
        
        /* Login Required State */
        .login-required {
            text-align: center;
            padding: 3rem 2rem;
        }
        
        .login-required-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 1.5rem;
            background: rgba(59, 130, 246, 0.15);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .login-required-icon svg {
            width: 40px;
            height: 40px;
            color: #3b82f6;
        }
        
        .login-required h2 {
            font-size: 1.5rem;
            color: #f1f5f9;
            margin-bottom: 0.5rem;
        }
        
        .login-required p {
            color: #94a3b8;
            margin-bottom: 1.5rem;
        }
        
        .login-required .btn {
            max-width: 300px;
            margin: 0 auto;
            text-decoration: none;
        }
        
        /* Loading State */
        .loading-spinner {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            padding: 2rem;
            color: #94a3b8;
        }
        
        .loading-spinner svg {
            width: 24px;
            height: 24px;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        /* Responsive */
        @media (max-width: 640px) {
            .checkout-hero {
                padding: 5rem 1rem 3rem;
            }
            
            .checkout-main {
                padding: 2rem 1rem;
            }
            
            .plan-summary,
            .payment-card {
                padding: 1.5rem;
            }
            
            .plan-price-amount {
                font-size: 2rem;
            }
        }

        /* Mobile bottom nav spacing */
        @media (max-width: 900px) {
        }


/* ============================================================================
   PAGE-SPECIFIC: ADMIN EKG
   ============================================================================ */

        /* ── Admin shell ────────────────────────────────── */
        .admin-shell {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1.5rem 1rem 4rem;
        }

        .page-header {
            display: flex; align-items: center; justify-content: space-between;
            flex-wrap: wrap; gap: 1rem;
            margin-bottom: 1.5rem;
        }
        .page-header-left { display: flex; align-items: center; gap: 0.75rem; }
        .page-title { font-size: 1.5rem; font-weight: 700; color: #f1f5f9; }
        .page-subtitle { font-size: 0.85rem; color: #64748b; margin-top: 0.15rem; }
        .page-title-icon {
            width: 44px; height: 44px;
            background: rgba(236,72,153,0.15);
            border: 1px solid rgba(236,72,153,0.3);
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .page-title-icon i, .page-title-icon svg { width: 22px; height: 22px; color: #f472b6; }

        .btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border-radius: 8px; font-size: 0.875rem; font-weight: 500; cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; }
        .btn i, .btn svg { width: 16px; height: 16px; }
        .btn-secondary { background: rgba(255,255,255,0.07); color: #e2e8f0; border: 1px solid #334155; }
        .btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: #64748b; }
        .btn-pink { background: linear-gradient(135deg,#ec4899,#be185d); color:#fff; }
        .btn-pink:hover { box-shadow: 0 4px 16px rgba(236,72,153,0.4); transform: translateY(-1px); }
        .btn-green { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
        .btn-green:hover { background: rgba(16,185,129,0.25); }
        .btn-red { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
        .btn-red:hover { background: rgba(239,68,68,0.25); }
        .btn-amber { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
        .btn-amber:hover { background: rgba(245,158,11,0.25); }
        .btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
        .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

        /* ── Status filters ──────────────────────────────── */
        .filter-bar {
            display: flex; gap: 0.5rem; flex-wrap: wrap;
            margin-bottom: 1.25rem;
        }
        .filter-btn {
            display: inline-flex; align-items: center; gap: 0.4rem;
            padding: 0.45rem 0.9rem;
            border-radius: 20px; border: 1px solid #334155;
            background: rgba(30,41,59,0.5); color: #94a3b8;
            font-size: 0.8rem; font-weight: 500; cursor: pointer;
            transition: all 0.15s;
        }
        .filter-btn.active { background: rgba(236,72,153,0.15); border-color: rgba(236,72,153,0.4); color: #f472b6; }
        .filter-btn:hover:not(.active) { border-color: #64748b; color: #e2e8f0; }
        .badge {
            background: rgba(0,0,0,0.3); border-radius: 10px;
            padding: 1px 7px; font-size: 0.72rem; font-weight: 600;
        }
        .badge-pending  { background: rgba(245,158,11,0.2); color: #f59e0b; }
        .badge-reviewing{ background: rgba(59,130,246,0.2); color: #60a5fa; }
        .badge-approved { background: rgba(16,185,129,0.2); color: #10b981; }
        .badge-rejected { background: rgba(239,68,68,0.2);  color: #ef4444; }

        /* ── Split layout ────────────────────────────────── */
        .split-layout {
            display: grid;
            grid-template-columns: 360px 1fr;
            gap: 1.25rem;
            align-items: start;
        }
        @media (max-width: 900px) {
            .split-layout { grid-template-columns: 1fr; }
            .detail-panel { position: relative !important; top: auto !important; }
        }

        /* ── List panel ──────────────────────────────────── */
        .list-panel {
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 16px;
            overflow: hidden;
        }
        .list-panel-hdr {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #334155;
            display: flex; align-items: center; justify-content: space-between;
        }
        .list-panel-hdr h3 { font-size: 0.9rem; font-weight: 600; color: #f1f5f9; }
        .list-count { font-size: 0.8rem; color: #64748b; }

        #submissions-list { max-height: calc(100vh - 260px); overflow-y: auto; }

        .sub-item {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #1e293b;
            cursor: pointer;
            transition: background 0.15s;
            position: relative;
        }
        .sub-item:last-child { border-bottom: none; }
        .sub-item:hover { background: rgba(255,255,255,0.04); }
        .sub-item.active { background: rgba(236,72,153,0.08); border-left: 3px solid #f472b6; }
        .sub-item .sub-title { font-size: 0.9rem; font-weight: 600; color: #f1f5f9; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .sub-item .sub-meta { font-size: 0.78rem; color: #64748b; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
        .sub-item .status-dot {
            width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
        }
        .dot-pending   { background: #f59e0b; }
        .dot-reviewing { background: #60a5fa; }
        .dot-approved  { background: #10b981; }
        .dot-rejected  { background: #ef4444; }

        .empty-list {
            padding: 3rem 1.25rem;
            text-align: center;
            color: #475569;
            font-size: 0.9rem;
        }
        .empty-list i, .empty-list svg { width: 40px; height: 40px; margin-bottom: 0.75rem; display: block; margin-left: auto; margin-right: auto; opacity: 0.4; }

        /* ── Detail panel ────────────────────────────────── */
        .detail-panel {
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 16px;
            overflow: hidden;
            position: sticky;
            top: 1rem;
        }

        .detail-placeholder {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            padding: 4rem 2rem; text-align: center; color: #475569;
            min-height: 400px;
        }
        .detail-placeholder i, .detail-placeholder svg { width: 48px; height: 48px; margin-bottom: 1rem; opacity: 0.35; }
        .detail-placeholder p { font-size: 0.9rem; }

        .detail-inner { display: none; }
        .detail-inner.visible { display: block; }

        .detail-hdr {
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid #334155;
            display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
        }
        .detail-title { font-size: 1.1rem; font-weight: 700; color: #f1f5f9; margin-bottom: 0.3rem; }
        .detail-meta { font-size: 0.8rem; color: #64748b; }
        .detail-hdr-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

        /* ── Image viewer ────────────────────────────────── */
        .image-viewer {
            background: #0f172a;
            padding: 1rem;
            display: flex; align-items: center; justify-content: center;
            min-height: 220px;
            position: relative;
        }
        .image-viewer img {
            max-width: 100%; max-height: 380px; border-radius: 6px; display: block;
            cursor: zoom-in;
        }
        .img-loading { color: #64748b; font-size: 0.85rem; }
        .img-open-link {
            position: absolute; top: 0.75rem; right: 0.75rem;
            background: rgba(0,0,0,0.6); color: #94a3b8;
            padding: 0.35rem 0.6rem; border-radius: 6px; font-size: 0.75rem;
            text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem;
            transition: color 0.15s;
        }
        .img-open-link:hover { color: #f1f5f9; }
        .img-open-link i, .img-open-link svg { width: 14px; height: 14px; }

        /* ── Detail body ─────────────────────────────────── */
        .detail-body { padding: 1.25rem 1.5rem; }
        .detail-section { margin-bottom: 1.25rem; }
        .detail-section:last-child { margin-bottom: 0; }
        .section-label {
            font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.8px; color: #64748b; margin-bottom: 0.4rem;
        }
        .section-value {
            font-size: 0.875rem; color: #cbd5e1; line-height: 1.6;
            background: rgba(15,23,42,0.4); border-radius: 8px;
            padding: 0.7rem 0.9rem;
        }
        .section-value.empty { color: #475569; font-style: italic; }

        .info-row { display: flex; gap: 1rem; }
        .info-chip {
            background: rgba(30,41,59,0.8); border: 1px solid #334155;
            border-radius: 8px; padding: 0.4rem 0.75rem;
            font-size: 0.8rem; color: #94a3b8;
        }
        .info-chip strong { color: #f1f5f9; font-weight: 600; }

        /* ── Review form ─────────────────────────────────── */
        .review-section {
            padding: 1.25rem 1.5rem;
            border-top: 1px solid #334155;
        }
        .review-section h4 { font-size: 0.9rem; font-weight: 600; color: #f1f5f9; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
        .review-section h4 i, .review-section h4 svg { width: 16px; height: 16px; color: #f472b6; }

        .form-group { margin-bottom: 0.9rem; }
        .form-label { display: block; font-size: 0.8rem; font-weight: 500; color: #94a3b8; margin-bottom: 0.35rem; }
        .form-textarea {
            width: 100%; padding: 0.6rem 0.8rem;
            background: rgba(15,23,42,0.6); border: 1px solid #334155; border-radius: 8px;
            color: #e2e8f0; font-size: 0.875rem; resize: vertical; min-height: 90px; line-height: 1.5;
        }
        .form-textarea:focus { outline: none; border-color: #ec4899; box-shadow: 0 0 0 2px rgba(236,72,153,0.12); }
        .form-textarea::placeholder { color: #475569; }

        .status-select {
            width: 100%; padding: 0.55rem 0.8rem;
            background: rgba(15,23,42,0.6); border: 1px solid #334155; border-radius: 8px;
            color: #e2e8f0; font-size: 0.875rem;
        }
        .status-select:focus { outline: none; border-color: #ec4899; }
        .status-select option { background: #1e293b; }

        .review-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
        .save-msg {
            font-size: 0.8rem; padding: 0.5rem 0.75rem; border-radius: 6px;
            display: none; align-items: center; gap: 0.4rem; margin-top: 0.5rem;
        }
        .save-msg.ok  { display: flex; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: #10b981; }
        .save-msg.err { display: flex; background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.25);  color: #ef4444; }
        .save-msg i, .save-msg svg { width: 14px; height: 14px; }

        /* ── Lightbox ────────────────────────────────────── */
        .lightbox {
            display: none; position: fixed; inset: 0; z-index: 99999;
            background: rgba(0,0,0,0.92);
            align-items: center; justify-content: center;
            padding: 1rem;
        }
        .lightbox.open { display: flex; }
        .lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
        .lightbox-close {
            position: absolute; top: 1rem; right: 1rem;
            background: rgba(255,255,255,0.1); border: none; color: #fff;
            width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
            display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
        }
        .lightbox-close:hover { background: rgba(239,68,68,0.4); }
        .lightbox-close i, .lightbox-close svg { width: 20px; height: 20px; }

        /* ── Loading skeleton ────────────────────────────── */
        .skeleton { background: rgba(255,255,255,0.05); border-radius: 6px; animation: shimmer 1.2s infinite; }
        @keyframes shimmer { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

        /* ── Scrollbars ──────────────────────────────────── */
        #submissions-list::-webkit-scrollbar { width: 4px; }
        #submissions-list::-webkit-scrollbar-track { background: transparent; }
        #submissions-list::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

        .v2-footer { text-align: center; padding: 1.5rem 1rem; border-top: 1px solid #1e293b; color: #64748b; font-size: 0.8rem; }

        /* ── Admin Tool Nav Cards ───────────────────────── */
        .admin-tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 0.9rem;
            margin-bottom: 1.5rem;
        }
        .admin-tool-card {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            padding: 0.95rem 1rem;
            background: var(--v2-bg-secondary);
            border: 1px solid var(--v2-bg-hover, #334155);
            border-radius: 12px;
            color: var(--v2-text-secondary);
            text-decoration: none;
            transition: all 0.2s ease;
        }
        .admin-tool-card:hover {
            color: var(--v2-text-primary);
            border-color: rgba(59, 130, 246, 0.45);
            background: rgba(59, 130, 246, 0.1);
            transform: translateY(-1px);
        }
        .admin-tool-card--active {
            border-color: rgba(59, 130, 246, 0.65);
            background: rgba(59, 130, 246, 0.12);
            color: var(--v2-text-primary);
            cursor: default;
        }
        .admin-tool-card__icon {
            width: 34px; height: 34px;
            border-radius: 10px;
            background: var(--v2-bg-tertiary);
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .admin-tool-card__icon i,
        .admin-tool-card__icon svg { width: 18px; height: 18px; }
        .admin-tool-card__title { font-weight: 600; color: var(--v2-text-primary); line-height: 1.2; }
        .admin-tool-card__desc { font-size: 0.78rem; color: var(--v2-text-muted); margin-top: 0.18rem; }


/* ============================================================================
   PAGE-SPECIFIC: SUBSCRIPTION
   ============================================================================ */
.sub-page { max-width: 800px; padding-top: 2rem; padding-bottom: 3rem; }
        .sub-page__title {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--v2-text-primary);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .sub-page__title svg { width: 28px; height: 28px; color: var(--v2-accent-blue); }
        .sub-page__subtitle {
            color: var(--v2-text-muted);
            font-size: 0.95rem;
            margin-bottom: 2rem;
        }

        /* Plan card */
        .sub-plan-card {
            background: var(--v2-bg-secondary);
            border: 1px solid var(--v2-border-subtle);
            border-radius: 16px;
            padding: 2rem;
            margin-bottom: 1.5rem;
        }
        .sub-plan-card--premium {
            border-color: rgba(59, 130, 246, 0.4);
            background: linear-gradient(145deg, rgba(30, 41, 59, 1), rgba(26, 36, 54, 1));
        }
        .sub-plan-card--pro {
            border-color: rgba(245, 158, 11, 0.4);
        }

        .sub-plan-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }
        .sub-plan-info { flex: 1; }
        .sub-plan-name {
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--v2-text-primary);
            margin-bottom: 0.25rem;
        }
        .sub-plan-price {
            color: var(--v2-text-muted);
            font-size: 0.95rem;
        }
        .sub-plan-status {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.35rem 0.85rem;
            border-radius: 999px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .sub-plan-status--active {
            background: rgba(16, 185, 129, 0.15);
            color: var(--v2-accent-green);
            border: 1px solid rgba(16, 185, 129, 0.3);
        }
        .sub-plan-status--cancelled {
            background: rgba(245, 158, 11, 0.15);
            color: var(--v2-accent-amber);
            border: 1px solid rgba(245, 158, 11, 0.3);
        }
        .sub-plan-status--expired {
            background: rgba(239, 68, 68, 0.15);
            color: var(--v2-accent-red);
            border: 1px solid rgba(239, 68, 68, 0.3);
        }
        .sub-plan-status--free {
            background: rgba(148, 163, 184, 0.15);
            color: var(--v2-text-muted);
            border: 1px solid rgba(148, 163, 184, 0.3);
        }
        .sub-plan-status svg { width: 14px; height: 14px; }

        /* Details grid */
        .sub-details {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        @media (max-width: 480px) {
            .sub-details { grid-template-columns: 1fr; }
        }
        .sub-detail {
            padding: 1rem;
            background: var(--v2-bg-hover);
            border-radius: 10px;
        }
        .sub-detail__label {
            font-size: 0.8rem;
            color: var(--v2-text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.35rem;
        }
        .sub-detail__value {
            font-size: 1rem;
            color: var(--v2-text-primary);
            font-weight: 600;
        }

        /* Features list */
        .sub-features {
            list-style: none;
            padding: 0;
            margin: 0 0 1.5rem;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem;
        }
        @media (max-width: 480px) {
            .sub-features { grid-template-columns: 1fr; }
        }
        .sub-features li {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            color: var(--v2-text-secondary);
        }
        .sub-features li svg {
            width: 16px;
            height: 16px;
            color: var(--v2-accent-green);
            flex-shrink: 0;
        }

        /* Usage section */
        .sub-usage {
            background: var(--v2-bg-secondary);
            border: 1px solid var(--v2-border-subtle);
            border-radius: 16px;
            padding: 1.5rem 2rem;
            margin-bottom: 1.5rem;
        }
        .sub-usage__title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--v2-text-primary);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .sub-usage__title svg { width: 20px; height: 20px; }
        .sub-usage-bar {
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 999px;
            overflow: hidden;
            margin-bottom: 0.5rem;
        }
        .sub-usage-fill {
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--v2-accent-blue), var(--v2-accent-purple));
            transition: width 0.5s ease;
        }
        .sub-usage-fill--warning {
            background: linear-gradient(90deg, #f59e0b, #ef4444);
        }
        .sub-usage-text {
            display: flex;
            justify-content: space-between;
            font-size: 0.875rem;
            color: var(--v2-text-muted);
        }

        /* Actions */
        .sub-actions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }
        .sub-actions .v2-btn {
            padding: 0.75rem 1.5rem;
        }

        /* Success banner */
        .sub-success-banner {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
            border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 14px;
            padding: 1.25rem 1.5rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .sub-success-banner__icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(16, 185, 129, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .sub-success-banner__icon svg { width: 20px; height: 20px; color: #10b981; }
        .sub-success-banner__text {
            font-size: 0.95rem;
            color: var(--v2-text-primary);
            font-weight: 500;
        }

        /* Cancel confirmation */
        .sub-cancel-confirm {
            background: rgba(239, 68, 68, 0.08);
            border: 1px solid rgba(239, 68, 68, 0.25);
            border-radius: 12px;
            padding: 1.25rem;
            margin-top: 1rem;
        }
        .sub-cancel-confirm p {
            color: var(--v2-text-secondary);
            margin-bottom: 1rem;
            font-size: 0.925rem;
            line-height: 1.5;
        }
        .sub-cancel-confirm .v2-btn--danger {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }
        .sub-cancel-confirm .v2-btn--danger:hover {
            background: rgba(239, 68, 68, 0.25);
        }

        /* Loading spinner */
        .sub-loading {
            text-align: center;
            padding: 4rem 0;
        }
        .sub-loading p {
            margin-top: 1rem;
            color: var(--v2-text-muted);
        }


/* ============================================================================
   PAGE-SPECIFIC: PROGRESS
   ============================================================================ */
/* Progress Overview Cards */
        .progress-overview {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }
        .progress-stat {
            background: var(--v2-bg-secondary);
            border-radius: var(--v2-radius-lg);
            padding: 1.5rem;
            border: 1px solid var(--v2-bg-hover);
        }
        .progress-stat__icon {
            width: 40px;
            height: 40px;
            border-radius: var(--v2-radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
        }
        .progress-stat__icon svg { width: 20px; height: 20px; }
        .progress-stat__icon.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
        .progress-stat__icon.green { background: rgba(16, 185, 129, 0.2); color: #10b981; }
        .progress-stat__icon.purple { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
        .progress-stat__icon.amber { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
        .progress-stat__value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--v2-text-primary);
            line-height: 1;
        }
        .progress-stat__label {
            font-size: 0.85rem;
            color: var(--v2-text-muted);
            margin-top: 0.25rem;
        }

        /* Section Progress Grid */
        .sections-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        .section-card {
            background: var(--v2-bg-secondary);
            border-radius: var(--v2-radius-lg);
            padding: 1.5rem;
            border: 1px solid var(--v2-bg-hover);
            transition: transform 0.2s ease, border-color 0.2s ease;
        }
        .section-card:hover {
            transform: translateY(-2px);
            border-color: var(--v2-accent-blue);
        }
        .section-card__header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.25rem;
        }
        .section-card__icon {
            width: 48px;
            height: 48px;
            border-radius: var(--v2-radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .section-card__icon svg { width: 24px; height: 24px; }
        .section-card__title { font-weight: 600; font-size: 1.1rem; color: var(--v2-text-primary); }
        .section-card__count { font-size: 0.85rem; color: var(--v2-text-muted); }

        /* Progress bar */
        .progress-bar-container { margin-bottom: 1rem; }
        .progress-bar-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--v2-text-muted);
            margin-bottom: 0.5rem;
        }
        .progress-bar {
            height: 8px;
            background: var(--v2-bg-hover);
            border-radius: 4px;
            overflow: hidden;
        }
        .progress-bar__fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.5s ease;
        }
        .progress-bar__fill.blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
        .progress-bar__fill.green { background: linear-gradient(90deg, #10b981, #34d399); }
        .progress-bar__fill.purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
        .progress-bar__fill.amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
        .progress-bar__fill.teal { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
        .progress-bar__fill.red { background: linear-gradient(90deg, #ef4444, #f87171); }

        /* Section colors */
        .section-card[data-section="medications"] .section-card__icon { background: rgba(20, 184, 166, 0.2); color: #14b8a6; }
        .section-card[data-section="lab-values"] .section-card__icon { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
        .section-card[data-section="ecg-anatomy"] .section-card__icon { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
        .section-card[data-section="procedures"] .section-card__icon { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
        .section-card[data-section="critical-care"] .section-card__icon { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
        .section-card[data-section="pediatrics"] .section-card__icon { background: rgba(168, 85, 247, 0.2); color: #a855f7; }

        /* Recent Activity */
        .recent-activity {
            background: var(--v2-bg-secondary);
            border-radius: var(--v2-radius-lg);
            padding: 1.5rem;
            border: 1px solid var(--v2-bg-hover);
        }
        .recent-activity__title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--v2-text-primary);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .recent-activity__title svg { width: 20px; height: 20px; }
        .activity-list { display: flex; flex-direction: column; gap: 0.75rem; }
        .activity-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem;
            background: var(--v2-bg-tertiary);
            border-radius: var(--v2-radius-md);
        }
        .activity-item__icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .activity-item__icon svg { width: 18px; height: 18px; }
        .activity-item__icon.view { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
        .activity-item__icon.complete { background: rgba(16, 185, 129, 0.2); color: #10b981; }
        .activity-item__icon.quiz { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
        .activity-item__content { flex: 1; min-width: 0; }
        .activity-item__title {
            font-weight: 500;
            color: var(--v2-text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .activity-item__meta { font-size: 0.8rem; color: var(--v2-text-muted); }

        /* Quiz History */
        .quiz-history {
            background: var(--v2-bg-secondary);
            border-radius: var(--v2-radius-lg);
            padding: 1.5rem;
            border: 1px solid var(--v2-bg-hover);
            margin-top: 1.5rem;
        }
        .quiz-history__title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--v2-text-primary);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .quiz-history__title svg { width: 20px; height: 20px; }
        .quiz-table { width: 100%; border-collapse: collapse; }
        .quiz-table th, .quiz-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--v2-bg-hover);
        }
        .quiz-table th {
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--v2-text-muted);
        }
        .quiz-table td { font-size: 0.9rem; }
        .quiz-table tr:hover td { background: var(--v2-bg-hover); }
        .score-badge {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            border-radius: var(--v2-radius-sm);
            font-size: 0.8rem;
            font-weight: 500;
        }
        .score-badge.high { background: rgba(16, 185, 129, 0.2); color: #10b981; }
        .score-badge.medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
        .score-badge.low { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

        @media (max-width: 768px) {
            .progress-overview { grid-template-columns: repeat(2, 1fr); }
            .sections-grid { grid-template-columns: 1fr; }
            .progress-two-col { grid-template-columns: 1fr !important; }
        }


/* ============================================================================
   PAGE-SPECIFIC: ACHIEVEMENTS
   ============================================================================ */
/* Streak Section */
        .streak-card {
            background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #f59e0b 100%);
            border-radius: var(--v2-radius-xl);
            padding: 2rem;
            color: white;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 2rem;
            flex-wrap: wrap;
        }
        .streak-flame {
            font-size: 4rem;
            animation: flicker 1.5s ease-in-out infinite;
        }
        @keyframes flicker {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(1.05); }
        }
        .streak-info { flex: 1; min-width: 200px; }
        .streak-count {
            font-size: 3rem;
            font-weight: 700;
            line-height: 1;
        }
        .streak-label {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-top: 0.25rem;
        }
        .streak-meta {
            display: flex;
            gap: 2rem;
            margin-top: 1rem;
            flex-wrap: wrap;
        }
        .streak-meta-item { opacity: 0.9; }
        .streak-meta-value { font-weight: 600; }

        /* Streak Calendar */
        .streak-calendar {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 0.25rem;
            margin-top: 1rem;
        }
        .streak-day {
            aspect-ratio: 1;
            border-radius: var(--v2-radius-sm);
            background: rgba(255,255,255,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
        }
        .streak-day.active { background: rgba(255,255,255,0.8); color: #991b1b; font-weight: 600; }
        .streak-day.today { border: 2px solid white; }

        /* Badges Section */
        .badges-section {
            margin-bottom: 2rem;
        }
        .badges-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        .badges-progress {
            font-size: 0.9rem;
            color: var(--v2-text-muted);
        }
        .badges-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 1rem;
        }
        .badge-card {
            background: var(--v2-bg-secondary);
            border-radius: var(--v2-radius-lg);
            padding: 1.5rem 1rem;
            text-align: center;
            border: 1px solid var(--v2-bg-hover);
            transition: all 0.2s ease;
        }
        .badge-card:hover { transform: translateY(-2px); }
        .badge-card.earned { border-color: transparent; }
        .badge-card.locked {
            opacity: 0.5;
            filter: grayscale(1);
        }
        .badge-icon {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.75rem;
        }
        .badge-icon svg { width: 28px; height: 28px; color: white; }
        .badge-name {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--v2-text-primary);
            margin-bottom: 0.25rem;
        }
        .badge-desc {
            font-size: 0.8rem;
            color: var(--v2-text-muted);
            margin-bottom: 0.5rem;
        }
        .badge-earned-date {
            font-size: 0.75rem;
            color: var(--v2-accent-green);
        }
        .badge-locked-text {
            font-size: 0.75rem;
            color: var(--v2-text-muted);
        }

        /* Leaderboard Section */
        .leaderboard-section {
            background: var(--v2-bg-secondary);
            border-radius: var(--v2-radius-xl);
            padding: 1.5rem;
            border: 1px solid var(--v2-bg-hover);
        }
        .leaderboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        .leaderboard-opt-in {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--v2-text-muted);
        }
        .leaderboard-list { list-style: none; padding: 0; margin: 0; }
        .leaderboard-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--v2-bg-hover);
        }
        .leaderboard-item:last-child { border-bottom: none; }
        .leaderboard-item.current-user {
            background: rgba(59, 130, 246, 0.1);
            margin: 0 -1.5rem;
            padding-left: 1.5rem;
            padding-right: 1.5rem;
            border-radius: var(--v2-radius-md);
        }
        .leaderboard-rank {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.9rem;
            flex-shrink: 0;
        }
        .leaderboard-rank.gold { background: linear-gradient(135deg, #fbbf24, #d97706); color: white; }
        .leaderboard-rank.silver { background: linear-gradient(135deg, #9ca3af, #6b7280); color: white; }
        .leaderboard-rank.bronze { background: linear-gradient(135deg, #d97706, #92400e); color: white; }
        .leaderboard-rank.default { background: var(--v2-bg-hover); color: var(--v2-text-secondary); }
        .leaderboard-name { flex: 1; font-weight: 500; }
        .leaderboard-stats {
            display: flex;
            gap: 1.5rem;
            font-size: 0.9rem;
            color: var(--v2-text-muted);
        }
        .leaderboard-stat-value { font-weight: 600; color: var(--v2-text-primary); }

        @media (max-width: 768px) {
            .streak-card { padding: 1.5rem; gap: 1rem; }
            .streak-count { font-size: 2.5rem; }
            .streak-meta { gap: 1rem; }
            .badges-grid {
                display: flex;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                gap: 0.75rem;
                padding-bottom: 0.5rem;
                scrollbar-width: none;
            }
            .badges-grid::-webkit-scrollbar { display: none; }
            .badge-card {
                flex: 0 0 140px;
                scroll-snap-align: start;
            }
        }


/* ============================================================================
   PAGE-SPECIFIC: FAVORITES
   ============================================================================ */
.favorites-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--v2-bg-hover);
            padding-bottom: 0.5rem;
        }
        .favorites-tab {
            padding: 0.75rem 1.25rem;
            background: transparent;
            border: none;
            color: var(--v2-text-muted);
            font-size: 0.95rem;
            cursor: pointer;
            border-radius: var(--v2-radius-md) var(--v2-radius-md) 0 0;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .favorites-tab:hover {
            color: var(--v2-text-primary);
            background: var(--v2-bg-hover);
        }
        .favorites-tab.active {
            color: var(--v2-accent-blue);
            background: var(--v2-bg-secondary);
            border-bottom: 2px solid var(--v2-accent-blue);
        }
        .favorites-tab svg { width: 18px; height: 18px; }
        .favorites-tab .count {
            background: var(--v2-bg-hover);
            padding: 0.125rem 0.5rem;
            border-radius: var(--v2-radius-full);
            font-size: 0.8rem;
        }
        .favorites-tab.active .count {
            background: rgba(59, 130, 246, 0.2);
        }

        .favorites-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1rem;
        }
        .favorite-card {
            background: var(--v2-bg-secondary);
            border-radius: var(--v2-radius-lg);
            padding: 1.25rem;
            border: 1px solid var(--v2-bg-hover);
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
        }
        .favorite-card:hover {
            border-color: var(--v2-accent-blue);
            transform: translateY(-2px);
        }
        .favorite-card__header {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
        }
        .favorite-card__icon {
            width: 40px;
            height: 40px;
            border-radius: var(--v2-radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .favorite-card__icon svg { width: 20px; height: 20px; color: white; }
        .favorite-card__icon--page { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
        .favorite-card__icon--question { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
        .favorite-card__title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--v2-text-primary);
            margin-bottom: 0.25rem;
            line-height: 1.4;
        }
        .favorite-card__category {
            font-size: 0.85rem;
            color: var(--v2-text-muted);
        }
        .favorite-card__actions {
            margin-top: auto;
            padding-top: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid var(--v2-bg-hover);
        }
        .favorite-card__date {
            font-size: 0.8rem;
            color: var(--v2-text-muted);
        }
        .favorite-card__remove {
            background: transparent;
            border: none;
            color: var(--v2-text-muted);
            cursor: pointer;
            padding: 0.5rem;
            border-radius: var(--v2-radius-md);
            transition: all 0.2s ease;
        }
        .favorite-card__remove:hover {
            color: var(--v2-accent-red);
            background: rgba(239, 68, 68, 0.1);
        }
        .favorite-card__remove svg { width: 18px; height: 18px; }

        .v2-empty-state {
            text-align: center;
            padding: 3rem 1rem;
            color: var(--v2-text-muted);
        }
        .v2-empty-state svg {
            width: 48px;
            height: 48px;
            margin-bottom: 1rem;
            opacity: 0.5;
        }
        .v2-empty-state p { margin-bottom: 1rem; }

        @media (max-width: 640px) {
            .favorites-grid {
                grid-template-columns: 1fr;
            }
            .favorites-tabs {
                overflow-x: auto;
            }
        }


/* ============================================================================
   PAGE-SPECIFIC: PROFILE
   ============================================================================ */
/* Toggle switch */
        .lb-toggle-track {
            position: absolute;
            cursor: pointer;
            inset: 0;
            background: rgba(51,65,85,0.6);
            border-radius: 26px;
            transition: background 0.25s;
        }
        .lb-toggle-track::before {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            left: 3px;
            bottom: 3px;
            background: #e2e8f0;
            border-radius: 50%;
            transition: transform 0.25s;
        }
        #leaderboard-opt-in:checked + .lb-toggle-track {
            background: #10b981;
        }
        #leaderboard-opt-in:checked + .lb-toggle-track::before {
            transform: translateX(22px);
        }
