:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --accent: #10b981;
    --danger: #ef4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.app-container {
    display: none;
}
.app-container.visible {

    width: 100%;
    max-width: 1600px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo .icon { font-size: 2.2rem; }
.logo h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.logo h1 span { color: var(--primary); }

.status-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.main-nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tab-view {
    display: none;
}

.tab-view.active {
    display: block;
}

.scraper-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    align-items: start;
}

.scraper-right-col {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    min-height: 560px;
}

.scraper-map-wrap {
    flex: 1;
    padding: 0;
    overflow: hidden;
    border-radius: 1.5rem;
    min-height: 200px;
}

#scraper-map {
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
}

.search-compact {
    max-width: 250px;
    font-size: 0.85rem !important;
    padding: 0.6rem 1rem !important;
}

main {
    align-items: start;
}

.glass {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Control Panel */
.search-box {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

input[type="text"], textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: rgba(15, 23, 42, 0.8);
}

.location-input-group {
    display: flex;
    gap: 0.6rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.radius-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="range"] {
    flex: 1;
    accent-color: var(--primary);
}

.radius-display {
    background: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 0.6rem;
    font-weight: 700;
    min-width: 65px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.radius-hints {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: -0.6rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 0.85rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

textarea {
    height: 140px;
    resize: none;
    line-height: 1.5;
}

/* Results Panel */
.results-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0; /* Fix flexbox overflow */
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 0.85rem;
}

.btn-secondary, .btn-danger {
    padding: 0.6rem 1.1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: var(--text-dim);
}

.btn-danger:hover { 
    background: rgba(239, 68, 68, 0.15); 
    color: #f87171; 
    border-color: rgba(239, 68, 68, 0.5); 
}

.table-container {
    overflow-x: auto;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

th {
    background: rgba(15, 23, 42, 0.4);
    padding: 1.2rem 1rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* Row elements */
.name-cell {
    font-weight: 700;
    color: white;
    min-width: 150px;
}

.badge-category {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.address-cell {
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dim);
}

.link-website {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.link-website:hover { text-decoration: underline; }

.rating-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-sent {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    padding: 0.15rem 0.5rem;
    border-radius: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(34, 197, 94, 0.25);
    margin-left: 0.4rem;
    vertical-align: middle;
    cursor: default;
}

.btn-wa {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn-pagination {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.btn-pagination:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-pagination:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 500;
}

#current-page {
    color: white;
    font-weight: 700;
}

/* Loader */
.loader-inline {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden { display: none; }

footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: auto;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

/* Blast Controls */
.blast-controls-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.blast-info {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

#selected-count {
    color: var(--primary);
    font-size: 1.1rem;
}

.blast-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.delay-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
}

.input-delay {
    width: 60px !important;
    padding: 0.4rem 0.6rem !important;
    text-align: center;
    font-weight: 700;
}

.btn-blast-start {
    background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-blast-start:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.btn-blast-start:disabled {
    filter: grayscale(1);
    opacity: 0.5;
    cursor: not-allowed;
}

.dist-badge {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Filter Strip */
.filter-strip {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.filter-select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    color: white;
    padding: 0.35rem 0.75rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-check-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.filter-check-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    cursor: pointer;
}

.filter-result-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    white-space: nowrap;
}

.btn-filter-reset {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 0.3rem 0.8rem;
    border-radius: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-filter-reset:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.7);
}

/* License & Trial */
.btn-license-trial {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    padding: 0.45rem 1rem;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-license-trial:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
}

.btn-license-trial.licensed {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.btn-license-trial.licensed:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.6);
}

.trial-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 0.85rem 1.25rem;
    border-radius: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.trial-banner-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
}

.trial-icon { font-size: 1.2rem; }

.trial-hint {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.btn-upgrade {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-upgrade:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.5);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.reg-usecase-select {
    width: 100%;
    padding: 0.85rem 1.1rem;
}

.register-submit-btn {
    margin-top: 0.5rem;
}

.wall-upgrade-btn {
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
}

.visually-hidden-map-tools {
    display: none;
}

.subscribe-modal-desc {
    text-align: center;
    margin-bottom: 1.5rem;
}

.checkout-confirm-btn {
    width: 100%;
    margin-top: 1rem;
}

.checkout-error-msg {
    margin-top: 0.75rem;
}

.checkout-step-success {
    text-align: center;
    padding: 2rem 0;
}

.checkout-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.checkout-success-text {
    opacity: 0.75;
    margin-top: 0.5rem;
}

.checkout-done-btn {
    margin-top: 1.5rem;
}

.activate-btn-inline {
    white-space: nowrap;
    padding: 0.85rem 1.5rem;
}

.admin-login-btn {
    width: 100%;
    margin-top: 1rem;
}

.admin-toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-inline-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-select {
    padding: 0.4rem 0.75rem;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
}

.bank-settings-msg {
    margin-bottom: 1rem;
}

.bank-settings-form {
    max-width: 480px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 { font-size: 1.2rem; font-weight: 700; }

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: color 0.2s;
}

.modal-close-btn:hover { color: white; }

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.modal-desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.license-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.license-input-group input {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.modal-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-style: italic;
}

.license-status-msg {
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.license-status-msg.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.license-status-msg.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.current-key-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.85rem;
    font-size: 0.82rem;
    flex-wrap: wrap;
}

.key-active-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
}

#active-key-display {
    font-family: 'Courier New', monospace;
    color: var(--text-dim);
    flex: 1;
    word-break: break-all;
}

.btn-deactivate {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-deactivate:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Maps Tab */
.maps-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 220px);
    min-height: 500px;
}

.map-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding: 1.5rem;
}

.map-sidebar h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

.dot-phone  { background: #10b981; color: #10b981; }
.dot-sent   { background: #6366f1; color: #6366f1; }
.dot-nophone{ background: #ef4444; color: #ef4444; }

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.map-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.map-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-stat-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.map-stat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 600;
}

.map-filters {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.map-container-wrap {
    padding: 0;
    overflow: hidden;
    border-radius: 1.5rem;
}

#leads-map {
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
}

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 1rem !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6) !important;
}

.leaflet-popup-tip {
    background: #1e293b !important;
}

.leaflet-popup-content {
    margin: 12px 16px !important;
    min-width: 200px;
}

.popup-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: #f8fafc;
}

.popup-category {
    font-size: 0.75rem;
    color: #a5b4fc;
    font-weight: 600;
    background: rgba(99,102,241,0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 0.4rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.popup-row {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.popup-row strong { color: #f8fafc; }

.popup-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.popup-wa-btn {
    background: #10b981;
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
}

.popup-wa-btn:hover { background: #059669; }

/* ── FULLSCREEN GATE (landing / register) ─────────────────── */
.fullscreen-gate {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow-y: auto;
    padding: 2rem 1rem;
}

.fullscreen-gate.hidden {
    display: none;
}

.gate-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

/* ── Landing ─────────────────────────────────────────────── */
.landing-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-logo span { font-size: 2.4rem; }

.landing-logo h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.landing-logo h1 span { color: var(--primary); }

.landing-tagline {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 440px;
}

.landing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    width: 100%;
}

.landing-features li {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 0.25rem 0;
}

.btn-landing-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 0.85rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-landing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.45);
}

.btn-landing-cta:active { transform: translateY(0); }

.landing-note {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ── Register Box ─────────────────────────────────────────── */
.register-box {
    position: relative;
    z-index: 1;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1.75rem;
    padding: 2.5rem 2.25rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeUp 0.5s ease both;
}

.register-back-btn {
    align-self: flex-start;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.35rem 0.9rem;
    border-radius: 0.6rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.register-back-btn:hover { color: white; border-color: rgba(255,255,255,0.3); }

.register-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.register-header span { font-size: 2rem; }

.register-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.register-header p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.phone-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.phone-prefix {
    padding: 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dim);
    background: rgba(255,255,255,0.05);
    border-right: 1px solid var(--border);
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.phone-input-wrap input[type="tel"] {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.85rem 1rem;
    flex: 1;
}

.phone-input-wrap input[type="tel"]:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

.optional {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.register-msg {
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.register-msg.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ── User Greeting in header ──────────────────────────────── */
.user-greeting {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
    white-space: nowrap;
}

.user-greeting strong {
    color: var(--text-main);
    font-weight: 700;
}

/* ── Member Profile ──────────────────────────────────────── */
.profile-layout {
    display: grid;
    gap: 1.25rem;
}

.profile-card {
    padding: 1.25rem;
}

.profile-panel-header {
    margin-bottom: 1rem;
}

.profile-summary {
    min-height: 96px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.profile-info-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}

.profile-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 0.45rem;
}

.profile-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.profile-access-full {
    color: #22c55e;
}

.profile-access-trial {
    color: #fbbf24;
}

.profile-loading,
.profile-empty,
.profile-empty-block {
    color: var(--text-dim);
    text-align: center;
}

.profile-empty-block {
    padding: 1.5rem 1rem;
    border: 1px dashed var(--border);
    border-radius: 1rem;
}

.profile-empty-title {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-table-container {
    overflow-x: auto;
}

.profile-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-orders-table th,
.profile-orders-table td {
    padding: 0.9rem 0.85rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.9rem;
}

.profile-orders-table th {
    color: var(--text-dim);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Scrape Result Unlock Wall ────────────────────────────── */
.scrape-result-wall {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    animation: fadeUp 0.4s ease both;
}

.wall-preview {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.wall-preview-title {
    padding: 1.25rem 1.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.wall-results-list {
    display: flex;
    flex-direction: column;
    min-height: 160px;
    overflow: hidden;
}

.wall-result-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 1.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-main);
}

.wall-result-item:last-child { border-bottom: none; }

.wall-ghost-bar {
    height: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
}

.wall-result-ghost { opacity: 0.5; }

.wall-result-num {
    width: 24px;
    height: 24px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.wall-result-name { font-weight: 700; min-width: 160px; }
.wall-result-phone { color: var(--accent); font-size: 0.82rem; font-weight: 600; }
.wall-result-cat { color: var(--text-dim); font-size: 0.78rem; }

.wall-blur-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 260px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(15, 23, 42, 0.6) 25%,
        rgba(15, 23, 42, 0.95) 55%,
        var(--bg-dark) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
}

.wall-lock-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    max-width: 400px;
    padding: 0 1.5rem;
}

.wall-lock-icon { font-size: 2.5rem; }

.wall-lock-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

.wall-lock-card h3 span { color: var(--primary); }

.wall-lock-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.wall-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 0.9rem 1.25rem;
    width: 100%;
}

.wall-or {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin: 0;
}

.wall-already {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin: 0;
}

.btn-text-link {
    background: transparent;
    border: none;
    color: var(--primary);
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.btn-text-link:hover { color: #818cf8; }

/* ── Admin Panel ────────────────────────────────────────────── */
.admin-panel {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

.admin-panel.hidden {
    display: none;
}

/* Admin Login Screen */
.admin-login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
}

.admin-login-screen.hidden {
    display: none;
}

.admin-login-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.admin-login-box h1 {
    margin: 0 0 2rem;
    font-size: 1.75rem;
    text-align: center;
}

.error-msg {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.error-msg.hidden {
    display: none;
}

/* Admin Dashboard */
.admin-dashboard {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto;
    padding: 2rem;
}

.admin-dashboard.hidden {
    display: none;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-pending-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fca5a5;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-pending-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ef4444;
}

.admin-pending-indicator-alert,
.admin-tab-badge-alert {
    animation: pendingPulse 1.1s ease-in-out infinite;
}

@keyframes pendingPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
    50% { transform: scale(1.08); box-shadow: 0 0 0.75rem rgba(239, 68, 68, 0.35); }
}

.admin-header h1 {
    margin: 0;
    font-size: 2rem;
}

.admin-change-password-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    max-width: 520px;
}

.admin-change-password-box.hidden {
    display: none;
}

.admin-change-password-box h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.admin-change-password-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Stats Row */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.admin-tab-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.admin-tab-btn:hover {
    color: var(--text-main);
}

.admin-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    margin-left: 0.4rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

/* Tab Content */
.admin-tab-content {
    display: none;
    flex: 1;
    overflow: auto;
}

.admin-tab-content.active {
    display: block;
}

.admin-tab-content h3 {
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table thead {
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.admin-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.admin-table .action-btns {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm-primary {
    background: var(--primary);
    color: white;
}

.btn-sm-primary:hover {
    background: var(--primary-hover);
}

.btn-sm-danger {
    background: var(--danger);
    color: white;
}

.btn-sm-danger:hover {
    background: #dc2626;
}

.btn-sm-copy {
    background: #0ea5e9;
    color: white;
}

.btn-sm-copy:hover {
    background: #0284c7;
}

.btn-sm-secondary {
    background: rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-sm-secondary:hover {
    background: rgba(148, 163, 184, 0.3);
}

.access-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.access-full {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.access-trial {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.license-key-badge {
    display: inline-block;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
    white-space: nowrap;
}

.admin-license-history-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    background: rgba(2, 6, 23, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.admin-license-history-modal.hidden {
    display: none;
}

.admin-license-history-box {
    width: 100%;
    max-width: 980px;
    max-height: 80vh;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-license-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.admin-license-history-header h3 {
    margin: 0;
    font-size: 1rem;
}

.admin-license-history-body {
    padding: 1rem 1.25rem 1.25rem;
    overflow: auto;
}

.history-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.history-search-input {
    flex: 1;
    min-width: 220px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    color: white;
    padding: 0.42rem 0.75rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
}

.history-search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.history-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-left: auto;
}

.history-table-wrap {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: auto;
}

.history-table td,
.history-table th {
    white-space: nowrap;
}

.history-empty-row {
    text-align: center;
    color: var(--text-dim);
    padding: 1rem;
}

.history-status-badge {
    display: inline-block;
    padding: 0.22rem 0.52rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.history-status-active {
    color: #34d399;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.32);
}

.history-status-revoked {
    color: #fda4af;
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(244, 63, 94, 0.32);
}

.history-empty {
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-dim);
    text-align: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Package Form */
.package-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.package-form.hidden {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.package-form .form-field {
    margin-bottom: 1rem;
}

.package-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.package-form input,
.package-form textarea {
    width: 100%;
    padding: 0.6rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
}

.package-form input:focus,
.package-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Leads Filter */
.leads-filter {
    margin-bottom: 1rem;
}

.leads-filter input {
    width: 100%;
    max-width: 300px;
    padding: 0.6rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
}

.leads-filter input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Password Toggle */
.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap input {
    padding-right: 2.5rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.4rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.password-toggle-btn:hover {
    opacity: 1;

/* Subscribe Modal */
.modal-box-wide {
    max-width: 720px;
}

.subscribe-packages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}

.subscribe-loading {
    text-align: center;
    color: var(--text-dim);
    padding: 2rem;
    grid-column: 1 / -1;
}

.subscribe-pkg-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1.4rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.subscribe-pkg-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.subscribe-pkg-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.subscribe-pkg-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.subscribe-pkg-limit {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 600;
}

.subscribe-pkg-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
    flex: 1;
}

.btn-subscribe-order {
    display: block;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.6rem;
    padding: 0.65rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}

.btn-subscribe-order:hover { opacity: 0.85; }

.subscribe-footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.trial-panel-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 0.6rem;
    opacity: 0.75;
}
.trial-panel-note .btn-text-link {
    font-size: 0.78rem;
    color: var(--accent);
}
.trial-panel-note.hidden { display: none; }

/* Blast WA Tab */
.blast-wa-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.blast-wa-layout .message-config-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blast-wa-layout textarea#promo-message {
    min-height: 260px;
    resize: vertical;
}

.blast-wa-info h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.blast-steps {
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

.blast-steps strong {
    color: var(--text-main);
}

.blast-wa-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.bwstat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bwstat span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.bwstat small {
    font-size: 0.75rem;
    color: var(--text-dim);
}
/* ── Checkout Modal ─────────────────────────────────────── */
.checkout-pkg-summary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.checkout-pkg-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.95rem;
}
.checkout-pkg-label { opacity: 0.65; }
.checkout-amount { font-size: 1.1rem; font-weight: 700; color: var(--accent); }

.checkout-bank-box {
    background: rgba(var(--accent-rgb, 99,102,241), 0.08);
    border: 1px solid rgba(var(--accent-rgb, 99,102,241), 0.25);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.checkout-bank-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.checkout-bank-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.checkout-bank-detail:last-child { border-bottom: none; }
.checkout-bank-detail span { opacity: 0.6; }
.checkout-acc-num { letter-spacing: 0.05em; }
.checkout-bank-loading { opacity: 0.6; text-align: center; padding: 1rem 0; }
.checkout-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem 0 0.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.checkout-copy-btn:hover {
    background: rgba(255,255,255,0.09);
}
.checkout-copy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.75rem 0 0.35rem;
}
.checkout-copy-actions .checkout-copy-btn {
    margin: 0;
}
.checkout-proof-box {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: rgba(255,255,255,0.03);
}
.checkout-proof-box label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}
.checkout-proof-box input[type="file"] {
    width: 100%;
    color: var(--text-dim);
}
.checkout-proof-name {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}
.checkout-note {
    font-size: 0.83rem;
    opacity: 0.65;
    text-align: center;
    margin-bottom: 0.25rem;
}

/* ── Order Badges ──────────────────────────────────────── */
.order-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.order-badge-pending  { background: rgba(251,191,36,0.15); color: #fbbf24; }
.order-badge-confirmed { background: rgba(34,197,94,0.15); color: #22c55e; }
.order-badge-rejected  { background: rgba(239,68,68,0.15); color: #ef4444; }

.admin-proof-box {
    max-width: 860px;
}
.admin-proof-body {
    padding-top: 0.5rem;
}
.admin-proof-meta {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.admin-proof-image {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}

}

