:root {
    --navy: #1a1a2e;
    --navy-mid: #16213e;
    --navy-deep: #0f3460;
    --gold: #d4a84b;
    --gold-dark: #c49a3a;
    --gold-soft: #efe3c4;
    --page: #f4f1ea;
    --card: #ffffff;
    --text: #1c1c28;
    --muted: #5d6270;
    --line: #e4dfd4;
    --wa: #25d366;
}

.public-body {
    font-family: 'Poppins', sans-serif;
    background: var(--page);
    color: var(--text);
    min-height: 100vh;
}

.pub-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-deep) 100%);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 8px 24px rgba(15, 20, 40, 0.28);
}

.pub-header .navbar {
    padding: 0.7rem 0;
}

.pub-header .navbar-brand {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.pub-header .navbar-brand:hover { color: var(--gold-soft); }

.pub-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
}

.pub-logo-sm { width: 32px; height: 32px; }

.pub-header .nav-link {
    color: rgba(255,255,255,0.78) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.8rem !important;
    border-radius: 8px;
}

.pub-header .nav-link:hover,
.pub-header .nav-link.active {
    color: #fff !important;
    background: rgba(212, 168, 75, 0.16);
}

.pub-header .nav-link.active {
    color: var(--gold) !important;
}

.pub-header .navbar-toggler {
    border-color: rgba(212,168,75,0.45);
    padding: 0.35rem 0.5rem;
}

.pub-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d4a84b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-pub-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1a1a2e;
    border: none;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.5rem 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.pub-header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

.pub-header-wa {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.pub-header-wa:hover {
    color: #fff !important;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-pub-gold:hover {
    color: #1a1a2e;
    filter: brightness(1.05);
}

.btn-pub-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.28);
    font-weight: 500;
    border-radius: 10px;
    padding: 0.5rem 1rem;
}

.btn-pub-ghost:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.btn-wa {
    background: var(--wa);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-wa:hover { color: #fff; filter: brightness(0.95); }

.pub-main { min-height: 60vh; }

.pub-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-deep) 100%);
    color: #fff;
    padding: 3.2rem 0 2.8rem;
}

.pub-hero h1 {
    font-weight: 700;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    margin-bottom: 0.75rem;
}

.pub-hero p.lead {
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    max-width: 640px;
    margin-bottom: 0;
}

.pub-kicker {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.pub-section { padding: 3rem 0; }

.pub-section-title {
    font-weight: 650;
    font-size: 1.45rem;
    margin-bottom: 0.4rem;
}

.pub-section-sub {
    color: var(--muted);
    margin-bottom: 1.8rem;
}

.pack-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.7rem 1.6rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.05);
}

.pack-card.featured {
    background: linear-gradient(165deg, #1a1a2e 0%, #16213e 70%, #132544 100%);
    color: #fff;
    border: 1px solid rgba(212,168,75,0.38);
    box-shadow: 0 16px 40px rgba(26,26,46,0.22);
}

.pack-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    background: rgba(212,168,75,0.18);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.pack-card h2, .pack-card h3 {
    font-size: 1.25rem;
    font-weight: 650;
    margin-bottom: 0.35rem;
}

.pack-price {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0.7rem 0 0.85rem;
}

.pack-cta-top {
    margin: 0 0 1.15rem;
}

.pack-card.featured .pack-price { color: var(--gold); }

.pack-price small {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
}

.pack-card.featured .pack-price small { color: rgba(255,255,255,0.55); }

.pack-was {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: line-through;
    margin-right: 0.4rem;
}

.save-chip {
    display: inline-block;
    background: rgba(212,168,75,0.16);
    color: #8a6a22;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

.pack-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0.3rem 0 0.55rem;
}

.pack-card.featured .pack-label { color: var(--gold); }

.pack-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.pack-list li {
    display: flex;
    gap: 0.55rem;
    padding: 0.28rem 0;
    font-size: 0.94rem;
}

.pack-list i {
    color: var(--gold-dark);
    margin-top: 0.15rem;
}

.pack-card.featured .pack-list i { color: var(--gold); }

.pack-note {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: auto;
    padding-top: 0.6rem;
}

.pack-card.featured .pack-note { color: rgba(255,255,255,0.62); }

.pack-cta {
    margin-top: 1.15rem;
}

.cat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
}

.cat-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid var(--line);
    background: #faf8f3;
}

.cat-head i {
    color: var(--gold-dark);
    font-size: 1.1rem;
}

.cat-head h3 {
    font-size: 0.95rem;
    font-weight: 650;
    margin: 0;
}

.tool-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--line);
}

.tool-row:last-child { border-bottom: none; }

.tool-name { font-weight: 500; font-size: 0.92rem; }

.tool-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

.tool-price {
    font-weight: 650;
    color: var(--navy);
    white-space: nowrap;
}

.btn-order {
    border: 1px solid var(--gold-dark);
    color: var(--navy);
    background: transparent;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.7rem;
    text-decoration: none;
}

.btn-order:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    border-color: transparent;
}

.legal-wrap, .prose-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2rem 1.6rem;
    box-shadow: 0 8px 24px rgba(26,26,46,0.04);
}

.legal-wrap h2, .prose-card h2 {
    font-size: 1.15rem;
    font-weight: 650;
    margin: 1.6rem 0 0.7rem;
}

.legal-wrap h2:first-child, .prose-card h2:first-child { margin-top: 0; }

.legal-wrap p, .prose-card p, .legal-wrap li {
    color: #3a3d48;
    line-height: 1.7;
}

.credit-table-wrap {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.credit-table-wrap h3 {
    font-size: 1rem;
    font-weight: 650;
    margin: 0;
    padding: 1rem 1.15rem;
    background: #faf8f3;
    border-bottom: 1px solid var(--line);
}

.credit-table {
    width: 100%;
    margin: 0;
    font-size: 0.9rem;
}

.credit-table th {
    background: var(--navy);
    color: #fff;
    font-weight: 550;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.credit-table td, .credit-table th {
    padding: 0.7rem 0.9rem;
    vertical-align: middle;
}

.credit-table code {
    color: #6b6254;
    background: #f3eee4;
    font-size: 0.78rem;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
}

.credit-table tbody tr:nth-child(even) { background: #faf8f3; }

.endpoint {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin-top: 0.15rem;
}

.fact-grid .fact {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem 1.15rem;
    height: 100%;
}

.fact h3 {
    font-size: 1rem;
    font-weight: 650;
    margin-bottom: 0.4rem;
}

.fact p { color: var(--muted); margin: 0; font-size: 0.92rem; }

.contact-panel {
    background: linear-gradient(165deg, #1a1a2e, #16213e);
    color: #fff;
    border-radius: 16px;
    padding: 2rem 1.6rem;
}

.contact-panel h2 { font-size: 1.3rem; font-weight: 650; }

.contact-panel .form-control {
    border-radius: 10px;
    border: none;
    padding: 0.8rem 0.95rem;
}

.pub-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.72);
    padding: 2.6rem 0 1.4rem;
    margin-top: 1rem;
}

.pub-footer-brand { color: #fff; }

.pub-footer h6 {
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.pub-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pub-footer-links a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 0.92rem;
    display: inline-block;
    padding: 0.22rem 0;
}

.pub-footer-links a:hover { color: var(--gold); }

.pub-footer-copy {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 1.8rem;
    padding-top: 1.1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

.pub-wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.05rem;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
    z-index: 1040;
    text-decoration: none;
}

.pub-wa-float:hover { color: #fff; transform: translateY(-2px); }

.auth-public-links {
    text-align: center;
    padding: 18px 12px 28px;
    font-size: 0.8rem;
}

.auth-public-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin: 0 0.4rem;
}

.auth-public-links a:hover { color: #d4a84b; }

.pub-auth-wrap {
    min-height: calc(100vh - 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 1rem 2.8rem;
}

.pub-auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.6rem 2.2rem 2.2rem;
    box-shadow: 0 18px 48px rgba(26, 26, 46, 0.12);
    border: 1px solid var(--line);
    max-width: 460px;
    width: 100%;
}

.pub-auth-card.wide { max-width: 520px; }

.pub-auth-logo { text-align: center; margin-bottom: 1.6rem; }
.pub-auth-logo img { width: 96px; margin-bottom: 0.7rem; }
.pub-auth-logo h1 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.pub-auth-logo p { color: var(--muted); font-size: 0.9rem; margin: 0.35rem 0 0; }

.btn-login {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    color: #1a1a2e;
}

.btn-login:hover { color: #1a1a2e; filter: brightness(1.05); }

.pub-forgot-wrap { text-align: center; margin-top: 1.15rem; }

.pub-forgot-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.05rem;
    border-radius: 12px;
    background: #faf8f3;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid var(--line);
}

.pub-forgot-link i { color: var(--gold-dark); font-size: 1.05rem; }

.pub-forgot-link:hover {
    background: rgba(212, 168, 75, 0.16);
    color: var(--navy);
    border-color: var(--gold);
}

.pub-auth-signup {
    text-align: center;
    margin-top: 1.35rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.pub-auth-signup a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.25rem;
    border-bottom: 2px solid var(--gold);
}

.pub-auth-signup a:hover { color: var(--gold-dark); }

.btn-pub-ghost.active {
    color: var(--gold);
    border-color: var(--gold);
}

.pub-member-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.75rem;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 991.98px) {
    .pub-header .navbar-nav {
        padding: 0.6rem 0 1rem;
        gap: 0.25rem;
    }
    .pub-header .btn-pub-ghost,
    .pub-header .btn-pub-gold {
        display: flex;
        width: 100%;
        text-align: center;
        margin-top: 0.35rem;
    }
}

@media (min-width: 992px) {
    .pub-header-actions { margin-left: 0.75rem; }
}

@media (max-width: 767.98px) {
    .pub-hero { padding: 2.2rem 0 1.9rem; }
    .pub-section { padding: 2.1rem 0; }
    .pack-price { font-size: 1.7rem; }
    .legal-wrap, .prose-card, .contact-panel { padding: 1.35rem 1.05rem; }
    .tool-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .tool-meta {
        width: 100%;
        justify-content: space-between;
    }
    .credit-table-wrap { overflow-x: auto; }
    .credit-table { min-width: 0; }
    .pub-auth-card { padding: 2rem 1.25rem 1.7rem; }
    .pub-wa-float { width: 64px; height: 64px; font-size: 1.85rem; right: 14px; bottom: 14px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .pub-hero { padding: 2.6rem 0; }
}
