:root {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --ink: #17202a;
    --muted: #667085;
    --line: #dde3ea;
    --primary: #176b5f;
    --primary-dark: #0e4c43;
    --accent: #c77d1a;
    --danger: #b42318;
    --success: #067647;
    --shadow: 0 18px 45px rgba(23, 32, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 32px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.brand {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0;
}

.topbar nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.search-shell,
.admin-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.admin-shell.narrow {
    width: min(720px, calc(100% - 32px));
}

.search-area {
    padding: 46px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 1.1;
}

h1 {
    max-width: 680px;
    font-size: clamp(2rem, 5vw, 4.5rem);
}

h2 {
    font-size: 1.35rem;
}

.muted,
.status-text {
    color: var(--muted);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 30px;
}

input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font: inherit;
}

input:focus {
    outline: 3px solid rgba(23, 107, 95, 0.18);
    border-color: var(--primary);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.button:hover {
    text-decoration: none;
}

.button.primary {
    background: var(--primary);
    color: #fff;
}

.button.primary:hover {
    background: var(--primary-dark);
}

.button.secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.button.full {
    width: 100%;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.result-card,
.empty-state,
.form-panel,
.auth-panel,
.table-wrap,
.stat-box {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.result-card {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.result-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

dt {
    color: var(--muted);
}

dd {
    margin: 0;
    text-align: right;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    color: var(--muted);
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-panel {
    width: min(420px, 100%);
    padding: 28px;
    box-shadow: var(--shadow);
}

.stack,
.form-panel {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 700;
}

.subtle-link {
    display: inline-block;
    margin-top: 18px;
}

.alert {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.alert-error {
    background: #fff0ed;
    color: var(--danger);
    border: 1px solid #fecdca;
}

.alert-success {
    background: #ecfdf3;
    color: var(--success);
    border: 1px solid #abefc6;
}

.alert-info {
    background: #eff8ff;
    color: #175cd3;
    border: 1px solid #b2ddff;
    font-weight: 400;
}

.center-text {
    text-align: center;
}

.admin-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.stat-box {
    padding: 18px;
}

.stat-box span {
    display: block;
    color: var(--muted);
}

.stat-box strong {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
}

.form-panel {
    padding: 24px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.empty-cell {
    color: var(--muted);
    text-align: center;
}

@media (max-width: 640px) {
    .topbar {
        padding: 0 16px;
    }

    .search-shell,
    .admin-shell {
        padding: 24px 0;
    }

    .search-area {
        padding: 28px 18px;
    }

    .search-form,
    .admin-head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .button {
        width: 100%;
    }
}

/* ══════════════════════════════════════════════════════════
   Landing page — hero + certificate marquee
   Matches the reference hero layout: rounded hero card,
   floating pill navbar, and an infinite logo-style marquee.
   Scoped to index.php only; admin/auth pages are untouched.
   ══════════════════════════════════════════════════════════ */

#page {
    padding: 40px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Hero ── */
.hero {
    position: relative;
    width: 100%;
    border-radius: 48px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(23, 107, 95, 0.35), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(199, 125, 26, 0.28), transparent 40%),
        radial-gradient(circle at 75% 85%, rgba(23, 107, 95, 0.3), transparent 45%),
        linear-gradient(135deg, #0a152d 0%, #0e2440 55%, #0a1b33 100%);
    background-size: 200% 200%;
    animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 30% 30%, black, transparent 70%);
}

@keyframes heroDrift {
    to { background-position: 100% 40%; }
}

.hero-content {
    position: relative;
    z-index: 20;
    flex: 1;
    padding: 64px 64px 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f7c873;
    margin: 0 0 18px;
}

.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 20px;
    max-width: 640px;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 0 32px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #0a152d;
    border-radius: 9999px;
    padding: 13px 30px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-btn:hover { transform: scale(1.04); text-decoration: none; }
.hero-btn:active { transform: scale(0.97); }

/* ── Floating navbar ── */
.navbar-wrap {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    opacity: 0;
    animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
    --tx: -50%;
    max-width: calc(100% - 48px);
}

.navbar-wrap nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 6px;
    border-radius: 9999px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(226, 232, 240, 0.4);
    white-space: nowrap;
    overflow-x: auto;
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.nav-welcome {
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    padding: 8px 10px 8px 14px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.nav-text-btn {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: color 0.15s;
}
.nav-text-btn:hover { color: #0a1b33; text-decoration: none; }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #fff;
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: #0a1b33;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s;
}
.nav-cta:hover { border-color: rgb(203, 213, 225); text-decoration: none; }

.nav-cta svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Certificate marquee (mirrors the logo marquee pattern) ── */
.marquee-section {
    margin-top: 40px;
}

.marquee-label {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 18px;
}

.marquee-outer {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee 42s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.cert-card {
    position: relative;
    height: 96px;
    min-width: 280px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cert-card:hover {
    border-color: rgb(203, 213, 225);
    box-shadow: 0 12px 30px rgba(23, 32, 42, 0.08);
}

.cert-card-placeholder {
    justify-content: center;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    min-width: 220px;
}

.cert-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #176b5f, #0e4c43);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.cert-card-text {
    min-width: 0;
}

.cert-name {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0a1b33;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.cert-title {
    margin: 2px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #667085;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.cert-date {
    margin-left: auto;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

/* ── Search / verify (restyled to match hero) ── */
.search-shell {
    width: 100%;
    margin: 0 auto;
    padding: 56px 0 24px;
}

.search-area {
    padding: 48px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.search-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    color: #0a1b33;
    margin: 0 0 4px;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 28px;
}

.search-form input {
    height: 52px;
    border-radius: 9999px;
    padding: 0 22px;
    font-family: 'Inter', sans-serif;
}

.search-form .hero-btn {
    background: #0a152d;
    color: #fff;
    padding: 0 30px;
}
.search-form .hero-btn:hover { transform: scale(1.02); }

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.results-grid .result-card {
    border-radius: 24px;
    padding: 26px;
    gap: 20px;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.results-grid .result-card:hover {
    box-shadow: 0 20px 45px rgba(23, 32, 42, 0.1);
    border-color: rgb(203, 213, 225);
    transform: translateY(-2px);
}

.result-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.result-card-heading {
    min-width: 0;
}

.results-grid .result-card .eyebrow {
    color: #c77d1a;
    margin: 0 0 4px;
}

.results-grid .result-card h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: #0a1b33;
}

.result-card-title {
    margin: 4px 0 0;
    color: #667085;
    font-size: 0.9rem;
}

.result-card .cert-avatar {
    width: 48px;
    height: 48px;
    font-size: 15px;
}

.results-grid .result-card dl {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px 16px;
    gap: 10px;
}

.results-grid .result-card dl div {
    border-top: none;
    padding-top: 0;
}

.results-grid .result-card dl div + div {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.button.pill {
    border-radius: 9999px;
    padding: 0 22px;
    min-height: 44px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.button.pill.primary {
    background: #0a152d;
    border-color: #0a152d;
}

.button.pill.primary:hover {
    background: #050c1c;
}

.button.pill.secondary {
    background: #fff;
    border-color: var(--line);
    color: #0a1b33;
}

.button.pill.secondary:hover {
    border-color: rgb(203, 213, 225);
    background: #f8fafc;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0) translateX(var(--tx, 0)); }
}

@media (max-width: 640px) {
    #page {
        padding: 24px 12px;
    }

    .hero {
        border-radius: 32px;
        min-height: 520px;
    }

    .hero-content {
        padding: 120px 24px 80px;
        justify-content: flex-start;
    }
    
    .navbar-wrap {
        top: 20px;
        max-width: calc(100% - 24px);
    }
    
    .navbar-wrap nav {
        padding: 4px;
        gap: 2px;
    }
    
    .nav-logo {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .nav-text-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .nav-welcome {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .nav-cta {
        font-size: 11px;
        padding: 6px 14px;
    }
    
    .hero-eyebrow {
        font-size: 0.7rem;
    }
    
    .hero-headline {
        font-size: clamp(26px, 6vw, 36px);
        line-height: 1.15;
    }
    
    .hero-sub {
        font-size: 13px;
    }

    .search-area {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }
    
    .search-form .hero-btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 15px;
        font-weight: 700;
        min-height: 52px;
        justify-content: center;
    }
    
    .search-form input {
        height: 48px;
        font-size: 15px;
    }
}

/* ══════════════════════════════════════════════════════════
   Brand auth — login & register
   Scoped to body.brand-auth so admin/setup pages keep the
   original plain auth-panel styling untouched.
   ══════════════════════════════════════════════════════════ */

body.brand-auth {
    font-family: 'Inter', sans-serif;
}

body.brand-auth .auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

body.brand-auth .auth-card {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

body.brand-auth .auth-aside {
    position: relative;
    padding: 48px 40px;
    display: flex;
    align-items: flex-end;
    min-height: 480px;
    color: #fff;
    overflow: hidden;
}

body.brand-auth .auth-aside-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(23, 107, 95, 0.4), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(199, 125, 26, 0.3), transparent 45%),
        linear-gradient(150deg, #0a152d 0%, #0e2440 55%, #0a1b33 100%);
    background-size: 200% 200%;
    animation: heroDrift 18s ease-in-out infinite alternate;
}

body.brand-auth .auth-aside-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 30% 20%, black, transparent 70%);
}

body.brand-auth .auth-aside-inner {
    position: relative;
    z-index: 10;
}

body.brand-auth .auth-aside .nav-logo {
    margin-bottom: 28px;
}

body.brand-auth .auth-aside-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.15;
    margin: 0 0 12px;
}

body.brand-auth .auth-aside-sub {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 320px;
    margin: 0 0 24px;
}

body.brand-auth .auth-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

body.brand-auth .auth-benefits li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 24px;
    position: relative;
}

body.brand-auth .auth-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #f7c873;
    font-weight: 700;
}

body.brand-auth .auth-panel {
    padding: 48px 44px;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.brand-auth .eyebrow {
    color: #c77d1a;
    font-family: 'Inter', sans-serif;
}

body.brand-auth .auth-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(22px, 2.6vw, 28px);
    color: #0a1b33;
    margin: 0 0 6px;
}

body.brand-auth .muted {
    font-size: 13px;
    margin: 0 0 8px;
}

body.brand-auth .alert {
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
}

body.brand-auth .stack {
    margin-top: 20px;
    gap: 14px;
}

body.brand-auth label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #475467;
    text-transform: uppercase;
    gap: 6px;
}

body.brand-auth input {
    height: 48px;
    border-radius: 14px;
    padding: 0 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    border: 1px solid var(--line);
}

body.brand-auth input:focus {
    outline: 3px solid rgba(10, 21, 45, 0.1);
    border-color: #0a152d;
}

body.brand-auth .field-hint {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

body.brand-auth .hero-btn.full {
    width: 100%;
    justify-content: center;
    background: #0a152d;
    color: #fff;
    margin-top: 6px;
}

body.brand-auth .hero-btn.full:hover {
    background: #050c1c;
    transform: scale(1.01);
}

body.brand-auth .auth-switch {
    margin-top: 22px;
    font-size: 13px;
    color: #667085;
}

body.brand-auth .auth-switch a {
    color: #0a1b33;
    font-weight: 700;
}

body.brand-auth .subtle-link {
    display: block;
    margin-top: 14px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

body.brand-auth .subtle-link:hover {
    color: #667085;
}

@media (max-width: 760px) {
    body.brand-auth .auth-card {
        grid-template-columns: 1fr;
    }

    body.brand-auth .auth-aside {
        min-height: 220px;
        padding: 36px 28px;
    }

    body.brand-auth .auth-panel {
        padding: 36px 28px;
    }
}

/* ── Admin variant — slightly more restrained/restricted tone ── */
body.brand-auth-admin .auth-aside-bg {
    background:
        radial-gradient(circle at 20% 15%, rgba(71, 85, 105, 0.4), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(199, 125, 26, 0.22), transparent 45%),
        linear-gradient(150deg, #0a0f1c 0%, #16213a 55%, #0a1b33 100%);
}

body.brand-auth-admin .auth-benefits li::before {
    color: #94a3b8;
}

/* ══════════════════════════════════════════════════════════
   Melody-inspired admin dashboard
   Colors pulled directly from the Melody Admin template:
   --primary: #392C70, gradient 85deg #392c70 → #6a005b,
   --success: #04B76B, --danger: #FF5E6D, --info: #0B94F7,
   --warning: #F5A623, content bg: #f2f2f2, sidebar: #ffffff
   Scoped to body.melody-admin only.
   ══════════════════════════════════════════════════════════ */

body.melody-admin {
    margin: 0;
    background: #f2f2f2;
    font-family: 'Inter', sans-serif;
    color: #3a3f51;
}

.melody-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.melody-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e6e9ed;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.melody-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #392C70;
    border-bottom: 1px solid #e6e9ed;
    text-decoration: none;
}
.melody-sidebar-brand:hover { text-decoration: none; }

.melody-logo-dot {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: linear-gradient(85deg, #392c70, #6a005b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.melody-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    flex: 1;
}

.melody-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    color: #686868;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.15s, background 0.15s;
}
.melody-nav-link:hover {
    color: #392C70;
    background: #f8f7fb;
    text-decoration: none;
}

.melody-nav-link svg {
    width: 18px;
    height: 18px;
    stroke: #9B9B9B;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: stroke 0.15s;
}

.melody-nav-link.active {
    color: #392C70;
    background: #f8f7fb;
    font-weight: 600;
}
.melody-nav-link.active svg { stroke: #392C70; }
.melody-nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #392C70;
}

.melody-nav-link.logout {
    margin-top: auto;
    border-top: 1px solid #e6e9ed;
    color: #FF5E6D;
}
.melody-nav-link.logout svg { stroke: #FF5E6D; }
.melody-nav-link.logout:hover { background: #fff5f5; }

/* ── Main ── */
.melody-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.melody-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: #fff;
    border-bottom: 1px solid #e6e9ed;
}

.melody-eyebrow {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9B9B9B;
}

.melody-topbar h1 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #292644;
}

.melody-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.melody-avatar {
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: linear-gradient(85deg, #392c70, #6a005b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.melody-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #392C70;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.melody-btn:hover { background: #2d2258; text-decoration: none; }
.melody-btn:active { transform: scale(0.98); }

.melody-content {
    padding: 28px 32px 48px;
}

/* ── Stat banner (matches .card.card-statistics) ── */
.melody-stat-banner {
    background: linear-gradient(85deg, #392c70, #6a005b);
    border-radius: 12px;
    color: #fff;
    padding: 28px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 28px;
}

.melody-stat-item {
    flex: 1;
    min-width: 140px;
    position: relative;
    padding-right: 24px;
}
.melody-stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.melody-stat-item p {
    margin: 0 0 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 8px;
}

.melody-stat-item svg {
    width: 15px;
    height: 15px;
    stroke: rgba(255, 255, 255, 0.85);
    fill: none;
    stroke-width: 2;
}

.melody-stat-item h2 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 500;
}

/* ── Cards ── */
.melody-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e6e9ed;
    box-shadow: 0 2px 6px rgba(41, 38, 68, 0.04);
    margin-bottom: 24px;
}

.melody-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e6e9ed;
}

.melody-card-head h2 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #292644;
    display: flex;
    align-items: center;
    gap: 10px;
}

.melody-card-head h2 svg {
    width: 18px;
    height: 18px;
    stroke: #392C70;
    fill: none;
    stroke-width: 2;
}

.melody-card-body {
    padding: 8px 24px 20px;
}

/* ── Table ── */
.melody-table-wrap { overflow-x: auto; }

.melody-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.melody-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9B9B9B;
    border-bottom: 1px solid #e6e9ed;
    white-space: nowrap;
}

.melody-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f2f6;
    color: #3a3f51;
    vertical-align: middle;
}

.melody-table tbody tr:hover { background: #faf9fc; }
.melody-table tbody tr:last-child td { border-bottom: none; }

.melody-table a { color: #392C70; font-weight: 600; }

.melody-empty-cell {
    text-align: center;
    color: #9B9B9B;
    padding: 32px 16px;
}

/* ── Pills / badges ── */
.melody-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
}

.melody-pill.success { background: rgba(4, 183, 107, 0.12); color: #04B76B; }
.melody-pill.muted { background: #f1f2f6; color: #9B9B9B; }
.melody-pill.info { background: rgba(11, 148, 247, 0.12); color: #0B94F7; }

.melody-pill.success::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #04B76B;
}

/* ── Filter bar (users page) ── */
.melody-filter-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.melody-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.melody-filter-btn {
    padding: 9px 16px;
    border: 1px solid #e6e9ed;
    background: #fff;
    color: #3a3f51;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}
.melody-filter-btn:hover { background: #f8f7fb; text-decoration: none; }
.melody-filter-btn.active {
    background: #392C70;
    color: #fff;
    border-color: #392C70;
}

.melody-search-box { flex: 1; min-width: 220px; }
.melody-search-box input {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e6e9ed;
    padding: 0 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}
.melody-search-box input:focus {
    outline: none;
    border-color: #392C70;
}

.melody-delete-btn {
    color: #FF5E6D;
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    font-size: 12.5px;
}
.melody-delete-btn:hover { color: #d13c4b; }

.melody-note {
    background: #fff;
    border: 1px solid #e6e9ed;
    border-radius: 12px;
    padding: 16px 20px;
    color: #6c757d;
    font-size: 13px;
}

/* ── Alerts (admin variant) ── */
.melody-content .alert {
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 20px;
}

/* ── Upload form ── */
.melody-upload-card {
    max-width: 640px;
}

.melody-upload-card .stack { gap: 18px; }

.melody-dropzone {
    border: 2px dashed #d8d5e6;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    background: #faf9fc;
}

.melody-dropzone input[type="file"] {
    width: 100%;
}

/* ── Dropify-style dropzone (colors match the Melody template exactly) ── */
.dropify-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3a3f51;
    margin-bottom: 10px;
}

.dropify-wrapper {
    position: relative;
    border: 2px dashed #e0e0ef;
    border-radius: 7px;
    background: #fff;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    overflow: hidden;
}

.dropify-wrapper:hover,
.dropify-wrapper.is-dragging {
    border-color: #b9b3d9;
    background-image: linear-gradient(135deg, #F2F7F8 25%, transparent 25%, transparent 50%, #F2F7F8 50%, #F2F7F8 75%, transparent 75%, transparent);
    background-size: 30px 30px;
}

.dropify-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.dropify-message {
    padding: 28px 20px;
    text-align: center;
}

.dropify-message .file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: #f1f0f9;
    margin-bottom: 12px;
}

.dropify-message .file-icon svg {
    width: 20px;
    height: 20px;
    stroke: #392C70;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dropify-message p {
    margin: 0;
    font-size: 0.8125rem;
    color: #000;
    font-weight: 600;
}

.dropify-message .dropify-hint {
    margin-top: 4px;
    font-weight: 400;
    color: #9B9B9B;
}

.dropify-preview {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
}

.dropify-wrapper.has-file .dropify-message { display: none; }
.dropify-wrapper.has-file .dropify-preview { display: flex; }

.dropify-infos {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
}

.dropify-infos-inner {
    text-align: center;
}

.dropify-filename {
    margin: 0;
    color: #392C70;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 500;
    word-break: break-word;
}

.dropify-infos-message {
    margin: 4px 0 0;
    color: #333;
    font-weight: 500;
    font-size: 12.5px;
}

.dropify-clear {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #e6e9ed;
    color: #434a54;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(41, 38, 68, 0.08);
    z-index: 2;
}
.dropify-clear:hover { background: #f8f7fb; color: #FF5E6D; }

@media (max-width: 900px) {
    .melody-sidebar {
        width: 72px;
    }
    .melody-sidebar-brand span,
    .melody-nav-link span {
        display: none;
    }
    .melody-nav-link { justify-content: center; padding: 14px; }
    .melody-nav-link.active::before { display: none; }
}

@media (max-width: 640px) {
    .melody-topbar, .melody-content { padding-left: 16px; padding-right: 16px; }
    .melody-stat-item { min-width: 45%; }
}

/* ── Search disclaimer ── */
.search-disclaimer {
    margin-top: 20px;
    padding: 14px 18px;
    background: #fff9f0;
    border: 1px solid #fde4b8;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #744210;
    line-height: 1.6;
}

.search-disclaimer strong {
    font-weight: 700;
}

/* ── Action buttons for admin tables ── */
.melody-delete-btn,
.melody-enable-btn {
    padding: 6px 14px;
    border: 1px solid;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
}

.melody-delete-btn {
    border-color: #FF5E6D;
    color: #FF5E6D;
}

.melody-delete-btn:hover {
    background: #FF5E6D;
    color: #fff;
}

.melody-enable-btn {
    border-color: #04B76B;
    color: #04B76B;
}

.melody-enable-btn:hover {
    background: #04B76B;
    color: #fff;
}

.melody-note {
    margin-top: 20px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-left: 3px solid #392C70;
    border-radius: 6px;
    font-size: 13px;
    color: #3a3f51;
    line-height: 1.6;
}

.melody-note strong {
    color: #392C70;
}

.melody-search-box input {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e6e9ed;
    padding: 0 14px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.melody-search-box input:focus {
    outline: 2px solid rgba(57, 44, 112, 0.2);
    border-color: #392C70;
}

/* ── Download status message on search results ── */
.download-status-message {
    padding: 10px 14px;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    border-radius: 10px;
    color: #067647;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

/* ── Correction section in search results ── */
.correction-section {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e6e9ed;
}

.correction-prompt {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #475467;
    font-family: 'Inter', sans-serif;
}

.correction-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.correction-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e6e9ed;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
}

.correction-textarea:focus {
    outline: 2px solid rgba(10, 21, 45, 0.1);
    border-color: #0a152d;
}

.correction-feedback {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    margin-top: 10px;
}

.correction-feedback.success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

.correction-feedback.error {
    background: #fff0ed;
    border: 1px solid #fecdca;
    color: #b42318;
}

/* ── Admin corrections page ── */
.corrections-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.correction-item {
    background: #fff;
    border: 1px solid #e6e9ed;
    border-radius: 12px;
    overflow: hidden;
}

.correction-item.pending {
    border-left: 4px solid #F5A623;
}

.correction-item.resolved {
    border-left: 4px solid #04B76B;
}

.correction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e6e9ed;
}

.correction-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.correction-id {
    font-size: 12px;
    font-weight: 700;
    color: #9B9B9B;
    font-family: 'Inter', sans-serif;
}

.correction-time {
    font-size: 12px;
    color: #3a3f51;
    text-align: right;
    font-family: 'Inter', sans-serif;
}

.correction-body {
    padding: 18px;
}

.correction-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e6e9ed;
}

.info-row {
    font-size: 13px;
    color: #3a3f51;
    font-family: 'Inter', sans-serif;
}

.info-row strong {
    color: #292644;
}

.correction-message {
    margin-bottom: 16px;
    padding: 14px;
    background: #fffaeb;
    border: 1px solid #fde4b8;
    border-radius: 10px;
}

.correction-message strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #744210;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.correction-message p {
    margin: 0;
    font-size: 14px;
    color: #3a3f51;
    line-height: 1.6;
}

.correction-resolution {
    padding: 14px;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    border-radius: 10px;
}

.correction-resolution strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #067647;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.correction-resolution p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #3a3f51;
    line-height: 1.6;
}

.correction-actions {
    margin-top: 16px;
}

.resolve-form {
    display: flex;
    flex-direction: column;
}

.admin-response-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e6e9ed;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    resize: vertical;
}

.admin-response-textarea:focus {
    outline: 2px solid rgba(57, 44, 112, 0.2);
    border-color: #392C70;
}

.correction-footer {
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #e6e9ed;
    text-align: right;
}

/* ── General correction section (always visible) ── */
.general-correction-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #e6e9ed;
}

.correction-card {
    background: #fff;
    border: 1px solid #e6e9ed;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(23, 32, 42, 0.06);
}

.correction-card-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    color: #0a1b33;
    margin: 0 0 10px;
}

.correction-card-description {
    margin: 0 0 28px;
    font-size: 14px;
    color: #667085;
    line-height: 1.6;
}

.general-correction-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0a1b33;
}

.form-group .field-hint {
    font-size: 11px;
    font-weight: 400;
    color: #9B9B9B;
    margin-top: 2px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e6e9ed;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0a1b33;
    transition: all 0.15s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(10, 21, 45, 0.1);
    border-color: #0a152d;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.general-correction-form .hero-btn {
    margin-top: 10px;
}

#generalCorrectionFeedback {
    margin-top: 20px;
}

/* ── Enhanced submit correction button ── */
.submit-correction-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0a152d 0%, #16243f 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(10, 21, 45, 0.25);
    position: relative;
    overflow: hidden;
}

.submit-correction-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.submit-correction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 21, 45, 0.35);
    background: linear-gradient(135deg, #050c1c 0%, #0e1b33 100%);
}

.submit-correction-btn:hover::before {
    left: 100%;
}

.submit-correction-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(10, 21, 45, 0.2);
}

.submit-correction-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-correction-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.submit-correction-btn:hover svg {
    transform: translateX(3px) translateY(-3px);
}

/* ── Cluster styling ── */
.cluster-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0a1b33;
}

.cluster-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, #392c70, #6a005b);
    color: #fff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cluster-filter-row {
    padding: 14px 0;
    margin-bottom: 14px;
    border-bottom: 1px solid #e6e9ed;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cluster-filter-row strong {
    font-size: 12px;
    font-weight: 700;
    color: #292644;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cluster-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cluster-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f8f7fb;
    border: 1px solid #e6e9ed;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: #392C70;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
}

.cluster-pill:hover {
    background: #ede9f5;
    border-color: #392C70;
    cursor: pointer;
}

.cluster-pill.active {
    background: #392C70;
    color: white;
    border-color: #392C70;
}

/* ══════════════════════════════════════════════════════════
   Cluster / Region meta badges on result cards
   ══════════════════════════════════════════════════════════ */
.cert-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -8px 0 0;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 11px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.cluster-badge {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.region-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* ── View button & pill button SVG support ── */
.button.pill {
    border-radius: 9999px;
    padding: 0 16px;
    min-height: 40px;
    gap: 6px;
    font-size: 13px;
}

.button svg {
    flex-shrink: 0;
}

.button.secondary:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* card-actions gap when both buttons present */
.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* ══════════════════════════════════════════════════════════
   Expanded search form with cluster + region filters
   ══════════════════════════════════════════════════════════ */
.search-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-row input {
    height: 52px;
    border-radius: 9999px;
    padding: 0 22px;
    font-family: 'Inter', sans-serif;
}

.search-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
}

.filter-group input {
    height: 42px;
    border-radius: 12px;
    padding: 0 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.filter-hint {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .search-row {
        grid-template-columns: 1fr;
    }
    .search-filters {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════
   Admin dashboard — certificate table pagination
   ══════════════════════════════════════════════════════════ */
.cert-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 0 4px;
    border-top: 1px solid #f0f0f5;
}

.pag-info {
    font-size: 13px;
    color: #667085;
    font-family: 'Inter', sans-serif;
}

.pag-btns {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    color: #392C70;
    background: #f5f4fb;
    border: 1px solid #e6e3f5;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    white-space: nowrap;
}

.pag-btn:hover:not(.disabled):not(.active) {
    background: #ede9f8;
}

.pag-btn.active {
    background: #392C70;
    color: #fff;
    border-color: #392C70;
    cursor: default;
}

.pag-btn.disabled {
    color: #c0bad8;
    background: #fafafa;
    border-color: #f0f0f5;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 600px) {
    .cert-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ══════════════════════════════════════════════════════════
   Site Footer
   Professional footer matching the hero design
   ══════════════════════════════════════════════════════════ */

.site-footer {
    position: relative;
    background: linear-gradient(150deg, #0a152d 0%, #0e2440 55%, #0a1b33 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 64px 0 0;
    margin-top: 60px;
    font-family: 'Inter', sans-serif;
    width: 100%;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.8fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f7c873;
    margin: 0 0 20px;
}

.footer-about-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 320px;
}

.footer-help-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
    max-width: 340px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 4px;
    text-decoration: none;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s;
}

.footer-contact li a:hover {
    color: #fff;
}

.footer-contact li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding: 28px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive footer */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 48px 0 0;
        margin-top: 40px;
    }
    
    .footer-content {
        padding: 0 24px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }
    
    .footer-about-text,
    .footer-help-text {
        max-width: 100%;
    }
    
    .footer-bottom {
        padding: 24px 0;
    }
}

/* ══════════════════════════════════════════════════════════
   About & Contact Pages Styling
   ══════════════════════════════════════════════════════════ */

/* Small Hero for inner pages */
.hero-small {
    min-height: 420px;
}

.hero-content-centered {
    text-align: center;
    align-items: center;
    padding-top: 140px !important;
    justify-content: flex-start;
}

/* Content Page Layout */
.content-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.content-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section.bg-light {
    background: #f8fafc;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    color: #0a1b33;
    margin: 8px 0 12px;
}

.section-subtitle {
    font-size: 16px;
    color: #667085;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Grids */
.content-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.content-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

/* Content Cards */
.content-card {
    background: #fff;
    padding: 36px 32px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(23, 32, 42, 0.1);
}

.content-card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.content-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #0a1b33;
    margin: 0 0 16px;
}

.content-card-text {
    font-size: 15px;
    color: #667085;
    line-height: 1.7;
    margin: 0;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: #176b5f;
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #0a1b33;
    margin: 0 0 12px;
}

.feature-text {
    font-size: 14px;
    color: #667085;
    line-height: 1.6;
    margin: 0;
}

/* Benefits List */
.benefits-list {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s;
}

.benefit-item:hover {
    box-shadow: 0 8px 20px rgba(23, 32, 42, 0.08);
}

.benefit-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #176b5f, #0e4c43);
    color: #fff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #0a1b33;
    margin: 0 0 6px;
}

.benefit-text {
    font-size: 14px;
    color: #667085;
    margin: 0;
}

/* Why Cards */
.why-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.why-title {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 500;
    color: #0a1b33;
    margin: 0 0 14px;
}

.why-text {
    font-size: 14px;
    color: #667085;
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #176b5f 0%, #0e4c43 100%);
    padding: 80px 40px;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    color: #fff;
    margin: 0 0 16px;
}

.cta-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 36px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Contact Page Specific */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-card,
.contact-info-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(23, 32, 42, 0.06);
}

.contact-form-title,
.contact-info-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #0a1b33;
    margin: 0 0 8px;
}

.contact-form-subtitle,
.contact-info-subtitle {
    font-size: 14px;
    color: #667085;
    margin: 0 0 28px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form .form-group {
    display: grid;
    gap: 8px;
}

.contact-form label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #176b5f;
    box-shadow: 0 0 0 3px rgba(23, 107, 95, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #176b5f, #0e4c43);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

.contact-method-content {
    flex: 1;
}

.contact-method-title {
    font-size: 14px;
    font-weight: 700;
    color: #0a1b33;
    margin: 0 0 6px;
}

.contact-method-link {
    font-size: 15px;
    font-weight: 500;
    color: #176b5f;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.contact-method-link:hover {
    text-decoration: underline;
}

.contact-method-text {
    font-size: 13px;
    color: #667085;
    margin: 0;
}

/* Contact Hours */
.contact-hours {
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 32px;
}

.contact-hours-title {
    font-size: 15px;
    font-weight: 700;
    color: #0a1b33;
    margin: 0 0 16px;
}

.contact-hours-list {
    display: grid;
    gap: 12px;
}

.contact-hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.hour-day {
    color: #374151;
    font-weight: 500;
}

.hour-time {
    color: #667085;
}

/* Contact Social */
.contact-social-title {
    font-size: 15px;
    font-weight: 700;
    color: #0a1b33;
    margin: 0 0 16px;
}

.contact-social-buttons {
    display: flex;
    gap: 12px;
}

.social-button {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #176b5f, #0e4c43);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(23, 107, 95, 0.3);
}

.social-button svg {
    width: 20px;
    height: 20px;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.faq-question {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #0a1b33;
    margin: 0 0 12px;
}

.faq-answer {
    font-size: 14px;
    color: #667085;
    line-height: 1.7;
    margin: 0;
}

/* Active navbar link */
.nav-text-btn.active {
    color: #176b5f;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 60px 32px;
    }
}

@media (max-width: 640px) {
    .content-section {
        padding: 48px 24px;
    }
    
    .hero-small {
        min-height: 320px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .cta-section {
        padding: 60px 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .hero-btn {
        width: 100%;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 28px 24px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Submit Button Enhancement */
.contact-submit-btn {
    background: linear-gradient(135deg, #176b5f 0%, #0e4c43 100%) !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(23, 107, 95, 0.3);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.contact-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-submit-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(23, 107, 95, 0.4);
}

.contact-submit-btn:hover::before {
    left: 100%;
}

.contact-submit-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(23, 107, 95, 0.3);
}

.contact-submit-btn svg {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover svg {
    transform: translateX(3px) rotate(-10deg);
}

/* ══════════════════════════════════════════════════════════
   Melody-style admin dashboard pie charts
   Mirrors the "stretch-card" chart grid from the Melody
   Admin Chart.js page (pages/charts/chartjs.html).
   ══════════════════════════════════════════════════════════ */
.melody-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.melody-chart-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e6e9ed;
    box-shadow: 0 2px 6px rgba(41, 38, 68, 0.04);
    padding: 20px 24px 24px;
}

.melody-chart-card h4 {
    margin: 0 0 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #292644;
}

.melody-chart-canvas-wrap {
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.melody-chart-empty {
    color: #9B9B9B;
    font-size: 13px;
    text-align: center;
    padding: 40px 0;
}
