* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f0f2f5;
    color: #333;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.sidebar {
    width: 260px;
    background: #1f2937;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #374151;
}

.sidebar-header .logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sidebar-header .merchant-name {
    font-size: 14px;
    color: #9ca3af;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #374151;
    color: white;
}

.nav-item.active {
    background: #667eea;
    color: white;
}

.nav-item span:first-child {
    font-size: 18px;
}

.sidebar-footer {
    border-top: 1px solid #374151;
    padding: 16px 0;
}

.merchant-sidebar {
    width: 276px;
    background: #111827;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.merchant-sidebar .sidebar-header {
    padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sidebar-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #fff;
    background: #2563eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 900;
}

.sidebar-brand strong,
.sidebar-brand small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-brand strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
}

.sidebar-brand small {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
}

.merchant-sidebar .sidebar-nav {
    padding: 10px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.merchant-sidebar .sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar-section {
    margin-bottom: 10px;
}

.sidebar-section-title {
    padding: 6px 12px 5px;
    color: #718096;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.merchant-sidebar .nav-item {
    position: relative;
    gap: 10px;
    margin: 1px 0;
    padding: 8px 12px;
    color: #cbd5e1;
    border-radius: 8px;
}

.merchant-sidebar .nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.merchant-sidebar .nav-item.active {
    color: #fff;
    background: rgba(37,99,235,0.18);
}

.merchant-sidebar .nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: #60a5fa;
    border-radius: 999px;
}

.merchant-sidebar .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1;
}

.merchant-sidebar .nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}

.merchant-sidebar .sidebar-footer {
    padding: 10px 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.sidebar-account-note {
    padding: 6px 12px 8px;
    color: #94a3b8;
    font-size: 12px;
}

.topbar-language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.topbar-language:hover {
    color: #1d4ed8;
    background: #dbeafe;
}

.main-content {
    flex: 0 0 auto;
    margin-left: 260px;
    width: calc(100% - 260px);
    min-width: 0;
    max-width: calc(100% - 260px);
    display: flex;
    flex-direction: column;
}

.topbar {
    background: white;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topbar-left h1 {
    font-size: 22px;
    color: #111;
}

.user-info {
    color: #666;
}

.content {
    flex: 1;
    padding: 30px;
    min-width: 0;
    overflow-x: hidden;
}

.merchant-main-content {
    margin-left: 276px;
    width: calc(100% - 276px);
    max-width: calc(100% - 276px);
}

.merchant-main-content .topbar {
    min-height: 72px;
    padding: 16px 28px;
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.merchant-main-content .topbar-left h1 {
    font-size: 20px;
    font-weight: 850;
}

.merchant-main-content .topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-task-widget {
    position: relative;
}

.topbar-task-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 12px;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.topbar-task-button:hover,
.topbar-task-button[aria-expanded="true"] {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.topbar-task-icon {
    font-size: 15px;
}

.topbar-task-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.topbar-task-menu {
    display: none !important;
}

.topbar-task-menu-head,
.task-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
}

.topbar-task-menu-head a,
.task-panel-head button {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.topbar-task-list {
    max-height: 360px;
    overflow: auto;
}

.task-row {
    position: relative;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.task-row:last-child {
    border-bottom: 0;
}

.task-row-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-right: 26px;
    font-size: 13px;
    font-weight: 800;
}

.task-dismiss-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    color: #64748b;
    background: #f1f5f9;
    font-size: 18px;
    line-height: 20px;
    cursor: pointer;
}

.task-dismiss-btn:hover {
    color: #b91c1c;
    background: #fee2e2;
}

.task-row-meta {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.task-row-eta {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-top: 7px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.task-row-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.task-row-status .btn {
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.task-status-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.task-status-pending,
.task-status-processing {
    color: #1d4ed8;
    background: #dbeafe;
}

.task-status-completed {
    color: #047857;
    background: #d1fae5;
}

.task-status-failed {
    color: #b91c1c;
    background: #fee2e2;
}

.task-mini-progress {
    height: 6px;
    margin-top: 9px;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 999px;
}

.task-mini-progress span {
    display: block;
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
}

.task-status-completed + .task-mini-progress span {
    background: #10b981;
}

.task-status-failed + .task-mini-progress span {
    background: #ef4444;
}

.topbar-task-empty,
.task-panel-empty {
    padding: 18px 14px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.task-panel {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.task-panel-list {
    max-height: 520px;
    overflow: auto;
}

.page-task-center {
    margin: 16px 28px 0;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .08);
    overflow: hidden;
}

.page-task-center-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
}

.page-task-center-head strong {
    margin-right: 10px;
    color: #1e3a8a;
    font-size: 14px;
}

.page-task-center-head span {
    color: #475569;
    font-size: 13px;
}

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

.page-task-center-actions a,
.page-task-center-actions button {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.page-task-center-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #64748b;
    background: #fff;
}

.page-task-center-actions button:hover {
    color: #b91c1c;
    background: #fee2e2;
}

.page-task-center-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-height: 260px;
    overflow: auto;
}

.page-task-center-list .task-row {
    border-right: 1px solid #f1f5f9;
}

.merchant-main-content .content {
    background: #f5f7fb;
}

.content > .container,
.content > .container-fluid {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.table-responsive {
    max-width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.stat-icon {
    font-size: 40px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #111;
}

.stat-label {
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}

/* Unified action button system. Keep new modules on Bootstrap btn variants. */
.btn {
    --xin-btn-bg: #667eea;
    --xin-btn-bg-2: #764ba2;
    --xin-btn-shadow: rgba(102, 126, 234, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    background: linear-gradient(135deg, var(--xin-btn-bg) 0%, var(--xin-btn-bg-2) 100%);
    box-shadow: 0 8px 18px var(--xin-btn-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover,
.btn:focus {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 10px 24px var(--xin-btn-shadow);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px var(--xin-btn-shadow);
}

.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
    pointer-events: none;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

.btn-primary,
.btn-outline,
.btn-outline-primary {
    --xin-btn-bg: #6b6ee8;
    --xin-btn-bg-2: #7a4fb1;
    --xin-btn-shadow: rgba(107, 110, 232, 0.32);
}

.btn-info,
.btn-outline-info {
    --xin-btn-bg: #22c7d9;
    --xin-btn-bg-2: #11a7d8;
    --xin-btn-shadow: rgba(17, 167, 216, 0.30);
}

.btn-success,
.btn-outline-success {
    --xin-btn-bg: #20c997;
    --xin-btn-bg-2: #0ca678;
    --xin-btn-shadow: rgba(12, 166, 120, 0.30);
}

.btn-warning,
.btn-outline-warning {
    --xin-btn-bg: #ffc107;
    --xin-btn-bg-2: #f59f00;
    --xin-btn-shadow: rgba(245, 159, 0, 0.28);
    color: #fff;
}

.btn-warning:hover,
.btn-outline-warning:hover,
.btn-warning:focus,
.btn-outline-warning:focus {
    color: #fff;
}

.btn-danger,
.btn-outline-danger {
    --xin-btn-bg: #ef4444;
    --xin-btn-bg-2: #dc2626;
    --xin-btn-shadow: rgba(239, 68, 68, 0.28);
}

.btn-secondary,
.btn-outline-secondary {
    --xin-btn-bg: #6b7280;
    --xin-btn-bg-2: #4b5563;
    --xin-btn-shadow: rgba(75, 85, 99, 0.24);
}

.btn-action-enter,
.btn-action-primary {
    --xin-btn-bg: #6b6ee8;
    --xin-btn-bg-2: #7a4fb1;
    --xin-btn-shadow: rgba(107, 110, 232, 0.32);
}

.btn-action-enter::before {
    content: "\1F527";
    font-size: 15px;
    line-height: 1;
}

.btn-action-simulate {
    --xin-btn-bg: #22c7d9;
    --xin-btn-bg-2: #11a7d8;
    --xin-btn-shadow: rgba(17, 167, 216, 0.30);
}

.btn-action-simulate::before {
    content: "\1F4AC";
    font-size: 15px;
    line-height: 1;
}

.btn-action-service,
.btn-action-create,
.btn-action-confirm,
.btn-action-restore {
    --xin-btn-bg: #20c997;
    --xin-btn-bg-2: #0ca678;
    --xin-btn-shadow: rgba(12, 166, 120, 0.30);
}

.btn-action-service::before {
    content: "\1F9D1\200D\1F4BC";
    font-size: 15px;
    line-height: 1;
}

.btn-action-create::before {
    content: "\2795";
    font-size: 15px;
    line-height: 1;
}

.btn-action-confirm::before {
    content: "\2705";
    font-size: 15px;
    line-height: 1;
}

.btn-action-restore::before {
    content: "\21A9";
    font-size: 15px;
    line-height: 1;
}

.btn-action-edit {
    --xin-btn-bg: #ffc107;
    --xin-btn-bg-2: #f59f00;
    --xin-btn-shadow: rgba(245, 159, 0, 0.28);
}

.btn-action-edit::before {
    content: "\270F\FE0F";
    font-size: 15px;
    line-height: 1;
}

.btn-action-delete {
    --xin-btn-bg: #ef4444;
    --xin-btn-bg-2: #dc2626;
    --xin-btn-shadow: rgba(239, 68, 68, 0.28);
}

.btn-action-delete::before {
    content: "\1F5D1\FE0F";
    font-size: 15px;
    line-height: 1;
}

.btn-action-secondary {
    --xin-btn-bg: #6b7280;
    --xin-btn-bg-2: #4b5563;
    --xin-btn-shadow: rgba(75, 85, 99, 0.24);
}

.btn-icon {
    width: auto;
    min-width: 0;
}

.action-buttons,
.card-footer.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.action-buttons form,
.card-footer form {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
}

.card-footer.action-buttons .btn {
    flex: 0 0 auto;
}

.card-footer.action-buttons .btn-action-enter,
.card-footer.action-buttons .btn-action-service {
    flex: 1 1 0;
    min-width: 86px;
}

.card-footer.action-buttons.app-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    flex-wrap: initial;
}

.card-footer.app-card-actions .btn-action-enter,
.card-footer.app-card-actions .btn-action-simulate,
.card-footer.app-card-actions .btn-action-service {
    width: 100%;
    min-width: 0;
}

.card-footer.app-card-actions .btn-action-edit,
.card-footer.app-card-actions form {
    width: 100%;
    min-width: 0;
}

.card-footer.app-card-actions .btn-action-delete {
    width: 100%;
}

.card-footer.app-card-actions form {
    display: block;
}

.training-save-form {
    display: block !important;
    width: 100%;
    margin: 0;
}

.training-save-targets {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 12px;
    align-items: center;
}

.training-save-form .form-select,
.training-save-form .form-control {
    width: 100%;
    min-width: 0;
}

.training-save-form .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 520px) {
    .action-buttons,
    .card-footer.action-buttons {
        flex-wrap: wrap;
    }

    .card-footer.action-buttons.app-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .training-save-targets {
        grid-template-columns: 1fr;
    }
}

.btn-link {
    min-height: 0;
    padding: 0;
    color: #667eea;
    background: transparent;
    box-shadow: none;
    font-weight: 600;
}

.btn-link:hover,
.btn-link:focus {
    color: #4f46e5;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.btn-sm,
.btn-small {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.btn-lg {
    min-height: 50px;
    padding: 13px 24px;
    font-size: 16px;
}

.card-footer .btn:not(.btn-sm),
.modal-footer .btn:not(.btn-sm) {
    min-height: 46px;
    padding: 12px 20px;
}

.card-footer .btn {
    flex-shrink: 0;
}

.btn-group .btn {
    border-radius: 8px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.card-body {
    padding: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #667eea;
    outline: none;
}

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.data-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.data-table td {
    color: #4b5563;
}

.data-table tr:hover td {
    background: #f9fafb;
}

.nav-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.nav-tabs .nav-link {
    padding: 12px 24px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    color: #667eea;
}

.nav-tabs .nav-link.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
    margin-bottom: -2px;
}

.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

.style-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.style-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.style-example-box {
    overflow: hidden;
}

.style-example-grid {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(180px, 1.1fr);
    gap: 12px;
    align-items: start;
}

.style-example-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.style-example-actions .btn {
    flex: 1 1 180px;
    min-width: 0;
}

.style-example-code {
    display: block;
    width: 100%;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .style-example-grid {
        grid-template-columns: 1fr;
    }
}

.merchant-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-heading-actions {
    flex: 0 0 auto;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.dashboard-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 132px;
    padding: 22px;
    color: #111827;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-stat-card:hover {
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
}

.dashboard-stat-label,
.dashboard-stat-meta {
    color: #6b7280;
    font-size: 13px;
}

.dashboard-stat-value {
    margin: 8px 0 4px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.dashboard-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 24px;
    background: #eef2ff;
}

.dashboard-stat-success .dashboard-stat-icon {
    background: #d1fae5;
}

.dashboard-stat-warning .dashboard-stat-icon {
    background: #fef3c7;
}

.dashboard-stat-info .dashboard-stat-icon {
    background: #cffafe;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 24px;
}

.dashboard-main-grid-single {
    grid-template-columns: 1fr;
}

.dashboard-panel {
    border: 1px solid #e5e7eb;
}

.dashboard-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-progress-number {
    color: #111827;
    font-size: 24px;
    font-weight: 800;
}

.dashboard-progress {
    height: 10px;
    margin-bottom: 18px;
    overflow: hidden;
    background: #eef2f7;
    border-radius: 999px;
}

.dashboard-progress > div {
    height: 100%;
    background: linear-gradient(135deg, #20c997 0%, #667eea 100%);
    border-radius: inherit;
}

.dashboard-checklist,
.dashboard-recent-list,
.dashboard-action-grid {
    display: grid;
    gap: 10px;
}

.dashboard-check-item,
.dashboard-recent-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: #111827;
    text-decoration: none;
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

.dashboard-check-item:hover,
.dashboard-recent-item:hover {
    color: #111827;
    background: #fff;
    border-color: #dbe3ef;
}

.dashboard-check-icon,
.dashboard-recent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #9ca3af;
    background: #fff;
    border-radius: 10px;
    font-weight: 800;
}

.dashboard-check-icon.is-ready {
    color: #059669;
    background: #d1fae5;
}

.dashboard-check-copy,
.dashboard-recent-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.dashboard-check-copy span,
.dashboard-recent-copy span,
.dashboard-recent-meta span {
    color: #6b7280;
    font-size: 13px;
}

.dashboard-check-copy em {
    color: #667eea;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.dashboard-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-action-grid .btn {
    width: 100%;
}

.dashboard-token-list {
    display: grid;
    gap: 10px;
}

.dashboard-token-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

.dashboard-token-item span {
    color: #6b7280;
    font-size: 13px;
}

.dashboard-token-item strong {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    text-align: right;
}

.dashboard-recent-meta {
    display: grid;
    justify-items: end;
    gap: 3px;
    min-width: 128px;
    color: #111827;
    font-size: 13px;
}

.dashboard-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 36px 16px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 10px;
}

.dashboard-empty-icon {
    font-size: 34px;
}

@media (max-width: 980px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-heading,
    .dashboard-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-heading-actions,
    .dashboard-heading-actions .btn {
        width: 100%;
    }

    .dashboard-action-grid,
    .dashboard-recent-item {
        grid-template-columns: 1fr;
    }

    .dashboard-check-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-recent-meta {
        justify-items: start;
        min-width: 0;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: toastIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.toast-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    .merchant-sidebar {
        width: 232px;
    }
    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
        max-width: calc(100% - 200px);
    }
    .merchant-main-content {
        margin-left: 232px;
        width: calc(100% - 232px);
        max-width: calc(100% - 232px);
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    .content {
        padding: 16px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
