/* ============================================
   Kleado User App - Master Stylesheet
   No CSS variables. Plain values only.
   ============================================ */

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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #0f172a;
    background-color: #f3f5f8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ============================================
   Layout shell
   ============================================ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar-wrap {
    width: 220px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: #f3f5f8;
}

.content {
    flex: 1;
    padding: 20px 24px;
    overflow-x: hidden;
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
    width: 220px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #0a1530;
	background-color: #03060f;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 50;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #1e293b;
    border-radius: 4px;
}
.sidebarWrapper{position:relative;}
.sidebar-header {
    padding: 18px 18px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #14213d;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    text-decoration: none;
}
.sidebar-logo:hover { text-decoration: none; }

.sidebar-logo-img {
    max-height: 36px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.sidebar-logo:has(.sidebar-logo-img) .sidebar-logo-mark,
.sidebar-logo:has(.sidebar-logo-img) .sidebar-logo-text {
    display: none;
}

.auth-logo-img {
    max-width: 190px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.auth-left-logo:has(.auth-logo-img) .sidebar-logo-mark,
.auth-left-logo:has(.auth-logo-img) .sidebar-logo-text {
    display: none;
}

.sidebar-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #3b82f6, #1d4ed8 70%, #0f1f4d);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.sidebar-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.sidebar-toggle {
    background: transparent;
    border: 0;
    color: #cbd5e1;
    padding: 4px;
    border-radius: 6px;
}
.sidebar-toggle:hover { background-color: #14213d; color: #ffffff; }
.topbar .sidebar-toggle-btn{display:none;}
.sidebar-section {
    padding: 14px 0 4px;
}

.sidebar-section-title {
    padding: 0 18px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3b82f6;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
}
.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    text-decoration: none;
}

.nav-item.active {
    background-color: rgba(37, 99, 235, 0.16);
    color: #60a5fa;
    border-left-color: #2563eb;
}

.nav-item .nav-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
}

.nav-item .nav-label {
    flex: 1;
    min-width: 0;
}

/* Counter pill on nav items */
.nav-count {
    margin-left: auto;
    background-color: #1e3a8a;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9999px;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-item.active .nav-count {
    background-color: #2563eb;
    color: #ffffff;
}

.nav-badge-new {
    margin-left: auto;
    background-color: #0ea5e9;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 6px;
    letter-spacing: 0.04em;
}

/* Submenu */
.nav-item.has-submenu .nav-arrow {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.2s;
    color: #94a3b8;
}
.nav-item.has-submenu.open .nav-arrow { transform: rotate(90deg); }

.nav-submenu {
    display: none;
    background-color: #060d20;
    padding: 4px 0;
}
.nav-submenu.open { display: block; }

.nav-submenu .nav-item {
    padding-left: 50px;
    font-size: 13px;
    color: #94a3b8;
}
.nav-submenu .nav-item.active {
    background-color: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
    border-left-color: transparent;
}

/* Sidebar footer (user card) */
.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #14213d;
    padding: 10px 0 14px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.user-info { min-width: 0; flex: 1; }
.user-name { color: #ffffff; font-weight: 600; font-size: 13px; line-height: 1.2; }
.user-plan { color: #94a3b8; font-size: 11px; margin-top: 1px; }

.sidebar-signout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    color: #cbd5e1;
    font-size: 13px;
    text-decoration: none;
}
.sidebar-signout:hover { color: #ffffff; text-decoration: none; }

/* ============================================
   Topbar
   ============================================ */

.topbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.page-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}
.breadcrumb { font-size: 12px; color: #94a3b8; }
.breadcrumb span + span::before { content: ""; margin: 0 4px; }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #0e7490;
    padding: 6px 12px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.credit-pill:hover { background-color: #cffafe; }
.credit-pill .bolt {
    color: #f59e0b;
    font-size: 14px;
    line-height: 1;
}

.topbar-bell {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #fef3c7;
    color: #b45309;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}
.topbar-bell:hover { background-color: #fde68a; }
.topbar-bell .bell-dot {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid #fef3c7;
}

.topbar-avatar-wrap { position: relative; }

.topbar-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    max-height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
    color: #ffffff;
    border: 0;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
}
.topbar-avatar:hover { filter: brightness(1.05); }

.topbar-avatar-img {
    width: 34px;
    height: 34px;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
}

.user-dropdown {
    position: absolute;
    top: 42px;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    min-width: 200px;
    padding: 6px;
    display: none;
    z-index: 100;
}

.user-dropdown.open { display: block; }

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #374151;
    font-size: 13px;
    text-decoration: none;
}
.user-dropdown a:hover { background-color: #f3f4f6; text-decoration: none; }

/* ============================================
   Cards
   ============================================ */

.card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card + .card { margin-top: 16px; }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0;
    border: 0;
}

.card-header-text { min-width: 0; flex: 1; }

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.card-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.card-body { padding: 0; }

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    background-color: #ffffff;
    color: #0f172a;
    white-space: nowrap;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
.btn-primary:hover { background-color: #1d4ed8; border-color: #1d4ed8; }

.btn-secondary {
    background-color: #f3f4f6;
    color: #0f172a;
    border-color: #f3f4f6;
}
.btn-secondary:hover { background-color: #e5e7eb; }

.btn-outline {
    background-color: #ffffff;
    color: #2563eb;
    border-color: #c7d2fe;
}
.btn-outline:hover { background-color: #eff6ff; border-color: #93c5fd; }

.btn-outline-gray {
    background-color: #ffffff;
    color: #374151;
    border-color: #e5e7eb;
}
.btn-outline-gray:hover { background-color: #f9fafb; }

.btn-danger {
    background-color: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}
.btn-danger:hover { background-color: #dc2626; border-color: #dc2626; }

.btn-danger-soft {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}
.btn-danger-soft:hover { background-color: #fee2e2; }

.btn-success {
    background-color: #10b981;
    color: #ffffff;
    border-color: #10b981;
}
.btn-success:hover { background-color: #059669; border-color: #059669; }

.btn-dark {
    background-color: #0a1530;
    color: #ffffff;
    border-color: #0a1530;
}
.btn-dark:hover { background-color: #14213d; }

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 12px 22px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

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

.btn-link {
    background: transparent;
    border: 0;
    color: #2563eb;
    padding: 0;
    font-weight: 600;
}
.btn-link:hover { text-decoration: underline; }

.auth-or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}
.auth-or::before,
.auth-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.auth-or span {
    font-size: 12px;
    color: #94a3b8;
}
.btn-google.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
}
.pw-strength { margin-top: 8px; }
.pw-bar {
    height: 3px;
    border-radius: 3px;
    background: #e5e7eb;
    overflow: hidden;
    margin-bottom: 4px;
}
.pw-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s, background 0.3s;
}
.pw-lbl { font-size: 11px; font-weight: 600; }
.form-error { display: block; color: #dc2626; font-size: 12px; margin-top: 4px; }

/* Google button (login) */
.btn-google {
    background-color: #ffffff;
    color: #0f172a;
    border-color: #e5e7eb;
    padding: 11px 16px;
    font-weight: 600;
    border-radius: 10px;
}
.btn-google:hover { background-color: #f9fafb; }

.google-mark {
    width: 16px;
    height: 16px;
    background: conic-gradient(from -45deg, #4285f4 0 90deg, #34a853 90deg 180deg, #fbbc05 180deg 270deg, #ea4335 270deg);
    border-radius: 50%;
}

/* ============================================
   Forms
   ============================================ */

.form-row { margin-bottom: 14px; }
.form-row:last-child { margin-bottom: 0; }

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="tel"],
.form-row input[type="url"],
.form-row textarea,
.form-row select,
input.form-control,
textarea.form-control,
select.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 8px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus,
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
    background-color: #ffffff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-row textarea { resize: vertical; min-height: 90px; }

.form-row select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

.form-hint { font-size: 12px; color: #94a3b8; margin-top: 6px; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
}

.form-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Password input wrap */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 38px; }
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #94a3b8;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
}
.password-toggle:hover { background-color: #f3f4f6; color: #374151; }

/* Checkbox */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}
.checkbox-row input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.checkbox-row input[type="checkbox"]:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}
.checkbox-row input[type="checkbox"]:checked::after {
    content: "✓";
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

/* Country code + phone row */
.phone-row { display: flex; gap: 0; }
.phone-row select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
    width: 110px;
    flex-shrink: 0;
}
.phone-row input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    flex: 1;
}

/* Currency input */
.currency-input { display: flex; gap: 0; }
.currency-input select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
    width: 70px;
    flex-shrink: 0;
}
.currency-input input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    flex: 1;
}

/* ============================================
   Toggle switch
   ============================================ */

.toggle {
    position: relative;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background-color: #cbd5e1;
    border-radius: 9999px;
    transition: background 0.2s;
    cursor: pointer;
}
.toggle-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle input:checked + .toggle-slider {
    background-color: #2563eb;
}
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }

/* ============================================
   Badges
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
}

.badge-amber {
    background-color: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}
.badge-green {
    background-color: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}
.badge-blue {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.badge-purple {
    background-color: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}
.badge-red {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}
.badge-gray {
    background-color: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
}
.badge-teal {
    background-color: #ecfeff;
    color: #0e7490;
    border-color: #a5f3fc;
}

/* ============================================
   Tables
   ============================================ */

.table-wrap {
    overflow-x: auto;
    border-top: 1px solid #e5e7eb;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead th {
    text-align: left;
    padding: 11px 16px;
    background-color: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table tbody tr:hover { background-color: #f9fafb; }

.data-table .text-muted-cell { color: #9ca3af; }

.lock-cell {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: #f3f4f6;
    border: 0;
    cursor: pointer;
}
.lock-cell:hover { background-color: #fef3c7; color: #b45309; }

.masked {
    color: #cbd5e1;
    letter-spacing: 1px;
}

/* Table empty state */
.table-empty {
    padding: 56px 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.table-empty a { color: #2563eb; font-weight: 600; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    font-size: 12px;
    color: #6b7280;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.page-btn:hover { background-color: #f9fafb; }
.page-btn.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.per-page-select {
    padding: 5px 26px 5px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 12px;
}

/* ============================================
   Filter bar (search + selects)
   ============================================ */

.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 360px;
}

.search-input input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    border-radius: 9999px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input input::placeholder { color: #94a3b8; }
.search-input input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.search-input::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 14px;
}

.select-pill {
    position: relative;
}
.select-pill select {
    padding: 7px 28px 7px 14px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}
.select-pill select:hover { border-color: #cbd5e1; }
.select-pill select:focus { outline: none; border-color: #93c5fd; }

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal {
    background-color: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.25);
    animation: modalIn 0.18s ease-out;
}
.modal-sm { max-width: 420px; }
.modal-lg { max-width: 720px; }

@keyframes modalIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}
.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.modal-close:hover { background-color: #f3f4f6; }

.modal-body {
    padding: 20px;
    font-size: 14px;
    color: #475569;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.modal-footer-center { justify-content: center; }

/* Confirm modal style (icon-centered) */
.modal-confirm {
    text-align: center;
    padding: 28px 24px 8px;
}

.modal-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.modal-confirm-icon.warning { background-color: #fee2e2; color: #dc2626; }
.modal-confirm-icon.info { background-color: #dbeafe; color: #2563eb; }
.modal-confirm-icon.success { background-color: #d1fae5; color: #059669; }

.modal-confirm-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.modal-confirm-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
    max-width: 380px;
    margin: 0 auto;
}

/* Marketplace summary table inside modal */
.modal-summary {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.modal-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.modal-summary-row:nth-child(odd) { background-color: #f9fafb; }
.modal-summary-row:last-child { border-bottom: 0; }
.modal-summary-row .label { color: #6b7280; }
.modal-summary-row .value { color: #0f172a; font-weight: 600; }

.modal-info-bar {
    margin-top: 14px;
    padding: 12px 14px;
    background-color: #d1fae5;
    color: #047857;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    display: flex;
    gap: 8px;
}

.modal-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px 0;
}
.modal-total-row .label { font-size: 14px; font-weight: 500; color: #0f172a; }
.modal-total-row .value { font-size: 20px; font-weight: 700; color: #2563eb; }

/* Coming soon banner inside modal */
.modal-cs-banner {
    background: linear-gradient(135deg, #e0f2fe, #f0fdfa);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 22px 20px;
    text-align: center;
}
.modal-cs-banner .rocket {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}
.modal-cs-banner .cs-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.modal-cs-banner .cs-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

/* ============================================
   Toast notification
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background-color: #0f172a;
    color: #ffffff;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
    pointer-events: auto;
    min-width: 220px;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.2s ease-out;
}
.toast.success { background-color: #047857; }
.toast.error { background-color: #b91c1c; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================
   Auth pages (login / register / forgot / OTP)
   ============================================ */

.auth-page {
    min-height: 100vh;
    background-color: #f3f5f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-page.auth-page-bg{background-color:#efefef61;}
.auth-card {
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 1080px;
    min-height: 540px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
    .auth-card { grid-template-columns: 1fr; max-width: 460px; min-height: 0; }
    .auth-left { display: none; }
}

.auth-left {
    background-color: #0a1530;
	background-color: #03060f;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.12), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.10), transparent 40%);
    color: #ffffff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -0.02em;
}
.nav-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4d8dff, #6ad0ff);
    box-shadow: 0 0 20px rgba(77, 141, 255, 0.6);
    position: relative;
    display: grid;
    place-items: center;
}
.nav-brand-mark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2px;
    transform: rotate(45deg);
}

 /* ========== ATMOSPHERIC BACKGROUND ========== */
  .bg-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .bg-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 20% 10%, rgba(77, 141, 255, 0.18), transparent 60%),
      radial-gradient(ellipse 70% 50% at 85% 30%, rgba(106, 208, 255, 0.10), transparent 60%),
      radial-gradient(ellipse 60% 40% at 50% 90%, rgba(176, 139, 255, 0.12), transparent 60%);
  }
  .bg-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(120, 160, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(120, 160, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
  }
  .bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* Floating orbs */
  .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: drift 20s ease-in-out infinite;
  }
  .orb-1 { width: 500px; height: 500px; background: rgba(77, 141, 255, 0.35); top: -100px; left: -100px; }
  .orb-2 { width: 400px; height: 400px; background: rgba(106, 208, 255, 0.25); top: 30%; right: -80px; animation-delay: -7s; }
  .orb-3 { width: 600px; height: 600px; background: rgba(176, 139, 255, 0.18); bottom: -200px; left: 30%; animation-delay: -14s; }

  @keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
  }

  /* Particles */
  #particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .particle {
    position: absolute;
    width: 2px; height: 2px;
    background: rgba(180, 210, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(120, 180, 255, 0.8);
    animation: float-up linear infinite;
  }
  @keyframes float-up {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) translateX(var(--drift, 50px)); opacity: 0; }
  }





.auth-left-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}
.auth-left-logo .sidebar-logo-mark { width: 38px; height: 38px; font-size: 19px; }
.auth-left-logo .sidebar-logo-text { font-size: 22px; }

.auth-headline {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}
.auth-headline .accent {
    color: #3b82f6;
}

.auth-subhead {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 420px;
    margin-bottom: 24px;
}

.auth-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #e2e8f0;
}
.auth-bullets li .bullet-check {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background-color: rgba(20, 184, 166, 0.18);
    border: 1px solid rgba(20, 184, 166, 0.5);
    color: #14b8a6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
}

.auth-right {
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.auth-form-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 22px;
}

.auth-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    font-size: 12px;
    color: #94a3b8;
}
.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.auth-footer-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #475569;
}
.auth-footer-link a { font-weight: 600; }

/* For shorter cards (forgot / otp) */
.auth-card.compact { min-height: 480px; }

/* ============================================
   Dashboard specifics
   ============================================ */

.welcome-banner {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.welcome-banner .ck {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background-color: #10b981;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
@media (max-width: 1200px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.stat-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-card-icon.blue { background-color: #dbeafe; color: #1d4ed8; }
.stat-card-icon.amber { background-color: #fef3c7; color: #b45309; }
.stat-card-icon.orange { background-color: #ffedd5; color: #c2410c; }
.stat-card-icon.purple { background-color: #ede9fe; color: #6d28d9; }
.stat-card-icon.green { background-color: #d1fae5; color: #047857; }
.stat-card-icon.red { background-color: #fee2e2; color: #b91c1c; }

.stat-card-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    flex: 1;
}

.stat-card-value {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.stat-card-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #e5e7eb;
}
.stat-card-bar::after {
    content: "";
    display: block;
    height: 3px;
    width: 30%;
    background-color: #2563eb;
}
.stat-card-bar.amber::after { background-color: #f59e0b; width: 50%; }
.stat-card-bar.purple::after { background-color: #8b5cf6; width: 70%; }
.stat-card-bar.green::after { background-color: #10b981; width: 90%; }

.stat-meta {
    font-size: 11px;
    color: #ef4444;
    font-weight: 600;
}
.stat-meta.up { color: #047857; }

/* Two-column dashboard tables */
.dash-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 1100px) { .dash-row { grid-template-columns: 1fr; } }

/* ============================================
   Campaigns hero / lead generation
   ============================================ */

.hero-tag {
    color: #f59e0b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.hero-tag::before { content: "—"; color: #f59e0b; }

.hero-headline {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 6px;
}
.hero-headline .accent { color: #2563eb; }

.hero-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 0;
}

.hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* Start Campaign modal — goal selector */
.goal-tabs {
    display: flex;
    background-color: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;
}
.goal-tab {
    flex: 1;
    padding: 8px 14px;
    text-align: center;
    border: 0;
    background: transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
}
.goal-tab.active {
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.goal-option {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.goal-option:hover { border-color: #93c5fd; background-color: #f9fbff; }
.goal-option:last-child { margin-bottom: 0; }

.goal-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background-color: #dbeafe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.goal-option-body { flex: 1; min-width: 0; }
.goal-option-title {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.goal-option-title .plat {
    font-size: 12px;
    background-color: #f3f4f6;
    color: #6b7280;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 600;
}
.goal-option-desc {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.5;
}

.goal-option .chev {
    color: #94a3b8;
    align-self: center;
}

.goal-info {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

/* Min credits modal */
.min-credits-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 14px 0;
    font-size: 13px;
    color: #1e40af;
}
.min-credits-info .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}
.min-credits-info .row strong { color: #0f172a; }

/* ============================================
   Browse leads (marketplace) cards
   ============================================ */

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 8px;
}
@media (max-width: 1200px) { .marketplace-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .marketplace-grid { grid-template-columns: 1fr; } }

.lead-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.lead-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.lead-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.lead-card-head-text { min-width: 0; flex: 1; }
.lead-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 2px;
    word-break: break-word;
}
.lead-card-category { font-size: 12px; color: #94a3b8; }

.lead-card-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.flag-btn {
    background: transparent;
    border: 0;
    color: #f43f5e;
    padding: 2px;
    cursor: pointer;
}

.flag-modal .modal-sm,
.flag-modal.modal-sm {
    max-width: 440px;
}

.flag-modal-intro {
    margin: 0 0 14px;
}

.flag-form-field {
    margin-bottom: 14px;
}

.flag-form-field:last-child {
    margin-bottom: 0;
}

.form-label--caps {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

.fm-inp {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8dde7;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #0f172a;
}

.fm-inp:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.fm-inp--textarea {
    min-height: 96px;
    resize: vertical;
}

.fm-inp--file {
    padding: 8px;
}

.btn-flag-submit {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
    font-weight: 600;
}

.btn-flag-submit:hover {
    background: #ffe4e6;
}

.flag-modal-alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.flag-modal-alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.flag-modal-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.flag-status-dl {
    margin: 12px 0 0;
    font-size: 13px;
}

.flag-status-dl dt {
    font-weight: 700;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 12px;
}

.flag-status-dl dt:first-child {
    margin-top: 0;
}

.flag-status-dl dd {
    margin: 4px 0 0;
    color: #0f172a;
    line-height: 1.45;
}

.flag-admin-response {
    white-space: pre-wrap;
}

.lead-card-contact {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #475569;
    font-size: 12.5px;
    line-height: 1.45;
}
.lead-card-contact .ico {
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 1px;
}

.lead-card-contact--details strong {
    color: #0f172a;
    font-weight: 700;
}

.lead-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    color: #6b7280;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}
.lead-card-meta .row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lead-card-meta .ico {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    flex-shrink: 0;
}
.lead-card-meta .label { color: #6b7280; flex: 1; }
.lead-card-meta .value { color: #0f172a; font-weight: 600; }
.lead-card-meta .value.muted { color: #9ca3af; font-weight: 500; }

.lead-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.lead-card-footer--market {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lead-card-footer--market .unlocks-pill {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 52%;
}

.lead-card-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 0;
}

.lead-card-tools--locked .lead-tool-btn {
    opacity: 0.45;
}

.lead-purchased-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
    text-decoration: none;
}

.lead-card-meta .value-pill {
    margin-left: auto;
    padding: 4px 10px;
    background-color: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-card-meta .value-pill.muted {
    color: #9ca3af;
    font-weight: 500;
}

.unlock-btn--inline {
    padding: 7px 12px;
    font-size: 12px;
    line-height: 1.25;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.unlock-btn--inline .unlock-btn-strike {
    display: inline;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: line-through;
    opacity: 0.75;
}

a.unlock-btn,
button.unlock-btn {
    text-decoration: none;
}

@media (max-width: 420px) {
    .lead-card-footer--market {
        flex-wrap: wrap;
    }

    .lead-card-footer--market .unlocks-pill {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .lead-card-footer-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
    }
}

.unlocks-pill {
    background-color: #eef2ff;
    color: #4338ca;
    border-radius: 9999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.unlocks-pill .lock {
    width: 14px;
    height: 14px;
    background-color: #ffffff;
    border-radius: 50%;
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.unlocks-pill .progress {
    flex: 1;
    height: 5px;
    background-color: #ffffff;
    border-radius: 9999px;
    overflow: hidden;
    min-width: 50px;
    margin: 0 6px;
}
.unlocks-pill .progress .bar {
    height: 100%;
    background-color: #6366f1;
    border-radius: 9999px;
}

.lead-card-tools {
    display: flex;
    gap: 6px;
}
.lead-tool-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background-color: #f3f4f6;
    color: #6b7280;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lead-tool-btn:hover { background-color: #e5e7eb; }
.lead-tool-btn.whatsapp:hover { background-color: #d1fae5; color: #059669; }
.lead-tool-btn.phone:hover { background-color: #dbeafe; color: #2563eb; }
.lead-tool-btn.email:hover { background-color: #fef3c7; color: #b45309; }

.unlock-btn {
    background-color: #2563eb;
    color: #ffffff;
    border: 0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.unlock-btn:hover { background-color: #1d4ed8; }

/* Leads for sale — toolbar + seller cards */
.lfs-page-card .card-header {
    border-bottom: 1px solid #f1f5f9;
}

.lfs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    padding: 0 20px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.lfs-filter-bar {
    flex: 1;
    min-width: min(100%, 640px);
}

.lfs-export-btn {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lfs-export-ico {
    font-size: 14px;
    line-height: 1;
}

.btn-outline.is-active {
    background-color: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.lfs-grid {
    margin-top: 16px;
}

.lfs-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
}

.lfs-empty h3 {
    margin: 12px 0 6px;
    font-size: 18px;
    color: #0f172a;
}

.lfs-pagination {
    padding: 14px 20px 20px;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.lead-card-footer--sale {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.lead-card-sale-price-wrap {
    min-width: 0;
}

.lead-card-sale-price {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.lead-card-sale-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.lead-card-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.my-lead-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

.lead-tool-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

a.lead-tool-btn {
    text-decoration: none;
}

.lead-tool-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.lead-card-tools--live .lead-tool-btn.whatsapp {
    background-color: #dcfce7;
    color: #16a34a;
}

.lead-card-tools--live .lead-tool-btn.phone {
    background-color: #dbeafe;
    color: #2563eb;
}

.lead-card-tools--live .lead-tool-btn.email {
    background-color: #f3f4f6;
    color: #6b7280;
}

.lead-card-tools--live a.lead-tool-btn:hover {
    filter: brightness(0.95);
}

.lead-card--unlocked {
    border-color: #bbf7d0;
    box-shadow: 0 2px 12px rgba(22, 163, 74, 0.08);
}

/* Purchased leads — compact card grid (like marketplace) */
.purchased-leads-page-head {
    padding: 18px 20px 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.purchased-leads-toolbar {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.purchased-leads-toolbar .search-input {
    min-width: 200px;
    max-width: 280px;
}

.purchased-leads-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px 16px;
}

@media (min-width: 1280px) {
    .purchased-leads-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .purchased-leads-grid {
        grid-template-columns: 1fr;
    }
}

.purchased-leads-grid .purchased-leads-empty {
    grid-column: 1 / -1;
}

.purchased-leads-empty {
    padding: 48px 20px;
    text-align: center;
    color: #6b7280;
}

.purchased-leads-empty h3 {
    margin: 12px 0 6px;
    color: #0f172a;
    font-size: 18px;
}

.purchased-leads-summary {
    padding: 4px 20px 18px;
    font-size: 13px;
    color: #64748b;
    text-align: left;
}

.purchased-leads-grid .lead-card--purchased {
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    height: 100%;
}

.purchased-leads-grid .lead-card--purchased.lead-card--unlocked {
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.purchased-leads-grid .lead-card-title {
    font-size: 13px;
}

.purchased-leads-grid .lead-card-meta .value-pill {
    max-width: 52%;
    font-size: 11px;
    padding: 3px 8px;
}

.purchased-leads-grid .lead-card-sale-price {
    font-size: 20px;
}

.purchased-leads-grid .lead-card-footer--purchased {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.purchased-leads-grid .lead-card-footer-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.purchased-leads-grid .lead-purchased-pill {
    padding: 6px 10px;
    font-size: 11px;
}

.lead-card-footer--purchased {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.lead-card--purchased {
    border-color: #e5e7eb;
}

@media (max-width: 900px) {
    .lfs-export-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

.load-more-wrap {
    text-align: center;
    margin: 18px 0 8px;
}

/* ============================================
   Database table (with price slider)
   ============================================ */

.db-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 20px;
    flex-wrap: wrap;
}
.db-toolbar .search-input { flex: 0 0 280px; }
.db-toolbar .price-range-wrap { flex: 1; min-width: 280px; }

.price-range-wrap {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 14px;
}
.price-range-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}
.price-range-head .val {
    color: #0f172a;
    font-weight: 700;
}

.price-range-wrap input[type="range"] {
    width: 100%;
    appearance: none;
    background: transparent;
    cursor: pointer;
    height: 18px;
}
.price-range-wrap input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background-color: #2563eb;
    border-radius: 9999px;
}
.price-range-wrap input[type="range"]::-moz-range-track {
    height: 4px;
    background-color: #2563eb;
    border-radius: 9999px;
}
.price-range-wrap input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background-color: #2563eb;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-top: -6px;
    box-shadow: 0 0 0 1px #2563eb;
}
.price-range-wrap input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background-color: #2563eb;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #2563eb;
}

.unlock-counter-pill {
    background-color: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
    padding: 7px 14px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 12.5px;
    margin-left: auto;
    cursor: pointer;
}
.unlock-counter-pill:hover { background-color: #fed7aa; }

/* checkbox in table */
.table-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
}
.table-checkbox:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}
.table-checkbox:checked::after {
    content: "✓";
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   Upload & sell page (two cards side by side)
   ============================================ */

.us-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
}
@media (max-width: 1100px) { .us-grid { grid-template-columns: 1fr; } }

.upload-csv-card .card-header {
    margin-bottom: 4px;
}

.bulk-upload-form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.bulk-upload-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.bulk-upload-form .form-grid .form-row {
    margin-bottom: 0;
}

.bulk-upload-form .form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

.bulk-upload-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
    box-sizing: border-box;
}

.bulk-upload-form select:focus {
    border-color: #93c5fd;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.bulk-upload-form .btn-sample-csv {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    padding: 8px 14px;
}

.bulk-upload-form .dropzone {
    margin-bottom: 12px;
}

.bulk-upload-form .dropzone input[type="file"] {
    display: none;
}

.bulk-upload-form .form-error-block {
    display: block;
    margin-bottom: 12px;
}

.bulk-upload-form .btn-bulk-submit {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .bulk-upload-form .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Upload & sell — full lead listing form */
.lead-upload-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .lead-upload-form .form-grid {
        grid-template-columns: 1fr;
    }
}

.lead-upload-form .form-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 0;
    min-width: 0;
}

.lead-upload-form .form-row--full {
    margin-bottom: 16px;
}

.lead-upload-form .form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

.lead-upload-form .form-row input[type="text"],
.lead-upload-form .form-row input[type="email"],
.lead-upload-form .form-row input[type="number"],
.lead-upload-form .form-row input[type="tel"],
.lead-upload-form .form-row input[type="file"],
.lead-upload-form .form-row textarea,
.lead-upload-form .form-row select,
.lead-upload-form .tag-input-wrap {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    border-radius: 8px;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.lead-upload-form .form-row textarea {
    resize: vertical;
    min-height: 100px;
}

.lead-upload-form .form-row select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

.lead-upload-form .form-row input:focus,
.lead-upload-form .form-row textarea:focus,
.lead-upload-form .form-row select:focus {
    border-color: #93c5fd;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.lead-upload-form .form-row input::placeholder,
.lead-upload-form .form-row textarea::placeholder {
    color: #94a3b8;
}

.lead-upload-form .form-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

.lead-upload-form .form-error {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
}

.lead-upload-form .form-row input.is-invalid,
.lead-upload-form .form-row textarea.is-invalid,
.lead-upload-form .form-row select.is-invalid {
    border-color: #f87171;
    background-color: #fef2f2;
}

.upload-sell-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.upload-sell-alert.is-success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.upload-sell-alert.is-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.lead-upload-form .currency-input,
.lead-upload-form .phone-row {
    display: flex;
    width: 100%;
}

.lead-upload-form .currency-input select,
.lead-upload-form .phone-row select {
    width: auto;
    min-width: 72px;
    flex-shrink: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.lead-upload-form .phone-row select {
    min-width: 148px;
}

.lead-upload-form .currency-input input,
.lead-upload-form .phone-row input {
    flex: 1;
    min-width: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.lead-upload-form .tag-input-wrap {
    padding: 8px 10px;
    min-height: 44px;
}

.lead-upload-form .tag-input-wrap .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.lead-upload-form .tag-input-wrap .tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #dbeafe;
    color: #1d4ed8;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
}

.lead-upload-form .tag-input-wrap .tag-remove {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    opacity: 0.7;
}

.lead-upload-form .tag-input-wrap .tag-input {
    border: none;
    background: transparent;
    padding: 4px 2px;
    box-shadow: none;
    min-width: 140px;
    flex: 1;
}

.lead-upload-form .tag-input-wrap .tag-input:focus {
    box-shadow: none;
}

.lead-upload-form .checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    padding: 14px 16px;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    cursor: pointer;
}

.lead-upload-form .checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.lead-upload-form .btn-submit-lead {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

.alert-banner {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.alert-banner .ico { color: #f59e0b; flex-shrink: 0; margin-top: 1px; }

/* Drop zone */
.dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    background-color: #f9fafb;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.dragover {
    border-color: #2563eb;
    background-color: #eff6ff;
}
.dropzone-icon { font-size: 36px; color: #f59e0b; margin-bottom: 8px; }
.dropzone-title { font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 2px; }
.dropzone-sub { font-size: 12px; color: #6b7280; }
.dropzone-sub a { color: #2563eb; font-weight: 600; }

/* File chooser inline (Choose file ... No file selected) */
.file-chooser {
    display: flex;
    align-items: center;
    gap: 10px;
}
.file-chooser .btn { padding: 7px 14px; font-size: 12px; }
.file-chooser .file-name {
    font-size: 12px;
    color: #6b7280;
}

/* Tag input */
.tag-input-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 8px;
    min-height: 42px;
}
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #dbeafe;
    color: #1d4ed8;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}
.tag-pill .x {
    cursor: pointer;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}
.tag-input {
    flex: 1;
    min-width: 120px;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 13px;
    padding: 2px 6px;
}

/* ============================================
   Subscribe page
   ============================================ */

.sub-page-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px 4px;
    margin-bottom: 16px;
}
.sub-page-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.sub-page-title em { font-style: italic; color: #0f172a; }
.sub-page-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}
.sub-page-sub em { color: #2563eb; font-style: italic; }

.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 8px 12px 20px;
}
@media (max-width: 1100px) { .plans-grid { grid-template-columns: 1fr; padding-bottom: 20px; } }

.plan-card {
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    position: relative;
}

.plan-card.dark {
    background-color: #0a1530;
    background-image:
        radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.18), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(20, 184, 166, 0.12), transparent 50%);
    color: #ffffff;
    border-color: transparent;
}
.plan-card.dark .plan-eyebrow,
.plan-card.dark .plan-perks li,
.plan-card.dark .plan-name,
.plan-card.dark .plan-desc,
.plan-card.dark .plan-savings { color: #cbd5e1; }
.plan-card.dark .plan-price,
.plan-card.dark .plan-name { color: #ffffff; }
.plan-card.dark .plan-perks li strong { color: #ffffff; }

.popular-pill {
    background-color: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
}

.plan-card-bookmark {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.plan-card.dark .plan-card-bookmark { background-color: rgba(255, 255, 255, 0.08); color: #cbd5e1; }
.plan-card-bookmark:hover { filter: brightness(1.1); }

.plan-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
}

.plan-name {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}
.plan-name .accent { color: #3b82f6; font-style: italic; }

.plan-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
}

.plan-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.plan-card:not(.dark) .plan-price-row {
    border-top-color: #f1f5f9;
    border-bottom-color: #f1f5f9;
}

.plan-price {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
}
.plan-price-unit {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}
.plan-savings {
    text-align: right;
    font-family: Georgia, 'Times New Roman', serif;
    color: #3b82f6;
    font-style: italic;
    font-size: 15px;
}
.plan-savings small {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    font-style: normal;
    margin-top: 2px;
}

.plan-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.plan-perks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}
.plan-perks li .check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 10px;
    font-weight: 800;
}
.plan-card.dark .plan-perks li .check { background-color: rgba(96, 165, 250, 0.18); color: #60a5fa; }

.plan-cta {
    margin-top: auto;
    padding: 14px 18px;
    border-radius: 12px;
    background-color: #2563eb;
    color: #ffffff;
    border: 0;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.15s;
}
.plan-cta:hover { background-color: #1d4ed8; }

.plan-cta-dark {
    background-color: #0a1530;
}
.plan-cta-dark:hover { background-color: #14213d; }

.plan-cta .arrow-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Wallet card right side */
.balance-pill {
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}
.balance-pill .val {
    color: #c2410c;
    font-size: 18px;
    font-weight: 800;
}

.quick-recharge-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    margin-top: 14px;
}
.quick-recharge-head .hint { color: #9ca3af; }

.recharge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.recharge-btn {
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
}
.recharge-btn:hover { background-color: #f9fafb; }
.recharge-btn.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.custom-recharge {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 6px 6px 12px;
}
.custom-recharge .symbol { color: #94a3b8; font-weight: 700; }
.custom-recharge input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #0f172a;
}
.custom-recharge .min-pill {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    color: #6b7280;
    font-weight: 600;
}

.wallet-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    margin: 14px 0 4px;
    font-size: 12.5px;
}
.wallet-meta-row {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    padding: 4px 0;
}
.wallet-meta-row .val { color: #0f172a; font-weight: 700; }
.wallet-meta-row .val small { color: #94a3b8; font-weight: 500; }

/* ============================================
   Settings (profile / notifications / password)
   ============================================ */

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 16px;
}
@media (max-width: 1100px) { .settings-grid { grid-template-columns: 1fr; } }

.profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-color: #ddd6fe;
    color: #6d28d9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
}
.profile-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.profile-email {
    font-size: 12.5px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.settings-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.settings-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    max-width: 64px;
    max-height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #ddd6fe;
    color: #6d28d9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
}
.settings-avatar img {
    width: 64px;
    height: 64px;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Notifications list */
.notif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.notif-row:last-of-type { border-bottom: 0; }
.notif-info { min-width: 0; flex: 1; }
.notif-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
}
.notif-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ============================================
   Help & Support page (FAQ accordion)
   ============================================ */

.help-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
}
@media (max-width: 1100px) { .help-grid { grid-template-columns: 1fr; } }

.faq-list {
    display: flex;
    flex-direction: column;
}

/* Help page FAQ (kleado_new app.css) */
.help-faq.faq-list {
    padding: 0;
}
.help-faq .faq-item {
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
}
.help-faq .faq-item:last-child {
    border-bottom: none;
}
.help-faq .faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    user-select: none;
    transition: background 0.12s, color 0.12s;
    border-bottom: none;
}
.help-faq .faq-q:hover {
    background: #f8fafc;
    color: #2460e8;
}
.help-faq .faq-item.open .faq-q {
    color: #2460e8;
}
.help-faq .faq-q > span:first-child {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
}
.help-faq .faq-ch {
    font-size: 16px;
    font-weight: 400;
    color: #94a3b8;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
}
.help-faq .faq-item.open .faq-ch {
    color: #2460e8;
}
.help-faq .faq-a {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, padding 0.28s ease, opacity 0.2s ease;
    font-size: 13px;
    color: #64748b;
    line-height: 1.75;
    padding: 0 20px;
    border-bottom: none;
}
.help-faq .faq-item.open .faq-a {
    max-height: 600px;
    opacity: 1;
    padding: 0 20px 16px;
}

/* Generic FAQ (other pages) */
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 4px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: #0f172a;
    user-select: none;
}
.faq-q:hover { background-color: #fafbfc; }
.faq-q .ico {
    font-size: 18px;
    color: #94a3b8;
    transition: transform 0.2s;
}
.faq-item.open .faq-q .ico { transform: rotate(45deg); color: #2563eb; }

.faq-a {
    display: none;
    padding: 8px 4px 14px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    border-bottom: 1px solid #f1f5f9;
}
.faq-item.open .faq-a { display: block; }

/* Quick links list */
.qlinks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qlink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #ffffff;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
}
.qlink:hover { background-color: #f9fafb; text-decoration: none; }
.qlink .ico { font-size: 16px; }
.qlink-btn {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.help-muted {
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    margin: 0;
}
.help-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ticket-list-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
}
.ticket-list-main {
    flex: 1;
    min-width: 0;
}
.ticket-list-title {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
}
.ticket-list-sub {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.help-textarea {
    min-height: 96px;
    resize: vertical;
}
.ticket-chat-body {
    max-height: 62vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ticket-chat-msg {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
}
.ticket-chat-msg.is-admin {
    background: rgba(0, 200, 151, 0.08);
    border-color: rgba(0, 200, 151, 0.25);
}
.ticket-chat-meta {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}
.ticket-chat-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
}
.ticket-chat-attach {
    margin-top: 8px;
    font-size: 12px;
}
.ticket-chat-attach a { color: #2460e8; font-weight: 600; }
.alert-flash {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    background: #eef4ff;
    color: #1d3a8a;
}
.form-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* ============================================
   Helpers
   ============================================ */

.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: #94a3b8; }
.text-blue { color: #2563eb; }
.text-amber { color: #b45309; }
.text-green { color: #047857; }
.text-red { color: #b91c1c; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.font-medium { font-weight: 600; }
.font-bold { font-weight: 700; }

.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; gap: 8px; }
.flex-1 { flex: 1; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

/* ============================================
   Responsive (small screens)
   ============================================ */

@media (max-width: 900px) {
    .sidebar-wrap { width: 0; }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s;
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(15, 23, 42, 0.4);
        z-index: 40;
    }
    .sidebar-backdrop.open { display: block; }
    .topbar { padding-left: 56px;padding-left:30px; }
	/*.topbar {
        padding: 14px 15px;
        padding-left: 15px;
    }
	.topbar .tbleft{
	    display: flex;
		align-items: center;
		gap: 10px;	
	}
	.topbar .sidebar-toggle-btn {
		display: block; 
		background: #14213d;
		border: 0;
		color: #fff;
		padding: 0px;
		border-radius: 6px;
		width: 30px;
		height: 28px;
	}*/
    .mobile-menu-btn {
        position: fixed;
        top: 14px;
        left: 12px;
        z-index: 60;
        width: 36px;
        height: 36px;
        background-color: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 9px;
        color: #0f172a;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
}
@media (min-width: 901px) {
    .mobile-menu-btn { display: none; }
    .sidebar-backdrop { display: none !important; }
}

.stat-trend {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.stat-trend.up {
    color: #2460e8;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #64748b;
    cursor: pointer;
}

.btn-outline {
    color: #2460e8;
    background: 0 0;
    border: 1.5px solid #2460e866 !important;
}

/* ============================================
   Header notifications dropdown
   ============================================ */
.topbar-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tb-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
}
.tb-icon-btn:hover,
.tb-icon-btn.open {
    border-color: #2460e8;
    color: #2460e8;
}
.tb-icon-link {
    line-height: 0;
}
.notif-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.tb-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 44px;
    width: min(360px, calc(100vw - 24px));
    max-height: 420px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    z-index: 200;
}
.tb-dropdown[hidden] {
    display: none !important;
}
.dd-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
}
.dd-hd-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.dd-hd-action {
    font-size: 12px;
    font-weight: 600;
    color: #2460e8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.dd-hd-action:hover {
    text-decoration: underline;
}
#notifItems {
    overflow-y: auto;
    max-height: 360px;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.15s;
}
.notif-item:hover {
    background: #f8fafc;
}
.notif-item.unread {
    background: #f0f7ff;
}
.ni-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.ni-ico.unread {
    background: #dbeafe;
}
.ni-msg {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
}
.ni-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}
.unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2460e8;
    flex-shrink: 0;
    margin-top: 6px;
}
.notif-empty,
.notif-loading {
    padding: 24px 14px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

/* Settings page (kleado_new Settings.tsx) */
.settings-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .settings-two-col {
        grid-template-columns: 1fr;
    }
}
.tgl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.tgl-row:last-child {
    border-bottom: none;
}
.tgl-label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}
.tgl-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}
.tgl-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.tgl-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.tgl-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}
.tgl-slider:before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
.tgl-switch input:checked + .tgl-slider {
    background: #2460e8;
}
.tgl-switch input:checked + .tgl-slider:before {
    transform: translateX(20px);
}
