/* ==========================================================================
   TributePoint Portal — homepage-native experience (Phase 4)
   --------------------------------------------------------------------------
   The logged-in portal should feel like a continuation of the TributePoint
   homepage — NOT a control panel. This file ports the homepage's real chrome
   (the .tp-nav, .btn-gold/.btn-ghost, .section-label/.section-title pattern,
   .feat-card grid, and .tp-footer) verbatim from index.html, plus a small
   number of portal-specific pieces (welcome hero panel, auth screen).

   Tokens (--tp-*) come from tributepoint-brand.css. Presentation only.
   ========================================================================== */

/* ==========================================================================
   SIDEBAR SHELL (TributePoint-coloured left sidebar + slim top bar)
   ========================================================================== */
.tp-side {
    position: fixed; top: 0; left: 0; bottom: 0; width: 264px; z-index: 1000;
    background: linear-gradient(185deg, var(--tp-navy) 0%, var(--tp-navy-deep) 100%);
    display: flex; flex-direction: column;
    box-shadow: 4px 0 28px rgba(26,17,70,.14);
}
.tp-side-brand { display: flex; align-items: center; gap: 11px; padding: 22px 24px 18px; text-decoration: none; flex-shrink: 0; }
.tp-side-brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.22); }
.tp-side-brand .bn-wrap { display: flex; flex-direction: column; }
.tp-side-brand .bn { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 1.3rem; color: #fff; line-height: 1.1; }
.tp-side-brand .bn span { color: var(--tp-gold); }
.tp-side-brand small { display: block; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; margin-top: 3px; }
.tp-side-sec { padding: 14px 24px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.tp-side-nav { flex: 1; overflow-y: auto; padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.tp-side-nav a { display: flex; align-items: center; gap: 13px; padding: 12px 16px; border-radius: 11px; color: rgba(255,255,255,.74); font-weight: 500; font-size: .95rem; text-decoration: none; transition: background var(--tp-dur) var(--tp-ease), color var(--tp-dur) var(--tp-ease); }
.tp-side-nav a i { font-size: 1.25rem; color: rgba(255,255,255,.55); transition: color var(--tp-dur) var(--tp-ease); flex: 0 0 auto; }
.tp-side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.tp-side-nav a:hover i { color: rgba(255,255,255,.85); }
.tp-side-nav a.active { background: rgba(201,168,76,.16); color: #fff; font-weight: 600; }
.tp-side-nav a.active i { color: var(--tp-gold); }
.tp-side-foot { padding: 16px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.tp-side-cta { display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--tp-gold-l), var(--tp-gold)); color: var(--tp-navy); font-weight: 600; font-size: .92rem; padding: 12px; border-radius: 11px; text-decoration: none; box-shadow: var(--tp-shadow-gold); }
.tp-side-cta:hover { color: var(--tp-navy); text-decoration: none; transform: translateY(-1px); }
.tp-side-logout { display: flex; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.6); font-size: .88rem; text-decoration: none; padding: 8px; border-radius: 9px; }
.tp-side-logout:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }

.tp-shell { margin-left: 264px; min-height: 100vh; display: flex; flex-direction: column; background: inherit; }
.tp-topbar { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid var(--tp-border); display: flex; align-items: center; gap: 16px; padding: 0 30px; min-height: 66px; box-shadow: 0 2px 10px rgba(26,17,70,.04); }
.tp-topbar-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; color: var(--tp-navy); font-size: 1.3rem; }
.tp-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.tp-topbar .tp-company { display: inline-flex; align-items: center; gap: 7px; color: var(--tp-muted); font-size: .9rem; font-weight: 600; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-topbar .tp-company i { color: var(--tp-gold); flex-shrink: 0; }
.tp-side-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--tp-border-2); background: #fff; color: var(--tp-navy); font-size: 1.5rem; cursor: pointer; flex: 0 0 auto; }
.tp-content { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 30px 30px 56px; }
.tp-side-backdrop { display: none; }

@media (max-width: 992px) {
    .tp-side { transform: translateX(-100%); transition: transform .3s var(--tp-ease); }
    body.tp-side-open .tp-side { transform: translateX(0); }
    .tp-shell { margin-left: 0; }
    .tp-side-toggle { display: inline-flex; }
    .tp-side-backdrop { position: fixed; inset: 0; background: rgba(18,12,51,.45); z-index: 999; opacity: 0; pointer-events: none; transition: opacity .3s; }
    body.tp-side-open .tp-side-backdrop { display: block; opacity: 1; pointer-events: auto; }
    .tp-content { padding: 22px 18px 44px; }
}

/* ---------- Fixed homepage navbar ---------- */
.tp-nav {
    background: rgba(26,17,70,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201,168,76,0.15);
    padding: 14px 0;
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: padding .35s ease, box-shadow .35s ease;
}
.tp-nav.scrolled { padding: 8px 0; box-shadow: 0 8px 40px rgba(0,0,0,0.25); }
.tp-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tp-nav .nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.tp-nav .nav-brand img { height: 38px; width: 38px; border-radius: 8px; }
.tp-nav .nav-brand span { color: #fff; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.3px; }
.tp-nav .nav-brand .brand-accent { color: var(--tp-gold); }
.tp-nav .nav-menu { display: flex; align-items: center; gap: 18px; }
.tp-nav .nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tp-nav .nav-links a {
    color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; font-weight: 500;
    padding: 8px 18px; border-radius: 100px; transition: all .25s ease; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 7px;
}
.tp-nav .nav-links a i { font-size: 1.05rem; }
.tp-nav .nav-links a:hover { color: #fff; background: rgba(201,168,76,0.12); }
.tp-nav .nav-links a.active { color: var(--tp-gold); background: rgba(201,168,76,0.1); }
.tp-nav .nav-cta {
    background: linear-gradient(135deg, var(--tp-gold), var(--tp-gold-l));
    color: var(--tp-navy) !important; font-weight: 600; padding: 10px 22px !important; white-space: nowrap;
    box-shadow: 0 4px 18px rgba(201,168,76,0.28);
}
.tp-nav .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(201,168,76,0.42); }
.tp-nav .nav-signout { color: rgba(255,255,255,0.6) !important; font-size: 1.3rem; padding: 8px 10px !important; background: none; }
.tp-nav .nav-signout:hover { color: #fff !important; background: rgba(255,255,255,0.08); }
.tp-nav .nav-toggle {
    display: none; align-items: center; justify-content: center;
    background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3); color: var(--tp-gold);
    font-size: 1.5rem; width: 42px; height: 42px; padding: 0; border-radius: 10px; cursor: pointer; transition: all .3s ease;
}
.tp-nav .nav-toggle:hover { background: rgba(201,168,76,0.2); }

@media (max-width: 992px) {
    .tp-nav .nav-toggle { display: flex; }
    .tp-nav .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(26,17,70,0.98); backdrop-filter: blur(20px);
        border-top: 1px solid rgba(201,168,76,0.15); box-shadow: 0 20px 60px rgba(0,0,0,.4);
        max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(0.4,0,0.2,1); padding: 0 16px;
    }
    .tp-nav .nav-menu.open { max-height: 640px; padding: 8px 16px 16px; }
    .tp-nav .nav-links { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
    .tp-nav .nav-links a { display: flex; padding: 14px 16px; border-radius: 10px; font-size: 0.98rem; }
    .tp-nav .nav-links a.active { border-left: 3px solid var(--tp-gold); padding-left: 13px; }
    .tp-nav .nav-cta { display: flex; justify-content: center; width: 100%; padding: 14px 24px !important; border-radius: 12px !important; margin-top: 8px; }
    .tp-nav .nav-signout { width: 100%; justify-content: center; border-radius: 10px !important; padding: 12px !important; font-size: 1rem !important; }
}

/* ---------- Content shell ---------- */
.portal-main { max-width: 1120px; margin: 0 auto; padding: 104px 20px 64px; }
.portal-stack > * + * { margin-top: 28px; }

/* ---------- Dashboard ---------- */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dash-stat { background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); padding: 20px 22px; box-shadow: var(--tp-shadow-sm); display: block; text-decoration: none; transition: transform var(--tp-dur) var(--tp-ease), box-shadow var(--tp-dur) var(--tp-ease), border-color var(--tp-dur) var(--tp-ease); position: relative; overflow: hidden; }
.dash-stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--tp-gold), var(--tp-gold-l)); opacity: 0; transition: opacity var(--tp-dur) var(--tp-ease); }
a.dash-stat:hover { transform: translateY(-3px); box-shadow: var(--tp-shadow-md); border-color: var(--tp-gold-line); }
a.dash-stat:hover::before { opacity: 1; }
.dash-stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-stat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; }
.dash-stat-arrow { color: var(--tp-border-2); font-size: 1.2rem; transition: color var(--tp-dur) var(--tp-ease), transform var(--tp-dur) var(--tp-ease); }
a.dash-stat:hover .dash-stat-arrow { color: var(--tp-gold); transform: translateX(3px); }
.dash-stat-val { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 600; color: var(--tp-navy); line-height: 1.15; margin-bottom: 2px; }
.dash-stat-val.ok { color: var(--tp-success); } .dash-stat-val.wait { color: var(--tp-warning); } .dash-stat-val.off { color: var(--tp-muted); }
.dash-stat-label { font-size: .74rem; color: var(--tp-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

.dash-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: start; }
.dash-preview-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--tp-border-2); background: linear-gradient(135deg, var(--tp-navy), var(--tp-navy-3)); aspect-ratio: 16 / 10; display: grid; place-items: center; margin-bottom: 18px; }
.dash-preview-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.dash-preview-frame .ph { color: var(--tp-gold-l); font-family: 'Playfair Display', serif; font-size: 1.2rem; text-align: center; padding: 20px; }
.dash-url { display: inline-flex; align-items: center; gap: 8px; background: var(--tp-surface); border: 1px solid var(--tp-border-2); border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--tp-navy); font-weight: 600; }
.dash-url i { color: var(--tp-gold); }

.dash-progress { height: 9px; background: var(--tp-surface-2); border-radius: 999px; overflow: hidden; margin: 4px 0 22px; }
.dash-progress-bar { height: 100%; background: linear-gradient(90deg, var(--tp-gold), var(--tp-gold-l)); border-radius: 999px; transition: width .6s var(--tp-ease); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; }
.checklist .ck { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-size: 1.05rem; margin-top: 1px; }
.checklist .ck.done { background: var(--tp-success-bg); color: var(--tp-success); }
.checklist .ck.todo { background: var(--tp-surface-2); color: var(--tp-muted); }
.checklist .ck-body strong { display: block; color: var(--tp-navy); font-size: .98rem; }
.checklist .ck-body span { color: var(--tp-muted); font-size: .86rem; }
.checklist .ck-body a { color: var(--tp-gold-d, #b2913b); font-weight: 600; }

.dash-activity-item { display: flex; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--tp-border-2); }
.dash-activity-item:last-child { border-bottom: 0; }
.dash-activity-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--tp-gold-bg); color: var(--tp-gold); display: grid; place-items: center; flex: 0 0 auto; font-size: 1.15rem; }

@media (max-width: 980px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dash-stats { grid-template-columns: 1fr; } }

/* ---------- Welcome hero panel (homepage mission-card language) ---------- */
.portal-hero {
    position: relative; overflow: hidden;
    background:
        linear-gradient(110deg, var(--tp-navy) 0%, rgba(42,31,110,0.95) 46%, rgba(59,47,128,0.72) 100%),
        url('/assets/img/pages/auth-bg.png') right center / cover no-repeat,
        var(--tp-navy);
    border-radius: var(--tp-radius-lg); padding: 52px 48px; color: #fff;
}
.portal-hero.compact { padding: 38px 44px; }
.portal-hero::before {
    content: ''; position: absolute; top: -40%; right: -10%; width: 60%; height: 180%;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.14), transparent 60%); pointer-events: none;
}
.portal-hero::after {
    content: '\2720'; position: absolute; top: -26px; right: -10px;
    font-size: 220px; line-height: 1; color: rgba(201,168,76,0.05); pointer-events: none;
}
.portal-hero > * { position: relative; z-index: 1; }
.portal-hero .hero-cross { font-size: 1.2rem; color: var(--tp-gold); opacity: 0.75; letter-spacing: 12px; margin-bottom: 16px; }
.portal-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 14px; color: #fff; }
.portal-hero h1 em { font-style: italic; color: var(--tp-gold); }
.portal-hero p { color: rgba(255,255,255,0.72); font-size: 1.08rem; line-height: 1.7; max-width: 560px; margin: 0 0 28px; font-weight: 300; }
.portal-hero .hero-status { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.9); font-size: 0.98rem; margin: 0 0 26px; }
.portal-hero .hero-status i { color: var(--tp-gold); font-size: 1.25rem; }
.portal-hero .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section rhythm (ported from homepage) ---------- */
.portal-section { margin-top: 64px; }
.portal-section.tight { margin-top: 44px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--tp-gold); margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 600; color: var(--tp-navy); line-height: 1.2; margin: 0 0 14px; }
.section-sub { font-size: 1.05rem; color: var(--tp-muted); line-height: 1.65; margin: 0; }
.section-head:not(.left) .section-sub { max-width: 600px; margin: 0 auto; }
.gold-divider { width: 60px; height: 2px; background: linear-gradient(90deg, transparent, var(--tp-gold), transparent); margin: 0 auto 22px; border: none; }
.section-head.left .gold-divider { margin-left: 0; }

/* ---------- Feature cards (ported from homepage) ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-grid.two { grid-template-columns: repeat(2, 1fr); }
.feat-card {
    background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius);
    padding: 34px 28px; transition: all .35s ease; position: relative; overflow: hidden; text-decoration: none; display: block;
}
.feat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--tp-gold), var(--tp-gold-l)); opacity: 0; transition: opacity .35s ease; }
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.06); border-color: rgba(201,168,76,0.3); }
.feat-card:hover::before { opacity: 1; }
.feat-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.5rem; }
.fi-navy { background: rgba(26,17,70,0.08); color: var(--tp-navy); }
.fi-gold { background: rgba(201,168,76,0.12); color: var(--tp-gold); }
.fi-teal { background: rgba(26,158,112,0.1); color: #1a9e70; }
.fi-rose { background: rgba(201,61,110,0.08); color: #c93d6e; }
.fi-purple { background: rgba(120,80,200,0.1); color: #7850c8; }
.fi-warm { background: rgba(200,120,50,0.1); color: #c87832; }
.feat-card h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; color: var(--tp-navy); font-family: 'Playfair Display', Georgia, serif; }
.feat-card p { font-size: 0.92rem; color: var(--tp-muted); line-height: 1.6; margin: 0; }
.feat-card .feat-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--tp-navy); font-weight: 600; font-size: 0.9rem; }
.feat-card:hover .feat-link { color: var(--tp-gold-d, #b2913b); }
.feat-card .feat-status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.feat-status.ok { color: #1a9e70; } .feat-status.wait { color: #b2913b; } .feat-status.off { color: var(--tp-muted); }

/* ---------- Editorial panel (billing / plan, narrative not table) ---------- */
.panel { background: #fff; border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg); padding: 40px; box-shadow: var(--tp-shadow-md); }
.panel.calm { background: var(--tp-surface); box-shadow: none; }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.plan-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; font-weight: 600; color: var(--tp-navy); margin: 0; }
.plan-price { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; color: var(--tp-navy); }
.plan-meta { color: var(--tp-muted); font-size: 0.98rem; line-height: 1.7; margin: 8px 0 0; }
.aside-line { color: var(--tp-muted); font-size: 0.95rem; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--tp-border); }
.aside-line a { color: var(--tp-navy); font-weight: 600; }

/* ---------- Buttons (ported from homepage) ---------- */
.btn-gold { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--tp-gold), var(--tp-gold-l)); color: var(--tp-navy); font-weight: 600; font-size: 1.02rem; padding: 13px 32px; border-radius: 100px; border: none; text-decoration: none; transition: all .3s ease; box-shadow: 0 4px 24px rgba(201,168,76,0.25); cursor: pointer; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,168,76,0.4); color: var(--tp-navy); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: rgba(255,255,255,0.85); font-weight: 500; font-size: 1.02rem; padding: 13px 30px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.25); text-decoration: none; transition: all .3s ease; cursor: pointer; }
.btn-ghost:hover { border-color: var(--tp-gold); color: var(--tp-gold); background: rgba(201,168,76,0.06); }
.btn-ghost.on-light { color: var(--tp-navy); border-color: var(--tp-border); }
.btn-ghost.on-light:hover { color: var(--tp-gold-d, #b2913b); border-color: var(--tp-gold); }

/* ---------- Pre-payment notice (homepage-native) ---------- */
.portal-notice { background: var(--tp-gold-bg); border: 1px solid var(--tp-gold-line, rgba(201,168,76,.25)); border-radius: var(--tp-radius); padding: 20px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.portal-notice i.lead { font-size: 1.6rem; color: var(--tp-gold); flex-shrink: 0; }
.portal-notice .pn-body { flex: 1; min-width: 220px; }
.portal-notice .pn-body strong { display: block; font-family: 'Playfair Display', Georgia, serif; color: var(--tp-navy); font-size: 1.1rem; margin-bottom: 3px; }
.portal-notice .pn-body span { color: var(--tp-muted); font-size: 0.95rem; }

/* ---------- Footer (ported from homepage) ---------- */
.tp-footer { background: var(--tp-navy); color: rgba(255,255,255,0.6); padding: 56px 0 0; margin-top: 72px; }
.tp-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; padding: 0 20px 36px; }
.tp-footer .footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 14px; max-width: 320px; }
.tp-footer .footer-col h4 { color: #fff; font-size: 0.92rem; font-weight: 600; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.tp-footer .footer-col ul { list-style: none; padding: 0; margin: 0; }
.tp-footer .footer-col ul li { margin-bottom: 10px; }
.tp-footer .footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; transition: color .2s; }
.tp-footer .footer-col ul li a:hover { color: var(--tp-gold); }
.tp-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px; font-size: 0.82rem; text-align: center; }
.tp-footer .footer-bottom a { color: var(--tp-gold); text-decoration: none; }

@media (max-width: 768px) {
    .portal-main { padding: 92px 18px 48px; }
    .portal-hero { padding: 38px 26px; }
    .feat-grid, .feat-grid.two { grid-template-columns: 1fr; }
    .tp-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .panel { padding: 28px 24px; }
}

/* ==========================================================================
   PUBLIC PAYMENT PAGES (pay.php / pay-return.php) — homepage language,
   minimal public nav (no logged-in links), full footer.
   ========================================================================== */
.pay-nav-right { display: flex; align-items: center; gap: 16px; }
.pay-secure { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: rgba(255,255,255,.8); }
.pay-secure i { color: var(--tp-gold); }
.pay-back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 16px; border-radius: 100px; border: 1px solid rgba(255,255,255,.2); transition: all .25s ease; }
.pay-back:hover { color: var(--tp-gold); border-color: var(--tp-gold); text-decoration: none; }
@media (max-width: 600px) { .pay-secure span { display: none; } .pay-back span { display: none; } }

.pay-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; color: var(--tp-navy); font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin: 0 0 8px; line-height: 1.15; overflow-wrap: anywhere; }
.pay-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
.pay-grid > * { min-width: 0; }
.pay-summary .pay-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--tp-border-2, #ece6da); }
.pay-summary .pay-row:last-of-type { border-bottom: 0; }
.pay-summary .pay-row span { color: var(--tp-muted); }
.pay-summary .pay-row strong { text-align: right; color: var(--tp-navy); overflow-wrap: anywhere; }
.pay-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pay-trust { margin-top: 20px; border-top: 1px solid var(--tp-border-2, #ece6da); padding-top: 18px; }
.pay-trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.pay-trust li { display: flex; align-items: flex-start; gap: 9px; color: #4a4a5e; font-size: .88rem; }
.pay-trust li i { color: #1a9e70; font-size: 1.1rem; margin-top: 1px; }
.pay-chipline { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; color: var(--tp-navy); font-size: .9rem; }
.pay-chipline .chip { background: #0a4d8c; color: #fff; border-radius: 7px; padding: 3px 9px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.pay-options { display: grid; gap: 16px; }
.pay-options.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.pay-option { position: relative; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); padding: 22px; background: #fff; display: flex; flex-direction: column; transition: transform var(--tp-dur) var(--tp-ease), border-color var(--tp-dur), box-shadow var(--tp-dur); }
.pay-option:hover { transform: translateY(-3px); border-color: var(--tp-gold); box-shadow: 0 14px 32px rgba(201,168,76,.16); }
.pay-option.featured { border-color: var(--tp-gold); box-shadow: 0 14px 32px rgba(201,168,76,.14); }
.pay-opt-label { font-weight: 700; color: var(--tp-muted); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; }
.pay-save { position: absolute; top: -11px; right: 16px; background: #2e7d5b; color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; box-shadow: 0 6px 16px rgba(46,125,91,.28); }
.pay-price { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; font-weight: 600; color: var(--tp-navy); margin: 8px 0 2px; line-height: 1; }
.pay-price .per { font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600; color: var(--tp-muted); }
.pay-opt-note { color: var(--tp-muted); font-size: .86rem; margin: 6px 0 0; min-height: 1.1em; }
.pay-option .btn-gold { width: 100%; justify-content: center; margin-top: 16px; }
.pay-alert { background: #fbeeee; border: 1px solid #efb9b9; color: #7e2c2c; border-radius: 12px; padding: 13px 15px; margin-bottom: 18px; display: flex; gap: 9px; align-items: flex-start; }
.pay-statusbox { text-align: center; max-width: 580px; margin: 0 auto; }
.pay-statusbox .ic { width: 74px; height: 74px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.1rem; margin-bottom: 8px; }
.pay-statusbox h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; color: var(--tp-navy); font-size: 1.9rem; margin: 8px 0; }
.pay-detail { margin: 22px auto 0; max-width: 400px; background: var(--tp-surface); border: 1px solid var(--tp-border-2, #ece6da); border-radius: 14px; padding: 16px 18px; text-align: left; }
.pay-detail .pay-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; }
.pay-detail .pay-row span { color: var(--tp-muted); font-size: .9rem; }
.pay-detail .pay-row strong { color: var(--tp-navy); font-size: .9rem; text-align: right; overflow-wrap: anywhere; }
.pay-actions { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pay-redirect { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; }
.pay-spinner { width: 46px; height: 46px; border: 4px solid var(--tp-border-2, #ece6da); border-top-color: var(--tp-gold); border-radius: 50%; margin: 0 auto 18px; animation: paySpin .9s linear infinite; }
@keyframes paySpin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
    .pay-grid { grid-template-columns: 1fr; gap: 16px; }
    .pay-options.two { grid-template-columns: 1fr; }
    .pay-summary .pay-row { flex-direction: column; gap: 2px; }
    .pay-summary .pay-row strong { text-align: left; }
}

/* ==========================================================================
   AUTH SCREEN (login) — full homepage hero language
   ========================================================================== */
.tp-auth {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px;
    position: relative; overflow: hidden;
    background:
        linear-gradient(160deg, rgba(10,5,30,0.84) 0%, rgba(26,17,70,0.78) 50%, rgba(10,5,30,0.9) 100%),
        url('/assets/img/pages/auth-bg.png') center / cover no-repeat,
        var(--tp-navy);
}
.tp-auth::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at 30% 20%, rgba(201,168,76,0.07) 0%, transparent 50%), radial-gradient(ellipse at 70% 80%, rgba(59,47,128,0.18) 0%, transparent 50%); animation: tpAuthGlow 12s ease-in-out infinite alternate; }
@keyframes tpAuthGlow { 0% { transform: translate(0,0); } 100% { transform: translate(-4%, 3%); } }
.auth-candle { position: absolute; width: 3px; border-radius: 3px; background: linear-gradient(to top, transparent, rgba(201,168,76,0.25)); animation: authFlicker 3s ease-in-out infinite alternate; z-index: 1; }
.auth-candle::after { content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 8px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(ellipse, rgba(255,200,80,0.9), rgba(201,168,76,0.3)); filter: blur(1px); animation: authFlame 2s ease-in-out infinite alternate; }
@keyframes authFlicker { 0% { opacity: 0.35; } 100% { opacity: 0.75; } }
@keyframes authFlame { 0% { transform: translateX(-50%) scale(1); } 100% { transform: translateX(-50%) scale(1.2) rotate(5deg); } }
.auth-candle.c1 { height: 56px; top: 22%; left: 12%; animation-delay: 0s; }
.auth-candle.c2 { height: 44px; bottom: 24%; right: 14%; animation-delay: 1s; }
.auth-candle.c3 { height: 50px; bottom: 30%; left: 18%; animation-delay: .6s; }

.auth-wrap { position: relative; z-index: 2; width: 100%; max-width: 440px; text-align: center; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 26px; }
.auth-brand img { height: 40px; width: 40px; border-radius: 9px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.auth-brand span { color: #fff; font-weight: 700; font-size: 1.3rem; }
.auth-brand .brand-accent { color: var(--tp-gold); }
.auth-cross { font-size: 1.1rem; color: var(--tp-gold); opacity: 0.7; letter-spacing: 12px; margin-bottom: 14px; }
.auth-wrap h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 2.1rem; color: #fff; line-height: 1.2; margin: 0 0 8px; }
.auth-wrap h1 em { font-style: italic; color: var(--tp-gold); }
.auth-wrap .auth-sub { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.6; margin: 0 auto 30px; max-width: 360px; font-weight: 300; }
.auth-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.18); border-radius: var(--tp-radius-lg); padding: 34px 30px; backdrop-filter: blur(8px); text-align: left; }
.auth-card .form-group { margin-bottom: 18px; }
.auth-card label { display: block; margin-bottom: 8px; font-size: 0.82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.auth-card input { width: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; font-size: 0.98rem; font-family: 'Inter', sans-serif; color: #fff; background: rgba(255,255,255,0.06); transition: all .25s ease; }
.auth-card input::placeholder { color: rgba(255,255,255,0.35); }
.auth-card input:focus { outline: 0; border-color: var(--tp-gold); background: rgba(255,255,255,0.09); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.auth-card .btn-gold { width: 100%; justify-content: center; margin-top: 6px; font-size: 1.05rem; padding: 14px; }
.auth-alert { display: flex; align-items: flex-start; gap: 10px; background: rgba(168,59,59,0.16); border: 1px solid rgba(168,59,59,0.4); color: #ffd9d9; border-radius: 12px; padding: 13px 15px; margin-bottom: 20px; font-size: 0.9rem; line-height: 1.5; }
.auth-foot { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 22px; }
.auth-foot a { color: var(--tp-gold); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.88rem; margin-top: 18px; }
.auth-back:hover { color: var(--tp-gold); }
@media (max-width: 480px) { .auth-card { padding: 26px 22px; } .auth-wrap h1 { font-size: 1.8rem; } }
