/* ================================================================
   JogarAirsoft Premium — v2 design (mobile-first)
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #0a0a0a;
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    min-height: 100vh;
    padding-bottom: 110px;
}

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

/* ── Plan tabs ── */
.plan-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    background: #111;
    border-radius: 10px;
    padding: 4px;
}
.plan-tab {
    flex: 1;
    padding: 9px 0;
    border: none;
    border-radius: 8px;
    background: none;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.plan-tab.active {
    background: #ee8a04;
    color: #0a0a0a;
}
.plan-panel.hidden { display: none; }

/* ── Team cards extras ── */
.team-limit {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
}
.per-person {
    font-size: 12px;
    color: #ee8a04;
    margin-top: 6px;
    font-weight: 600;
}

.indiv-perks {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.indiv-perk {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    text-align: left;
    line-height: 1.3;
}
.indiv-anchor {
    margin-top: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #ee8a04;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 10px;
}
.indiv-cancel {
    margin-top: 5px;
    font-size: 9px;
    color: rgba(255,255,255,0.25);
    text-align: center;
}

.team-plan-note {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
    text-align: center;
}

.team-plan-note strong {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.team-extra-note {
    margin-top: 6px;
    font-size: 10px;
    color: #ee8a04;
    text-align: center;
    font-weight: 500;
}

.team-calc-example {
    margin-top: 10px;
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 8px;
}
.team-calc-example strong {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* ── Top bar ── */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 0;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Billing toggle (top-center) ── */
.billing-toggle {
    display: flex;
    background: #161616;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.billing-opt {
    background: none;
    border: none;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.billing-opt.active {
    background: #ee8a04;
    color: #0a0a0a;
}

/* ── FAQ button ── */
.faq-fixed-btn {
    background: none;
    border: none;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: color 0.2s;
}
.faq-fixed-btn:hover { color: #ee8a04; }

/* ── FAQ modal (bottom sheet) ── */
.faq-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
    transition: background 0.25s;
}
.faq-modal.open {
    background: rgba(0,0,0,0.6);
    visibility: visible;
    pointer-events: all;
}
.faq-modal-content {
    width: 100%;
    max-width: 480px;
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
    padding: 8px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.faq-modal.open .faq-modal-content {
    transform: translateY(0);
}
.faq-modal-handle {
    width: 36px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 8px auto 18px;
}
.faq-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

/* ── Subscribe footer (fixed bottom) ── */
.subscribe-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10,10,10,0.95);
    border-top: 1px solid #1e1e1e;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    backdrop-filter: blur(12px);
}
.subscribe-footer .subscribe-btn {
    margin-bottom: 6px;
}

/* ── Back button ── */
.prem-back {
    background: none;
    border: none;
    padding: 8px 4px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.prem-back:hover { color: #ee8a04; }

/* ── Wrapper ── */
.prem-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 18px 24px;
}

/* ── Title ── */
.prem-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.prem-star { font-size: 22px; }
.prem-title-row h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
}
.prem-title-row h1 span { color: #ee8a04; }

/* ── Price cards ── */
.price-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.price-card {
    background: #161616;
    border: 1.5px solid #2a2a2a;
    border-radius: 16px;
    padding: 14px 14px 18px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    padding-top: 28px;
}
.price-card:hover { border-color: #555; }
.price-card.selected {
    border-color: #ee8a04;
    background: linear-gradient(160deg, rgba(200,160,80,0.08) 0%, #161616 60%);
}

.popular-badge,
.value-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.popular-badge {
    background: #ee8a04;
    color: #0a0a0a;
}
.value-badge {
    background: #8fa06c;
    color: #fff;
}

/* Save row (anual) */
.save-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.save-text {
    font-size: 12px;
    font-weight: 700;
    color: #ee8a04;
}
.save-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ee8a04;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0a0a0a;
}

/* Old price */
.price-old {
    font-size: 14px;
    color: #555;
    text-decoration: line-through;
    margin-bottom: 2px;
    line-height: 1;
}

/* Main price */
.price-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.price-amount {
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.price-period {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* ── Features section ── */
.feat-section {
    margin-bottom: 28px;
}

.feat-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.soon-heading { color: #ee8a04; }

.feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
}

.feat-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}
.feat-full {
    grid-column: 1 / -1;
}

.feat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.feat-name {
    font-size: 12px;
    font-weight: 600;
    color: #ddd;
    line-height: 1.3;
}
.feat-desc {
    font-size: 10px;
    color: #666;
    line-height: 1.35;
}

/* Checkmark circle */
.feat-check {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #ee8a04;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.feat-check::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border-right: 2px solid #ee8a04;
    border-bottom: 2px solid #ee8a04;
    transform: rotate(45deg) translate(-1px, -1px);
}
.feat-check.soon {
    border-color: #555;
    opacity: 0.65;
}
.feat-check.soon::after {
    border-color: #888;
}

/* ── Subscribe button ── */
.subscribe-btn {
    width: 100%;
    padding: 5px;
    background: #ee8a04;
    color: #0a0a0a;
    border: none;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 14px;
}
.subscribe-btn:hover:not(:disabled) {
    background: #d4b060;
    transform: translateY(-1px);
}
.subscribe-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.prem-note {
    text-align: center;
    font-size: 12px;
    color: #444;
}

/* ── FAQ ── */
.faq-item {
    border-bottom: 1px solid #222;
}
.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.faq-q::after {
    content: '+';
    font-size: 20px;
    color: #ee8a04;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item.open .faq-q::after {
    transform: rotate(45deg);
}
.faq-a {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-bottom: 0;
}
.faq-item.open .faq-a {
    max-height: 300px;
    padding-bottom: 14px;
}

/* ── Team member selection panel ── */
.team-member-panel {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
}

.team-member-panel-header {
    margin-bottom: 12px;
}

.team-member-panel-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.team-member-panel-sub {
    font-size: 11px;
    color: #ee8a04;
}

.team-member-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.team-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: #161616;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.team-member-item input[type=checkbox] {
    flex-shrink: 0;
    accent-color: #ee8a04;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.team-member-item input[type=checkbox]:disabled { cursor: default; }

.team-member-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.team-member-name {
    font-size: 12px;
    color: #ccc;
    flex: 1;
}

.team-member-me .team-member-name { color: #ee8a04; }

.team-member-badge {
    font-size: 9px;
    font-weight: 700;
    color: #ee8a04;
    border: 1px solid rgba(238,138,4,0.5);
    padding: 1px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}

.team-no-members,
.team-loading {
    font-size: 12px;
    color: #555;
    text-align: center;
    padding: 16px 0;
}

.team-price-summary {
    border-top: 1px solid #222;
    padding-top: 10px;
}

.team-price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #aaa;
}

.team-price-val {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ee8a04;
}

.team-price-extra {
    font-size: 10px;
    color: #555;
    margin-top: 4px;
}

/* ── Success modal ── */
.success-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0.25s;
}
.success-modal.open {
    visibility: visible;
    opacity: 1;
}
.success-modal-box {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 36px 28px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.25s ease;
}
.success-modal.open .success-modal-box {
    transform: scale(1);
}
.success-icon {
    width: 64px;
    height: 64px;
    background: #34c759;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 20px;
}
.success-title {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.success-body {
    font-size: 14px;
    color: #888;
    line-height: 1.55;
    margin-bottom: 28px;
}
.success-cta {
    display: block;
    background: #ee8a04;
    color: #0a0a0a;
    font-size: 15px;
    font-weight: 700;
    padding: 13px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}
.success-cta:hover { background: #d4b060; }

/* ── Responsive ≤ 360px ── */
@media (max-width: 360px) {
    .price-amount { font-size: 24px; }
    .feat-grid { grid-template-columns: 1fr; }
    .feat-full { grid-column: 1; }
}
