/* ==========================================================================
   AstroLeaf Enterprise Luxury Authentication Modal & OTP Styling
   ========================================================================== */

:root {
    --ale-gold-primary: #D4AF37;
    --ale-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #AA7C11 100%);
    --ale-teal-primary: #0D9488;
    --ale-teal-dark: #0F766E;
    --ale-wa-green: #25D366;
    --ale-dark-bg: #120E1C;
    --ale-card-bg: #1A1528;
    --ale-border-color: rgba(212, 175, 55, 0.22);
}

/* Modal Core Container */
.astroleaf-auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 16px;
    box-sizing: border-box;
}

.astroleaf-auth-modal.open {
    opacity: 1;
    visibility: visible;
}

.astroleaf-auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 7, 18, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.astroleaf-auth-modal-content {
    position: relative;
    z-index: 10;
    background: #FFFFFF;
    color: #1F192F;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.3);
    transform: scale(0.94) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.astroleaf-auth-modal.open .astroleaf-auth-modal-content {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.astroleaf-auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #FAF7F2;
    border-bottom: 1px solid #EBE4D8;
}

.astroleaf-auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.auth-brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #1F192F;
}

.auth-brand-name span {
    color: var(--ale-teal-primary);
}

.astroleaf-auth-modal-close {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #786C5E;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.astroleaf-auth-modal-close:hover {
    background: #EBE4D8;
    color: #1F192F;
}

/* Modal Body */
.astroleaf-auth-modal-body {
    padding: 24px;
}

/* Status Alert Banner */
.astroleaf-auth-status {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 20px;
    font-weight: 600;
}

.astroleaf-auth-status.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.astroleaf-auth-status.success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.astroleaf-auth-status.info {
    background: #EFF6FF;
    color: #8C4E03;
    border: 1px solid #FDE68A;
}

.debug-otp-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    background: #D1FAE5;
    color: #047857;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Tab Switcher */
.astroleaf-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #F3ECE2;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    margin-bottom: 22px;
}

.astroleaf-auth-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #635647;
    cursor: pointer;
    transition: all 0.2s ease;
}

.astroleaf-auth-tab-btn.active {
    background: #FFFFFF;
    color: #1F192F;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.astroleaf-auth-tab-content {
    display: none;
}

.astroleaf-auth-tab-content.active {
    display: block;
    animation: fadeInTab 0.25s ease-out;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Text in Tab */
.auth-card-hero h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1F192F;
}

.astroleaf-auth-desc {
    font-size: 0.88rem;
    color: #635647;
    line-height: 1.5;
    margin: 0 0 20px;
}

/* Google Buttons & Forms */
.astroleaf-btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    background: #FFFFFF;
    border: 1.5px solid #E2D9CC;
    border-radius: 10px;
    font-size: 0.96rem;
    font-weight: 700;
    color: #2D2738;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.astroleaf-btn-google:hover {
    background: #FAF7F2;
    border-color: var(--ale-gold-primary);
    transform: translateY(-1px);
}

.astroleaf-google-quick-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #E2D9CC;
}

.quick-form-note {
    font-size: 0.82rem;
    color: #635647;
    margin-bottom: 8px;
}

/* Phone & OTP Input Controls */
.astroleaf-field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5C5042;
    margin-bottom: 8px;
}

.astroleaf-phone-group {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.astroleaf-country-code {
    padding: 12px 10px;
    background: #FAF7F2;
    border: 1.5px solid #E2D9CC;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1F192F;
    outline: none;
}

.astroleaf-input {
    width: 100%;
    padding: 12px 16px;
    background: #FAF7F2;
    border: 1.5px solid #E2D9CC;
    border-radius: 10px;
    font-size: 0.96rem;
    color: #1F192F;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.astroleaf-input:focus, .astroleaf-country-code:focus {
    border-color: var(--ale-teal-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    background: #FFFFFF;
}

/* 6-Digit OTP Box Grid */
.astroleaf-otp-boxes-wrapper {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.otp-box {
    width: 48px;
    height: 54px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: #FAF7F2;
    border: 1.5px solid #E2D9CC;
    border-radius: 10px;
    color: #1F192F;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

@media (max-width: 400px) {
    .astroleaf-otp-boxes-wrapper {
        gap: 4px;
    }
    .otp-box {
        width: 38px;
        height: 46px;
        font-size: 1.1rem;
        border-radius: 8px;
    }
}

.otp-box:focus {
    border-color: var(--ale-gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: #FFFFFF;
}

/* Primary Auth Action Button */
.astroleaf-auth-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: #F97316 !important;
    background-color: #F97316 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    border: 1px solid #F97316 !important;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    transition: all 0.2s ease;
}

.astroleaf-auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
    background: #EA580C !important;
    background-color: #EA580C !important;
    border-color: #EA580C !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.astroleaf-auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* OTP Timer & Links */
.otp-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #5C5042;
    margin-bottom: 14px;
    background: #FAF7F2;
    padding: 8px 12px;
    border-radius: 8px;
}

.btn-link-edit, .btn-link-resend {
    background: none;
    border: none;
    color: var(--ale-teal-primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
    padding: 0;
}

.astroleaf-otp-timer-wrap {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: #635647;
    margin-bottom: 16px;
}

.astroleaf-auth-modal-footer {
    padding: 14px 24px;
    background: #FAF7F2;
    border-top: 1px solid #EBE4D8;
    text-align: center;
    font-size: 0.78rem;
    color: #786C5E;
}

/* Dark Mode Theme Rules */
[data-theme=dark] .astroleaf-auth-modal-content {
    background: var(--ale-card-bg);
    color: #FAF6EE;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--ale-border-color);
}

[data-theme=dark] .astroleaf-auth-modal-header,
[data-theme=dark] .astroleaf-auth-modal-footer,
[data-theme=dark] .otp-header-meta {
    background: #141021;
    border-color: #292138;
}

[data-theme=dark] .auth-brand-name,
[data-theme=dark] .auth-card-hero h3 {
    color: #FAF6EE;
}

[data-theme=dark] .astroleaf-auth-tabs {
    background: #120E1C;
}

[data-theme=dark] .astroleaf-auth-tab-btn {
    color: #A39686;
}

[data-theme=dark] .astroleaf-auth-tab-btn.active {
    background: var(--ale-card-bg);
    color: #FAF6EE;
}

[data-theme=dark] .astroleaf-input,
[data-theme=dark] .astroleaf-country-code,
[data-theme=dark] .otp-box {
    background: #120E1C;
    border-color: #2E253D;
    color: #FAF6EE;
}

[data-theme=dark] .astroleaf-btn-google {
    background: #120E1C;
    border-color: #2E253D;
    color: #FAF6EE;
}

[data-theme=dark] .astroleaf-btn-google:hover {
    background: #1B152B;
    border-color: var(--ale-gold-primary);
}

/* Password Eye Toggle Centering & Alignment Fix */
.vr-pass-wrapper,
.astroleaf-pass-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.vr-pass-wrapper .vr-input,
.astroleaf-pass-wrapper input,
.astroleaf-pass-wrapper .astroleaf-input {
    padding-right: 48px !important;
}

.vr-toggle-pass-btn,
.toggle-pass-btn,
.vr-pass-wrapper .vr-toggle-pass-btn,
.astroleaf-pass-wrapper .vr-toggle-pass-btn {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #64748B !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    border-radius: 50% !important;
    transition: color 0.15s ease, background-color 0.15s ease !important;
}

.vr-toggle-pass-btn:hover,
.toggle-pass-btn:hover,
.vr-pass-wrapper .vr-toggle-pass-btn:hover,
.astroleaf-pass-wrapper .vr-toggle-pass-btn:hover {
    color: #EA580C !important;
    background-color: rgba(234, 88, 12, 0.08) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vr-toggle-pass-btn:focus,
.vr-toggle-pass-btn:active,
.toggle-pass-btn:focus,
.toggle-pass-btn:active,
.vr-pass-wrapper .vr-toggle-pass-btn:focus,
.vr-pass-wrapper .vr-toggle-pass-btn:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vr-toggle-pass-btn svg,
.toggle-pass-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.vr-toggle-pass-btn .eye-icon-show,
.toggle-pass-btn .eye-icon-show {
    display: block !important;
}

.vr-toggle-pass-btn .eye-icon-hide,
.toggle-pass-btn .eye-icon-hide {
    display: none !important;
}

.vr-toggle-pass-btn.pass-visible .eye-icon-show,
.toggle-pass-btn.pass-visible .eye-icon-show {
    display: none !important;
}

.vr-toggle-pass-btn.pass-visible .eye-icon-hide,
.toggle-pass-btn.pass-visible .eye-icon-hide {
    display: block !important;
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
/* --- AstroLeaf Standard Educational Article & FAQ Content System --- */
html body .wy-seo-article,
html body .wy-seo-articles {
    margin-top: 50px !important;
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

html body .wy-article-section {
    background: #FFFDF9 !important;
    border: 1px solid #E7E0D6 !important;
    border-radius: 14px !important;
    padding: 36px 40px !important;
    margin-bottom: 28px !important;
    box-shadow: 0 4px 18px rgba(28, 19, 13, 0.02) !important;
}

html body .wy-article-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(184, 108, 16, 0.08) !important;
    color: #B86C10 !important;
    font-family: var(--font-mono, monospace) !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    margin-bottom: 14px !important;
    border: 1px solid rgba(184, 108, 16, 0.2) !important;
}

html body .wy-article-h2 {
    font-family: var(--font-heading, Georgia, serif) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #1C1917 !important;
    margin: 0 0 16px 0 !important;
}

html body .wy-article-body {
    font-size: 0.98rem !important;
    line-height: 1.82 !important;
    color: #44403C !important;
}

html body .wy-article-body p { margin-bottom: 16px !important; }
html body .wy-article-body p:last-child { margin-bottom: 0 !important; }

/* Table Content Styling */
html body .wy-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    font-size: 0.92rem !important;
}

html body .wy-table th,
html body .wy-table td {
    padding: 12px 14px !important;
    border: 1px solid #E7E0D6 !important;
}

html body .wy-table th {
    background: #FAF4E8 !important;
    font-weight: 700 !important;
    color: #1C1917 !important;
}

/* FAQ Accordion Styling */
html body .wy-faq-accordion {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 10px !important;
}

html body .wy-faq-item {
    border: 1.5px solid #E7E0D6 !important;
    border-radius: 10px !important;
    background: #FAF8F5 !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
}

html body .wy-faq-item.active {
    border-color: #B86C10 !important;
    background: #FFFDF9 !important;
    box-shadow: 0 4px 14px rgba(184, 108, 16, 0.08) !important;
}

html body .wy-faq-trigger {
    width: 100% !important;
    padding: 16px 20px !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-family: inherit !important;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    color: #1C1917 !important;
    text-align: left !important;
    cursor: pointer !important;
    outline: none !important;
    gap: 14px !important;
}

html body .wy-faq-icon {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #B86C10 !important;
    transition: transform 0.25s ease !important;
    line-height: 1 !important;
}

html body .wy-faq-item.active .wy-faq-icon {
    transform: rotate(45deg) !important;
    color: #D97706 !important;
}

html body .wy-faq-content {
    display: none;
    padding: 0 20px 18px 20px !important;
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
    color: #44403C !important;
    border-top: 1px solid #E7E0D6 !important;
}

html body .wy-faq-item.active .wy-faq-content {
    display: block !important;
}

@media (max-width: 767px) {
    html body .wy-article-section { padding: 24px 20px !important; }
    html body .wy-faq-trigger { padding: 14px 16px !important; font-size: 0.9rem !important; }
}

/* ==========================================
   Auth Modal: Mobile & Small Phone Layout
   ========================================== */
@media (max-width: 480px) {
  .astroleaf-auth-modal-content,
  .astroleaf-auth-modal-container {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px !important;
    margin: 0 !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
  }

  .astroleaf-auth-modal-body {
    padding: 16px 20px !important;
  }

  .astroleaf-auth-modal-header {
    padding: 16px 20px !important;
  }

  .astroleaf-auth-tab-btn {
    font-size: 0.84rem !important;
    padding: 9px !important;
  }
}

@media (max-width: 360px) {
  .astroleaf-auth-modal-content,
  .astroleaf-auth-modal-container {
    padding: 14px 12px !important;
  }

  .modal-main-title {
    font-size: 1.25rem !important;
  }
}
