/* KALKULATOR SPORTBOOK - CSS LENGKAP */
:root {
    --bg: #050b14;
    --panel: #0a1422;
    --panel-2: #0d1b2c;
    --input: #07111d;
    --border: #1d3856;
    --border-soft: rgba(82,145,210,.20);
    --blue: #1687ff;
    --blue-2: #006cff;
    --text: #f4f8ff;
    --muted: #8ea2ba;
    --danger: #ff5363;
    --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;

    /* GANTI URL INI DENGAN LINK GAMBAR BACKGROUND */
    background-image:
        linear-gradient(rgba(2,8,16,.72), rgba(2,8,16,.82)),
        url("https://i.postimg.cc/9Fp3rnWf/f62c8384-1024-4e4f-be68-667d83bd201f.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.calculator-section {
    width: 100%;
    min-height: 100vh;
    padding: 28px 18px 42px;
    position: relative;
}

.calculator-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% -15%, rgba(16,103,190,.18), transparent 35%),
        linear-gradient(125deg, transparent 0 48%, rgba(0,128,255,.025) 50%, transparent 52%);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.calc-wrapper {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(37,119,203,.55);
    border-radius: 18px;
    background: linear-gradient(180deg,rgba(13,29,48,.96),rgba(4,12,21,.97));
    box-shadow:
        0 0 0 1px rgba(0,110,255,.06),
        0 20px 70px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.calc-header {
    position: relative;
    padding: 20px 28px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(67,135,201,.28);
    background: linear-gradient(135deg,#0b1d32 0%,#102b49 48%,#071522 100%);
}

.calc-header::before,
.calc-header::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 100px;
    top: -55px;
    transform: rotate(-20deg);
    background: linear-gradient(90deg,transparent,rgba(28,137,255,.14),transparent);
}
.calc-header::before { left: 8%; }
.calc-header::after { right: 8%; }

.calc-header h3 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: clamp(20px,2.2vw,28px);
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.calc-content {
    padding: 22px;
    background: linear-gradient(180deg,rgba(3,10,18,.35),rgba(2,7,12,.72));
}

.tabs {
    display: flex;
    width: 100%;
    padding: 4px;
    margin-bottom: 22px;
    border: 1px solid rgba(90,126,161,.30);
    border-radius: 12px;
    background: #050a10;
    box-shadow: inset 0 1px 10px rgba(0,0,0,.4);
}

.tab-btn {
    flex: 1 1 0;
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #b7c4d3;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.tab-btn:hover { color: #fff; background: rgba(26,106,185,.12); }

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg,#0876ed,#1395ff);
    box-shadow: 0 8px 24px rgba(0,111,255,.28),inset 0 1px 0 rgba(255,255,255,.18);
}

.tab-content { display: none; }

.tab-content.active {
    display: grid !important;
    grid-template-columns: minmax(0,1.08fr) minmax(320px,.92fr);
    grid-template-areas: "form result";
    gap: 20px;
    align-items: start;
}

.tab-content.active > .form-area { grid-area: form; min-width: 0; }
.tab-content.active > .result-box { grid-area: result; min-width: 0; }

.form-area,
.result-box {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: linear-gradient(145deg,rgba(16,31,48,.96),rgba(7,16,27,.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025),0 12px 35px rgba(0,0,0,.22);
}

.form-area { padding: 20px; }
.input-group { margin-bottom: 16px; }

.input-group label,
.parlay-main-label {
    display: block;
    margin-bottom: 7px;
    color: #f0f6ff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

input,
select {
    width: 100%;
    height: 46px;
    border: 1px solid #29445f;
    border-radius: 9px;
    outline: none;
    background: #050c14;
    color: #edf5ff;
    padding: 0 13px;
    font: inherit;
    font-size: 16px;
    transition: .2s ease;
}

input::placeholder { color: #687c92; font-size: 15px; }
input:hover, select:hover { border-color: #3d6285; }

input:focus,
select:focus {
    border-color: var(--blue);
    background: #06111d;
    box-shadow: 0 0 0 3px rgba(22,135,255,.12);
}

select { cursor: pointer; }
.input-hint { margin-top: 6px; color: #7489a0; font-size: 13px; }

.btn-row {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 10px;
    margin-top: 5px;
}

.btn-calc,
.btn-reset,
.btn-add-partai {
    min-height: 44px;
    border-radius: 9px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

.btn-calc,
.btn-add-partai {
    border: 1px solid #168bff;
    color: #fff;
    background: linear-gradient(135deg,#0876ed,#1395ff);
    box-shadow: 0 8px 24px rgba(0,116,255,.22);
}

.btn-calc:hover,
.btn-add-partai:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn-reset {
    border: 1px solid #34485d;
    color: #dbe5ef;
    background: linear-gradient(180deg,#172535,#101b28);
}

.btn-reset:hover { transform: translateY(-1px); background: #1b2b3d; }

.result-box {
    position: relative;
    padding: 20px;
    overflow: hidden;
    border-color: rgba(21,128,235,.48);
}

.result-box::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: -75px;
    right: -55px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(18,129,255,.15),transparent 68%);
    pointer-events: none;
}

.result-header,
.result-row,
.result-total { position: relative; z-index: 1; }

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 13px;
    margin-bottom: 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(117,151,183,.22);
}

.result-header span { font-weight: 800; }
.result-header span:first-child { color: #1994ff; letter-spacing: .5px; }
.result-header span:last-child { color: #b9dfff; }

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    color: #d0dbea;
    font-size: 16px;
    border-bottom: 1px dashed rgba(117,151,183,.18);
}

.result-row span:last-child { color: #fff; font-weight: 800; white-space: nowrap; }

.result-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(20,132,255,.55);
    border-radius: 10px;
    font-size: 17px;
    background: linear-gradient(135deg,rgba(11,73,130,.30),rgba(5,28,52,.45));
}

.result-total span:first-child { color: #f3f8ff; font-weight: 800; }
.result-total span:last-child { color: #1997ff; font-size: 22px; font-weight: 900; }

.note-box { margin-top: 12px; color: #91a6bc; font-size: 13px; }

.parlay-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.parlay-title-row > div { min-width: 0; }
.btn-add-partai { flex: 0 0 auto; padding: 0 16px; }

.parlay-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.parlay-item {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 120px 42px;
    gap: 8px;
    align-items: center;
    font-size: 15px;
}

.parlay-item input,
.parlay-item select { min-width: 0; }

.parlay-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    background: linear-gradient(135deg,#0876ed,#1395ff);
}

.btn-remove-partai {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,83,99,.35);
    border-radius: 9px;
    color: #ff7380;
    background: rgba(255,83,99,.08);
    cursor: pointer;
}

.btn-remove-partai:hover { background: rgba(255,83,99,.16); }

/* LOGO / BANNER */
.bottom-logo {
    width: 100%;
    margin: 14px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-logo img {
    display: block;
    width: 100%;
    max-width: 1180px;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(60,95,130,.55);
    box-shadow: 0 10px 35px rgba(0,0,0,.45),0 0 25px rgba(0,105,220,.10);
    object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 650px) {
    .calculator-section { padding: 14px 10px 28px; }
    .calc-content { padding: 14px; }

    .tab-content.active {
        grid-template-columns: 1fr;
        grid-template-areas: "form" "result";
    }

    .result-box { order: 2; }
    .form-area { order: 1; }
}

@media (max-width: 560px) {
    .calc-header { padding: 16px; }
    .calc-header h3 { font-size: 19px; }
    .calc-content { padding: 10px; }
    .tabs { margin-bottom: 14px; }
    .tab-btn { min-height: 43px; font-size: 13px; }

    .form-area,
    .result-box {
        padding: 15px;
        border-radius: 11px;
    }

    .btn-row { grid-template-columns: 1fr; }

    .parlay-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-add-partai { width: 100%; }

    .parlay-item {
        grid-template-columns: 38px minmax(0,1fr) 40px;
    }

    .parlay-item select { grid-column: 2 / 3; }

    .parlay-item .btn-remove-partai {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .parlay-number { width: 38px; height: 42px; }
    .result-total span:last-child { font-size: 18px; }
    .bottom-logo img { border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}