/* ==========================================================================
   UDIDMaster Modern Light Theme Design System
   Matches ZeeSigner (zeejb.com/zeesigner/) light palette & typography
   High contrast, zero emojis (Bootstrap Icons only), ultra-responsive mobile
   ========================================================================== */

:root {
    --bg: #F8FAFC;
    --bg-subtle: #F1F5F9;
    --surface: #FFFFFF;
    --surface-hover: #F8FAFC;
    --card: #FFFFFF;
    --card-border: #E2E8F0;
    --border-focus: #CBD5E1;
    --text: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --line: #E2E8F0;
    --brand: #FF6600;
    --brand-hover: #E65C00;
    --brand-gradient: linear-gradient(135deg, #FF6600 0%, #FD9E13 100%);
    --gold: #FF8A00;
    --orange: #FD9E13;
    --green: #10B981;
    --green-bg: #ECFDF5;
    --green-border: #A7F3D0;
    --green-text: #065F46;
    --amber-bg: #FFFBEB;
    --amber-border: #FDE68A;
    --amber-text: #92400E;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(253, 158, 19, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
    color: var(--text-body);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    padding: 24px 16px 60px;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.glow-bg {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(253, 158, 19, 0.06) 0%, transparent 70%);
    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: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 14px;
}

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

.logo-box {
    width: 38px;
    height: 38px;
    background: var(--brand-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.22);
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text);
}

.header-nav-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.header-link-pill {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.header-link-pill.orange {
    color: #B45309;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
}
.header-link-pill.orange:hover {
    background: #FEF3C7;
}

.header-link-pill.blue {
    color: #0369A1;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
}
.header-link-pill.blue:hover {
    background: #E0F2FE;
}

.header-badge {
    font-size: 12px;
    font-weight: 700;
    color: #065F46;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Checkout Layout Grid
   ========================================================================== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    align-items: start;
}

/* Form Container */
.form-container {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

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

/* Form Groups */
.form-group {
    margin-bottom: 22px;
}

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

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

.badge-detected {
    font-size: 11px;
    font-weight: 700;
    color: var(--green-text);
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.form-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text);
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--brand);
    outline: none;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}

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

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

.tier-pill {
    background: var(--bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text);
    position: relative;
    user-select: none;
}

.tier-pill:hover {
    background: var(--bg-subtle);
    border-color: #CBD5E1;
}

.tier-pill.active {
    background: #FFFBEB;
    border-color: var(--brand);
    box-shadow: 0 3px 12px rgba(255, 102, 0, 0.14);
}

.pill-tag {
    position: absolute;
    top: -7px;
    font-size: 8px;
    font-weight: 800;
    background: var(--brand-gradient);
    color: #000;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.pill-name {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

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

/* ==========================================================================
   Fee Savings Banner
   ========================================================================== */
.fee-savings-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--amber-bg);
    border: 1px solid var(--amber-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 14px;
}

.fsb-icon {
    font-size: 18px;
    color: #B45309;
    flex-shrink: 0;
    margin-top: 1px;
}

.fsb-body {
    font-size: 12px;
    line-height: 1.5;
    color: #78350F;
}

.fsb-body strong {
    color: #B45309;
    display: block;
    margin-bottom: 2px;
    font-size: 12.5px;
    font-weight: 800;
}

.fsb-body b {
    color: var(--text);
}

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

.payment-card {
    position: relative;
    background: var(--bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-card:hover {
    background: var(--bg-subtle);
    border-color: #CBD5E1;
}

.payment-card.active {
    background: #FFFFFF;
    border-color: var(--brand);
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.1);
}

.payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.badge-rec {
    position: absolute;
    top: -7px;
    right: 14px;
    background: var(--brand-gradient);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.pay-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.binance-bg { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.paypal-bg  { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.card-bg    { background: #F8FAFC; color: #475569; border: 1px solid #E2E8F0; }
.usdt-bg    { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }

.pay-card-content {
    flex: 1;
    min-width: 0;
}

.pay-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    gap: 8px;
    flex-wrap: wrap;
}

.pay-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.pay-fee-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.pay-fee-badge.free {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.pay-fee-badge.extra {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.pay-fee-badge.standard {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.pay-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
.btn-submit {
    width: 100%;
    background: var(--brand-gradient);
    color: #000;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.28);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255, 102, 0, 0.4);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 6px;
}

/* ==========================================================================
   Guarantee Box
   ========================================================================== */
.guarantee-box {
    margin-top: 22px;
    padding: 14px 16px;
    background: #F8FAFC;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.g-icon {
    font-size: 20px;
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 2px;
}

.g-text strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

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

/* ==========================================================================
   Right Column: Order Summary
   ========================================================================== */
.summary-container {
    position: sticky;
    top: 20px;
}

.summary-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow-card);
}

.summary-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}

.plan-summary-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.plan-info h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

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

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

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

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

.summary-features li {
    font-size: 12.5px;
    color: var(--text-body);
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.total-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--brand);
}

.security-badges {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.security-badges span {
    background: var(--bg);
    border: 1px solid var(--card-border);
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   Guides, Video Tutorials & Community Section
   ========================================================================== */
.community-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 14px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.yt-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FF0000;
    color: #FFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 12.5px;
    padding: 7px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
    transition: transform 0.2s;
}
.yt-sub-btn:hover { transform: scale(1.03); }

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.video-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #E2E8F0;
}

.video-thumb {
    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.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 20px;
    transition: background 0.2s;
}

.video-card:hover .play-overlay {
    background: var(--brand);
    color: #000;
}

.video-info {
    padding: 14px 16px;
}

.video-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 4px;
}

.video-meta {
    font-size: 11.5px;
    color: var(--text-muted);
}

.social-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--card-border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.social-pill:hover { background: var(--bg-subtle); border-color: #CBD5E1; }
.social-pill.tg { color: #0284C7; }
.social-pill.x  { color: #0F172A; }
.social-pill.yt { color: #DC2626; }

/* ==========================================================================
   Support Chat Widget
   ========================================================================== */
.chat-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-gradient);
    color: #000;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
    border: none;
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.35);
    transition: all 0.2s ease;
}
.chat-launcher:hover { transform: translateY(-2px); }

.online-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
    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: 84px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 110px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-modal);
    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: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.chat-title-group h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}
.chat-title-group p {
    font-size: 11px;
    color: var(--green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}
.chat-close-btn:hover { color: var(--text); }

.chat-quick-channels {
    display: flex;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}
.quick-chan {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    background: #FFF;
    border: 1px solid var(--card-border);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.quick-chan.tg { color: #0284C7; }
.quick-chan.wa { color: #059669; }

.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    background: #FFFFFF;
}

.msg-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    line-height: 1.45;
}
.msg-user {
    align-self: flex-end;
    background: var(--brand-gradient);
    color: #000;
    font-weight: 600;
    border-bottom-right-radius: 3px;
}
.msg-admin {
    align-self: flex-start;
    background: var(--bg-subtle);
    border: 1px solid var(--card-border);
    color: var(--text);
    border-bottom-left-radius: 3px;
}
.msg-meta {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.chat-input-area {
    padding: 12px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.chat-identity-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.chat-field {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    padding: 7px 10px;
    font-size: 12px;
}
.chat-compose-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.attach-btn {
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
}
.chat-textarea {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    padding: 8px 10px;
    font-size: 12px;
    height: 38px;
    resize: none;
}
.send-btn {
    background: var(--brand-gradient);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.img-preview-box {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: var(--amber-bg);
    border: 1px dashed var(--orange);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 11px;
    color: var(--text);
}
.img-preview-box button {
    background: transparent;
    border: none;
    color: #DC2626;
    cursor: pointer;
}

/* ==========================================================================
   Automated Crypto & Lightning Modal Styles
   FIXED VIEWPORT MODAL - HIDDEN BY DEFAULT, SHOWN ONLY ON DEMAND
   ========================================================================== */
.crypto-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    animation: fadeInModal 0.2s ease-out;
}

.crypto-modal-backdrop.active,
.crypto-modal-backdrop[style*="display: flex"],
.crypto-modal-backdrop[style*="display:flex"] {
    display: flex !important;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.crypto-modal-card {
    position: relative !important;
    width: 100% !important;
    max-width: 440px !important;
    max-height: 90vh !important;
    background: #FFFFFF !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 20px !important;
    padding: 24px 20px !important;
    box-shadow: var(--shadow-modal) !important;
    color: var(--text) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.modal-close-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    background: var(--bg-subtle) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-muted) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    z-index: 999 !important;
}
.modal-close-btn:hover { background: #E2E8F0 !important; color: var(--text) !important; }

.crypto-modal-header {
    text-align: center;
    margin-bottom: 18px;
}

.crypto-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    color: #B45309;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.crypto-header-pill.usdt-pill {
    background: #D1FAE5;
    border-color: #6EE7B7;
    color: #047857;
}

.crypto-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.crypto-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.crypto-summary-box {
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 16px;
}

.cs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.cs-row:last-child { margin-bottom: 0; }

.cs-label {
    font-size: 12px;
    color: var(--text-muted);
}

.cs-val {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}
.font-mono { font-family: monospace; }

.cs-amount-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-usd {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}

.cs-sats-badge {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    color: #B45309;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.crypto-qr-container {
    text-align: center;
    margin-bottom: 18px;
}

.qr-glow-wrapper {
    position: relative;
    width: 210px;
    height: 210px;
    margin: 0 auto 10px;
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 8px;
    border: 1px solid var(--card-border);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.crypto-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.qr-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(15, 23, 42, 0.15);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.qr-hint {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    line-height: 1.4;
}

.crypto-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.btn-wallet-launch {
    background: var(--brand-gradient);
    color: #000;
    font-weight: 800;
    font-size: 13.5px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-wallet-launch:hover { transform: translateY(-1px); }

.btn-copy-invoice {
    background: var(--bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    font-weight: 600;
    font-size: 12.5px;
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-copy-invoice:hover { background: var(--bg-subtle); border-color: #CBD5E1; }

.lud16-box {
    background: var(--bg);
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 14px;
}
.lud-label {
    font-size: 10.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 3px;
}
.lud-code-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.lud-code-wrap code {
    font-family: monospace;
    font-size: 11.5px;
    color: #B45309;
    font-weight: 600;
}

.btn-xs-copy {
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    color: var(--text);
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    cursor: pointer;
}
.btn-xs-copy:hover { background: var(--bg-subtle); }

.crypto-live-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.pulse-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulseRing 1.6s infinite;
}
@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Success View */
.crypto-success-icon {
    text-align: center;
    margin-bottom: 10px;
}

.crypto-success-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    color: var(--green);
    margin-bottom: 4px;
}

.crypto-success-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 18px;
}

.activation-key-card {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 18px;
    text-align: center;
}

.ak-label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #047857;
    display: block;
    margin-bottom: 6px;
}

.ak-key-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid #A7F3D0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.ak-code {
    font-family: monospace;
    font-size: 14px;
    font-weight: 800;
    color: #047857;
}

.btn-copy-key {
    background: #059669;
    border: none;
    color: #FFF;
    font-size: 10.5px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.ak-note {
    font-size: 11px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ak-note strong { color: var(--text); }

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-activate-phone {
    background: var(--brand-gradient);
    color: #000;
    font-weight: 800;
    font-size: 13.5px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
}

.btn-done {
    background: var(--bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    font-size: 12.5px;
    padding: 9px;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* USDT Manual Modal Chains */
.chain-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.chain-item {
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.chain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.chain-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.chain-badge-green {
    font-size: 9.5px;
    font-weight: 700;
    color: #047857;
    background: #D1FAE5;
    padding: 2px 6px;
    border-radius: 4px;
}

.chain-badge-blue {
    font-size: 9.5px;
    font-weight: 700;
    color: #0369A1;
    background: #E0F2FE;
    padding: 2px 6px;
    border-radius: 4px;
}

.chain-addr-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 6px 8px;
}

.chain-addr-box code {
    font-family: monospace;
    font-size: 11px;
    color: #0284C7;
    word-break: break-all;
}

.usdt-action-area {
    margin-top: 12px;
}

.usdt-tip {
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-align: center;
}

/* ==========================================================================
   Responsive Mobile Media Queries
   Flawless layout on iPhone 16 Pro Max (440px), iPhone 14/15, Android
   ========================================================================== */
@media (max-width: 860px) {
    body {
        padding: 16px 12px 60px;
    }

    .checkout-header {
        margin-bottom: 20px;
        padding-bottom: 14px;
    }

    .header-nav-group {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-container {
        padding: 22px 16px;
        border-radius: var(--radius-lg);
    }

    .page-title {
        font-size: 20px;
    }

    .tier-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .tier-pill {
        padding: 10px 4px;
    }

    .pill-name {
        font-size: 11px;
    }

    .pill-price {
        font-size: 14px;
    }

    .payment-card {
        padding: 12px;
        gap: 10px;
    }

    .pay-icon-circle {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .pay-title {
        font-size: 13px;
    }

    .summary-card {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .chat-launcher {
        bottom: 16px;
        right: 16px;
        padding: 10px 16px;
        font-size: 12.5px;
    }

    .chat-widget {
        bottom: 74px;
        right: 12px;
        width: calc(100vw - 24px);
        height: 520px;
    }
}

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

    .tier-pill[data-tier="vip"] {
        grid-column: span 2;
    }

    .pay-card-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pay-fee-badge {
        align-self: flex-start;
    }
}
