/* ==========================================================================
   ZoomFaucet Public & Auth Design System (Card 1: Royal Blue & Mint Teal)
   Covers: Home, Login, Register, Forgot Password, Payment Proofs, Pages,
           Privacy Policy, Maintenance, Public Header & Footer
   ========================================================================== */

body.zf-public-body {
    background-color: #f4f7f9 !important;
    color: #0f172a;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.zf-public-body.dark-theme {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

/* ---------- Public Header ---------- */
.zf-pub-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
body.dark-theme .zf-pub-header {
    background: rgba(30, 41, 59, 0.96);
    border-bottom-color: #334155;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.zf-pub-nav-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.zf-pub-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}
.zf-pub-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}
.zf-pub-brand:hover {
    opacity: 0.88;
}
.zf-pub-brand-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1;
    color: #0f172a;
    white-space: nowrap;
    user-select: none;
}
body.dark-theme .zf-pub-brand-name {
    color: #f8fafc;
}
.zf-pub-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.zf-pub-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 7px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    color: #475569 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
}
.zf-pub-link-btn:focus {
    outline: none;
}
.zf-pub-link:hover,
.zf-pub-link.is-active {
    background: #eff6ff;
    color: #2563eb !important;
}
body.dark-theme .zf-pub-link {
    color: #cbd5e1 !important;
}
body.dark-theme .zf-pub-link:hover,
body.dark-theme .zf-pub-link.is-active {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd !important;
}
.zf-pub-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.zf-pub-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: all 0.18s ease;
}
.zf-pub-btn-outline:hover {
    border-color: #3b82f6;
    color: #2563eb !important;
    background: #eff6ff;
}
body.dark-theme .zf-pub-btn-outline {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9 !important;
}
body.dark-theme .zf-pub-btn-outline:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd !important;
}
.zf-pub-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    background: linear-gradient(135deg, #00B8A9 0%, #009E91 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0, 184, 169, 0.25);
    transition: all 0.18s ease;
}
.zf-pub-btn-primary:hover {
    background: linear-gradient(135deg, #00cbba 0%, #00b0a2 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 184, 169, 0.35);
    color: #ffffff !important;
}

.zf-pub-main {
    flex: 1 0 auto;
    padding: 26px 0 42px 0;
}

/* ---------- Public Hero (Home) ---------- */
.zf-pub-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}
body.dark-theme .zf-pub-hero {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
.zf-pub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
body.dark-theme .zf-pub-hero-badge {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
}
.zf-pub-hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #00B8A9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.zf-pub-hero-sub {
    font-size: 15px;
    color: #64748b;
    max-width: 580px;
    margin: 0 auto 20px auto;
    line-height: 1.55;
}
body.dark-theme .zf-pub-hero-sub {
    color: #94a3b8;
}
.zf-coin-strip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 22px;
}
body.dark-theme .zf-coin-strip {
    background: #0f172a;
    border-color: #334155;
}
.zf-coin-strip img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.zf-coin-strip img:hover {
    transform: translateY(-3px);
}
.zf-hero-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.zf-hero-btn-lg {
    padding: 11px 26px;
    font-size: 14px;
    border-radius: 9px;
}

/* ---------- Public Feature & Section Titles ---------- */
.zf-pub-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.zf-pub-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.dark-theme .zf-pub-section-title {
    color: #f8fafc;
}
.zf-feature-card {
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.zf-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.zf-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

/* ---------- Auth Pages (Login / Register / Forgot Password) ---------- */
.zf-auth-container {
    max-width: 450px;
    margin: 12px auto 0 auto;
    padding: 0 12px;
}
.zf-auth-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
body.dark-theme .zf-auth-card-title {
    color: #f8fafc;
}
.zf-auth-sub {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}
body.dark-theme .zf-auth-sub {
    color: #94a3b8;
}
.zf-auth-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}
.zf-auth-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}
body.dark-theme .zf-auth-link {
    color: #60a5fa;
}
.zf-auth-footer-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.zf-auth-footer-pill:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}
body.dark-theme .zf-auth-footer-pill {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd !important;
}

/* ---------- Dismissible Ad Slots & Sticky Ad ---------- */
.zf-ad-dismiss-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 14px auto;
    width: max-content;
    max-width: 100%;
}
.zf-ad-dismiss-btn {
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
    color: #334155;
    line-height: 1.3;
    align-self: flex-end;
    margin-bottom: 2px;
}
@media (max-width: 991px) {
    .zf-ad-mobile-only { display: flex; }
}
@media (min-width: 992px) {
    .zf-ad-desktop-only { display: flex; }
}
.zf-sticky-ad {
    position: fixed;
    bottom: 8px;
    right: 8px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: max-content;
}
@media (max-width: 991px) {
    .zf-sticky-ad { display: none !important; }
}

/* ---------- Content / Legal Pages ---------- */
.zf-prose {
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}
.zf-prose h4, .zf-prose h5 {
    font-weight: 800;
    color: #0f172a;
    margin-top: 20px;
    margin-bottom: 8px;
}
.zf-prose ul {
    padding-left: 20px;
}
body.dark-theme .zf-prose {
    color: #cbd5e1;
}
body.dark-theme .zf-prose h4,
body.dark-theme .zf-prose h5 {
    color: #f8fafc;
}

/* ---------- Public Footer ---------- */
.zf-pub-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 34px 0 22px 0;
    flex-shrink: 0;
}
body.dark-theme .zf-pub-footer {
    background: #1e293b;
    border-top-color: #334155;
}
.zf-pub-footer-heading {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
body.dark-theme .zf-pub-footer-heading {
    color: #f8fafc;
}
.zf-pub-footer-link {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b !important;
    text-decoration: none !important;
    padding: 3px 0;
}
.zf-pub-footer-link:hover {
    color: #00B8A9 !important;
}
body.dark-theme .zf-pub-footer-link {
    color: #94a3b8 !important;
}
body.dark-theme .zf-pub-footer-link:hover {
    color: #2dd4bf !important;
}
.zf-pub-footer-divider {
    border-top: 1px solid #edf2f7;
    margin: 20px 0 14px 0;
}
body.dark-theme .zf-pub-footer-divider {
    border-top-color: #334155;
}

@media (max-width: 576px) {
    .zf-pub-left { gap: 6px; }
    .zf-pub-links { gap: 2px; }
    .zf-pub-link { padding: 5px 9px; font-size: 12.5px; }
    .zf-pub-link-home { display: none; }
    .zf-pub-brand-name { font-size: 16px; }
    .zf-pub-btn-outline,
    .zf-pub-btn-primary { padding: 6px 12px; font-size: 12px; }
    .zf-pub-hero { padding: 26px 16px; }
    .zf-pub-hero-title { font-size: 26px; }
    .zf-pub-hero-sub { font-size: 13.5px; }
}
