:root {
    --bg-main: #0f172a;
    --bg-sidebar: rgba(15, 23, 42, 0.6);
    --bg-card: rgba(30, 41, 59, 0.5); 
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --danger: #f43f5e;
    --danger-hover: #e11d48;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

/* Custom Modern SaaS Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--bg-sidebar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px 20px;
}

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

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    margin-bottom: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-item.active {
    background-color: var(--primary);
    color: white;
}

.back-link {
    margin-top: auto;
    margin-bottom: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

.header-titles h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.header-titles p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    color: white;
    font-size: 0.9rem;
}

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

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

.btn-secondary {
    background-color: var(--border);
}
.btn-secondary:hover {
    background-color: #4B5563;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}
.w-100 {
    width: 100%;
    justify-content: center;
}

/* Cards Grid & Main Grid (OTP Services & Countries) */
.cards-grid,
.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .cards-grid,
    .main-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(255, 255, 255, 0.028);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s, box-shadow 0.22s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), 0 0 20px rgba(99, 102, 241, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

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

.card-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.83rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Status Badges */
.badge-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    flex-shrink: 0;
}

.badge-status-pill.active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.badge-status-pill.active .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.badge-status-pill.inactive {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-status-pill.inactive .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

/* Country Meta Elements */
.lang-pills-group {
    display: inline-flex;
    gap: 3px;
    margin-left: 2px;
}

.lang-pill {
    font-size: 9.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
}

.country-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.country-service-tag {
    font-size: 11px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.14);
    color: #a5b4fc;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.country-price-pill {
    font-size: 11px;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.country-range-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: 6px;
    margin-bottom: 2px;
}

.range-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.range-code {
    font-family: monospace;
    font-size: 11.5px;
    color: #e2e8f0;
    font-weight: 600;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Actions Compact */
.card-actions-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-card-edit {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-card-edit:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

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

.btn-card-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #f87171;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.btn-card-delete:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
}

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

/* ==========================================================================
   OTP Countries Service Filter Bar
   ========================================================================== */
.country-service-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.country-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    outline: none;
}

.country-filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #f1f5f9;
    transform: translateY(-1px);
}

.country-filter-pill.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.18) 100%);
    border-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.35);
    font-weight: 600;
}

.country-filter-pill .pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 14px;
}

.country-filter-pill .pill-icon svg,
.country-filter-pill .pill-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.country-filter-pill .pill-count {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 2px;
}

.country-filter-pill.active .pill-count {
    background: rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

.country-empty-filter {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #94a3b8;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: -1px;
}

/* Modals handled below */

/* Withdrawals Table */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    text-align: left;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table th {
    padding: 1.2rem 1rem;
    color: #a0a0b8;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.data-table td {
    padding: 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-completed {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.badge-pending {
    background: rgba(243, 156, 18, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.badge-rejected {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.action-btn-sm {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 5px;
    transition: 0.2s;
}

.btn-approve {
    background: #2ecc71;
    color: #fff;
}
.btn-approve:hover {
    background: #27ae60;
}

.btn-reject {
    background: #e74c3c;
    color: #fff;
    margin-top: 5px;
}
.btn-reject:hover {
    background: #c0392b;
}

.btn-copy {
    background: transparent;
    border: none;
    color: #4361ee;
    cursor: pointer;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: 0.2s;
}

.btn-copy:hover {
    background: rgba(67, 97, 238, 0.2);
    color: #4cc9f0;
}

/* ==========================================================================
   Modern SaaS Glassmorphic Modals (Services, Countries, Users)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 10, 22, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(180deg, #151c33 0%, #0d1222 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    width: 100%;
    max-width: 530px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(99, 102, 241, 0.12);
    animation: modalPopIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    margin: 0;
}

.close-modal {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.01em;
}

.form-group label span {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: normal;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    color: #f8fafc;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus, 
.form-group select:focus {
    border-color: #6366f1;
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group select option {
    background-color: #111827;
    color: #f8fafc;
}

.help-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.45;
}

.help-text code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: #93c5fd;
    font-size: 0.78rem;
}

/* Country Input with Flag Badge */
.country-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    padding: 3px 12px;
    transition: all 0.2s ease;
}

.country-input-wrapper:focus-within {
    border-color: #6366f1;
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.country-emoji-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.country-input-wrapper input {
    border: none !important;
    background: transparent !important;
    padding: 10px 4px !important;
    box-shadow: none !important;
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Range Input Group & Buttons */
.range-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.range-input-group .range-val {
    flex: 1;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    letter-spacing: 0.04em;
    color: #67e8f9;
    font-weight: 500;
    font-size: 0.88rem;
}

.btn-range-delete {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-range-delete:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.05);
}

#btn-add-range {
    background: rgba(99, 102, 241, 0.12);
    border: 1px dashed rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    margin-top: 4px;
}

#btn-add-range:hover {
    background: rgba(99, 102, 241, 0.24);
    border-color: #6366f1;
    color: #ffffff;
}

/* Target Languages Chip Pills */
.lang-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.lang-pill-item {
    cursor: pointer;
    margin: 0;
    user-select: none;
    display: inline-block;
}

.lang-pill-item input[type="checkbox"] {
    display: none;
}

.lang-pill-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-pill-item:hover .lang-pill-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
}

.lang-pill-item input[type="checkbox"]:checked + .lang-pill-content {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.45);
    color: #c7d2fe;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
    font-weight: 600;
}

/* Modal Actions (Save Button) */
.modal-actions {
    margin-top: 24px;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.48);
    filter: brightness(1.08);
}

/* Selected Service Icon Preview */
.selected-icon-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 13px;
    margin-bottom: 12px;
}

.preview-emoji {
    font-size: 1.85rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.preview-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.icon-search {
    margin-bottom: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    padding: 10px 14px;
    font-size: 0.88rem;
}

/* Icon Grid with ultra-sleek scrollbar */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 230px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background: rgba(10, 15, 30, 0.45);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.icon-grid::-webkit-scrollbar {
    width: 5px;
}
.icon-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}
.icon-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 6px;
    background: rgba(20, 28, 50, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.icon-item.active {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.12) 100%);
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
}

.icon-item .emoji {
    font-size: 1.85rem;
    transition: transform 0.2s ease;
}

.icon-item:hover .emoji {
    transform: scale(1.1);
}

.icon-item .name {
    font-size: 0.76rem;
    color: #94a3b8;
    text-align: center;
    font-weight: 500;
}

.icon-item.active .name {
    color: #818cf8;
    font-weight: 700;
}

/* Autocomplete Styles */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    margin-top: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.autocomplete-item {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.autocomplete-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        bottom: 0;
        z-index: 1001;
        transition: left 0.3s ease;
        background-color: var(--bg-main);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    }
    
    .sidebar.sidebar-open {
        left: 0;
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        backdrop-filter: blur(2px);
        z-index: 1000;
        display: none;
    }
    
    .mobile-overlay.active {
        display: block;
    }

    .main-content {
        padding: 15px 12px;
    }

    .page-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .mobile-menu-btn {
        display: block !important;
        margin-right: 12px;
        font-size: 1.5rem;
    }
    
    .header-titles {
        display: flex;
        flex-direction: column;
    }

    .header-titles h1 {
        font-size: 1.4rem;
    }
    
    .btn-add-main {
        width: 100%;
        margin-top: 10px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-overlay {
        padding: 10px;
    }

    .modal-content {
        max-height: 95vh;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .modal-body {
        padding: 15px;
    }

    .users-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
        margin-top: 10px;
    }

    .table-container {
        width: 100%;
        margin-top: 1rem;
        padding-bottom: 10px;
    }
    
    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
        width: 100%;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tr {
        margin-bottom: 15px;
        background-color: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
    }
    
    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: right;
    }
    
    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        text-align: left;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .data-table td:last-child {
        border-bottom: none;
    }

    /* Force action buttons to be block level on the last row */
    .data-table td.td-action {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }
    .data-table td.td-action::before {
        margin-right: auto;
    }
}

/* Users List */
.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 15px;
    gap: 10px;
    min-width: 250px;
}
.search-box input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 100%;
}
.search-box i {
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: 0.2s;
    border-left: 4px solid var(--primary);
}
.user-card:hover {
    background-color: rgba(255,255,255,0.05);
}

.user-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.user-card-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.user-card-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.user-card-value {
    font-weight: 600;
    font-size: 0.95rem;
}
.val-green { color: #2ecc71; }
.val-orange { background: rgba(243,156,18,0.15); color: #f1c40f; padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; }
.badge-status { padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.status-active { background: rgba(39, 174, 96, 0.15); color: #2ecc71; }
.status-banned { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spinning {
    animation: spin 1s linear infinite;
}


/* Toggle Switch Controls */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    transition: .3s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.switch input:checked + .slider {
    background-color: #10b981;
}
.switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* Provider Master Controls Styles */
.provider-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}
.provider-control-card {
    background: rgba(0, 0, 0, 0.25);
    padding: 13px 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}
.provider-control-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
}
.provider-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.provider-control-card:hover .provider-badge-icon {
    transform: scale(1.06);
}

/* Custom Provider Dropdown (Country Modal & Selectors) */
.custom-provider-select {
    position: relative;
    width: 100%;
}
.custom-provider-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    min-height: 46px;
}
.custom-provider-trigger:hover,
.custom-provider-trigger:focus {
    border-color: rgba(99, 102, 241, 0.7);
    background: rgba(0, 0, 0, 0.35);
    outline: none;
}
.custom-provider-trigger .chevron-icon {
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
}
.custom-provider-select.open .custom-provider-trigger .chevron-icon {
    transform: rotate(180deg);
}
.custom-provider-select.open .custom-provider-trigger {
    border-color: var(--primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.custom-provider-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e2238;
    border: 1px solid var(--border);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 1050;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}
.custom-provider-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.custom-provider-item:hover {
    background: rgba(255, 255, 255, 0.07);
}
.custom-provider-item.active {
    background: rgba(99, 102, 241, 0.15);
}
.provider-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ════════════════════════════════════════════════════════════════════════════════
   MOCK OTP SIMULATOR — PREMIUM MODERN REDESIGN
   ════════════════════════════════════════════════════════════════════════════════ */

.mock-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 12px;
}

.mock-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 9px;
}

.mock-card-subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.mock-card-badge {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
}

/* Timing & Target Top Row */
.mock-top-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 12px;
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    .mock-top-controls-grid {
        grid-template-columns: 1fr;
    }
}

.mock-input-box label,
.mock-destination-box label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mock-suffix-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mock-suffix-wrap input {
    width: 100%;
    padding-right: 36px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 13.5px;
    padding-left: 10px;
}

.mock-suffix-wrap input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    outline: none;
}

.mock-suffix {
    position: absolute;
    right: 10px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    pointer-events: none;
    text-transform: lowercase;
}

.mock-destination-pill {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 7px;
}

.mock-dest-channel {
    color: #38bdf8;
    font-weight: 700;
    font-size: 13px;
    font-family: monospace;
}

.mock-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
}

.mock-pulsing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: mock-pulse 2s infinite;
}

@keyframes mock-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Step Blocks */
.mock-section-block {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px;
}

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

.mock-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-main);
}

.mock-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
    font-size: 11px;
    font-weight: 700;
}

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

/* Service Tabs */
.mock-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    padding: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.mock-service-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
    transition: all 0.18s ease;
    min-width: 0;
}

.mock-service-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.mock-service-tab.active-tab {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.2));
    border-color: #818cf8;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.mock-service-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.mock-service-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    font-size: 15px;
}

.mock-service-emoji svg {
    width: 18px;
    height: 18px;
    display: block;
}

.mock-service-emoji img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.mock-service-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-service-tab .service-badge {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.mock-service-tab.has-countries .service-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.mock-service-tab.active-tab .service-badge {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Countries Section */
.mock-countries-section {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.mock-active-service-highlight {
    color: #38bdf8;
    font-weight: 700;
    margin-left: 2px;
}

.mock-header-actions {
    display: flex;
    gap: 6px;
}

.mock-action-pill {
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.15s ease;
}

.mock-action-all {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.mock-action-all:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #fff;
}

.mock-action-none {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.mock-action-none:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.mock-country-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mock-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 160px;
}

.mock-search-wrap input {
    width: 100%;
    height: 32px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding-left: 28px;
    padding-right: 10px;
    font-size: 12px;
    color: var(--text-main);
}

.mock-search-wrap input:focus {
    border-color: #6366f1;
    outline: none;
}

.mock-search-wrap svg {
    position: absolute;
    left: 8px;
    pointer-events: none;
}

.mock-template-badge-pill {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mock-countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.mock-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12px;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    min-width: 0;
}

.mock-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-1px);
}

.mock-chip.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(56, 189, 248, 0.15));
    border-color: rgba(99, 102, 241, 0.55);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.mock-chip-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    font-size: 14px;
}

.mock-chip-flag img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    box-shadow: 0 0 4px rgba(0,0,0,0.25);
}

.mock-chip-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.mock-chip-check {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 9px;
    transition: all 0.15s ease;
}

.mock-chip.selected .mock-chip-check {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.6);
}

/* Save Config Button */
.mock-save-btn {
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mock-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* ── Card 2: Templates Composer & List ────────────────────────── */
.mock-composer-card {
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 14px;
}

.mock-composer-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.mock-composer-row input {
    flex: 1;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-main);
}

.mock-composer-row input:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.mock-composer-row select {
    min-width: 140px;
    max-width: 180px;
    height: 38px;
    background: #1e293b;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0 10px;
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.mock-composer-row select:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.mock-composer-row select option {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 8px 12px;
}

.mock-composer-row select optgroup {
    background-color: #0f172a;
    color: #94a3b8;
    font-weight: 700;
    font-size: 11px;
}

#mock-custom-service-input {
    min-width: 130px;
    max-width: 160px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #10b981;
    border-radius: 7px;
    padding: 0 10px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}

.mock-btn-add-template {
    height: 38px;
    padding: 0 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 7px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.15s ease;
}

.mock-btn-add-template:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
}

.mock-composer-helpers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mock-code-tag-btn {
    background: rgba(245, 158, 11, 0.12);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.mock-code-tag-btn:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #fbbf24;
    color: #fff;
}

/* Template Filter Bar */
.mock-template-filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.mock-filter-tab {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.mock-filter-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.mock-filter-tab.active-filter {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
}

/* Template Items */
.mock-templates-container {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.2);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.mock-template-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 6px;
    font-size: 12.5px;
    gap: 10px;
    transition: all 0.15s ease;
}

.mock-template-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.mock-template-service-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    display: inline-block;
    text-transform: uppercase;
}

.mock-badge-facebook { background: rgba(59, 130, 246, 0.18); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.mock-badge-instagram { background: rgba(236, 72, 153, 0.18); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.mock-badge-whatsapp { background: rgba(34, 197, 94, 0.18); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.mock-badge-discord { background: rgba(129, 140, 248, 0.18); color: #a5b4fc; border: 1px solid rgba(129, 140, 248, 0.3); }
.mock-badge-tiktok { background: rgba(6, 182, 212, 0.18); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.mock-badge-imo { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.mock-badge-general { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.25); }

.mock-template-text {
    color: #e2e8f0;
    font-size: 12.5px;
    line-height: 1.4;
    word-break: break-word;
}

.mock-code-tag-highlight {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
    font-family: monospace;
    font-size: 11px;
}

.btn-delete-template {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    opacity: 0.7;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-template:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
