:root {
    --bg-base: #090b0e;
    --bg-surface: #11141a;
    --bg-surface-hover: #161a22;
    --bg-input: #0c0e13;
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: #3b82f6;
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --accent-amber: #f59e0b;
    --accent-green: #10b981;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    padding-bottom: 40px;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px 14px;
}

/* Clean Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-green);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

/* Disclaimer Ticker */
.official-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #fca5a5;
}

.official-tag {
    background: var(--accent-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.official-text {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

/* Brand Card */
.brand-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    margin-bottom: 14px;
}

.brand-logo-wrap {
    margin-bottom: 10px;
}

.brand-logo-img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    border: 1.5px solid var(--border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.brand-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 4px;
}

.brand-title span {
    color: var(--accent-blue);
}

.brand-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.brand-desc a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.brand-sub-security {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    color: #34d399;
    font-weight: 500;
}

.brand-sub-security svg {
    width: 12px;
    height: 12px;
}

/* Founder & Telegram Card */
.founder-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.card-heading svg {
    width: 14px;
    height: 14px;
}

.founder-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.founder-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.founder-btn:hover, .founder-btn:active {
    background: var(--bg-surface-hover);
    border-color: var(--accent-blue);
}

.founder-btn svg {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.founder-btn-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.founder-btn-title {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.founder-btn-val {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.founder-notice {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.founder-notice strong {
    color: #fff;
}

/* Mandatory Code Warning Card */
.warning-card {
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #f87171;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.warning-header svg {
    width: 16px;
    height: 16px;
    color: #f87171;
    flex-shrink: 0;
}

.warning-content {
    font-size: 12px;
    color: #fecaca;
    line-height: 1.5;
}

.warning-content strong {
    color: #fff;
}

/* Section Title */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}

.section-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.section-name svg {
    width: 14px;
    height: 14px;
    color: var(--accent-blue);
}

.section-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* Options List */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.option-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
}

.option-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-surface-hover);
}

.option-item.selected {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.06);
}

.option-item.vip-opt.selected {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.06);
}

.opt-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opt-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.opt-icon-wrap svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.option-item.selected .opt-icon-wrap svg {
    color: var(--accent-blue);
}

.option-item.vip-opt.selected .opt-icon-wrap svg {
    color: var(--accent-red);
}

.opt-details h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.opt-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.tag-vip {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-narko {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag-special {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.opt-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.opt-right {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 12px;
}

.opt-price-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.opt-price {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.opt-speed {
    font-size: 10px;
    color: var(--text-muted);
}

.opt-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-item.selected .opt-check {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
}

.option-item.vip-opt.selected .opt-check {
    border-color: var(--accent-red);
    background: var(--accent-red);
}

.opt-check svg {
    width: 10px;
    height: 10px;
    color: #fff;
    display: none;
}

.option-item.selected .opt-check svg {
    display: block;
}

/* TRC-20 Payment Box (Appears on selection) */
.trc-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-focus);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.trc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.trc-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.trc-title svg {
    width: 15px;
    height: 15px;
    color: var(--accent-blue);
}

.trc-network-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 7px;
    border-radius: 4px;
}

.trc-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
}

.trc-amount-label {
    color: var(--text-muted);
}

.trc-amount-val {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.trc-addr-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.trc-addr-wrap {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.trc-addr-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    word-break: break-all;
    user-select: all;
}

.trc-copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.trc-copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.trc-copy-btn svg {
    width: 12px;
    height: 12px;
}

.trc-footer-note {
    font-size: 11px;
    color: #f87171;
    margin-top: 8px;
    line-height: 1.4;
}

/* Form Card */
.form-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.field-group {
    margin-bottom: 12px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.field-label svg {
    width: 12px;
    height: 12px;
}

.field-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 12px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease;
}

.field-input:focus {
    border-color: var(--accent-blue);
}

textarea.field-input {
    resize: vertical;
    min-height: 70px;
}

.submit-btn {
    width: 100%;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    transition: background 0.15s ease;
}

.submit-btn:hover, .submit-btn:active {
    background: #2563eb;
}

.submit-btn svg {
    width: 15px;
    height: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 16px 10px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

footer strong {
    color: var(--text-secondary);
}

footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Defensive SVG handling - never overflow */
svg {
    max-width: 100%;
    vertical-align: middle;
}

/* Modal Overlay & Dialog */
.modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-wrap.active {
    display: flex !important;
    opacity: 1;
}

.modal-card {
    background: #11141a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-wrap.active .modal-card {
    transform: scale(1);
}

.modal-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    color: #10b981;
}

.modal-icon-wrap svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: block;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
}

.modal-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 14px;
}

.modal-desc strong {
    color: #f8fafc;
}

.code-box {
    background: #090b0e;
    border: 1px dashed rgba(59, 130, 246, 0.4);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
}

.code-label {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.code-val {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 1.5px;
}

.modal-payment-info {
    background: #0c0e13;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    text-align: left;
    font-size: 11px;
}

.modal-pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
}

.modal-pay-row.col {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-top: 4px;
    padding-top: 5px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.modal-pay-val {
    font-weight: 600;
    color: #f8fafc;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.modal-alert {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 9px 11px;
    margin-bottom: 14px;
    font-size: 11px;
    color: #fca5a5;
    line-height: 1.4;
    text-align: left;
}

.modal-alert strong {
    color: #ef4444;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.modal-btns {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.btn-action-copy {
    width: 100%;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.btn-action-copy:hover {
    background: #2563eb;
}

.btn-action-copy svg,
.btn-action-bot svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    display: inline-block;
    vertical-align: middle;
}

.btn-action-bot {
    width: 100%;
    background: #1e2430;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-radius: 8px;
    padding: 11px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.btn-action-bot:hover {
    background: #283142;
}

.btn-action-close {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border-radius: 8px;
    padding: 8px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 2px;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-action-close:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
}
