/**
 * JEGPF Plugin Styles
 * James & Ethel Gray Park Foundation
 */

/* ========================================
   CSS Variables
======================================== */
:root {
    /* Brand Colors */
    --jegpf-brand: #28a745;
    --jegpf-brand-dark: #1e7e34;
    --jegpf-brand-light: #48c664;
    --jegpf-brand-glow: rgba(40, 167, 69, 0.3);
    
    /* Forest Theme */
    --jegpf-forest-0: #1a2f26;
    --jegpf-forest-1: #243d32;
    --jegpf-forest-2: #2f4f41;
    
    /* Text Colors */
    --jegpf-text: #0b1114;
    --jegpf-text-light: #ffffff;
    --jegpf-text-muted: #51606b;
    
    /* UI Colors */
    --jegpf-border: #e5ebef;
    --jegpf-bg-light: #f6f9fb;
    --jegpf-bg-success: #f6fff9;
    --jegpf-success-border: #ddf3e3;
    --jegpf-error: #dc3545;
    --jegpf-error-bg: #fff5f5;
}

/* ========================================
   Nature Background
======================================== */
.jegpf-nature-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--jegpf-forest-0);
    filter: blur(5px);
    transform: scale(1.02);
}

.jegpf-park-fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.jegpf-vignette-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    background: radial-gradient(
        circle at 50% 50%,
        transparent 10%,
        rgba(15, 35, 25, 0.1) 60%,
        rgba(10, 25, 20, 0.6) 100%
    );
}

/* ========================================
   Donate Section
======================================== */
.jegpf-donate {
    position: relative;
    z-index: 2;
}

.jegpf-donate *,
.jegpf-donate *::before,
.jegpf-donate *::after {
    box-sizing: border-box;
}

.jegpf-donate .container {
    width: min(1100px, 94vw);
    margin: 0 auto;
    padding: 2.5rem 0;
}

.jegpf-donate h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: #fff;
}

.jegpf-donate p.lead {
    margin: 0.25rem 0 1.25rem;
    color: rgba(255, 255, 255, 0.85);
}

.jegpf-donate p.lead a {
    color: #d6ffe6;
    text-decoration: none;
}

.jegpf-donate a[href^="mailto"],
.jegpf-donate a[href^="tel"],
.jegpf-donate a[href*="wa.me"] {
    text-decoration: none;
}

.jegpf-donate .grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(12, 1fr);
}

.jegpf-donate .col-8 {
    grid-column: span 8;
}

.jegpf-donate .col-4 {
    grid-column: span 4;
}

@media (max-width: 900px) {
    .jegpf-donate .col-8,
    .jegpf-donate .col-4 {
        grid-column: span 12;
    }
}

.jegpf-donate .card {
    border: 1px solid var(--jegpf-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.jegpf-donate .card > .body {
    padding: 1rem 1.1rem;
}

.jegpf-donate .card h2 {
    margin: 0.2rem 0 0.4rem;
    font-size: 1.2rem;
}

.jegpf-donate .btn {
    display: inline-block;
    padding: 0.7rem 1rem;
    border-radius: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--jegpf-brand);
    background: var(--jegpf-brand);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jegpf-donate .btn.secondary {
    background: #fff;
    color: var(--jegpf-brand);
}

.jegpf-donate .btn.block {
    display: block;
    text-align: center;
    width: 100%;
}

.jegpf-donate .btn:hover {
    filter: brightness(1.05);
}

.jegpf-donate .muted {
    color: var(--jegpf-text-muted);
}

.jegpf-donate .list {
    margin: 0.6rem 0 0.2rem;
    padding-left: 1.1rem;
}

.jegpf-donate .rows {
    display: grid;
    gap: 0.5rem;
}

.jegpf-donate .row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.jegpf-donate .row code {
    flex: 1 1 auto;
    background: var(--jegpf-bg-light);
    border: 1px solid var(--jegpf-border);
    padding: 0.45rem 0.55rem;
    border-radius: 0.5rem;
    overflow-wrap: anywhere;
    font-family: inherit;
}

.jegpf-donate .copy {
    flex: 0 0 auto;
}

.jegpf-donate .note {
    background: var(--jegpf-bg-success);
    border: 1px solid var(--jegpf-success-border);
    color: #2b6c3a;
    padding: 0.6rem 0.7rem;
    border-radius: 0.6rem;
    margin-top: 0.6rem;
}

.jegpf-donate .hr {
    height: 1px;
    background: #eef3f5;
    margin: 1rem 0;
}

.jegpf-donate .hint {
    font-size: 0.92rem;
    color: var(--jegpf-text-muted);
}

.jegpf-donate .card p,
.jegpf-donate .card li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.jegpf-donate .contact {
    margin-top: 0.6rem;
    padding: 0.75rem 0.8rem;
    border: 1px solid #e6ebef;
    background: #fdfefe;
    border-radius: 0.65rem;
}

.jegpf-donate .contact .h {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    color: var(--jegpf-text);
    font-weight: 700;
}

.jegpf-donate .contact .btn {
    margin: 0.35rem 0;
}

/* User Notice (Logged in notification) - Subtle Version */
.jegpf-user-notice-subtle {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem;
    pointer-events: none;
}

.jegpf-user-notice-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    pointer-events: auto;
}

.jegpf-user-notice-pill svg {
    opacity: 0.7;
}

.jegpf-user-notice-pill strong {
    color: #fff;
}

/* Legacy user notice - kept for compatibility */
.jegpf-user-notice {
    position: relative;
    z-index: 2;
    padding: 0.75rem 1rem;
    background: rgba(40, 167, 69, 0.15);
    border-bottom: 1px solid rgba(40, 167, 69, 0.3);
}

.jegpf-user-notice-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d6ffe6;
    font-size: 0.95rem;
}

.jegpf-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(40, 167, 69, 0.5);
}

.jegpf-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jegpf-coming-soon {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ========================================
   Footer
======================================== */
.jegpf-footer {
    --brand: #0e8a5b;
    --ink: #e8f5ef;
    --pat-size: 18px;
    --pat-dot: rgba(14, 138, 91, 0.16);

    margin-top: clamp(8px, 1.6vw, 14px);
    position: relative;
    z-index: 5;
    width: 100%;
    color: var(--ink);
    font: 13px/1.25 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    background-color: #000;
    background-image:
        radial-gradient(120% 140% at 50% -20%, rgba(14, 138, 91, 0.22), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 60%),
        radial-gradient(circle, var(--pat-dot) 1.1px, transparent 1.5px);
    background-size: auto, auto, var(--pat-size) var(--pat-size);
    background-position: center top, center top, 0 0;
    border-top: 1px solid var(--brand);
    box-shadow: inset 0 1px 0 rgba(14, 138, 91, 0.75), inset 0 2px 0 rgba(255, 255, 255, 0.05);
}

.jegpf-footer .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 12px;
}

.jegpf-footer p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
}

.jegpf-footer p > * {
    display: inline-flex;
    align-items: center;
}

@media (min-width: 700px) {
    .jegpf-footer p {
        flex-wrap: nowrap;
    }
}

.jegpf-footer .sep {
    opacity: 0.65;
    color: #bfeedd;
}

.jegpf-footer .rights {
    opacity: 0.9;
}

@media (max-width: 640px) {
    .jegpf-footer {
        font-size: 12.5px;
    }
    .jegpf-footer .inner {
        padding: 14px 10px;
    }
}

/* ========================================
   Profile Circle (Navigation)
======================================== */
.jegpf-profile-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jegpf-brand) 0%, var(--jegpf-brand-dark) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.jegpf-profile-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.jegpf-profile-small {
    width: 32px;
    height: 32px;
}

.jegpf-profile-large {
    width: 48px;
    height: 48px;
}

.jegpf-profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jegpf-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jegpf-profile-initials {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.jegpf-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jegpf-profile-icon svg {
    width: 20px;
    height: 20px;
}

.jegpf-profile-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.jegpf-profile-indicator.jegpf-logged-in {
    background: var(--jegpf-brand);
}

/* Nav specific styling - ensure profile is always rightmost */
.jegpf-profile-nav {
    margin-left: 10px;
}

.jegpf-nav-profile {
    display: flex;
    align-items: center;
    order: 9999; /* Ensure it's always last in flex containers */
    margin-left: auto; /* Push to the right */
}

/* For themes using flex on nav */
.menu-item.jegpf-nav-profile {
    order: 9999 !important;
    margin-left: auto !important;
}

/* ========================================
   Account Page
======================================== */
.jegpf-account {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.jegpf-account-container {
    flex: 1;
    width: min(1100px, 94vw);
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Auth Container (Login/Register) */
.jegpf-auth-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.jegpf-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.jegpf-auth-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.jegpf-auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.jegpf-auth-logo svg {
    width: 100%;
    height: 100%;
}

.jegpf-auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--jegpf-text);
    margin: 0 0 0.5rem;
}

.jegpf-auth-subtitle {
    color: var(--jegpf-text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Tab Navigation */
.jegpf-auth-tabs {
    display: flex;
    border-radius: 12px;
    background: var(--jegpf-bg-light);
    padding: 4px;
    margin-bottom: 1.5rem;
}

.jegpf-auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--jegpf-text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.jegpf-auth-tab:hover {
    color: var(--jegpf-text);
}

.jegpf-auth-tab.active {
    background: #fff;
    color: var(--jegpf-brand);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Auth Panels */
.jegpf-auth-panel {
    display: none;
}

.jegpf-auth-panel.active {
    display: block;
}

.jegpf-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--jegpf-text-muted);
    font-size: 0.9rem;
}

/* ========================================
   Forms
======================================== */
.jegpf-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jegpf-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.jegpf-form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--jegpf-text);
}

.jegpf-form-group input[type="text"],
.jegpf-form-group input[type="email"],
.jegpf-form-group input[type="password"] {
    padding: 0.75rem 1rem;
    border: 1px solid var(--jegpf-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
}

.jegpf-form-group input:focus {
    outline: none;
    border-color: var(--jegpf-brand);
    box-shadow: 0 0 0 3px var(--jegpf-brand-glow);
}

.jegpf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .jegpf-form-row {
        grid-template-columns: 1fr;
    }
}

.jegpf-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Password Field */
.jegpf-password-field {
    position: relative;
}

.jegpf-password-field input {
    width: 100%;
    padding-right: 3rem;
}

/* Hide browser's native password reveal button (Edge, Chrome) */
.jegpf-password-field input::-ms-reveal,
.jegpf-password-field input::-ms-clear,
.jegpf-password-field input::-webkit-credentials-auto-fill-button,
.jegpf-password-field input::-webkit-clear-button {
    display: none !important;
}

/* Also hide for login form */
.jegpf-form input[type="password"]::-ms-reveal,
.jegpf-form input[type="password"]::-ms-clear,
.jegpf-form input[type="password"]::-webkit-credentials-auto-fill-button,
.jegpf-form input[type="password"]::-webkit-clear-button {
    display: none !important;
}

.jegpf-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--jegpf-text-muted);
    transition: color 0.2s;
}

.jegpf-password-toggle:hover {
    color: var(--jegpf-text);
}

.jegpf-password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Password Strength */
.jegpf-password-strength {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.jegpf-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--jegpf-border);
    border-radius: 2px;
    overflow: hidden;
}

.jegpf-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.jegpf-strength-fill.weak { width: 33%; background: var(--jegpf-error); }
.jegpf-strength-fill.medium { width: 66%; background: #f0ad4e; }
.jegpf-strength-fill.strong { width: 100%; background: var(--jegpf-brand); }

.jegpf-strength-text {
    font-size: 0.75rem;
    color: var(--jegpf-text-muted);
    min-width: 50px;
}

/* Checkbox */
.jegpf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.jegpf-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--jegpf-brand);
    cursor: pointer;
    flex-shrink: 0;
}

.jegpf-checkbox-label {
    font-size: 0.9rem;
    color: var(--jegpf-text);
    line-height: 1.4;
}

.jegpf-checkbox-label a {
    color: var(--jegpf-brand);
    text-decoration: none;
}

.jegpf-checkbox-label a:hover {
    text-decoration: underline;
}

.jegpf-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .jegpf-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.jegpf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.jegpf-btn svg {
    width: 18px;
    height: 18px;
}

.jegpf-btn-primary {
    background: var(--jegpf-brand);
    color: #fff;
    border-color: var(--jegpf-brand);
}

.jegpf-btn-primary:hover {
    background: var(--jegpf-brand-dark);
    border-color: var(--jegpf-brand-dark);
}

.jegpf-btn-secondary {
    background: #fff;
    color: var(--jegpf-brand);
    border-color: var(--jegpf-brand);
}

.jegpf-btn-secondary:hover {
    background: var(--jegpf-bg-success);
}

.jegpf-btn-block {
    width: 100%;
}

.jegpf-btn-small {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
}

.jegpf-btn-small svg {
    width: 14px;
    height: 14px;
}

.jegpf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.jegpf-btn-row {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.jegpf-btn-row .jegpf-btn {
    flex: 1;
}

/* Link Button */
.jegpf-link {
    color: var(--jegpf-brand);
    text-decoration: none;
    font-size: 0.9rem;
}

.jegpf-link:hover {
    text-decoration: underline;
}

.jegpf-link-btn {
    background: none;
    border: none;
    color: var(--jegpf-brand);
    cursor: pointer;
    font-size: inherit;
    font-weight: 600;
    padding: 0;
}

.jegpf-link-btn:hover {
    text-decoration: underline;
}

/* Form Messages */
.jegpf-form-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.jegpf-form-message.success {
    display: block;
    background: var(--jegpf-bg-success);
    border: 1px solid var(--jegpf-success-border);
    color: #2b6c3a;
}

.jegpf-form-message.error {
    display: block;
    background: var(--jegpf-error-bg);
    border: 1px solid #f5c6cb;
    color: var(--jegpf-error);
}

/* Loading Spinner */
.spinner {
    animation: spin 1s linear infinite;
    width: 20px;
    height: 20px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   Registration Steps
======================================== */
.jegpf-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.jegpf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.jegpf-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--jegpf-border);
    color: var(--jegpf-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.jegpf-step.active .jegpf-step-number,
.jegpf-step.completed .jegpf-step-number {
    background: var(--jegpf-brand);
    color: #fff;
}

.jegpf-step-label {
    font-size: 0.75rem;
    color: var(--jegpf-text-muted);
    font-weight: 500;
}

.jegpf-step.active .jegpf-step-label {
    color: var(--jegpf-brand);
}

.jegpf-step-line {
    width: 40px;
    height: 2px;
    background: var(--jegpf-border);
    margin: 0 0.5rem;
    margin-bottom: 1.25rem;
}

.jegpf-step-line.completed {
    background: var(--jegpf-brand);
}

/* Form Steps */
.jegpf-form-step {
    display: none;
}

.jegpf-form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.jegpf-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--jegpf-text);
    margin: 0 0 0.25rem;
    text-align: center;
}

.jegpf-step-desc {
    color: var(--jegpf-text-muted);
    text-align: center;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

/* Interest Cards */
.jegpf-interest-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .jegpf-interest-cards {
        grid-template-columns: 1fr;
    }
}

.jegpf-interest-card {
    cursor: pointer;
    display: flex;
}

.jegpf-interest-card input {
    display: none;
}

.jegpf-interest-card-inner {
    padding: 1rem;
    border: 2px solid var(--jegpf-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
}

.jegpf-interest-card-inner svg {
    width: 32px;
    height: 32px;
    color: var(--jegpf-text-muted);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.jegpf-interest-card-inner span {
    display: block;
    font-weight: 600;
    color: var(--jegpf-text);
    font-size: 0.9rem;
}

.jegpf-interest-card-inner p {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--jegpf-text-muted);
}

.jegpf-interest-card:hover .jegpf-interest-card-inner {
    border-color: var(--jegpf-brand-light);
}

.jegpf-interest-card input:checked + .jegpf-interest-card-inner {
    border-color: var(--jegpf-brand);
    background: var(--jegpf-bg-success);
}

.jegpf-interest-card input:checked + .jegpf-interest-card-inner svg {
    color: var(--jegpf-brand);
}

/* Review Card */
.jegpf-review-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--jegpf-bg-light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.jegpf-review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--jegpf-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jegpf-review-avatar svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.jegpf-review-details h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: var(--jegpf-text);
}

.jegpf-review-details p {
    margin: 0;
    color: var(--jegpf-text-muted);
    font-size: 0.9rem;
}

.jegpf-review-section {
    margin-bottom: 1.5rem;
}

.jegpf-review-section h4 {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--jegpf-text-muted);
    font-weight: 600;
}

.jegpf-review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jegpf-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--jegpf-bg-success);
    color: var(--jegpf-brand-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.jegpf-tag-empty {
    background: var(--jegpf-bg-light);
    color: var(--jegpf-text-muted);
}

.jegpf-terms {
    padding: 1rem;
    background: var(--jegpf-bg-light);
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* ========================================
   Account Dashboard
======================================== */
.jegpf-account-dashboard {
    max-width: 900px;
    margin: 0 auto;
}

.jegpf-account-header {
    text-align: center;
    margin-bottom: 2rem;
}

.jegpf-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.jegpf-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jegpf-account-header h1 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 0 0.25rem;
}

.jegpf-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

/* Dashboard Cards */
.jegpf-account-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.jegpf-dash-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.jegpf-dash-card-wide {
    grid-column: 1 / -1;
}

.jegpf-dash-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--jegpf-border);
}

.jegpf-dash-card-header .jegpf-icon {
    width: 24px;
    height: 24px;
    color: var(--jegpf-brand);
}

.jegpf-dash-card-header h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--jegpf-text);
    flex: 1;
}

.jegpf-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--jegpf-bg-light);
    border: 1px solid var(--jegpf-border);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--jegpf-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.jegpf-edit-btn svg {
    width: 14px;
    height: 14px;
}

.jegpf-edit-btn:hover {
    background: #fff;
    border-color: var(--jegpf-brand);
    color: var(--jegpf-brand);
}

.jegpf-dash-card-body {
    padding: 1.25rem;
}

.jegpf-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--jegpf-border);
}

.jegpf-info-row:last-child {
    border-bottom: none;
}

.jegpf-label {
    color: var(--jegpf-text-muted);
    font-size: 0.9rem;
}

.jegpf-value {
    color: var(--jegpf-text);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Profile Grid Layout */
.jegpf-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.jegpf-profile-info {
    display: flex;
    flex-direction: column;
}

.jegpf-profile-interests {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jegpf-profile-interests .jegpf-label {
    font-weight: 600;
    color: var(--jegpf-text);
    margin-bottom: 0.25rem;
}

@media (max-width: 640px) {
    .jegpf-profile-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.jegpf-interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jegpf-muted {
    color: var(--jegpf-text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

/* Coming Soon Card */
.jegpf-coming-soon-card .jegpf-dash-card-header {
    background: linear-gradient(135deg, var(--jegpf-brand) 0%, var(--jegpf-brand-dark) 100%);
    border-bottom: none;
}

.jegpf-coming-soon-card .jegpf-dash-card-header .jegpf-icon,
.jegpf-coming-soon-card .jegpf-dash-card-header h2 {
    color: #fff;
}

.jegpf-coming-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jegpf-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.jegpf-feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--jegpf-brand);
    flex-shrink: 0;
}

.jegpf-feature-item span {
    color: var(--jegpf-text);
    font-size: 0.9rem;
}

/* Account Actions */
.jegpf-account-actions {
    text-align: center;
}

/* ========================================
   Modal
======================================== */
.jegpf-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.jegpf-modal.active {
    display: flex;
}

.jegpf-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.jegpf-modal-content h2 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    color: var(--jegpf-text);
}

.jegpf-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    padding: 0;
    border: none;
    background: #dc3545;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
    line-height: 1;
}

.jegpf-modal-close svg {
    width: 12px;
    height: 12px;
    stroke: #fff;
    stroke-width: 3;
    flex-shrink: 0;
}

.jegpf-modal-close:hover {
    background: #c82333;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.jegpf-modal-close:active {
    transform: scale(0.95);
}

/* ========================================
   Avatar Upload
======================================== */
.jegpf-avatar-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.jegpf-avatar-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--jegpf-bg-light);
    border: 2px solid var(--jegpf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.jegpf-avatar-preview svg {
    width: 28px;
    height: 28px;
    color: var(--jegpf-text-muted);
}

.jegpf-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jegpf-avatar-preview-large {
    width: 80px;
    height: 80px;
}

.jegpf-avatar-preview-large svg {
    width: 36px;
    height: 36px;
}

.jegpf-avatar-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.jegpf-avatar-upload-edit {
    flex-direction: row;
    align-items: center;
}

.jegpf-hint {
    font-size: 0.75rem;
    color: var(--jegpf-text-muted);
    margin: 0;
}

.jegpf-opt-out-hint {
    margin-top: 0.25rem;
    color: var(--jegpf-text-muted);
    font-style: italic;
}

.jegpf-newsletter-toggle {
    padding: 0.75rem;
    background: var(--jegpf-bg-light);
    border-radius: 8px;
}

/* ========================================
   OTP Verification
======================================== */
.jegpf-otp-verification {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.jegpf-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.jegpf-otp-digit,
.jegpf-otp-input {
    width: 48px;
    height: 56px;
    border: 2px solid var(--jegpf-border);
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--jegpf-text);
    background: var(--jegpf-bg-light);
    transition: all 0.2s ease;
}

.jegpf-otp-digit:focus,
.jegpf-otp-input:focus {
    outline: none;
    border-color: var(--jegpf-brand);
    box-shadow: 0 0 0 3px var(--jegpf-brand-glow);
    background: #fff;
}

.jegpf-otp-digit::-webkit-outer-spin-button,
.jegpf-otp-digit::-webkit-inner-spin-button,
.jegpf-otp-input::-webkit-outer-spin-button,
.jegpf-otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* OTP Container for step 2 */
.jegpf-otp-container {
    text-align: center;
    padding: 1.5rem 0;
}

.jegpf-otp-resend {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--jegpf-text-muted);
    font-size: 0.9rem;
}

.jegpf-resend-timer {
    color: var(--jegpf-text-muted);
    font-size: 0.875rem;
}

/* Email Verified Badge */
.jegpf-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--jegpf-bg-success);
    color: var(--jegpf-brand);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.jegpf-link-btn {
    background: none;
    border: none;
    color: var(--jegpf-brand);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jegpf-link-btn:hover {
    color: var(--jegpf-brand-dark);
}

.jegpf-link-btn:disabled {
    color: var(--jegpf-text-muted);
    cursor: not-allowed;
}

/* ========================================
   Responsive Adjustments
======================================== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .jegpf-account-container {
        max-width: 1100px;
    }
    
    .jegpf-auth-container {
        max-width: 520px;
    }
}

/* Laptop/Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .jegpf-account-container {
        max-width: 960px;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .jegpf-account-container {
        padding: 1.5rem;
    }
    
    .jegpf-account-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jegpf-interest-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape / Small Tablet (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .jegpf-account-container {
        padding: 1.25rem 1rem;
    }
    
    .jegpf-auth-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .jegpf-account-cards {
        grid-template-columns: 1fr;
    }
    
    .jegpf-form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .jegpf-interest-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Portrait (< 576px) */
@media (max-width: 575px) {
    .jegpf-account-container {
        padding: 1rem 0.75rem;
    }
    
    .jegpf-auth-container {
        padding: 1.25rem;
        border-radius: 16px;
        margin: 0 0.5rem;
    }
    
    .jegpf-auth-logo {
        width: 80px;
        height: 80px;
    }
    
    .jegpf-auth-title {
        font-size: 1.15rem;
    }
    
    .jegpf-auth-subtitle {
        font-size: 0.85rem;
    }
    
    .jegpf-auth-tabs {
        padding: 3px;
    }
    
    .jegpf-auth-tab {
        padding: 0.6rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .jegpf-form-row {
        grid-template-columns: 1fr;
    }
    
    .jegpf-form-group input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .jegpf-steps {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .jegpf-step-line {
        width: 20px;
        margin: 0 0.25rem;
        margin-bottom: 1.25rem;
    }
    
    .jegpf-step-label {
        font-size: 0.7rem;
    }
    
    .jegpf-interest-cards {
        grid-template-columns: 1fr;
    }
    
    .jegpf-interest-card-inner {
        padding: 0.85rem;
    }
    
    .jegpf-interest-card-inner svg {
        width: 26px;
        height: 26px;
    }
    
    .jegpf-btn-row {
        flex-direction: column;
    }
    
    .jegpf-btn-row .jegpf-btn {
        width: 100%;
    }
    
    .jegpf-account-header h1 {
        font-size: 1.35rem;
    }
    
    .jegpf-subtitle {
        font-size: 0.9rem;
    }
    
    .jegpf-avatar-large {
        width: 80px;
        height: 80px;
    }
    
    .jegpf-account-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .jegpf-dash-card-header {
        padding: 0.85rem 1rem;
    }
    
    .jegpf-dash-card-body {
        padding: 1rem;
    }
    
    .jegpf-modal-content {
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .jegpf-avatar-upload {
        flex-direction: column;
        text-align: center;
    }
    
    .jegpf-avatar-upload-controls {
        align-items: center;
    }
    
    .jegpf-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .jegpf-user-notice-pill {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
}

/* Standard tablet and below (768px) - keeping original for compatibility */
@media (max-width: 768px) {
    .jegpf-account-container {
        padding: 1.5rem 1rem;
    }
    
    .jegpf-auth-container {
        padding: 1.5rem;
    }
    
    .jegpf-auth-title {
        font-size: 1.2rem;
    }
    
    .jegpf-account-header h1 {
        font-size: 1.5rem;
    }
    
    .jegpf-account-cards {
        grid-template-columns: 1fr;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .jegpf-btn {
        min-height: 44px;
    }
    
    .jegpf-checkbox input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }
    
    .jegpf-password-toggle {
        padding: 0.5rem;
    }
}

