body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%);
    color: #1c2430;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    box-sizing: border-box;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(247, 249, 252, 0.9);
    backdrop-filter: blur(8px);
    z-index: 30;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1c2430;
}

.site-brand img {
    width: 36px;
    height: auto;
}

.lang-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid #d9e2ef;
    background: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7a90;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-wrap {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d9e2ef;
}

.user-avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d9e2ef;
}

.site-footer {
    margin-top: 32px;
    padding: 16px 0 8px;
    font-size: 12px;
    color: #6b7a90;
}

.page-logo-left {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 48px;
    height: auto;
    z-index: 20;
}

@media (max-width: 600px) {
    .page-logo-left {
        top: 12px;
        left: 12px;
        width: 40px;
    }
}

body.admin {
    background: #f5f7fb;
    display: block;
    padding: 0;
    align-items: initial;
    justify-content: initial;
}

.page-header {
    position: fixed;
    top: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    color: #1c2430;
}

.page-logo {
    width: 160px;
    height: auto;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

.sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e6ecf5;
    padding: 24px 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.sidebar h2 {
    margin: 0 0 18px;
    font-size: 16px;
    color: #6b7a90;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu a {
    text-decoration: none;
    color: #1c2430;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid transparent;
    font-weight: 600;
}

.menu a:hover {
    background: #e2e8f0;
    border-color: #d9e2ef;
}

.menu a.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.menu-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.content {
    flex: 1;
    padding: 32px;
}

.content-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid #e6ecf5;
}

.login-brand {
    text-align: center;
    margin-bottom: 22px;
    width: 100%;
}

.login-brand-title {
    font-size: 64px;
    font-weight: 800;
    color: #1c2430;
    letter-spacing: -2px;
}

.login-brand-subtitle {
    font-size: 26px;
    color: #6b7a90;
    margin-top: 10px;
}

.social-header {
    text-align: center;
    font-size: 13px;
    color: #6b7a90;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.social-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 18px;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-separator::before,
.social-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.social-btn {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #1c2430;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
    background: #f8fafc;
    box-shadow: 0 10px 24px rgba(26, 38, 54, 0.08);
    transform: translateY(-1px);
}

.social-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon.google,
.social-icon.apple,
.social-icon.telegram {
    background: transparent;
    border: none;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(26, 38, 54, 0.12);
    border: 1px solid #e6ecf5;
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    justify-content: center;
    text-align: center;
}

.auth-header > div {
    width: 100%;
}

.auth-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #3b82f6;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 700;
}

.auth-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.auth-subtitle {
    margin: 6px 0 0;
    color: #6b7a90;
    font-size: 14px;
    text-align: center;
}

label {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6b7a90;
    margin-bottom: 6px;
}

input,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d9e2ef;
    background: #f8fafc;
    color: #1c2430;
    margin-bottom: 12px;
    box-sizing: border-box;
}

input:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
    background: #ffffff;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.field-row label {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7a90;
}

.field-row input[type="checkbox"] {
    width: auto;
    margin: 0 6px 0 0;
}

.field-row .field-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tag-input {
    width: 100%;
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid #d9e2ef;
    background: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.tag-input input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #1c2430;
    padding: 4px 4px;
    width: auto;
    min-width: 80px;
    flex: 1;
    margin: 0;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.tag-remove {
    border: none;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.sim-number-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #d9e2ef;
    margin-bottom: 16px;
}

.sim-number-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7a90;
}

.sim-number {
    font-size: 28px;
    font-weight: 700;
    color: #1c2430;
    letter-spacing: 2px;
}

#smsBox {
    width: 100%;
    min-height: 160px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d9e2ef;
    background: #f8fafc;
    color: #1c2430;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

.modal-box h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #1c2430;
}

.modal-box p {
    margin: 0 0 20px;
    color: #6b7a90;
    font-size: 14px;
}

.callback-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 16px 40px;
    box-sizing: border-box;
}

.balance-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 16px 40px;
    box-sizing: border-box;
}

.amount-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.amount-btn {
    flex: 1 1 auto;
    min-width: 70px;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #d9e2ef;
    background: #f8fafc;
    color: #1c2430;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.amount-btn:hover {
    border-color: #3b82f6;
}

.amount-btn.active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.custom-amount-row {
    margin-bottom: 12px;
}

.selected-amount {
    padding: 10px 14px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1c2430;
    font-size: 14px;
    margin-bottom: 4px;
}

.billing-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.tx-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7a90;
    padding: 6px 8px;
    border-bottom: 1px solid #e6ecf5;
}

.tx-table td {
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
    color: #1c2430;
}

.tx-amount {
    font-weight: 600;
    text-align: right;
}

.tx-pos { color: #16a34a; }
.tx-neg { color: #ef4444; }

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 16px;
}

.users-table th,
.users-table td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid #e6ecf5;
}

.users-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7a90;
    background: #f8fafc;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.loading-spinner {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    min-width: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f4f6;
    border-top: 5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    margin: 0;
    color: #1c2430;
    font-size: 16px;
    font-weight: 500;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px;
    min-width: 300px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: white;
}

.custom-select {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.select-display {
    padding: 12px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    min-height: 24px;
}

.select-display:after {
    content: '▼';
    position: absolute;
    right: 12px;
    color: #6b7a90;
}

.select-display.open:after {
    content: '▲';
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d9e2ef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.select-option {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.select-option:hover {
    background: #f8fafc;
}

.select-option.selected {
    background: #eff6ff;
    color: #1d4ed8;
}

.custom-select .select-option img,
.select-option img {
    height: 16px !important;
    max-height: 16px !important;
    min-height: 16px !important;
    width: auto !important;
    max-width: 32px !important;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
}

.select-option .option-text {
    flex: 1;
}

.select-option .option-price {
    color: #059669;
    font-weight: 500;
    font-size: 0.9em;
    margin-left: 8px;
}

.listbox-filter {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #d9e2ef;
    border-radius: 4px;
    font-size: 14px;
}

.custom-listbox {
    border: 1px solid #d9e2ef;
    border-radius: 4px;
    background: white;
    height: 150px;
    overflow-y: auto;
}

.listbox-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.listbox-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.listbox-option:hover {
    background: #f8fafc;
}

.listbox-option.selected {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
}

.listbox-option img {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 2px;
}

.listbox-option .option-text {
    flex: 1;
}

.listbox-option .option-price {
    color: #059669;
    font-weight: 500;
    font-size: 0.9em;
    margin-left: 8px;
}

.content-header {
    margin-bottom: 32px;
}

.content-header h1 {
    margin: 0 0 8px 0;
    color: #1a202c;
    font-size: 2rem;
    font-weight: 600;
}

.content-header p {
    margin: 0;
    color: #718096;
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.card-icon.new-sms {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-icon.total-sms {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.card-info h3 {
    margin: 0 0 4px 0;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-count {
    margin: 0;
    color: #1a202c;
    font-size: 2rem;
    font-weight: 700;
}

.card-body {
    margin-top: 12px;
}

.card-description {
    margin: 0 0 16px 0;
    color: #718096;
    font-size: 0.9rem;
}

.card-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.card-link:hover {
    color: #2c5aa0;
}

.dashboard-section {
    margin-bottom: 32px;
}

.dashboard-section h2 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.quick-action {
    display: flex;
    align-items: center;
    padding: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.2s;
}

.quick-action:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    background: #edf2f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #4a5568;
}

.quick-action span {
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }
}

.selection-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.selection-group {
    flex: 1;
}

.selection-group label {
    display: block;
    margin-bottom: 8px;
}

.selection-group select {
    width: 100%;
}

.selection-group select option:checked {
    background-color: #3b82f6;
    color: white;
}

.selection-group select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.selection-group input[type="text"] {
    width: 100%;
}

/* Mobile: stack verticalmente */
@media (max-width: 768px) {
    .selection-container {
        flex-direction: column;
        gap: 16px;
    }
}

.toast-info .toast-icon {
    background: #3b82f6;
}

.toast-success .toast-icon {
    background: #22c55e;
}

.toast-error .toast-icon {
    background: #ef4444;
}

.toast-message {
    flex: 1;
    color: #1c2430;
    font-size: 14px;
}

.action-btn {
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    margin-right: 4px;
    color: #6b7a90;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f1f5f9;
    transform: scale(1.1);
}

.action-delete {
    color: #ef4444;
}

.action-delete:hover {
    background: #fef2f2;
    color: #dc2626;
}

.action-resend {
    color: #3b82f6;
}

.action-resend:hover {
    background: #eff6ff;
    color: #2563eb;
}

.sms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 16px;
}

.sms-table th,
.sms-table td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid #e6ecf5;
    vertical-align: top;
}

.sms-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7a90;
    background: #f8fafc;
    position: sticky;
    top: 0;
}

.sms-unread {
    background: #f0f9ff;
}

.sms-unread .message-cell {
    font-weight: 600;
}

.sms-read {
    background: white;
    color: #6b7a90;
}

.message-bold {
    font-weight: 600;
}

.message-cell {
    max-width: 400px;
    word-wrap: break-word;
    line-height: 1.4;
}

.sms-status {
    font-size: 16px;
    display: inline-block;
}

.sms-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sms-filters select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d9e2ef;
    background: white;
    font-size: 14px;
    margin: 0;
}

.action-view {
    color: #3b82f6;
}

.action-view:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.sms-details {
    margin: 20px 0;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.detail-row label {
    font-weight: 600;
    color: #374151;
    width: 120px;
    flex-shrink: 0;
}

.detail-row span {
    flex: 1;
    color: #1f2937;
}

.message-content {
    flex: 1;
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
}

.table-actions {
    white-space: nowrap;
}

.table-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #1c2430;
    cursor: pointer;
    margin-right: 6px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    width: auto;
}

.table-btn:hover {
    background: #f8fafc;
}

.btn-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-danger:hover {
    background: #fef2f2;
}

.btn-small {
    font-size: 11px;
    padding: 4px 8px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-disabled {
    background: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-right: 8px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.2s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #3b82f6;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.stripe-card-element {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d9e2ef;
    background: #f8fafc;
}

.stripe-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
}

.btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #3b82f6;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: #2563eb;
}

.message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    background: #f1f5f9;
    color: #1c2430;
}

.actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.actions button {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #1c2430;
    cursor: pointer;
}

.actions button:hover {
    background: #e2e8f0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    margin-right: 4px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #1c2430;
    border-radius: 2px;
    display: block;
    transition: all 0.2s;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 40;
}

.sidebar-backdrop.visible {
    display: block;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .site-brand span {
        font-size: 14px;
    }

    .admin-layout {
        flex-direction: column;
        padding-top: 64px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 240px;
        height: 100vh;
        z-index: 50;
        padding-top: 72px;
        border-right: 1px solid #e6ecf5;
        overflow-y: auto;
        transition: left 0.25s ease;
        box-shadow: none;
    }

    .sidebar.open {
        left: 0;
        box-shadow: 4px 0 20px rgba(15, 23, 42, 0.12);
    }

    .content {
        padding: 16px;
    }

    .content-card {
        max-width: 100% !important;
    }

    .amount-grid {
        gap: 8px;
    }

    .amount-btn {
        min-width: 56px;
        padding: 10px 6px;
        font-size: 14px;
    }

    .sim-number {
        font-size: 22px;
    }

    .login-brand-title {
        font-size: 40px;
    }

    .login-brand-subtitle {
        font-size: 18px;
    }

    .auth-card {
        padding: 20px 16px;
    }

    .site-header {
        padding: 10px 16px;
    }

    .tx-table th,
    .tx-table td {
        padding: 6px 4px;
        font-size: 12px;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: auto;
        border-right: none;
        border-bottom: 1px solid #e6ecf5;
    }
}
