/* PayWillie Final Theme — Teal */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --pw-teal: #1a8a9a;
    --pw-teal-dark: #0f6b78;
    --pw-teal-light: #e6f4f6;
    --pw-teal-mid: #5bccd8;
    --pw-navy: #0f2341;
    --pw-navy2: #1a2f4a;
    --pw-text: #111827;
    --pw-muted: #6b7280;
    --pw-border: #e5e7eb;
    --pw-bg: #f8fafc;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; margin: 0; padding: 0; }

/* ── FOSSBILLING OUTER RESET ── */
.pw-outer { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
.pw-outer > header { display: none !important; }
.pw-outer > .row { margin: 0 !important; }
.pw-outer .col-3 { display: none !important; }
.pw-outer .col-12.col-md-9 { max-width: 100% !important; flex: 0 0 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
.pw-outer #wrapper, .pw-outer section[role="main"], .pw-outer .content-block { padding: 0 !important; margin: 0 !important; }
.pw-outer #footer { display: none !important; }
.pw-outer .toast-container { display: none !important; }
.pw-outer a.btn.position-fixed { display: none !important; }

/* ── TOP BAR ── */
.pw-topbar {
    background: var(--pw-navy);
    padding: 8px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pw-topbar-left { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.7); }
.pw-topbar-left svg { width: 13px; height: 13px; stroke: var(--pw-teal-mid); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-topbar-right { font-size: 12px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 6px; }
.pw-topbar-right svg { width: 13px; height: 13px; stroke: var(--pw-teal-mid); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── NAVBAR ── */
.pw-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; height: 76px;
    background: #fff; border-bottom: 1px solid var(--pw-border);
    position: sticky; top: 0; z-index: 1000;
}
.pw-nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.pw-nav-brand img { height: 48px; width: auto; }
.pw-nav-brand-text { display: flex; flex-direction: column; }
.pw-nav-brand-name { font-size: 20px; font-weight: 800; color: var(--pw-navy); line-height: 1; }
.pw-nav-brand-name span { color: var(--pw-teal); }
.pw-nav-brand-tag { font-size: 11px; color: var(--pw-muted); margin-top: 2px; }
.pw-nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pw-nav-links a { font-size: 14px; font-weight: 500; color: var(--pw-muted); text-decoration: none; padding: 6px 14px; border-radius: 6px; transition: color 0.15s; }
.pw-nav-links a:hover { color: var(--pw-teal); }
.pw-nav-links a.active { color: var(--pw-teal); border-bottom: 2px solid var(--pw-teal); border-radius: 0; padding-bottom: 4px; }
.pw-nav-cta { display: flex; align-items: center; gap: 8px; background: var(--pw-teal); color: #fff; font-size: 14px; font-weight: 600; padding: 10px 22px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.pw-nav-cta:hover { background: var(--pw-teal-dark); color: #fff; text-decoration: none; }
.pw-nav-cta svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── HERO ── */
.pw-hero { background: #fff; padding: 60px 40px 52px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border-bottom: 1px solid var(--pw-border); overflow: hidden; position: relative; }
.pw-hero::after { content: ''; position: absolute; top: -100px; right: 300px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(26,138,154,0.06) 0%, transparent 70%); pointer-events: none; }
.pw-hero-left { flex: 1; max-width: 520px; position: relative; z-index: 1; }
.pw-hero-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--pw-teal); background: var(--pw-teal-light); border: 1px solid rgba(26,138,154,0.2); border-radius: 20px; padding: 5px 14px; margin-bottom: 20px; }
.pw-hero-badge svg { width: 12px; height: 12px; stroke: var(--pw-teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-hero-left h1 { font-size: 50px; font-weight: 800; color: var(--pw-text); line-height: 1.08; margin-bottom: 20px; letter-spacing: -1.5px; }
.pw-hero-left h1 span { color: var(--pw-teal); }
.pw-hero-left p { font-size: 17px; color: var(--pw-muted); line-height: 1.65; margin-bottom: 32px; }
.pw-hero-btns { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.pw-btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--pw-navy); color: #fff; font-size: 15px; font-weight: 600; padding: 13px 28px; border-radius: 9px; text-decoration: none; border: none; cursor: pointer; transition: background 0.15s; }
.pw-btn-primary:hover { background: var(--pw-navy2); color: #fff; text-decoration: none; }
.pw-btn-primary svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pw-btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--pw-text); font-size: 15px; font-weight: 500; padding: 12px 24px; border-radius: 9px; text-decoration: none; border: 1.5px solid var(--pw-border); cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.pw-btn-secondary:hover { border-color: var(--pw-teal); color: var(--pw-teal); text-decoration: none; }
.pw-btn-secondary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-hero-trust { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pw-hero-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pw-muted); font-weight: 500; }
.pw-hero-trust-item svg { width: 15px; height: 15px; stroke: var(--pw-teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-hero-right { flex-shrink: 0; position: relative; z-index: 1; }
.pw-hero-right img { width: 400px; height: auto; display: block; }

/* ── SECTIONS ── */
.pw-section { padding: 56px 40px; background: #fff; }
.pw-section.alt { background: var(--pw-bg); }
.pw-section-head { text-align: center; margin-bottom: 40px; }
.pw-section-eye { font-size: 12px; font-weight: 600; color: var(--pw-teal); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.pw-section-head h2 { font-size: 28px; font-weight: 800; color: var(--pw-text); margin-bottom: 8px; letter-spacing: -0.5px; }
.pw-section-head h2 span { color: var(--pw-teal); }
.pw-section-head p { font-size: 15px; color: var(--pw-muted); }
.pw-section-head .pw-underline { width: 40px; height: 3px; background: var(--pw-teal); border-radius: 2px; margin: 12px auto 0; }

/* ── SERVICE CARDS ── */
.pw-cards-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.pw-card { background: #fff; border: 1px solid var(--pw-border); border-radius: 14px; padding: 28px 22px 24px; text-align: center; transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s; }
.pw-card:hover { border-color: var(--pw-teal); box-shadow: 0 8px 24px rgba(26,138,154,0.1); transform: translateY(-2px); }
.pw-card-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--pw-teal-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.pw-card-icon svg { width: 30px; height: 30px; stroke: var(--pw-teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-card h3 { font-size: 16px; font-weight: 700; color: var(--pw-text); margin-bottom: 8px; }
.pw-card p { font-size: 13px; color: var(--pw-muted); line-height: 1.6; margin-bottom: 20px; }
.pw-card-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--pw-teal); text-decoration: none; }
.pw-card-link:hover { color: var(--pw-teal-dark); text-decoration: none; }
.pw-card-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── SECURITY BANNER ── */
.pw-security-wrap { padding: 0 40px 56px; background: var(--pw-bg); }
.pw-security { background: var(--pw-navy); border-radius: 16px; padding: 44px 48px; display: flex; align-items: center; gap: 48px; }
.pw-security-left { display: flex; align-items: center; gap: 24px; flex: 1; }
.pw-security-icon { width: 80px; height: 80px; flex-shrink: 0; background: rgba(91,204,216,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pw-security-icon img { width: 80px; height: 80px; }
.pw-security-left h3 { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.pw-security-left h3 span { color: var(--pw-teal-mid); }
.pw-security-left p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0; }
.pw-security-right { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.pw-security-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 500; }
.pw-security-item svg { width: 16px; height: 16px; stroke: var(--pw-teal-mid); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── STATS STRIP ── */
.pw-stats { background: #fff; border-top: 1px solid var(--pw-border); border-bottom: 1px solid var(--pw-border); display: grid; grid-template-columns: repeat(4,1fr); }
.pw-stat { text-align: center; padding: 28px 16px; border-right: 1px solid var(--pw-border); display: flex; align-items: center; justify-content: center; gap: 14px; }
.pw-stat:last-child { border-right: none; }
.pw-stat-icon { width: 44px; height: 44px; background: var(--pw-teal-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pw-stat-icon svg { width: 22px; height: 22px; stroke: var(--pw-teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-stat-val { font-size: 22px; font-weight: 800; color: var(--pw-text); line-height: 1; margin-bottom: 3px; }
.pw-stat-label { font-size: 12px; color: var(--pw-muted); font-weight: 500; }

/* ── WHY SECTION ── */
.pw-why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.pw-why-item { display: flex; align-items: flex-start; gap: 14px; }
.pw-why-icon { width: 46px; height: 46px; flex-shrink: 0; background: var(--pw-teal-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.pw-why-icon svg { width: 22px; height: 22px; stroke: var(--pw-teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-why-item h4 { font-size: 14px; font-weight: 700; color: var(--pw-text); margin-bottom: 5px; }
.pw-why-item p { font-size: 13px; color: var(--pw-muted); line-height: 1.5; margin: 0; }

/* ── FOOTER ── */
.pw-footer { background: var(--pw-navy); padding: 52px 40px 0; }
.pw-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pw-footer-brand img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 12px; display: block; }
.pw-footer-brand-name { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.pw-footer-brand-name span { color: var(--pw-teal-mid); }
.pw-footer-brand-tag { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.pw-footer-brand-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; margin-bottom: 20px; }
.pw-footer-social { display: flex; gap: 12px; }
.pw-footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background 0.15s; }
.pw-footer-social a:hover { background: rgba(91,204,216,0.15); }
.pw-footer-social svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.pw-footer-col ul { list-style: none; padding: 0; margin: 0; }
.pw-footer-col ul li { margin-bottom: 10px; }
.pw-footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.15s; }
.pw-footer-col ul li a:hover { color: var(--pw-teal-mid); }
.pw-footer-col p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 14px; }
.pw-footer-contact-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-size: 13px; font-weight: 500; padding: 9px 18px; border-radius: 8px; text-decoration: none; transition: background 0.15s; }
.pw-footer-contact-btn:hover { background: rgba(91,204,216,0.15); color: #fff; text-decoration: none; }
.pw-footer-contact-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.pw-footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }
.pw-footer-bottom-links { display: flex; gap: 20px; }
.pw-footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.25); text-decoration: none; }
.pw-footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .pw-cards-grid { grid-template-columns: repeat(2,1fr); }
    .pw-why-grid { grid-template-columns: repeat(2,1fr); }
    .pw-hero-left h1 { font-size: 38px; }
    .pw-hero-right img { width: 300px; }
    .pw-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .pw-topbar { padding: 8px 20px; }
    .pw-nav { padding: 0 20px; height: 64px; }
    .pw-nav-links { display: none; }
    .pw-nav-brand-text { display: none; }
    .pw-hero { flex-direction: column-reverse; padding: 36px 24px; text-align: center; }
    .pw-hero-right img { width: 220px; }
    .pw-hero-left h1 { font-size: 32px; }
    .pw-hero-btns { justify-content: center; }
    .pw-hero-trust { justify-content: center; }
    .pw-section { padding: 40px 24px; }
    .pw-security { flex-direction: column; padding: 28px 24px; gap: 24px; }
    .pw-security-wrap { padding: 0 24px 40px; }
    .pw-stats { grid-template-columns: repeat(2,1fr); }
    .pw-footer { padding: 40px 24px 0; }
    .pw-footer-top { grid-template-columns: 1fr; gap: 32px; }
    .pw-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Constrain hero and sections to max width */
.pw-hero,
.pw-section,
.pw-security-wrap,
.pw-stats,
.pw-footer {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.pw-topbar,
.pw-nav {
    max-width: 100%;
}
.pw-security-wrap {
    max-width: 1200px;
    padding-left: 40px;
    padding-right: 40px;
}
.pw-stats {
    border-left: 1px solid var(--pw-border);
    border-right: 1px solid var(--pw-border);
}

/* Larger goblin hero image */
.pw-hero-right img {
    width: 520px !important;
}

/* Larger goblin hero image */
.pw-hero-right img {
    width: 580px !important;
}

/* ── GLOBAL BOOTSTRAP OVERRIDES ── */
:root {
    --bs-primary: #1a8a9a;
    --bs-primary-rgb: 26, 138, 154;
    --bs-link-color: #1a8a9a;
    --bs-link-color-rgb: 26, 138, 154;
    --bs-link-hover-color: #0f6b78;
}
.btn-primary {
    background-color: #1a8a9a !important;
    border-color: #1a8a9a !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #0f6b78 !important;
    border-color: #0f6b78 !important;
}
.btn-outline-primary {
    color: #1a8a9a !important;
    border-color: #1a8a9a !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #1a8a9a !important;
    border-color: #1a8a9a !important;
    color: #fff !important;
}
a { color: #1a8a9a; }
a:hover { color: #0f6b78; }

/* ── LOGIN PAGE LOGO ── */
.page-login img { height: 90px !important; }

/* Override huraga theme green with teal */
.order-button,
.btn-primary,
.bg-primary,
.nav-link.active,
.breadcrumb-item.active,
.text-primary,
.page-link,
.form-check-input:checked,
.progress-bar {
    color: #1a8a9a !important;
}
.btn-primary,
.bg-primary {
    background-color: #1a8a9a !important;
    border-color: #1a8a9a !important;
    color: #fff !important;
}
.text-primary { color: #1a8a9a !important; }
.border-primary { border-color: #1a8a9a !important; }
.nav-pills .nav-link.active { background-color: #1a8a9a !important; }
.form-check-input:checked { background-color: #1a8a9a !important; border-color: #1a8a9a !important; }

/* layout_public navbar */
.btn-pay {
    background: #1a8a9a !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    text-decoration: none !important;
}
.btn-pay:hover { background: #0f6b78 !important; color: #fff !important; }
.pw-navbar .nav-link { color: #4b5563 !important; }
.pw-navbar .nav-link:hover { color: #1a8a9a !important; }

/* Force white text on all teal buttons */
.btn-pay,
.btn-pay:hover,
.btn-pay:visited,
.btn-pay:active,
.btn-pay:focus {
    color: #ffffff !important;
}

/* Fix oversized logo on order and other pages */
.page-login img,
.page-signup img,
header .navbar-brand img,
.navbar-brand img {
    height: 45px !important;
    width: auto !important;
}

/* Fix oversized logo on order and other pages */
.page-login img,
.page-signup img,
header .navbar-brand img,
.navbar-brand img {
    height: 55px !important;
    width: auto !important;
}

/* ── CUSTOMER AREA GLOBAL FIXES ── */
/* All primary buttons → teal */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #1a8a9a !important;
    border-color: #1a8a9a !important;
    color: #fff !important;
}
/* Top button */
a.btn.position-fixed,
a[href*="top"].btn {
    background-color: #1a8a9a !important;
    border-color: #1a8a9a !important;
    color: #fff !important;
}
/* Card headers → teal-tinted */
.card-header {
    background-color: #e6f4f6 !important;
    border-bottom: 2px solid #1a8a9a !important;
    color: #0f2341 !important;
}
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header span {
    color: #0f2341 !important;
}
/* Fix order page top gap */
.page-order .content-block,
.dashboard .content-block {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* Mobile navbar text → show logo instead */
.navbar-brand span.d-sm-none {
    display: none !important;
}
.navbar-brand img.d-none {
    display: block !important;
    height: 36px !important;
}

/* Fix dark/black buttons to teal */
.btn-dark,
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
    background-color: #1a8a9a !important;
    border-color: #1a8a9a !important;
    color: #fff !important;
}

/* Fix secondary buttons to teal outline */
.btn-secondary,
.btn-secondary:hover {
    background-color: #1a8a9a !important;
    border-color: #1a8a9a !important;
    color: #fff !important;
}

/* Larger navbar logo */
header .navbar-brand img,
.navbar-brand img.d-none.d-sm-block {
    height: 56px !important;
    width: auto !important;
    display: block !important;
}

/* Larger ticket message text area */
.ql-editor,
.note-editable,
[contenteditable="true"] {
    min-height: 200px !important;
}
.trumbowyg-box,
.trumbowyg-editor {
    min-height: 200px !important;
}

/* CKEditor larger text area */
.ck-editor__editable {
    min-height: 200px !important;
}
.ck.ck-editor__editable_inline {
    min-height: 200px !important;
}



.pw-feature-dot svg { width: 11px !important; height: 11px !important; min-width: 0 !important; min-height: 0 !important; max-width: 11px !important; max-height: 11px !important; }
.pw-svc-img svg { width: 72px !important; height: 72px !important; max-width: 72px !important; }
.pw-sp-hero svg { width: 80px !important; height: 80px !important; max-width: 80px !important; }
