/* ==========================================================================
   CricScoring - css/pages.css
   STANDALONE PAGE LAYOUT (website / auth / customer / admin)
   ==========================================================================
   Shared look for the pages that live outside the scoring app shell. It uses
   the same broadcast palette as the app (cyan #10dbd8, navy #0c0b2c) so the
   product reads as one thing, but it never touches app markup or the scoring
   UI. Nothing in here is loaded by app/dashboard/dashboard.html.
   ========================================================================== */
:root {
    --pg-bg: #070a18;
    --pg-bg-2: #0c0b2c;
    --pg-panel: #121a34;
    --pg-panel-2: #0f1730;
    --pg-line: rgba(148, 163, 184, .18);
    --pg-text: #e8eefc;
    --pg-muted: #94a3b8;
    --pg-cyan: #10dbd8;
    --pg-cyan-2: #05c2c2;
    --pg-gold: #facc15;
    --pg-danger: #e51a3a;
    --pg-radius: 16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(120% 120% at 50% 0%, #16204a 0%, var(--pg-bg-2) 38%, var(--pg-bg) 100%);
    color: var(--pg-text);
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--pg-cyan); }

/* ---------------------------------------------------------------- chrome */
.pg-header {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 20px;
    background: rgba(7, 10, 24, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pg-line);
}
.pg-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .4px; }
.pg-brand img { height: 30px; width: 30px; border-radius: 8px; }
.pg-brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--pg-muted); text-transform: uppercase; }
.pg-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pg-nav a {
    padding: 8px 12px; border-radius: 10px; color: #cbd5e1;
    font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.pg-nav a:hover { background: rgba(148, 163, 184, .12); color: #fff; }
.pg-nav a.active { background: rgba(16, 219, 216, .14); color: #7ff0ee; }

.pg-wrap { max-width: 1080px; margin: 0 auto; padding: 26px 20px 60px; }
.pg-wrap-narrow { max-width: 620px; }

/* ------------------------------------------------------------------ hero */
.pg-hero { padding: 42px 0 26px; text-align: center; }
.pg-hero h1 { font-size: 40px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -.5px; }
.pg-hero h1 span { color: var(--pg-cyan); }
.pg-hero p { color: var(--pg-muted); font-size: 15.5px; line-height: 1.7; max-width: 620px; margin: 0 auto 22px; }
.pg-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.pg-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase;
    color: #7ff0ee; background: rgba(16, 219, 216, .12);
    padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* ----------------------------------------------------------------- cards */
.pg-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pg-card {
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0));
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    padding: 18px;
}
.pg-card h3 { margin: 0 0 8px; font-size: 16px; }
.pg-card p { margin: 0; color: var(--pg-muted); font-size: 13.5px; line-height: 1.65; }
.pg-card .pg-ico { font-size: 22px; margin-bottom: 10px; display: block; }

.pg-section { margin-top: 40px; }
.pg-section > h2 { font-size: 22px; margin: 0 0 6px; }
.pg-section > p.pg-sub { color: var(--pg-muted); margin: 0 0 18px; font-size: 14px; }

.pg-list { margin: 0; padding-left: 20px; color: #d5deec; font-size: 14px; line-height: 1.9; }
.pg-list strong { color: #fff; }

.pg-note {
    border-left: 3px solid var(--pg-cyan);
    background: rgba(16, 219, 216, .07);
    padding: 14px 16px; border-radius: 0 12px 12px 0;
    color: #cbd5e1; font-size: 13.5px; line-height: 1.7;
}
.pg-note.warn { border-color: var(--pg-gold); background: rgba(250, 204, 21, .07); }
.pg-note.todo { border-color: var(--pg-muted); background: rgba(148, 163, 184, .08); }

/* -------------------------------------------------------------- pricing */
.pg-price-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pg-price { border: 1px solid var(--pg-line); border-radius: var(--pg-radius); padding: 20px; background: rgba(255,255,255,.02); }
.pg-price.featured { border-color: rgba(16, 219, 216, .55); box-shadow: 0 0 0 1px rgba(16,219,216,.2) inset; }
.pg-price .amount { font-size: 34px; font-weight: 900; color: #fff; }
.pg-price .amount small { font-size: 13px; color: var(--pg-muted); font-weight: 600; }
.pg-price ul { list-style: none; padding: 0; margin: 14px 0 0; color: #cbd5e1; font-size: 13.5px; line-height: 2; }
.pg-price li::before { content: '✓'; color: var(--pg-cyan); font-weight: 800; margin-right: 8px; }

/* ---------------------------------------------------------------- themes */
.pg-theme-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pg-theme-card { border: 1px solid var(--pg-line); border-radius: var(--pg-radius); overflow: hidden; background: rgba(255,255,255,.02); }
.pg-theme-card.active { border-color: rgba(16, 219, 216, .6); }
.pg-theme-preview { position: relative; aspect-ratio: 16 / 9; background: #05070f; }
.pg-theme-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.pg-theme-body { padding: 14px 16px 16px; }
.pg-theme-body h3 { margin: 0 0 4px; font-size: 15px; }
.pg-theme-body p { margin: 0 0 12px; color: var(--pg-muted); font-size: 13px; line-height: 1.6; }

/* ----------------------------------------------------------------- tables */
.pg-table-wrap { border: 1px solid var(--pg-line); border-radius: var(--pg-radius); overflow: auto; }
.pg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pg-table th {
    text-align: left; padding: 12px 14px; font-size: 11px; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--pg-muted);
    background: rgba(148, 163, 184, .08); white-space: nowrap;
}
.pg-table td { padding: 12px 14px; border-top: 1px solid var(--pg-line); }
.pg-table tr:hover td { background: rgba(148, 163, 184, .04); }

/* ------------------------------------------------------------------ misc */
.pg-auth-card {
    max-width: 460px; margin: 40px auto; padding: 22px;
    background: var(--pg-panel); border: 1px solid var(--pg-line);
    border-radius: 20px; box-shadow: 0 22px 60px rgba(0,0,0,.5);
}
.pg-auth-card .view { display: block !important; }
.pg-auth-card #login-form .top-back-btn,
.pg-auth-card .top-back-btn { display: none; }

.pg-footer {
    border-top: 1px solid var(--pg-line);
    padding: 26px 20px 40px; color: var(--pg-muted); font-size: 13px;
}
.pg-footer .pg-foot-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.pg-footer a { color: #cbd5e1; text-decoration: none; }
.pg-footer a:hover { color: #fff; }

.pg-loading { text-align: center; color: var(--pg-muted); padding: 34px 0; font-size: 14px; }
.pg-empty { text-align: center; color: var(--pg-muted); padding: 30px 16px; font-size: 14px; }

.page-toast {
    position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 18px);
    background: #101a38; color: #eaf2ff; border: 1px solid var(--pg-line);
    padding: 12px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
    opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
    z-index: 9999; box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.page-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
    .pg-hero h1 { font-size: 30px; }
    .pg-wrap { padding: 18px 14px 48px; }
    .pg-header { padding: 10px 14px; }
    .pg-nav a { padding: 7px 9px; font-size: 12.5px; }
}
