:root {
    --orange: #FF6B2B;
    --orange-h: #E85A1A;
    --orange-50: #FFF4EE;
    --orange-100: #FFE4D5;
    --dark: #0F172A;
    --dark2: #1E293B;
    --slate: #334155;
    --muted: #64748B;
    --border: #E2E8F0;
    --bg: #F8FAFC;
    --white: #fff;
    --green: #10B981;
    --green-bg: #ECFDF5;
    --yellow: #F59E0B;
    --yellow-bg: #FFFBEB;
    --red: #EF4444;
    --red-bg: #FEF2F2;
    --blue: #3B82F6;
    --blue-bg: #EFF6FF;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--slate);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
}

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

.btn-outline {
    background: #fff;
    color: var(--slate);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
}

.btn-ghost:hover {
    background: var(--bg);
    color: var(--slate);
}

.btn-danger {
    background: var(--red);
    color: #fff;
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-success {
    background: var(--green);
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12.5px;
}

.btn-lg {
    padding: 12px 26px;
    font-size: 15px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== INPUTS ===== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--dark);
    background: #fff;
    transition: border-color .15s;
    outline: none;
}

.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-100);
    background: #fff;
}

.form-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.form-input-group:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-100);
}

.form-input-group .prefix {
    padding: 10px 12px;
    background: var(--bg);
    color: var(--muted);
    font-size: 13px;
    border-right: 1.5px solid var(--border);
    white-space: nowrap;
}

.form-input-group .suffix {
    padding: 10px 12px;
    background: var(--bg);
    color: var(--muted);
    font-size: 13px;
    border-left: 1.5px solid var(--border);
    white-space: nowrap;
}

.form-input-group input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.form-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.form-success-hint {
    font-size: 12px;
    color: var(--green);
    margin-top: 4px;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-input {
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    border-radius: 6px;
    outline: none;
    z-index: 10;
}

.password-toggle:hover {
    background: var(--bg);
    color: var(--orange);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}

.badge-green {
    background: var(--green-bg);
    color: #059669;
}

.badge-orange {
    background: var(--orange-50);
    color: var(--orange);
}

.badge-blue {
    background: var(--blue-bg);
    color: var(--blue);
}

.badge-red {
    background: var(--red-bg);
    color: var(--red);
}

.badge-yellow {
    background: var(--yellow-bg);
    color: #D97706;
}

.badge-gray {
    background: #F1F5F9;
    color: var(--muted);
}

/* ===== CARD ===== */
.card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ===== TAG ===== */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #F1F5F9;
    color: var(--muted);
}

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12.5px;
    margin: 16px 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===== AVATAR ===== */
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
    padding: 8px;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn .15s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    line-height: 1.4;
}

.dropdown-header .name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--dark);
    display: block;
}

.dropdown-header .email {
    font-size: 11.5px;
    color: var(--muted);
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--slate);
    text-decoration: none;
    transition: all .1s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--bg);
    color: var(--orange);
}

.dropdown-item i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: color .15s;
}

.dropdown-item:hover svg {
    color: var(--orange);
}

.dropdown-menu-lg {
    width: 320px;
}

.dropdown-menu-up {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 12px;
}

.notification-list {
    max-height: 380px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all .15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.notification-item:hover {
    background: var(--bg);
}

.notification-item.unread {
    background: rgba(255, 107, 43, 0.03);
}

.notification-item.unread .notification-title {
    font-weight: 700;
}

.notification-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.notification-text {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: var(--muted);
}

/* ===== CHECKBOX ===== */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-row input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--orange);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== NOTIFICATION DOT ===== */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
}

.dot-yellow {
    background: var(--yellow);
}

.dot-red {
    background: var(--red);
}

/* ===== STATUS BAR ===== */
.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--orange);
    border-radius: 3px;
    transition: width .5s ease;
}

/* ===== COPY FIELD ===== */
.copy-field {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
}

.copy-field span {
    flex: 1;
    padding: 9px 12px;
    color: var(--slate);
    font-family: monospace;
}

.copy-field button {
    padding: 9px 14px;
    background: var(--dark2);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background .15s;
}

.copy-field button:hover {
    background: var(--slate);
}

/* ===== TOAST NOTIFICATIONS ===== */
#toast-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-left: 4px solid var(--orange);
    animation: toast-slide-in .4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.toast.hide {
    animation: toast-hide .4s forwards;
}

@keyframes toast-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-hide {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.9); opacity: 0; }
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -2px;
}

.toast-icon svg {
    width: 18px;
    height: 18px;
}

.toast-message {
    flex: 1;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    padding-right: 12px;
    padding-top: 4px;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all .1s;
    margin-top: 2px;
    margin-right: -6px;
}

.toast-close:hover {
    background: var(--bg);
    color: var(--dark);
}

/* Toast Variants */
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast-warning { border-left-color: var(--yellow); }
.toast-info { border-left-color: var(--blue); }

.toast-success .toast-icon { background: var(--green-bg); color: var(--green); }
.toast-error .toast-icon { background: var(--red-bg); color: var(--red); }
.toast-warning .toast-icon { background: var(--yellow-bg); color: #D97706; }
.toast-info .toast-icon { background: var(--blue-bg); color: var(--blue); }

/* AUTH LAYOUT */
.auth-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

#auth {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
    align-items: stretch;
    display: flex;
}

.auth-hero {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-hero-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
}

.auth-hero-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: var(--orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

.auth-hero-logo span {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
}

.auth-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -.5px;
}

.auth-hero h1 span {
    color: var(--orange);
}

.auth-hero p {
    color: #94A3B8;
    font-size: 16px;
    max-width: 400px;
    margin-bottom: 40px;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #CBD5E1;
    font-size: 14px;
}

.auth-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 107, 43, .15);
    border: 1px solid rgba(255, 107, 43, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.auth-panel {
    width: 480px;
    background: #fff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow: -10px 0 50px rgba(0,0,0,0.05);
}

.auth-panel h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-panel .subtitle {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.tab-row {
    display: flex;
    background: #F1F5F9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted);
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn.active {
    background: #fff;
    color: var(--orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--slate);
    transition: border-color .15s;
}

.social-btn:hover {
    border-color: var(--orange);
}

.auth-footer {
    margin-top: 24px;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
}

.auth-footer a {
    color: var(--orange);
    text-decoration: none;
}

/* APP LAYOUT */
.app-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: width .2s ease;
}

.sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-logo-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo > a {
    display: block;
}

.sidebar-logo-inner .logo-icon {
    width: 34px;
    height: 34px;
    background: var(--orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
}

.sidebar-logo-inner .sidebar-brand-text {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logo-inner .sidebar-brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sidebar-logo-inner .sidebar-brand-slogan {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-brand-text,
.nav-label,
.nav-badge,
.sidebar-user-info,
.nav-section-label {
    transition: opacity .15s ease, width .15s ease, margin .15s ease;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #CBD5E1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .16);
}

.sidebar-toggle-expand-icon {
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 10px;
}

.nav-section-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: .8px;
    padding: 6px 10px;
    margin-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    cursor: pointer;
    color: #94A3B8;
    font-size: 13.5px;
    font-weight: 500;
    transition: all .15s;
    margin-bottom: 2px;
    text-decoration: none;
    position: relative;
}

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

.nav-item.active {
    background: rgba(255, 107, 43, .15);
    color: var(--orange);
}

.nav-item.active .nav-icon svg {
    color: var(--orange);
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    transition: color .15s;
}

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

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

.sidebar-user-info .name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info .email {
    font-size: 11.5px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-layout.sidebar-collapsed .sidebar {
    width: 84px;
}

.app-layout.sidebar-collapsed .sidebar-logo {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.app-layout.sidebar-collapsed .sidebar-logo > a {
    display: flex;
    justify-content: center;
    width: 100%;
}

.app-layout.sidebar-collapsed .sidebar-logo-inner {
    justify-content: center;
}

.app-layout.sidebar-collapsed .sidebar-nav {
    padding-left: 8px;
    padding-right: 8px;
}

.app-layout.sidebar-collapsed .nav-item {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    gap: 0;
}

.app-layout.sidebar-collapsed .sidebar-brand-text,
.app-layout.sidebar-collapsed .nav-label,
.app-layout.sidebar-collapsed .nav-badge,
.app-layout.sidebar-collapsed .sidebar-user-info,
.app-layout.sidebar-collapsed .nav-section-label {
    display: none;
}

.app-layout.sidebar-collapsed .sidebar-user {
    justify-content: center;
    gap: 0;
}

.app-layout.sidebar-collapsed .sidebar-toggle {
    margin-top: 4px;
}

.app-layout.sidebar-collapsed .sidebar-toggle-collapse-icon {
    display: none;
}

.app-layout.sidebar-collapsed .sidebar-toggle-expand-icon {
    display: block;
}

.sidebar-hover-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    background: #0F172A;
    color: #fff;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .28);
    border: 1px solid rgba(148, 163, 184, .18);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%);
    transition: opacity .12s ease, visibility .12s ease;
    z-index: 3000;
}

.sidebar-hover-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.top-bar {
    background: #fff;
    border-bottom: 1.5px solid var(--border);
    padding: 0 28px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.page-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-content {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
}

/* WIZARD STEPS */
.wizard-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wizard-steps {
    background: #fff;
    border-bottom: 1.5px solid var(--border);
    padding: 0 32px;
}

.wizard-steps-inner {
    display: flex;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
    height: 64px;
    align-items: center;
}

.wstep {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
}

.wstep:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 140px);
    height: 2px;
    background: var(--border);
    margin-left: 90px;
}

.wstep.done::after {
    background: var(--orange);
}

.wstep-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    background: #fff;
    flex-shrink: 0;
    z-index: 1;
}

.wstep.active .wstep-circle {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
}

.wstep.done .wstep-circle {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
}

.wstep-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}

.wstep.active .wstep-label {
    color: var(--orange);
}

.wstep.done .wstep-label {
    color: var(--dark);
}

.wizard-body {
    flex: 1;
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.wizard-footer {
    background: #fff;
    border-top: 1.5px solid var(--border);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.wizard-section-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity .2s ease-out;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: scale(0.95);
    transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px 24px 16px;
    text-align: center;
}

.modal-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--red-bg);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.modal-body {
    padding: 0 24px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
}

.modal-footer .btn {
    flex: 1;
    justify-content: center;
}

.modal-warning-box {
    background: var(--red-bg);
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: none;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
}
.modal-warning-box.show {
    display: flex;
}
.modal-warning-icon {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}
.modal-warning-text {
    font-size: 13px;
    color: #991b1b;
    line-height: 1.5;
    font-weight: 500;
}
.modal-confirm-input-wrapper {
    margin-top: 16px;
    text-align: left;
    display: none;
}
.modal-confirm-input-wrapper.show {
    display: block;
}
.modal-confirm-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.modal-confirm-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all .2s;
}
.modal-confirm-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-100);
}

/* ===== GLOBAL RESPONSIVENESS OVERLAY ===== */
/* ===== AUTH RESPONSIVE ===== */
@media (max-width: 991px) {
    .auth-hero {
        display: none;
    }
    .auth-layout {
        justify-content: center;
        background: #f8fafc;
    }
    #auth {
        background: #f8fafc;
        align-items: flex-start;
        padding: 0;
    }
    .auth-panel {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding: 48px 40px;
        justify-content: flex-start;
        padding-top: 60px;
    }
}

@media (max-width: 640px) {
    .auth-panel {
        padding: 40px 24px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-panel {
        padding: 32px 20px;
        min-height: 100vh;
    }
    .auth-panel h2 {
        font-size: 20px;
    }
    .logo-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    .tab-row {
        margin-bottom: 20px;
    }
    .social-btn {
        font-size: 13px;
    }
}

/* ===== APP & DASHBOARD RESPONSIVE ===== */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        left: -240px;
        z-index: 10001;
        box-shadow: 20px 0 50px rgba(0,0,0,0.2);
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .main-area {
        width: 100%;
        min-width: 0;
    }
    .top-bar {
        height: 52px;
        padding: 0 16px;
        gap: 8px;
    }
    .top-bar-right {
        gap: 8px;
    }
    .page-content {
        padding: 20px 16px;
    }
    .hide-desktop {
        display: flex !important;
    }
    .sidebar-open .sidebar {
        left: 0;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(2px);
        z-index: 10000;
        display: none;
        opacity: 0;
        transition: opacity .3s;
    }
    .sidebar-open .sidebar-overlay {
        display: block;
        opacity: 1;
    }
    .page-title {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
    }
    /* Dropdowns: stay within viewport */
    .dropdown-menu {
        right: 0;
        left: auto;
        max-width: calc(100vw - 32px);
    }
    .dropdown-menu-lg {
        width: min(380px, calc(100vw - 32px));
    }
}

@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
    /* Deploy button: compact */
    .header-action-btn {
        white-space: nowrap;
        font-size: 12.5px;
    }
    /* Stats grid: 2 columns */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }
    .stats-grid .card {
        padding: 14px !important;
    }
    /* Table header: stack on mobile */
    .table-header-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 14px 16px !important;
    }
    .table-search-row {
        width: 100% !important;
        min-width: unset !important;
        justify-content: flex-start !important;
    }
    .table-search-row .form-input {
        max-width: 100% !important;
        flex: 1;
    }
    .page-content {
        padding: 16px 12px;
    }
}

@media (max-width: 480px) {
    .card {
        border-radius: 12px;
    }
    .btn {
        padding: 8px 12px;
        font-size: 12.5px;
    }
    /* Stats grid: 1 column */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    /* Top bar */
    .top-bar {
        height: 48px;
        padding: 0 12px;
    }
    .page-title {
        font-size: 14px;
        max-width: 120px;
    }
    /* Deploy button: icon only */
    .header-action-btn {
        padding: 6px 10px;
    }
    .header-action-btn .deploy-label {
        display: none;
    }
    /* Notification dropdown: fixed to viewport */
    .dropdown-menu-lg {
        position: fixed !important;
        top: 60px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
    }
    .page-content {
        padding: 12px 10px;
    }
    /* Table pagination */
    .table-pagination {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}
