:root {
    --bg: #07080B;
    --surface: #0E1015;
    --card: #12141C;
    --card-border: rgba(255, 255, 255, 0.08);
    --gold: #FFC000;
    --orange: #FF8A00;
    --text: #F3F4F6;
    --text-muted: #9CA3AF;
    --line: rgba(255, 255, 255, 0.08);
    --green: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

.glow-bg {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 138, 0, 0.12) 0%, rgba(255, 192, 0, 0.04) 50%, transparent 80%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.checkout-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(255, 192, 0, 0.12);
    border: 1px solid rgba(255, 192, 0, 0.3);
    padding: 6px 14px;
    border-radius: 100px;
}

/* Grid Layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 40px;
    align-items: start;
}

/* Form */
.form-container {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 36px;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-sub {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 22px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 8px;
}

.badge-detected {
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 14px rgba(255, 192, 0, 0.2);
}

.input-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* Tier Selector Pills */
.tier-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tier-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
    position: relative;
}

.tier-pill:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tier-pill.active {
    background: rgba(255, 192, 0, 0.12);
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(255, 192, 0, 0.2);
}

.pill-tag {
    position: absolute;
    top: -8px;
    font-size: 8px;
    font-weight: 800;
    background: var(--gold);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
}

.pill-name {
    font-size: 13px;
    font-weight: 600;
}

.pill-price {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.payment-card.active {
    border-color: var(--gold);
    background: rgba(255, 192, 0, 0.06);
}

.pay-icon {
    font-size: 18px;
}

.pay-text {
    font-size: 14px;
    font-weight: 600;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    padding: 18px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(255, 138, 0, 0.35);
    transition: all 0.25s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 138, 0, 0.5);
}

.guarantee-box {
    margin-top: 26px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.g-icon {
    font-size: 26px;
}

.g-text strong {
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

.g-text p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Right Summary Card */
.summary-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    position: sticky;
    top: 40px;
}

.summary-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

.plan-summary-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-info h4 {
    font-size: 17px;
    font-weight: 700;
}

.plan-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.plan-price {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 20px 0;
}

.summary-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-features li {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
}

.total-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #FFF;
}

.security-badges {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

@media (max-width: 850px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .tier-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Guides, Video Tutorials & Community Section
   ========================================================================== */
.community-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 10px;
}
.yt-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FF0000;
    color: #FFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.35);
    transition: transform 0.2s;
}
.yt-sub-btn:hover {
    transform: scale(1.04);
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.video-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 138, 0, 0.4);
}
.video-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}
.video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #FFF;
}
.video-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.video-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFF;
    line-height: 1.4;
    margin-bottom: 8px;
}
.video-meta {
    font-size: 12px;
    color: var(--text-muted);
}
.social-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    padding: 10px 18px;
    border-radius: 30px;
    color: #FFF;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.social-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.social-pill.tg { border-color: rgba(41, 169, 234, 0.3); }
.social-pill.tg:hover { background: rgba(41, 169, 234, 0.15); color: #29a9ea; }
.social-pill.wa { border-color: rgba(37, 211, 102, 0.3); }
.social-pill.wa:hover { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.social-pill.x { border-color: rgba(255, 255, 255, 0.2); }
.social-pill.yt { border-color: rgba(255, 0, 0, 0.3); }
.social-pill.yt:hover { background: rgba(255, 0, 0, 0.15); color: #FF453A; }

/* ==========================================================================
   Live Support Chat Floating Button & Widget
   ========================================================================== */
.chat-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
    color: #000;
    padding: 14px 22px;
    border-radius: 35px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 30px rgba(255, 138, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-launcher:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 35px rgba(255, 138, 0, 0.6);
}
.online-dot {
    width: 9px;
    height: 9px;
    background: #00E676;
    border-radius: 50%;
    box-shadow: 0 0 8px #00E676;
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 580px;
    max-height: calc(100vh - 120px);
    background: rgba(14, 16, 21, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 138, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}
.chat-widget.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}
.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}
.chat-title-group h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #FFF;
}
.chat-title-group p {
    font-size: 11px;
    color: #00E676;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}
.chat-close-btn:hover { color: #FFF; }

.chat-quick-channels {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}
.quick-chan {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: #FFF;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    transition: background 0.2s;
}
.quick-chan:hover { background: rgba(255, 255, 255, 0.12); }
.quick-chan.tg { color: #29a9ea; border-color: rgba(41, 169, 234, 0.3); }
.quick-chan.wa { color: #25d366; border-color: rgba(37, 211, 102, 0.3); }

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}
.msg-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    line-height: 1.45;
    word-break: break-word;
}
.msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
    color: #000;
    font-weight: 500;
    border-bottom-right-radius: 4px;
}
.msg-admin {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: #FFF;
    border-bottom-left-radius: 4px;
}
.msg-meta {
    font-size: 10px;
    opacity: 0.65;
    margin-top: 4px;
    text-align: right;
}
.msg-img-attachment {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.chat-input-area {
    padding: 14px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.3);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}
.chat-identity-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.chat-field {
    width: 100%;
    background: #090a0d;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: #FFF;
    padding: 8px 10px;
    font-size: 12px;
}
.chat-field:focus { border-color: var(--orange); outline: none; }

.chat-compose-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.attach-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: #FFF;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
}
.attach-btn:hover { background: rgba(255, 255, 255, 0.15); }
.chat-textarea {
    flex: 1;
    background: #090a0d;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: #FFF;
    padding: 10px 12px;
    font-size: 13px;
    height: 40px;
    resize: none;
}
.chat-textarea:focus { border-color: var(--orange); outline: none; }
.send-btn {
    background: var(--orange);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.send-btn:hover { opacity: 0.9; }
.img-preview-box {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 138, 0, 0.1);
    border: 1px dashed var(--orange);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    color: #FFF;
}
.img-preview-box button {
    background: transparent;
    border: none;
    color: #FF453A;
    cursor: pointer;
    font-weight: bold;
}
