/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary-blue: #2563eb;
    --primary-orange: #ea580c;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    --warning: #f97316;
    --danger: #ef4444;
    --gradient-main: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
    --gradient-dark: linear-gradient(135deg, #1e40af 0%, #c2410c 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gradient-main);
    padding: 2px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-btn {
    padding: 0.625rem 1.5rem;
    border: 2px solid var(--primary-blue);
    background-color: transparent;
    color: var(--primary-blue);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.auth-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 50%, #fef3c7 100%);
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--gradient-main);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* ============================================
   BUTTONS
   ============================================ */
.cta-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.primary-btn {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-primary);
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* ============================================
   DASHBOARD SECTION
   ============================================ */
.dashboard-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.dashboard-container {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Locked State */
.dashboard-locked {
    padding: 3rem 2rem;
}

.locked-content {
    max-width: 900px;
    margin: 0 auto;
}

.course-preview {
    text-align: center;
    margin-bottom: 2rem;
}

.blur-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
}

.course-preview h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.course-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.course-outline {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.course-outline h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.outline-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.outline-list li {
    padding: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.unlock-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(234, 88, 12, 0.05) 100%);
    border-radius: 0.75rem;
}

.discount-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--warning);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.unlock-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.unlock-btn {
    margin-top: 0.5rem;
}

/* Unlocked State */
.dashboard-unlocked {
    padding: 2rem;
}

.unlocked-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.unlocked-header h2 {
    margin-bottom: 0.5rem;
}

.unlock-status {
    color: var(--success);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.video-container {
    position: relative;
    width: 100%;
    display: grid;
    gap: 1.5rem;
}

.premium-video-panel {
    display: grid;
    gap: 1rem;
}

.premium-video-card {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.premium-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.18);
}

.premium-video-thumb-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    min-height: 180px;
    min-width: 300px;
}

.premium-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 2rem;
    opacity: 1;
}

.pdf-row {
    display: flex;              /* places items side by side */   /* centers them horizontally */
    gap: 20px;                  /* space between each PDF */
    margin-top: 20px;
}

  .pdf-row img {
    width: 80px;                /* adjust size as needed */
    height: auto;
    cursor: pointer;            /* optional: makes them clickable */
}
.premium-video-info {
    display: grid;
    gap: 1rem;
    align-content: center;
}

.premium-video-info h3 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.2;
}

.premium-video-info p {
    margin: 0;
    color: var(--text-secondary);
}
.premium-video-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.4rem;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.premium-video-button:hover {
    background: var(--primary-hover);
}

@media (max-width: 860px) {
    .premium-video-card {
        grid-template-columns: 1fr;
    }

    .premium-video-thumb-wrapper {
        min-width: auto;
    }
}

.video-disclaimer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.16);
    border-radius: 1rem;
    color: var(--text-secondary);
}

.disclaimer-icon {
    align-self: flex-start;
    font-size: 1.25rem;
}

.video-disclaimer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.live-rate-notice {
    margin: 0.75rem 0 0;
    padding: 0.85rem 1rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 0.85rem;
    color: #166534;
    font-size: 0.95rem;
    line-height: 1.5;
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(234, 88, 12, 0.1) 100%);
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.placeholder-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

#videoFrame {
    border-radius: 0.75rem;
    display: none;
}

#videoFrame[src="about:blank"] {
    display: none;
}

/* ============================================
   TOAST NOTIFICATION SYSTEM
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    background: var(--card-bg);
    border-left: 4px solid var(--primary-blue);
    border-radius: 0.5rem;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out, slideOutRight 0.3s ease-out 3.7s forwards;
    color: var(--text-primary);
}

.toast-success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.toast-success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.toast-error {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.toast-error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

/* Toast Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ============================================
   PASSWORD HINT STYLING
   ============================================ */

.password-hint {
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal[style*="display: flex"],
.modal.active {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    width: 100%;
    max-width: 500px;
}

.profile-modal {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: var(--light-bg);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--border-color);
}

/* ============================================
   AUTH MODAL
   ============================================ */
.auth-modal {
    width: 100%;
    max-width: 450px;
    padding: 2rem 2rem;
}

.auth-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.auth-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-submit {
    width: 100%;
    margin-top: 1rem;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.oauth-buttons {
    display: flex;
    gap: 1rem;
}

.oauth-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.oauth-btn:hover {
    background: var(--light-bg);
    border-color: var(--primary-blue);
}

.google-btn {
    color: #1f2937;
}

.apple-btn {
    color: #000;
}

/* ============================================
   AUTH OPTIONS
   ============================================ */
.auth-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-options h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.auth-option-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-option-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(4px);
}

.auth-option-btn .option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.auth-option-btn .option-text {
    flex: 1;
    text-align: left;
}

.auth-option-btn .option-text strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.auth-option-btn .option-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.back-to-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.back-to-options:hover {
    transform: translateX(-4px);
}

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.checkout-modal {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.checkout-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-container h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.discount-section {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 0.75rem;
}

.discount-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.discount-input-group {
    display: flex;
    gap: 0.75rem;
}

.promo-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-family: inherit;
}

.promo-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.discount-result {
    margin-top: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.375rem;
    border-left: 4px solid var(--success);
}

#discountMessage {
    font-size: 0.9rem;
    margin: 0;
}

.pricing-details {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 0.75rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.total {
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.payment-toggle-section {
    padding: 0 0;
}

.payment-toggle-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toggle-option {
    padding: 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.toggle-option:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(234, 88, 12, 0.02) 100%);
}

.toggle-option.active {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(234, 88, 12, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toggle-label {
    color: var(--text-primary);
}

.toggle-amount {
    color: var(--primary-blue);
    font-weight: 700;
}

.payment-details {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.payment-details p {
    margin: 0.5rem 0;
    word-break: break-all;
}

/* Critical Warning */
.critical-warning {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(249, 115, 22, 0.05) 100%);
    border: 2px solid var(--danger);
    border-radius: 0.5rem;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--danger);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.warning-header svg {
    flex-shrink: 0;
}

.warning-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--danger);
    line-height: 1.5;
}

.warning-text strong {
    font-weight: 700;
}

.proceed-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.checkout-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ============================================
   CRYPTO INVOICE - DYNAMIC PAYMENT DISPLAY
   ============================================ */

.crypto-invoice-block {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(234, 88, 12, 0.05) 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.invoice-header {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.75rem;
}

.invoice-header h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.invoice-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.invoice-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.invoice-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
}

.invoice-value {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--primary-blue);
    font-weight: 600;
    word-break: break-all;
    flex: 1;
}

.address-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
}

.address-text {
    flex: 1;
    padding: 0.75rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    overflow-wrap: break-word;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background-color: var(--primary-orange);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.98);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero {
        min-height: 400px;
    }

    .dashboard-section {
        padding: 0 1rem;
    }

    .dashboard-locked,
    .dashboard-unlocked {
        padding: 1.5rem 1rem;
    }

    .course-outline {
        padding: 1.5rem 1rem;
    }

    .outline-list {
        grid-template-columns: 1fr;
    }

    .auth-modal {
        padding: 1.5rem 1.5rem;
    }

    .checkout-modal {
        padding: 1.5rem;
    }

    .toggle-group {
        gap: 0.5rem;
    }

    .toggle-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .oauth-buttons {
        flex-direction: column;
    }

    .discount-input-group {
        flex-direction: column;
    }

    .video-container iframe {
        height: auto;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .header-container {
        padding: 0.75rem;
    }

    .auth-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .course-preview h2 {
        font-size: 1.5rem;
    }

    .auth-modal,
    .checkout-modal {
        padding: 1.25rem;
        width: 95%;
    }

    .modal-close {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1.25rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    .price-row {
        font-size: 0.85rem;
    }

    .warning-text {
        font-size: 0.8rem;
    }

    .toggle-option {
        padding: 0.75rem;
    }

    .warning-header {
        font-size: 0.75rem;
    }
}

/* ============================================
   PROFILE MODAL
   ============================================ */

.profile-modal {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.profile-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-container h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.profile-email {
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    word-break: break-all;
    border: 1px solid var(--border-color);
}

/* Verification Badge */
.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
}

.verification-badge.verified {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.verification-badge.verified .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
}

.verification-badge.unpaid {
    background: rgba(249, 115, 22, 0.1);
    color: #d97706;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.verification-badge.unpaid .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--warning);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
}

.verification-badge.checking {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.verification-badge.checking .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #9ca3af;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge-text {
    display: inline-block;
}

/* Theme Toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
    width: fit-content;
}

.theme-toggle:hover {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle.dark-active .toggle-icon {
    transform: rotate(180deg);
}

.toggle-text {
    font-size: 0.95rem;
}

/* Profile Buttons */
.profile-button {
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
}

.danger-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: var(--danger);
    border: 2px solid var(--danger);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.danger-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* ============================================
   DARK THEME
   ============================================ */

body.dark-theme {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

body.dark-theme .header {
    background-color: #16213e;
    border-bottom-color: #2d3561;
}

body.dark-theme .card-bg,
body.dark-theme .modal-content,
body.dark-theme .auth-form {
    background-color: #0f3460;
    color: #e0e0e0;
}

body.dark-theme .form-group input,
body.dark-theme .form-group label,
body.dark-theme .profile-email {
    background-color: #16213e;
    color: #e0e0e0;
    border-color: #2d3561;
}

body.dark-theme .form-group input::placeholder {
    color: #999;
}

body.dark-theme .divider {
    color: #999;
}

body.dark-theme .divider::before {
    background: #2d3561;
}

body.dark-theme .auth-tab {
    color: #999;
}

body.dark-theme .auth-tab.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

body.dark-theme .modal {
    background-color: rgba(0, 0, 0, 0.7);
}

body.dark-theme .text-secondary {
    color: #aaa;
}

body.dark-theme .border-color {
    border-color: #2d3561;
}

body.dark-theme .hero {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

body.dark-theme .dashboard-section {
    background-color: #1a1a2e;
}

body.dark-theme .oauth-btn {
    background: #16213e;
    border-color: #2d3561;
    color: #e0e0e0;
}

body.dark-theme .oauth-btn:hover {
    background: #0f3460;
    border-color: #00d4ff;
}

body.dark-theme .theme-toggle {
    background: #16213e;
    border-color: #2d3561;
    color: #e0e0e0;
}

body.dark-theme .theme-toggle:hover {
    border-color: #00d4ff;
    background: #0f3460;
}

body.dark-theme .profile-email {
    background-color: #16213e;
    color: #aaa;
}

body.dark-theme .auth-modal,
body.dark-theme .checkout-modal,
body.dark-theme .profile-modal {
    background-color: #0f3460;
}

body.dark-theme .modal-content {
    background-color: #0f3460;
}

body.dark-theme .light-bg {
    background-color: #16213e;
}

body.dark-theme .auth-option-btn {
    background: #16213e;
    border-color: #2d3561;
    color: #e0e0e0;
}

body.dark-theme .auth-option-btn:hover {
    background: #0f3460;
    border-color: #00d4ff;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.active .modal-content {
    animation: fadeIn 0.3s ease;
}
