:root {
    --pws-green: #00df00;
    --pws-green-dark: #08a508;
    --pws-teal: #2c6f7f;
    --pws-teal-dark: #1f5663;
    --pws-ink: #101418;
    --pws-muted: #66727c;
    --pws-line: #dfe7ea;
    --pws-soft: #f4f8f8;
    --pws-white: #ffffff;
    --pws-radius: 8px;
    --pws-shadow: 0 12px 32px rgba(16, 20, 24, 0.08);
    --pws-shadow-lg: 0 22px 54px rgba(16, 20, 24, 0.14);
    --pws-transition: 180ms ease;
    --bs-primary: var(--pws-teal);
    --bs-primary-rgb: 44, 111, 127;
    --bs-success: var(--pws-green-dark);
    --bs-success-rgb: 8, 165, 8;
    --bs-border-radius: var(--pws-radius);
    --bs-body-font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--pws-ink);
    background: linear-gradient(180deg, #f8fbfb 0%, var(--pws-soft) 42%, #ffffff 100%) fixed;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--pws-green-dark);
    text-decoration: none;
}

.page-shell {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.container-fluid {
    max-width: 1240px;
}

.pws-nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--pws-line);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(16, 20, 24, 0.05);
}

.pws-brand {
    display: flex;
    align-items: center;
    min-width: 190px;
}

.pws-brand img {
    width: 180px;
    max-height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(44, 111, 127, 0.08));
}

.navbar-light .navbar-nav .nav-link {
    color: var(--pws-ink);
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: var(--pws-radius);
    transition: color var(--pws-transition), background var(--pws-transition), transform var(--pws-transition);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--pws-teal);
    background: rgba(44, 111, 127, 0.08);
    transform: translateY(-1px);
}

.user-pill {
    border: 1px solid var(--pws-line);
    background: var(--pws-white);
}

.dropdown-menu {
    border: 1px solid var(--pws-line);
    border-radius: var(--pws-radius);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.btn {
    border-radius: var(--pws-radius);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: transform var(--pws-transition), box-shadow var(--pws-transition), background var(--pws-transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--pws-teal);
    border-color: var(--pws-teal);
    color: var(--pws-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--pws-teal-dark);
    border-color: var(--pws-teal-dark);
    box-shadow: 0 10px 22px rgba(44, 111, 127, 0.22);
}

.btn-outline-primary {
    color: var(--pws-teal);
    border-color: var(--pws-teal);
}

.btn-outline-primary:hover {
    background: var(--pws-teal);
    border-color: var(--pws-teal);
    color: var(--pws-white);
}

.btn-success {
    background: var(--pws-green-dark);
    border-color: var(--pws-green-dark);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-outline-danger {
    border-color: #c74343;
    color: #c74343;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 580px;
    padding: 7rem 6vw 5rem;
    display: grid;
    align-items: end;
    background: #050505 url("../images/logo.png") center 18% / min(76vw, 980px) auto no-repeat;
    color: var(--pws-white);
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.26;
    mask-image: linear-gradient(180deg, transparent 0%, black 42%, black 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.85)),
        linear-gradient(90deg, rgba(44, 111, 127, 0.5), transparent 58%);
}

.hero-content,
.hero-panel {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 780px;
}

.eyebrow {
    display: inline-block;
    color: var(--pws-green);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0;
    margin-bottom: 0.7rem;
}

.hero h1,
.page-heading h1,
.section-heading h2,
.panel h2 {
    letter-spacing: 0;
}

.hero h1 {
    font-size: 3.35rem;
    line-height: 1.04;
    max-width: 900px;
    margin: 0 0 1rem;
    text-wrap: balance;
}

.hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.hero-panel {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 1px;
    max-width: 780px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--pws-radius);
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.metric-row {
    padding: 1rem;
    background: rgba(16, 20, 24, 0.46);
    backdrop-filter: blur(10px);
}

.metric-row span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
}

.metric-row strong {
    display: block;
    color: var(--pws-white);
    margin-top: 0.2rem;
}

.section-band {
    padding: 4.5rem 6vw;
    background: var(--pws-white);
}

.section-band.muted {
    background:
        linear-gradient(180deg, rgba(44, 111, 127, 0.04), rgba(0, 223, 0, 0.03)),
        var(--pws-soft);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading h2,
.split-layout h2,
.contact-band h2 {
    font-size: 2rem;
    line-height: 1.15;
    margin: 0;
    text-wrap: balance;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.price-card,
.panel,
.auth-card {
    background: var(--pws-white);
    border: 1px solid var(--pws-line);
    border-radius: var(--pws-radius);
    box-shadow: var(--pws-shadow);
    transition: transform var(--pws-transition), box-shadow var(--pws-transition), border-color var(--pws-transition);
}

.price-card:hover,
.panel:hover,
.auth-card:hover,
.stat-item:hover,
.tld-chip:hover,
.payment-box:hover,
.list-item:hover,
.domain-row:hover {
    border-color: rgba(44, 111, 127, 0.26);
    box-shadow: var(--pws-shadow-lg);
    transform: translateY(-3px);
}

.price-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--pws-green), var(--pws-teal));
}

.price-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.45rem;
}

.price-card p,
.section-band p,
.auth-card p,
.empty-state,
.muted-text {
    color: var(--pws-muted);
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pws-teal);
}

.price span {
    font-size: 0.92rem;
    color: var(--pws-muted);
    font-weight: 600;
}

.price-card ul {
    padding-left: 1.1rem;
    color: #314049;
    flex: 1;
}

.price-card li {
    margin-bottom: 0.45rem;
}

.split-layout,
.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.tld-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 0.8rem;
}

.tld-chip {
    border: 1px solid var(--pws-line);
    border-radius: var(--pws-radius);
    padding: 1rem;
    background: var(--pws-white);
    box-shadow: 0 10px 24px rgba(16, 20, 24, 0.05);
    transition: transform var(--pws-transition), box-shadow var(--pws-transition), border-color var(--pws-transition);
}

.tld-chip strong,
.tld-chip span {
    display: block;
}

.contact-band {
    color: var(--pws-white);
    background:
        linear-gradient(135deg, rgba(0, 223, 0, 0.16), rgba(44, 111, 127, 0.08)),
        var(--pws-teal);
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
}

.contact-band p {
    color: rgba(255, 255, 255, 0.78);
}

.auth-page {
    background:
        linear-gradient(180deg, rgba(44, 111, 127, 0.08), rgba(0, 223, 0, 0.04)),
        #f5fafa;
}

.auth-shell {
    min-height: 76vh;
    display: grid;
    place-items: center;
    padding: 3rem 1rem;
}

.auth-shell.wide .auth-card {
    max-width: 860px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--pws-green), var(--pws-teal));
}

.auth-logo {
    width: 220px;
    max-width: 80%;
    display: block;
    margin-bottom: 1rem;
}

.stack-form,
.grid-form {
    display: grid;
    gap: 1rem;
}

.grid-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-form .full {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
    color: #27343c;
}

.form-control {
    border: 1px solid var(--pws-line);
    border-radius: var(--pws-radius);
    min-height: 42px;
    margin-top: 0.35rem;
    transition: border-color var(--pws-transition), box-shadow var(--pws-transition), background var(--pws-transition);
}

.form-control:focus {
    border-color: var(--pws-teal);
    box-shadow: 0 0 0 0.18rem rgba(44, 111, 127, 0.16);
    background: #fbffff;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.dashboard-wrap {
    padding: 2rem 1rem 4rem;
    max-width: 1240px;
    margin: 0 auto;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-heading h1 {
    font-size: 2rem;
    margin: 0;
}

.panel {
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.panel h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.panel-head h2 {
    margin: 0;
}

.list-stack {
    display: grid;
    gap: 0.75rem;
}

.list-item,
.domain-row,
.payment-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--pws-line);
    border-radius: var(--pws-radius);
    padding: 0.85rem;
    background: #fbfdfd;
    transition: transform var(--pws-transition), box-shadow var(--pws-transition), border-color var(--pws-transition), background var(--pws-transition);
}

.link-item {
    color: var(--pws-ink);
}

.list-item span,
.domain-row span {
    display: block;
    color: var(--pws-muted);
    font-size: 0.9rem;
}

.domain-results {
    display: grid;
    gap: 0.8rem;
}

.domain-row form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.payment-box {
    display: grid;
    align-items: stretch;
    background:
        linear-gradient(180deg, rgba(44, 111, 127, 0.035), transparent),
        #fbfdfd;
}

.payment-title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.05rem;
}

.bank-field,
.flexpay-field {
    display: none;
}

.payment-box[data-method="flexpay"] .flexpay-field,
.payment-box[data-method="bank_transfer"] .bank-field {
    display: block;
}

.table {
    background: var(--pws-white);
    margin-bottom: 0;
    vertical-align: middle;
}

.table th {
    border-top: 0;
    color: #42515b;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.table tbody tr {
    transition: background var(--pws-transition);
}

.table tbody tr:hover {
    background: rgba(44, 111, 127, 0.045);
}

.badge {
    border-radius: 999px;
    padding: 0.42rem 0.65rem;
}

.inline-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.switch input {
    display: none;
}

.switch span {
    display: inline-block;
    width: 46px;
    height: 24px;
    border-radius: 999px;
    background: #c8d3d7;
    position: relative;
    cursor: pointer;
}

.switch span::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: var(--pws-white);
    transition: left var(--pws-transition);
}

.switch input:checked + span {
    background: var(--pws-green-dark);
}

.switch input:checked + span::after {
    left: 25px;
}

.thread {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.thread-message {
    border-left: 3px solid var(--pws-teal);
    background: var(--pws-soft);
    padding: 0.85rem;
    border-radius: 0 var(--pws-radius) var(--pws-radius) 0;
}

.invoice-total {
    display: grid;
    justify-content: end;
    gap: 0.35rem;
    text-align: right;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.site-footer {
    border-top: 1px solid var(--pws-line);
    background:
        linear-gradient(180deg, #ffffff, #f7fbfb);
    padding: 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 1.5rem;
}

.footer-logo {
    width: 180px;
    margin-bottom: 0.8rem;
}

.site-footer span,
.site-footer a {
    display: block;
    color: var(--pws-muted);
    margin-top: 0.35rem;
}

.chatbot-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    background: var(--pws-teal);
    color: var(--pws-white);
    box-shadow: var(--pws-shadow-lg);
    z-index: 1000;
    transition: transform var(--pws-transition), background var(--pws-transition), box-shadow var(--pws-transition);
}

.chatbot-toggle:hover {
    background: var(--pws-teal-dark);
    transform: translateY(-2px);
}

.chatbot-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: min(380px, calc(100vw - 24px));
    height: min(560px, calc(100vh - 36px));
    background: var(--pws-white);
    border: 1px solid var(--pws-line);
    border-radius: var(--pws-radius);
    box-shadow: var(--pws-shadow);
    z-index: 1001;
    overflow: hidden;
}

.chatbot-header,
.chatbot-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--pws-line);
}

.chatbot-messages {
    height: 330px;
    overflow-y: auto;
    padding: 0.8rem;
    background: var(--pws-soft);
}

.chat-message {
    max-width: 86%;
    margin-bottom: 0.7rem;
}

.user-message {
    margin-left: auto;
}

.message-content {
    border-radius: var(--pws-radius);
    padding: 0.65rem 0.75rem;
    background: var(--pws-white);
    border: 1px solid var(--pws-line);
}

.user-message .message-content {
    background: var(--pws-teal);
    color: var(--pws-white);
}

.message-time {
    font-size: 0.75rem;
    color: var(--pws-muted);
    margin-top: 0.2rem;
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.65rem;
}

.suggestion-btn {
    border: 1px solid var(--pws-line);
    background: var(--pws-white);
    border-radius: 999px;
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
    transition: border-color var(--pws-transition), color var(--pws-transition), transform var(--pws-transition);
}

.suggestion-btn:hover {
    border-color: var(--pws-teal);
    color: var(--pws-teal);
    transform: translateY(-1px);
}

.chatbot-input {
    border-top: 1px solid var(--pws-line);
    border-bottom: 0;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid var(--pws-line);
    border-radius: var(--pws-radius);
    padding: 0.55rem;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 520ms ease, transform 520ms ease;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-content,
    .hero-panel,
    .auth-card {
        animation: pwsFadeUp 620ms ease both;
    }

    .hero-panel {
        animation-delay: 120ms;
    }

    @keyframes pwsFadeUp {
        from {
            opacity: 0;
            transform: translateY(18px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 560px;
        padding: 5.5rem 1.2rem 3rem;
        background-size: 980px auto;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-panel,
    .split-layout,
    .two-col,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .grid-form {
        grid-template-columns: 1fr;
    }

    .page-heading,
    .contact-band {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .pws-brand img {
        width: 150px;
    }

    .section-band,
    .dashboard-wrap {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .domain-row,
    .list-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .domain-row form,
    .inline-form {
        width: 100%;
        flex-wrap: wrap;
    }
}
