:root {
    --primary: #f58220;
    --primary-dark: #c45f0d;
    --bg: #f5f7fb;
    --dark: #08111f;
    --dark-soft: #121b2b;
    --text: #172033;
    --muted: #64748b;
    --border: #dde5ef;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(8, 17, 31, .12);
}

.theme-blue { --primary: #2563eb; --primary-dark: #1746a2; }
.theme-green { --primary: #178f5b; --primary-dark: #0f6941; }
.theme-black { --primary: #111111; --primary-dark: #000000; }

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 17, 31, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 22px;
}

.brand img {
    width: 190px;
    height: auto;
    max-height: 62px;
    object-fit: contain;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-menu a {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 14px;
    border-radius: 4px;
    text-transform: uppercase;
}

.main-menu a:hover {
    background: var(--primary);
    color: #fff;
}

.menu-toggle {
    display: none;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 4px;
    padding: 10px 14px;
    font-weight: 800;
}

.hero {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 17, 31, .94) 0%, rgba(8, 17, 31, .76) 44%, rgba(8, 17, 31, .38) 100%);
}

.hero-content {
    position: relative;
    color: #fff;
    padding: 86px 0 110px;
}

.hero-kicker,
.section-title span,
.contact-copy span {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    width: min(780px, 100%);
    margin: 16px 0 18px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: .98;
    letter-spacing: 0;
    font-weight: 900;
}

.hero p {
    width: min(620px, 100%);
    margin: 0 0 30px;
    color: #dbeafe;
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 900;
    text-align: center;
}

.button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.button-large {
    min-height: 54px;
    padding-inline: 28px;
}

.button-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .45);
}

.button-outline:hover {
    background: #fff;
    border-color: #fff;
    color: var(--dark);
}

.admin-card .button-outline {
    color: var(--primary);
    border-color: var(--primary);
}

.admin-card .button-outline:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.feature-strip {
    position: relative;
    z-index: 2;
    margin-top: -58px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-grid article {
    min-height: 136px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(180deg, var(--dark-soft), #0b1220);
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.feature-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.feature-grid span {
    color: #cbd5e1;
    font-size: 14px;
}

.service-section {
    padding: 84px 0;
}

.service-section:nth-of-type(even) {
    background: #fff;
}

.section-title {
    margin-bottom: 30px;
    text-align: center;
}

.section-title h2,
.contact-copy h2 {
    margin: 8px 0 10px;
    color: var(--dark);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: 0;
}

.section-title p,
.contact-copy p {
    width: min(680px, 100%);
    margin: 0 auto;
    color: var(--muted);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.plan-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .07);
}

.plan-card h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 23px;
}

.plan-card p {
    min-height: 52px;
    margin: 0 0 16px;
    color: var(--muted);
}

.price {
    display: block;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 32px;
    line-height: 1;
}

.plan-card ul {
    flex: 1;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.plan-card li {
    position: relative;
    padding: 9px 0 9px 26px;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    font-weight: 600;
}

.plan-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.contact-section {
    padding: 86px 0;
    color: #fff;
    background: var(--dark);
}

.demo-players-section {
    padding: 78px 0;
    background: #fff;
}

.demo-player-stack {
    width: min(620px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.demo-player-card {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
}

.demo-player-card h3 {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: 20px;
    text-align: center;
}

.embed-box {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: #020617;
}

.embed-box iframe,
.embed-box video,
.embed-box audio,
.embed-box embed,
.embed-box object {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}

.embed-video {
    aspect-ratio: 16 / 9;
}

.embed-video iframe,
.embed-video video,
.embed-video embed,
.embed-video object {
    width: 100%;
    height: 100%;
}

.embed-audio {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.embed-audio iframe {
    min-height: 70px;
}

.embed-audio audio {
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 42px;
    align-items: start;
}

.contact-copy h2 {
    color: #fff;
}

.contact-copy p {
    margin: 0 0 26px;
    color: #cbd5e1;
}

.contact-form,
.admin-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form label,
.admin-form label {
    display: block;
    color: var(--text);
    font-weight: 800;
    margin-bottom: 14px;
}

.contact-form input,
.contact-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    margin-top: 6px;
    padding: 12px 13px;
    color: var(--text);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, .14);
}

.notice {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-weight: 800;
}

.notice.success {
    color: #14532d;
    background: #dcfce7;
}

.notice.error {
    color: #7f1d1d;
    background: #fee2e2;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #fff;
    background: #16a34a;
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-weight: 900;
}

.site-footer {
    color: #cbd5e1;
    background: #050b14;
}

.footer-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
}

.admin-page {
    background: #eef2f7;
}

.admin-shell {
    min-height: 100vh;
}

.admin-header {
    background: var(--dark);
    color: #fff;
}

.admin-header .container {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-brand {
    font-weight: 900;
    font-size: 20px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-nav a {
    padding: 9px 12px;
    color: #e2e8f0;
    border-radius: 4px;
    font-weight: 800;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--primary);
    color: #fff;
}

.admin-main {
    padding: 34px 0 70px;
}

.admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.admin-title h1 {
    margin: 0;
    color: var(--dark);
    font-size: 30px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.stat-card strong {
    display: block;
    color: var(--primary);
    font-size: 36px;
    line-height: 1;
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-form-grid .wide {
    grid-column: 1 / -1;
}

.help-text {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
}

.color-option input {
    width: auto;
    margin: 0;
}

.swatch {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, .12);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 13px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.admin-table th {
    color: var(--dark);
    background: #f8fafc;
    font-size: 13px;
    text-transform: uppercase;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.finance-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.finance-tabs a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    color: var(--dark);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-weight: 900;
}

.finance-tabs a.active,
.finance-tabs a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.finance-tabs.small {
    margin-top: -8px;
}

.finance-dashboard-tables {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.finance-shortcuts {
    margin-bottom: 18px;
}

.finance-shortcut-help {
    margin: -4px 0 16px;
    color: var(--muted);
    font-weight: 700;
}

.finance-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.finance-shortcut-grid a {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .13);
}

.finance-shortcut-grid strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.finance-shortcut-grid span {
    display: block;
    max-width: 220px;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    line-height: 1.25;
}

.finance-shortcut-grid a:hover {
    background: var(--primary-dark);
}

.finance-grid {
    grid-template-columns: repeat(4, 1fr);
}

.admin-card code {
    display: block;
    padding: 12px;
    overflow-x: auto;
    color: var(--dark);
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.link-button {
    color: var(--primary);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-weight: 900;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top left, rgba(245, 130, 32, .26), transparent 30%), var(--dark);
}

.login-card {
    width: min(420px, 100%);
}

@media (max-width: 980px) {
    .nav-wrap {
        min-height: 72px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        background: var(--dark);
        border: 1px solid rgba(255, 255, 255, .1);
        box-shadow: var(--shadow);
    }

    .main-menu.open {
        display: flex;
    }

    .main-menu a {
        text-align: center;
    }

    .hero {
        min-height: 580px;
    }

    .feature-grid,
    .plans-grid,
    .contact-grid,
    .admin-grid,
    .admin-form-grid,
    .finance-dashboard-tables,
    .finance-shortcut-grid {
        grid-template-columns: 1fr;
    }

    .feature-strip {
        margin-top: 0;
        padding-top: 18px;
    }

    .service-section,
    .demo-players-section,
    .contact-section {
        padding: 56px 0;
    }

    .color-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand img {
        width: 156px;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 70px 0;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .plan-card,
    .contact-form,
    .admin-card {
        padding: 20px;
    }

    .admin-header .container,
    .admin-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-nav {
        width: 100%;
    }

    .admin-nav a {
        flex: 1 1 45%;
        text-align: center;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .whatsapp-float {
        right: 12px;
        bottom: 12px;
    }
}
