﻿/* =========================================================
   Base
   ========================================================= */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

:root {
    --bg: #f6f7fb;
    --text: #111827;
    --muted: #4b5563;
    --card-border: #e6e9f2;
    --soft-border: #e5e7eb;
    --brand-dark: #0b1b38;
    --brand-mid: #142a55;
    --sidebar-w: 260px;
    --banner-h: 108px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* Bootstrap focus ring */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem #258cfb;
}

/* =========================================================
   Banner
   ========================================================= */
.container-1200 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

.site-banner.v2 {
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 55%, var(--brand-dark) 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: brightness(1.25) contrast(1.15) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px rgba(0, 140, 255, 0.35)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}

    .brand-logo:hover {
        transform: scale(1.06);
        filter: brightness(1.35) contrast(1.2) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(0, 140, 255, 0.45)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
    }

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-left .brand-name {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0.2px;
    line-height: 1.1;
}

.brand-left .brand-sub {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.9;
}

.brand-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 650;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.15s ease;
}

    .banner-link:hover {
        background: rgba(255, 255, 255, 0.08);
    }

.banner-btn {
    text-decoration: none;
    font-weight: 800;
    color: var(--brand-dark);
    background: #ffffff;
    padding: 9px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    transition: filter 0.15s ease, transform 0.15s ease;
}

    .banner-btn:hover {
        filter: brightness(0.96);
        transform: translateY(-1px);
    }

/* =========================================================
   Layout
   ========================================================= */
.site-layout {
    max-width: 1200px;
    margin: 10px auto 0 auto;
    padding: 0;
}

.site-layout-inner {
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

/* =========================================================
   Sidebar
   ========================================================= */
.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 14px 10px;
}

.sticky-sidebar {
    position: sticky;
    top: calc(var(--banner-h) + 18px);
    height: calc(100vh - var(--banner-h) - 36px);
    overflow-y: auto;
    align-self: flex-start;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 4px 6px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 650;
    transition: background 0.15s ease, transform 0.12s ease;
}

    .sidebar-link:hover {
        background: rgba(37, 99, 235, 0.08);
        transform: translateX(2px);
    }

    .sidebar-link:active {
        transform: translateX(2px) translateY(1px);
    }

    .sidebar-link.small {
        font-weight: 600;
        opacity: 0.92;
    }

.sidebar-icon {
    width: 22px;
    text-align: center;
    color: #0b1b38;
    opacity: 0.85;
}

.sidebar-link:hover .sidebar-icon {
    opacity: 1;
}

.sidebar-link.active {
    background: rgba(37, 99, 235, 0.14);
    color: #0b1b38;
}

    .sidebar-link.active .sidebar-icon {
        color: #2563eb;
        opacity: 1;
    }

.sidebar-divider {
    height: 1px;
    background: var(--card-border);
    margin: 12px 10px;
}

/* =========================================================
   Content
   ========================================================= */
.site-content {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.content-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 34px 38px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.page-title {
    font-size: 32px;
    font-weight: 750;
    letter-spacing: -0.3px;
    margin: 0 0 8px 0;
}

.page-lead {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 14px 0;
}

.site-content p {
    color: var(--muted);
    line-height: 1.7;
}

.site-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 26px;
    margin-bottom: 12px;
}

.site-content h5 {
    font-weight: 700;
}

hr {
    border: none;
    height: 1px;
    background: var(--soft-border);
    margin: 22px 0;
}

/* =========================================================
   Generic Buttons
   ========================================================= */
.btn {
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    transition: transform 0.12s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

/* =========================================================
   Feature cards
   ========================================================= */
.feature-card {
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

    .feature-card:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06), 0 14px 34px rgba(15, 23, 42, 0.08);
        border-color: rgba(37, 99, 235, 0.3);
    }

    .feature-card h5 {
        transition: color 0.25s ease, transform 0.25s ease;
    }

    .feature-card:hover h5 {
        color: #1d4ed8;
        transform: translateX(2px);
    }

/* =========================================================
   Footer
   ========================================================= */
.company-footer {
    background: #0f1e3a;
    color: #cbd5e1;
    padding: 28px 18px 14px 18px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 18px;
}

.footer-col {
    min-width: 0;
}

.footer-title {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.footer-text {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-muted {
    opacity: 0.85;
}

.footer-link {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    margin: 6px 0;
}

    .footer-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }

    .footer-link.inline {
        display: inline;
        margin: 0;
    }

.footer-bottom {
    max-width: 1100px;
    margin: 16px auto 0 auto;
    padding-top: 12px;
    border-top: 1px solid rgba(203, 213, 225, 0.18);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    opacity: 0.92;
}

.footer-bottom-links .dot {
    margin: 0 8px;
    opacity: 0.7;
}

/* =========================================================
   Product page
   ========================================================= */
.product-page {
    padding: 26px;
}

.product-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 22px;
}

.product-title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin: 0 0 6px;
}

.product-subtitle {
    font-size: 18px;
    opacity: 0.82;
    margin: 0 0 14px;
}

.product-desc {
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 14px;
    opacity: 0.95;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* renamed from .badge to avoid Bootstrap conflict */
.product-badge {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.75);
    color: dodgerblue;
    font-weight: 600;
}

.product-actions,
.pricing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
    align-items: center;
}

.product-hero-media .shot {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateZ(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .product-hero-media .shot:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

.product-hero-media img {
    width: 100%;
    height: auto;
    display: block;
}

.shot-caption {
    font-size: 13px;
    opacity: 0.75;
    margin: 10px 4px 0;
}

.section {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 14px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.step-card {
    display: flex;
    gap: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 16px;
    padding: 14px;
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.08);
    flex-shrink: 0;
}

.step-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
}

.step-body p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.info-card {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.82);
    padding: 14px 16px;
}

.info-line {
    margin: 0 0 8px;
    line-height: 1.55;
}

    .info-line:last-child {
        margin-bottom: 0;
    }

.muted {
    opacity: 0.75;
    margin-top: 10px;
}

/* =========================================================
   Product buttons
   ========================================================= */
.buy-btn,
.info-btn,
.refund-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.buy-btn {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    border: 1px solid #1e40af;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

    .buy-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
        filter: brightness(1.03);
        color: #ffffff;
    }

.info-btn {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #cbd5e1;
}

    .info-btn:hover {
        background: #f8fafc;
        border-color: #94a3b8;
        color: #111827;
    }

.refund-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    border: 1px solid #c2410c;
    box-shadow: 0 6px 14px rgba(234, 88, 12, 0.25);
}

    .refund-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(234, 88, 12, 0.32);
        filter: brightness(1.05);
        color: #ffffff;
    }

.product-actions .buy-btn {
    min-width: 240px;
}

.product-actions .info-btn,
.product-actions .refund-btn {
    min-width: 190px;
}

.pricing-actions .buy-btn {
    min-width: 220px;
}

.pricing-actions .info-btn,
.pricing-actions .refund-btn {
    min-width: 180px;
}

/* =========================================================
   Purchase success
   ========================================================= */
.purchase-success-box {
    margin: 16px 0 22px 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.1);
}

.purchase-success-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.purchase-success-text {
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================================
   Setup guide
   ========================================================= */
.setup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.setup-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 16px;
    padding: 14px;
}

.setup-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.setup-step {
    font-weight: 900;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: rgba(37, 99, 235, 0.08);
}

.setup-title {
    font-weight: 900;
    font-size: 15px;
    opacity: 0.95;
    flex: 1;
    text-align: right;
}

.setup-shot {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .setup-shot:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

    .setup-shot img {
        width: 100%;
        height: auto;
        display: block;
    }

.setup-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.6;
}

/* =========================================================
   Articles / highlight / privacy
   ========================================================= */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.75);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .article-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    }

.article-title {
    font-weight: 750;
    font-size: 15px;
}

.article-meta {
    font-size: 13px;
    opacity: 0.65;
}

.highlight-card {
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.02));
    padding: 16px 18px;
}

.highlight-title {
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 6px;
}

.privacy-page ul {
    margin-top: 10px;
    margin-bottom: 0;
    padding-left: 18px;
}

.privacy-page li {
    margin: 6px 0;
}

.privacy-page .section-title {
    margin-top: 6px;
}

/* =========================================================
   Admin
   ========================================================= */
.admin-search-row {
    display: flex;
    gap: 12px;
    margin: 18px 0 22px;
    flex-wrap: wrap;
}

.admin-search {
    flex: 1;
    min-width: 260px;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 0 14px;
    font-size: 15px;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.admin-card-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 700;
}

.admin-card-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

    .admin-table th,
    .admin-table td {
        padding: 12px 14px;
        border-bottom: 1px solid #e5e7eb;
        text-align: left;
        font-size: 14px;
    }

    .admin-table th {
        background: #f8fafc;
        font-weight: 800;
        color: #0f172a;
    }

.admin-login-card {
    max-width: 420px;
    margin: 40px auto;
}

.admin-login-btn {
    margin-top: 14px;
    width: 100%;
}

/* =========================================================
   Refund modal
   ========================================================= */
.refund-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.refund-modal-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

    .refund-modal-card h3 {
        margin-top: 0;
        margin-bottom: 16px;
        font-size: 26px;
        font-weight: 800;
    }

    .refund-modal-card label {
        display: block;
        font-weight: 700;
        margin: 12px 0 6px;
    }

    .refund-modal-card input,
    .refund-modal-card textarea {
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #cbd5e1;
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 15px;
    }

.refund-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    justify-content: flex-end;
}

.refund-result-message {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
}

    .refund-result-message.success {
        color: #166534;
    }

    .refund-result-message.error {
        color: #b91c1c;
    }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px) {
    .product-hero {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .setup-grid {
        grid-template-columns: 1fr;
    }

    .setup-title {
        text-align: left;
    }

    .admin-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    :root {
        --banner-h: 120px;
    }

    .banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .brand-left .brand-name {
        font-size: 24px;
    }

    .site-layout-inner {
        flex-direction: column;
        padding: 12px;
    }

    .sidebar {
        width: 100%;
        flex: 1;
    }

    .sticky-sidebar {
        position: relative;
        top: auto;
        height: auto;
        overflow: visible;
    }

    .content-card {
        padding: 22px 18px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .refund-modal-actions {
        flex-direction: column;
    }

    .buy-btn,
    .info-btn,
    .refund-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 34px;
    }

    .page-title {
        font-size: 28px;
    }

    .admin-cards {
        grid-template-columns: 1fr;
    }
}
