/*
 * pages.css — Thiqa Theme
 * Page-specific styles: hero, homepage sections, prices, stocks, calculator, treasury, consultation.
 */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.thiqa-hero {
    min-height: calc(100vh - var(--ticker-height) - var(--header-height));
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, #003a87 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Decorative blobs */
.thiqa-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(191,161,99,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.thiqa-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(191,161,99,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Animated grid pattern overlay */
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: var(--space-24);
}

.hero-content { max-width: 680px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(191,161,99,0.15);
    border: 1px solid rgba(191,161,99,0.3);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: var(--radius-full);
    animation: pulse-dot 2s infinite;
}

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

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: var(--space-6);
}

.hero-title .gold { color: var(--color-gold-light); }

.hero-desc {
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,0.75);
    line-height: var(--line-height-loose);
    max-width: 540px;
    margin-bottom: var(--space-8);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat__number {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-gold-light);
    font-family: var(--font-en);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.hero-stat__label {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}

/* Hero floating card */
.hero-float-card {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    animation: float-card 6s ease-in-out infinite;
}

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

.hero-float-card .card-glass {
    padding: var(--space-5);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

.hero-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: var(--font-size-sm);
}

.hero-price-row:last-child { border-bottom: none; }
.hero-price-row__label { color: rgba(255,255,255,0.7); }
.hero-price-row__val   { color: white; font-weight: 700; font-family: var(--font-en); }

/* ==========================================================================
   HOMEPAGE — LIVE PRICES WIDGET
   ========================================================================== */
.prices-widget {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.prices-widget__tabs {
    display: flex;
    background: var(--color-off-white);
    border-bottom: 1px solid var(--color-border);
}

.prices-widget__tab {
    flex: 1;
    padding: var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    text-align: center;
    transition: var(--transition-fast);
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.prices-widget__tab.active {
    color: var(--color-navy);
    border-bottom-color: var(--color-gold);
    background: white;
}

.prices-widget__body { padding: var(--space-6); }

.prices-widget__panel { display: none; }
.prices-widget__panel.active { display: block; }

.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.prices-update-note {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-4);
}

.update-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    animation: pulse-dot 2s infinite;
}

/* ==========================================================================
   HOMEPAGE — SERVICES GRID
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

/* ==========================================================================
   HOMEPAGE — WHY THIQA
   ========================================================================== */
.why-section { background: var(--color-navy); }

.why-section .section-title { color: white; }
.why-section .section-title::after { background: var(--color-gold); }
.why-section .section-label { color: var(--color-gold-light); }
.why-section .section-desc  { color: rgba(255,255,255,0.7); }

.why-card {
    padding: var(--space-6);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.why-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }

.why-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold-glass);
    border-radius: var(--radius-sm);
    font-size: 24px;
    margin-bottom: var(--space-4);
    border: 1px solid rgba(191,161,99,0.3);
}

.why-card__title { font-size: var(--font-size-base); font-weight: 700; color: white; margin-bottom: var(--space-2); }
.why-card__desc  { font-size: var(--font-size-sm); color: rgba(255,255,255,0.6); line-height: var(--line-height-loose); }

/* ==========================================================================
   PRICES PAGE
   ========================================================================== */
.prices-page-section { margin-bottom: var(--space-12); }

.prices-page-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-border);
}

.prices-page-section__title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.prices-page-section__title::before {
    content: '';
    display: block;
    width: 6px;
    height: 28px;
    background: linear-gradient(180deg, var(--color-gold), var(--color-gold-dark));
    border-radius: var(--radius-full);
}

.gold-prices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.currency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

/* ==========================================================================
   STOCKS PAGE
   ========================================================================== */
.stocks-page-header {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    color: white;
    padding: var(--space-10) 0;
    margin-bottom: var(--space-8);
}

.stocks-page-header h1 { color: white; margin-bottom: var(--space-2); }
.stocks-page-header p  { color: rgba(255,255,255,0.7); }

.stocks-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.stocks-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    background: var(--color-off-white);
    border-bottom: 1px solid var(--color-border);
}

.stocks-count  { font-size: var(--font-size-sm); color: var(--color-text-muted); }
.stocks-update { font-size: var(--font-size-xs); color: var(--color-text-light); }

.stocks-table-wrapper { overflow-x: auto; }

.stocks-empty {
    padding: var(--space-16);
    text-align: center;
    color: var(--color-text-muted);
}

.stocks-empty__icon { font-size: 3rem; margin-bottom: var(--space-4); opacity: 0.4; }
.stocks-empty__title { font-size: var(--font-size-lg); font-weight: 700; color: var(--color-navy); margin-bottom: var(--space-2); }

/* ==========================================================================
   CALCULATOR PAGE
   ========================================================================== */
.calc-page { background: var(--color-bg); min-height: 60vh; }

.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.calc-form-card { position: sticky; top: calc(var(--header-height) + var(--space-6)); }

.calc-input-group { margin-bottom: var(--space-5); }

.calc-input-suffix {
    position: relative;
}

.calc-input-suffix .form-control { padding-left: var(--space-12); }

.calc-input-suffix__label {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-text-muted);
    pointer-events: none;
    font-family: var(--font-en);
}

.calc-slider {
    width: 100%;
    accent-color: var(--color-gold);
    cursor: pointer;
}

/* Results */
.calc-result {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    color: white;
}

.calc-result__title { font-size: var(--font-size-sm); color: rgba(255,255,255,0.6); margin-bottom: var(--space-1); }
.calc-result__value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-gold-light);
    font-family: var(--font-en);
    line-height: 1;
    margin-bottom: var(--space-6);
}

.calc-breakdown {
    display: grid;
    gap: var(--space-3);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.calc-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
}

.calc-breakdown-row__label { color: rgba(255,255,255,0.65); }
.calc-breakdown-row__value { font-weight: 700; color: white; font-family: var(--font-en); }

.calc-breakdown-row--total .calc-breakdown-row__label { color: var(--color-gold-light); font-weight: 700; }
.calc-breakdown-row--total .calc-breakdown-row__value { color: var(--color-gold-light); font-size: var(--font-size-base); }

/* Counter animation */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.calc-result__value.animating {
    animation: count-up 0.4s ease-out;
}

/* ==========================================================================
   TREASURY PAGE
   ========================================================================== */
.treasury-info-card {
    background: linear-gradient(135deg, #fffbf0, #fff8e6);
    border: 1px solid var(--color-border-gold);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.treasury-info-card__title { font-weight: 700; color: var(--color-navy); margin-bottom: var(--space-2); }
.treasury-info-card p { font-size: var(--font-size-sm); color: var(--color-text-muted); margin-bottom: 0; }

/* ==========================================================================
   CONSULTATION PAGE
   ========================================================================== */
.consultation-page {
    background: linear-gradient(180deg, var(--color-bg) 0%, white 100%);
}

.consultation-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-12);
    align-items: start;
}

.consultation-info__title { font-size: var(--font-size-2xl); font-weight: 800; color: var(--color-navy); margin-bottom: var(--space-4); }
.consultation-info__desc  { color: var(--color-text-muted); line-height: var(--line-height-loose); margin-bottom: var(--space-6); }

.consultation-points { list-style: none; }
.consultation-points li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.consultation-points li:last-child { border-bottom: none; }
.consultation-points li::before { content: '✦'; color: var(--color-gold); flex-shrink: 0; margin-top: 1px; }

.form-submit-wrap { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }

/* ==========================================================================
   ARCHIVE PAGES (courses, news, banks, podcast)
   ========================================================================== */
.archive-header {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    padding: var(--space-12) 0;
    color: white;
}

.archive-header h1 { color: white; margin-bottom: var(--space-2); }
.archive-header p   { color: rgba(255,255,255,0.7); }

.archive-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.archive-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }

/* ==========================================================================
   TESTIMONIALS CAROUSEL
   ========================================================================== */
.testimonials-section { background: var(--color-bg); }

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 100%);
    padding: var(--space-16) 0;
    text-align: center;
}

.cta-section h2 { color: var(--color-navy); font-size: var(--font-size-3xl); margin-bottom: var(--space-4); }
.cta-section p  { color: rgba(0,46,109,0.8); margin-bottom: var(--space-6); font-size: var(--font-size-base); }

/* ==========================================================================
   RESPONSIVE — PAGES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-float-card { display: none; }
    .hero-title { font-size: var(--font-size-4xl); }
    .services-grid    { grid-template-columns: repeat(3, 1fr); }
    .gold-prices-grid { grid-template-columns: repeat(2, 1fr); }
    .currency-grid    { grid-template-columns: repeat(3, 1fr); }
    .prices-grid      { grid-template-columns: repeat(2, 1fr); }
    .calc-wrapper     { grid-template-columns: 1fr; }
    .calc-form-card   { position: static; }
    .consultation-grid{ grid-template-columns: 1fr; }
    .testimonials-track { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-title  { font-size: 2.25rem; } /* ~36px */
    .hero-stat__number { font-size: 2.25rem; } /* ~36px */
    .hero-stats  { gap: var(--space-5); flex-wrap: wrap; }
    .services-grid    { grid-template-columns: repeat(2, 1fr); }
    .gold-prices-grid { grid-template-columns: repeat(2, 1fr); }
    .currency-grid    { grid-template-columns: repeat(2, 1fr); }
    .prices-grid      { grid-template-columns: 1fr; }
    .archive-grid-3   { grid-template-columns: 1fr; }
    .archive-grid-2   { grid-template-columns: 1fr; }
    .testimonials-track { grid-template-columns: 1fr; }
    
    /* Stocks Page Responsive */
    .stocks-toolbar { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
    .stocks-table-wrapper { -webkit-overflow-scrolling: touch; padding-bottom: var(--space-2); }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
    .service-card  { padding: var(--space-5) var(--space-3); }
    .prices-widget__tabs { flex-wrap: wrap; }
}

/* ==========================================================================
   PHASE 2 — AUTH PAGES (Login / Register)
   ========================================================================== */
.auth-page {
    min-height: calc(100vh - var(--header-height) - var(--ticker-height));
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 60%, #003a87 100%);
    display: flex;
    align-items: center;
    padding: var(--space-12) 0;
}

.auth-page__inner {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: var(--space-10) var(--space-8);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-xl);
}

.auth-page--register .auth-card { max-width: 540px; }

.auth-card__logo { text-align: center; margin-bottom: var(--space-6); }
.auth-card__logo-img { max-height: 60px; width: auto; margin-inline: auto; }

.auth-card__title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: var(--space-2);
}

.auth-card__desc {
    color: var(--color-text-muted);
    text-align: center;
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-6);
}

.auth-form { margin-top: var(--space-4); }

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: var(--space-3);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.input-icon-wrap .form-control { padding-right: var(--space-10); }

.toggle-password {
    position: absolute;
    left: var(--space-3);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: var(--color-text-muted);
    padding: 0;
    z-index: 1;
}

.form-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin-top: var(--space-1);
    margin-bottom: 0;
}

.form-checkbox-group { margin-top: var(--space-2); }

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.form-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--color-navy);
}

.auth-submit { width: 100%; margin-top: var(--space-6); }

.auth-alert {
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
}

.auth-alert--error   { background: var(--color-danger-bg);  color: var(--color-danger);  border: 1px solid rgba(239,68,68,0.3); }
.auth-alert--success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid rgba(16,185,129,0.3); }

.auth-card__footer {
    margin-top: var(--space-6);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.auth-link { color: var(--color-navy); font-weight: 700; }
.auth-link:hover { color: var(--color-gold); }

/* Register success state */
.register-success {
    text-align: center;
    padding: var(--space-8) 0;
}
.register-success__icon  { font-size: 4rem; margin-bottom: var(--space-4); }
.register-success__title { font-size: var(--font-size-xl); color: var(--color-navy); margin-bottom: var(--space-3); }
.register-success__desc  { color: var(--color-text-muted); max-width: 360px; margin-inline: auto; line-height: var(--line-height-loose); }

/* ==========================================================================
   PHASE 2 — HEADER: AUTH BUTTONS + AVATAR DROPDOWN + PENDING BADGE
   ========================================================================== */
.header-auth-btns {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

/* Avatar button */
.header-avatar-wrap { position: relative; }

.header-avatar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-gold-glass);
    border: 1px solid var(--color-border-gold);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--color-navy);
    font-family: inherit;
}

.header-avatar:hover { background: rgba(191,161,99,0.25); }

.header-avatar__initials {
    width: 32px;
    height: 32px;
    background: var(--color-navy);
    color: var(--color-gold-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.header-avatar__name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-navy);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-avatar__chevron {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    transition: transform 0.2s;
}

.header-avatar[aria-expanded="true"] .header-avatar__chevron { transform: rotate(180deg); }

/* Dropdown menu */
.header-avatar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: var(--transition-fast);
    z-index: var(--z-overlay);
}

.header-avatar-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header-avatar-dropdown__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--color-border);
}

.header-avatar-dropdown__item:last-child { border-bottom: none; }
.header-avatar-dropdown__item:hover      { background: var(--color-bg); color: var(--color-navy); }
.header-avatar-dropdown__item--danger:hover { color: var(--color-danger); background: var(--color-danger-bg); }

/* Pending badge */
.header-pending-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: #92400e;
}

.header-pending-badge__dot {
    width: 8px;
    height: 8px;
    background: var(--color-warning);
    border-radius: var(--radius-full);
    animation: pulse-dot 1.5s infinite;
    flex-shrink: 0;
}

/* ==========================================================================
   PHASE 2 — MEMBER GATE BLOCK
   ========================================================================== */
.thiqa-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-8);
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-off-white) 100%);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--color-border);
    text-align: center;
}

.thiqa-gate__inner { max-width: 440px; }

.thiqa-gate__icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-4);
}

.thiqa-gate__title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: var(--space-3);
}

.thiqa-gate__desc {
    color: var(--color-text-muted);
    line-height: var(--line-height-loose);
    margin-bottom: var(--space-6);
}

.thiqa-gate__actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   PHASE 2 — PERSON OF THE MONTH (POTM)
   ========================================================================== */
.potm-section {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, #003a87 100%);
    position: relative;
    overflow: hidden;
}

.potm-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(191,161,99,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.potm-inner { position: relative; z-index: 2; }

.potm-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-12);
    align-items: center;
}

.potm-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.potm-photo {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-full);
    background-size: cover;
    background-position: center;
    border: 4px solid var(--color-gold);
    box-shadow: 0 0 0 8px rgba(191,161,99,0.15), var(--shadow-xl);
    position: relative;
}

.potm-photo--placeholder {
    background: var(--color-navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.potm-photo__glow {
    position: absolute;
    inset: -12px;
    border-radius: var(--radius-full);
    background: radial-gradient(circle, rgba(191,161,99,0.2) 0%, transparent 70%);
    animation: potm-glow 3s ease-in-out infinite;
}

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

.potm-month-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: var(--color-navy);
    font-size: var(--font-size-xs);
    font-weight: 800;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: var(--shadow-gold);
}

.potm-info { }

.potm-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(191,161,99,0.15);
    border: 1px solid rgba(191,161,99,0.3);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.potm-label__icon { font-size: 1rem; }

.potm-name {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-2);
    line-height: 1.1;
}

.potm-role {
    font-size: var(--font-size-md);
    color: var(--color-gold-light);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.potm-bio {
    color: rgba(255,255,255,0.75);
    line-height: var(--line-height-loose);
    max-width: 560px;
    font-size: var(--font-size-base);
}

/* ==========================================================================
   PHASE 2 — PROFILE PAGE
   ========================================================================== */
.profile-page { min-height: 60vh; }

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-8);
    align-items: start;
}

.profile-avatar-card { text-align: center; position: sticky; top: calc(var(--header-height) + var(--space-4)); }

.profile-avatar {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-gold-light);
    margin-inline: auto;
    margin-bottom: var(--space-4);
    border: 3px solid var(--color-gold);
}

.profile-name {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: var(--space-2);
}

.profile-badge { margin-bottom: var(--space-4); }

.badge { display: inline-block; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-size: var(--font-size-xs); font-weight: 700; }
.badge--approved { background: var(--color-success-bg); color: var(--color-success); border: 1px solid rgba(16,185,129,0.3); }

.profile-meta { margin-bottom: var(--space-4); }

.profile-meta__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
}

.profile-meta__row:last-child { border-bottom: none; }
.profile-meta__label { color: var(--color-text-muted); }
.profile-meta__value { font-weight: 700; color: var(--color-navy); }

.profile-section { }
.profile-section__title { font-size: var(--font-size-lg); color: var(--color-navy); margin-bottom: var(--space-6); }

.profile-empty { text-align: center; padding: var(--space-10) 0; }
.profile-empty__icon { font-size: 3rem; margin-bottom: var(--space-4); }
.profile-empty__text { color: var(--color-text-muted); margin-bottom: var(--space-6); }

.profile-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.profile-course-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    background: white;
}

.profile-course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.profile-course-card__thumb {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--color-navy);
}

.profile-course-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition-fast);
}

.profile-course-card:hover .profile-course-card__play { opacity: 1; }

.profile-course-card__body {
    padding: var(--space-3) var(--space-4);
}

.profile-course-card__title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-1);
    line-height: 1.4;
}

.profile-course-card__badge {
    font-size: var(--font-size-xs);
    color: var(--color-success);
    font-weight: 600;
}

/* ==========================================================================
   PHASE 2 — COURSE SINGLE
   ========================================================================== */
.course-single-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.course-single-header__content { flex: 1; }

.course-single-header__title {
    color: white;
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
}

.course-single-header__excerpt { color: rgba(255,255,255,0.75); max-width: 540px; }

.course-single-header__thumb {
    flex-shrink: 0;
    width: 260px;
}

.course-single-thumb-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.course-single-meta {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.course-single-meta__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.8);
}

.course-single-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-8);
    align-items: start;
}

.course-video-container { margin-bottom: var(--space-4); }

.yt-embed__player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.yt-embed__player iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.course-enrolled-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-top: var(--space-3);
}

.course-enroll-card { padding: var(--space-8); }

.course-enroll-preview {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
}

.course-enroll-preview__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,46,109,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-enroll-preview__lock { font-size: 3rem; }

.course-enroll-card__title { font-size: var(--font-size-lg); color: var(--color-navy); margin-bottom: var(--space-3); }
.course-enroll-card__desc  { color: var(--color-text-muted); margin-bottom: var(--space-6); font-size: var(--font-size-sm); }

.course-description__title { font-size: var(--font-size-lg); color: var(--color-navy); margin-bottom: var(--space-4); }
.course-content { line-height: var(--line-height-loose); }
.course-content p { color: var(--color-text-muted); }

.sidebar-title { font-size: var(--font-size-base); color: var(--color-navy); margin-bottom: var(--space-4); }

.course-details-list { display: grid; gap: var(--space-2); }
.course-details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
}
.course-details-list li:last-child { border-bottom: none; }
.course-details-list li span { color: var(--color-text-muted); }
.course-details-list li strong { color: var(--color-navy); }

/* Podcast single */
.podcast-single-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: var(--space-8);
    align-items: start;
}

.podcast-player-card { padding: var(--space-6); }
.podcast-player-badge {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-4);
}

.podcast-audio-player {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
}

.podcast-episode-num {
    display: inline-block;
    background: var(--color-gold-glass);
    color: var(--color-gold-light);
    border-radius: var(--radius-full);
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

/* ==========================================================================
   PHASE 2 — BANK INFO SINGLE
   ========================================================================== */
.bank-info-single-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: var(--space-8);
    align-items: start;
}

.sidebar-related-link {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-fast);
    line-height: 1.5;
}

.sidebar-related-link:last-child { border-bottom: none; }
.sidebar-related-link:hover { color: var(--color-navy); }
.sidebar-related-link__dot { color: var(--color-gold); flex-shrink: 0; margin-top: 2px; font-size: 0.6rem; }

/* ==========================================================================
   PHASE 2 — SERVICES & FINANCING PAGE
   ========================================================================== */
.services-financing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.financing-card { padding: var(--space-8); }

.financing-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.financing-card__icon {
    width: 72px;
    height: 72px;
    background: var(--color-gold-glass);
    border: 1px solid var(--color-border-gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.financing-card__title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-navy);
}

.financing-card__desc {
    color: var(--color-text-muted);
    line-height: var(--line-height-loose);
    margin-bottom: var(--space-5);
}

.financing-features { margin-bottom: var(--space-6); }

.financing-features__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.financing-features__item:last-child { border-bottom: none; }

.financing-features__check {
    width: 22px;
    height: 22px;
    background: var(--color-success-bg);
    color: var(--color-success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.financing-card__cta { margin-top: auto; }

.financing-card__cta-note {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin-top: var(--space-2);
    margin-bottom: 0;
}

/* ==========================================================================
   PHASE 2 — RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .potm-content { grid-template-columns: 1fr; text-align: center; }
    .potm-photo-wrap { display: flex; flex-direction: column; align-items: center; }
    .potm-bio { margin-inline: auto; }
    .course-single-header { flex-direction: column; }
    .course-single-header__thumb { width: 100%; max-width: 400px; }
    .course-single-grid { grid-template-columns: 1fr; }
    .podcast-single-grid { grid-template-columns: 1fr; }
    .bank-info-single-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-avatar-card { position: static; }
    .services-financing-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

@media (max-width: 768px) {
    .auth-card { padding: var(--space-6) var(--space-5); }
    .potm-photo { width: 140px; height: 140px; }
    .potm-name  { font-size: var(--font-size-2xl); }
    .header-auth-btns { gap: var(--space-1); }
    .header-auth-btns .btn { font-size: var(--font-size-xs); padding: var(--space-2) var(--space-3); }
    .header-avatar__name { display: none; }
    .profile-courses-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .thiqa-gate { padding: var(--space-10) var(--space-4); }
    .thiqa-gate__actions { flex-direction: column; align-items: center; }
    .financing-card__header { flex-direction: column; text-align: center; }
}
