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

.admin-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.admin-switch input {
    display: none;
}

.admin-switch span {
    width: 46px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    transition: 0.2s ease;
}

.admin-switch span::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    left: 3px;
    top: 3px;
    box-shadow: var(--shadow);
    transition: 0.2s ease;
}

.admin-switch input:checked + span {
    background: linear-gradient(135deg, #2563eb, #22c55e);
}

.admin-switch input:checked + span::after {
    transform: translateX(22px);
}

.affiliate-admin-grid,
.legal-pages-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.affiliate-inline-form {
    display: grid;
    grid-template-columns: 120px minmax(150px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.affiliate-inline-form select,
.affiliate-inline-form input,
.legal-page-item,
.html-editor-toolbar button {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.affiliate-inline-form select,
.affiliate-inline-form input {
    min-height: 38px;
    padding: 8px 10px;
}

.legal-pages-grid {
    display: grid;
    gap: 18px;
}

.legal-page-list {
    padding: 0;
    overflow: hidden;
}

.legal-page-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px 14px;
    padding: 12px;
    color: var(--text-dark);
    text-decoration: none;
    transition: 0.2s ease;
}

.legal-page-item span {
    color: var(--text-light);
    font-size: 12px;
}

.legal-page-item.active,
.legal-page-item:hover {
    border-color: #60a5fa;
    background: #eff6ff;
}

.legal-editor-card {
    padding: 0;
    overflow: hidden;
}

.legal-html-editor {
    min-height: 420px;
    font-family: Consolas, Monaco, monospace;
    line-height: 1.55;
}

.html-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.html-editor-toolbar button {
    min-height: 34px;
    padding: 0 12px;
    font-weight: 700;
    color: #1e40af;
    cursor: pointer;
}

.legal-publish-toggle {
    justify-content: space-between;
}

.coupon-editor-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 18px;
}

.coupon-product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px;
    max-height: 260px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.coupon-product-list label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
}

.coupon-product-list small {
    color: var(--text-light);
    margin-left: 4px;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .affiliate-admin-grid,
    .legal-pages-grid {
        grid-template-columns: 1fr;
    }

    .affiliate-inline-form {
        grid-template-columns: 1fr;
    }
}

:root {
    --primary: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #E8F1F8;
    --secondary: #50C878;
    --danger: #E74C3C;
    --warning: #F39C12;
    --dark-bg: #0F1419;
    --darker-bg: #1A1F2E;
    --light-bg: #F5F7FA;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========================================
   LOGIN PAGE - PREMIUM DESIGN
   ======================================== */

.login-wrapper {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    color: white;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(80, 200, 120, 0.05) 100%);
}

.login-brand {
    text-align: center;
    margin-bottom: 60px;
}

.brand-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.login-brand h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #4A90E2 0%, #50C878 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-brand p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(80, 200, 120, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #50C878;
    font-size: 20px;
    flex-shrink: 0;
}

.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: white;
}

.login-card {
    width: 100%;
    max-width: 420px;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-header {
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-header p {
    font-size: 16px;
    color: var(--text-light);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    background: #FEE;
    border: 1px solid #FCC;
    color: #C33;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-text {
    font-size: 14px;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-page-grid {
    gap: 14px;
}
.settings-block-card {
    padding: 0;
    overflow: hidden;
}
.settings-block-body {
    padding: 14px;
}
.settings-preview-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.settings-logo-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
}
.settings-favicon-preview {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.logo-img {
    width: 100%;
    height: 44px;
    max-width: 150px;
    max-height: 44px;
    border-radius: 8px;
    object-fit: contain;
    flex: 0 1 150px;
    display: block;
    background: rgba(255, 255, 255, 0.08);
}

.login-brand-logo {
    width: 86px;
    height: 86px;
    max-width: 86px;
    max-height: 86px;
    border-radius: 16px;
    object-fit: contain;
    display: block;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.brand-icon:has(.login-brand-logo) {
    display: inline-grid;
    place-items: center;
    width: 104px;
    height: 104px;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
}

.settings-logo-preview {
    max-width: 160px;
    max-height: 72px;
    object-fit: contain;
    background: #fff;
}

.settings-favicon-preview {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.label-icon {
    font-size: 16px;
}

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

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #FAFBFC;
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.input-wrapper.focused .form-input {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.toggle-password-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: transform 0.2s;
    color: var(--text-light);
}

.toggle-password-btn:hover {
    transform: scale(1.15);
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-direction: row;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: white;
}

.remember-me input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.remember-me input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.remember-me label {
    margin: 0;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--primary-dark);
}

.btn-login {
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(74, 144, 226, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-text {
    flex: 1;
}

.btn-icon {
    font-size: 18px;
}

.login-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

.login-footer p {
    margin: 4px 0;
    line-height: 1.4;
}

.login-footer strong {
    color: var(--primary);
    font-weight: 600;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-light);
}

.badge-icon {
    font-size: 16px;
}

.badge-text {
    font-weight: 500;
}

/* ========================================
   DASHBOARD - PREMIUM DESIGN
   ======================================== */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--light-bg);
}

.sidebar {
    width: 212px;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: white;
    padding: 10px 8px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: width 0.25s ease, padding 0.25s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 6px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    min-width: 0;
    flex: 1;
}

.sidebar-compact-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-compact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    background: linear-gradient(135deg, #4A90E2, #50C878);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 6px;
}

.sidebar-menu > .menu-group,
.sidebar-menu > .menu-item {
    position: relative;
}

.sidebar-menu > .menu-group + .menu-group,
.sidebar-menu > .menu-item + .menu-group,
.sidebar-menu > .menu-group + .menu-item {
    margin-top: 0;
    padding-top: 0;
}

.sidebar-menu > .menu-group + .menu-group::before,
.sidebar-menu > .menu-item + .menu-group::before,
.sidebar-menu > .menu-group + .menu-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10px;
    right: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 0;
}

.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.menu-toggle {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(1px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 18px rgba(5, 10, 20, 0.2), 0 0 0 1px rgba(74, 144, 226, 0.06);
}

.menu-item.active {
    background: #ffffff;
    color: #111111;
    border: none;
    box-shadow: none;
}

.menu-item.active::before {
    display: none;
}

.menu-icon {
    width: 22px;
    height: 22px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    flex-shrink: 0;
}

.menu-icon-svg {
    width: 12px;
    height: 12px;
}

.menu-item.active .menu-icon,
.menu-toggle.active .menu-icon {
    background: #f2f2f2;
    color: #111111;
}

.menu-item.active .menu-arrow,
.menu-toggle.active .menu-arrow,
.menu-item.active .menu-text,
.menu-toggle.active .menu-text {
    color: #111111;
}

.menu-text {
    flex: 1;
}

.menu-arrow {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.25s ease;
}

.menu-group.open .menu-arrow {
    transform: rotate(180deg);
}

.submenu {
    position: relative;
    max-height: 0;
    overflow: hidden;
    margin: 2px 0 1px 28px;
    padding: 4px 0 0 8px;
    transition: max-height 0.25s ease;
}

.submenu::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 1px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(74, 144, 226, 0) 0%, rgba(74, 144, 226, 0.34) 16%, rgba(255, 255, 255, 0.16) 50%, rgba(80, 200, 120, 0.28) 84%, rgba(80, 200, 120, 0) 100%);
}

.menu-group.open .submenu {
    max-height: 220px;
}

.submenu-item {
    display: block;
    padding: 5px 6px;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 10.5px;
    margin-bottom: 1px;
    transition: background 0.2s ease, color 0.2s ease;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(2px);
}

.submenu-item.active {
    background: transparent;
    color: #ffbf00;
    font-weight: 700;
}

.menu-toggle.active {
    background: #ffffff;
    color: #111111;
    border: none;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #E74C3C;
    color: white;
    border: 1px solid #E74C3C;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
}

.logout-btn:hover {
    background: #cc3d2f;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.main-content {
    margin-left: 212px;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
}

.dashboard-container.compact .sidebar {
    width: 68px;
    padding: 12px 8px;
}

.dashboard-container.compact .main-content {
    margin-left: 68px;
}

.dashboard-container.compact .logo-text,
.dashboard-container.compact .menu-text,
.dashboard-container.compact .menu-arrow,
.dashboard-container.compact .submenu,
.dashboard-container.compact .logout-btn span:not(.btn-icon) {
    display: none;
}

.dashboard-container.compact .sidebar-logo {
    justify-content: center;
}

.dashboard-container.compact .menu-item,
.dashboard-container.compact .logout-btn {
    justify-content: center;
    padding: 8px;
}

.dashboard-container.compact .menu-item.active {
    border-left: none;
}

.dashboard-container.compact .menu-item.active::before {
    display: none;
}

.top-bar {
    background: white;
    padding: 20px 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.toggle-sidebar-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    transition: transform 0.2s;
}

.toggle-sidebar-btn:hover {
    transform: scale(1.1);
}

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

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

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 15px 10px 40px;
    border: 2px solid var(--border);
    border-radius: 8px;
    width: 280px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #FAFBFC;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: var(--text-light);
}

.notification-container {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.notification-btn:hover {
    transform: scale(1.1);
}

.notification-icon {
    display: block;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid white;
}

.admin-profile {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-dark);
}

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

.avatar {
    font-size: 24px;
}

.profile-name {
    font-size: 14px;
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-light);
    transition: transform 0.3s;
}

.profile-btn:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: none;
    flex-direction: column;
    padding: 0;
    margin-top: 15px;
    z-index: 1001;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

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

.profile-menu.active {
    display: flex;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary-light);
    border-bottom: 1px solid var(--border);
}

.menu-avatar {
    font-size: 32px;
}

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

.menu-name {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    font-size: 14px;
}

.menu-email {
    color: var(--text-light);
    margin: 4px 0 0 0;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu-divider {
    height: 1px;
    background: var(--border);
}

.profile-menu-item {
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-menu-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.profile-menu-item.danger {
    color: var(--danger);
}

.profile-menu-item.danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

.dashboard-content {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
    background: #F8F9FB;
}

/* Premium welcome */
.welcome-section-premium {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 12px;
    padding: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.welcome-left {
    flex: 1;
}

.greeting {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 5px;
}

.doctor-name {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
}

.doctor-title {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 25px;
}

.quick-stats-horizontal {
    display: flex;
    gap: 30px;
}

.quick-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.stat-text {
    font-size: 13px;
    opacity: 0.8;
}

.welcome-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-avatar {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.admin-info {
    text-align: right;
}

.admin-role {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.admin-status {
    font-size: 13px;
    opacity: 0.7;
    margin: 4px 0 0 0;
}

/* Premium cards */
.stats-cards-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card-premium {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 5px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.stat-card-blue { border-left-color: #4A90E2; }
.stat-card-pink { border-left-color: #E8537F; }
.stat-card-green { border-left-color: #50C878; }
.stat-card-orange { border-left-color: #F39C12; }

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stat-card-header h4 {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    margin: 0;
}

.stat-icon {
    font-size: 24px;
}

.stat-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.stat-big-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-change {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

.stat-change.positive {
    color: #50C878;
    font-weight: 600;
}

/* Charts */
.charts-section-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.chart-icon {
    font-size: 20px;
}

.chart-container {
    height: 250px;
    margin-bottom: 16px;
}

.chart-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dark);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-dot.scheduled { background: #4A90E2; }
.legend-dot.completed { background: #50C878; }
.legend-dot.cancelled { background: #E74C3C; }

.performance-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.perf-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.perf-label {
    font-size: 12px;
    color: var(--text-light);
}

.perf-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.right-panel-stats {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.right-panel-header {
    margin-bottom: 20px;
}

.right-panel-header h3 {
    margin: 0;
    font-size: 18px;
}

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

.metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F3F6FB;
    border-radius: 10px;
    padding: 16px;
}

.metric-icon {
    font-size: 24px;
}

.metric-details {
    flex: 1;
}

.metric-label {
    margin: 0;
    font-size: 12px;
    color: var(--text-light);
}

.metric-value {
    margin: 3px 0;
    font-size: 22px;
    font-weight: 800;
}

.metric-subtext {
    margin: 0;
    font-size: 11px;
    color: var(--text-light);
}

.metric-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid #FF6B6B;
    color: #FF6B6B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.activity-section-premium {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-top: 24px;
}

.activity-section-premium h3 {
    margin: 0 0 16px 0;
}

.activity-list-premium {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item-premium {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F8FAFD;
    border-radius: 10px;
    padding: 14px;
}

.activity-icon-premium {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon-premium.success { background: #E8F8EF; color: #18A15F; }
.activity-icon-premium.info { background: #EAF3FF; color: #2B7DE9; }
.activity-icon-premium.warning { background: #FFF3E6; color: #F39C12; }

.activity-details-premium {
    flex: 1;
}

.activity-title-premium {
    margin: 0;
    font-weight: 600;
}

.activity-time-premium {
    margin: 3px 0 0 0;
    color: var(--text-light);
    font-size: 12px;
}

.activity-tag {
    background: #EAF8EF;
    color: #1EAE66;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.activity-tag.info-tag {
    background: #EBF4FF;
    color: #2B7DE9;
}

.activity-tag.warning-tag {
    background: #FFF4E6;
    color: #E48B1E;
}

.books-module-wrap {
    padding-top: 4px;
}

.module-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.module-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f3652;
}

.module-subtitle {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: #6d8298;
}

.module-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-module {
    border: none;
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-module-primary {
    background: linear-gradient(135deg, #4A90E2 0%, #7A5AF8 100%);
    color: #fff;
}

.btn-module-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(84, 112, 236, 0.3);
}

.btn-module:disabled,
.btn-module-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-module-light {
    background: linear-gradient(135deg, #f3f8ff 0%, #edf4ff 100%);
    color: #345c88;
    border: 1px solid #d7e5f8;
}

.btn-module-light:hover {
    background: linear-gradient(135deg, #ebf3ff 0%, #e3eeff 100%);
}

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

.module-alert-success {
    background: #eaf8ef;
    color: #1f8a51;
    border: 1px solid #bfe8ce;
}

.module-alert-error {
    background: #ffefef;
    color: #b83333;
    border: 1px solid #ffc9c9;
}

.books-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.module-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.module-widget-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e3ecf8;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(18, 43, 74, 0.06);
    position: relative;
    overflow: hidden;
}

.module-widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4A90E2 0%, #7A5AF8 100%);
}

.module-widget-card p {
    margin: 0;
    font-size: 11px;
    color: #6f839a;
}

.module-widget-card h3 {
    margin: 5px 0 0 0;
    line-height: 1;
    font-size: 20px;
    color: #203a58;
}

.book-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    border-radius: 10px;
    padding: 10px 11px;
    box-shadow: 0 2px 10px rgba(13, 33, 58, 0.06);
    border: 1px solid #e8eef8;
}

.book-stat-card:nth-child(1) { border-left: 3px solid #4A90E2; }
.book-stat-card:nth-child(2) { border-left: 3px solid #16A34A; }
.book-stat-card:nth-child(3) { border-left: 3px solid #7A5AF8; }
.book-stat-card:nth-child(4) { border-left: 3px solid #F59E0B; }
.book-stat-card:nth-child(5) { border-left: 3px solid #EF4444; }
.book-stat-card:nth-child(6) { border-left: 3px solid #06B6D4; }

.book-stat-card p {
    margin: 0;
    font-size: 11px;
    color: var(--text-light);
}

.book-stat-card h3 {
    margin: 4px 0 0 0;
    font-size: 20px;
    line-height: 1;
    color: #213a57;
}

.table-card-module {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(13, 33, 58, 0.08);
    border: 1px solid #edf1f8;
    overflow: hidden;
}

.table-responsive-module {
    width: 100%;
    overflow-x: auto;
}

.module-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.module-table thead th {
    background: linear-gradient(135deg, #f2f7ff 0%, #eef5ff 100%);
    color: #3f5b78;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 10px 9px;
    border-bottom: 1px solid #e7eef8;
}

.module-table tbody td {
    font-size: 11px;
    color: #23384d;
    padding: 9px 9px;
    border-bottom: 1px solid #eff3f9;
    vertical-align: middle;
}

.module-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fbff 0%, #f4f9ff 100%);
}

.book-title-cell {
    font-weight: 600;
    color: #1a3654;
}

.table-description-text {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    color: #6b7280;
    white-space: normal;
}

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.status-active {
    background: #eaf8ef;
    color: #1f8a51;
}

.status-inactive {
    background: #fff1f1;
    color: #bf3b3b;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-radius: 999px;
}

.status-chip.is-active {
    background: #eaf8ef;
    color: #1f8a51;
}

.status-chip.is-inactive {
    background: #fff1f1;
    color: #bf3b3b;
}

.inline-action-form {
    display: inline-flex;
}

.btn-status-toggle {
    border: none;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    border-radius: 0;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn-status-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
}

.btn-status-toggle.turn-on {
    background: #1f8a51;
}

.btn-status-toggle.turn-off {
    background: #e74c3c;
}

.btn-table-edit {
    border: 1px solid #ccddf7;
    background: linear-gradient(135deg, #eef5ff 0%, #e9f1ff 100%);
    color: #215b98;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
}

.btn-table-edit:hover {
    background: linear-gradient(135deg, #e5f0ff 0%, #dce9ff 100%);
}

.table-action-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-table-view {
    border: 1px solid #d6dbe3;
    background: #f5f7fb;
    color: #1f2937;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
}

.btn-table-view:hover {
    background: #edf2fa;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef5ff;
    color: #1f5d9b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.module-modal-md {
    max-width: 620px;
}

.subcategory-view-wrap {
    padding: 12px 14px 14px;
}

.compact-modal-table-wrap {
    max-height: 360px;
    overflow: auto;
}

.compact-modal-table {
    min-width: 100%;
    width: 100%;
    table-layout: fixed;
}

.compact-modal-table thead th,
.compact-modal-table tbody td {
    font-size: 10px;
    padding: 7px 8px;
}

.compact-modal-table thead th:first-child,
.compact-modal-table tbody td:first-child {
    width: 68px;
}

.compact-modal-table thead th:last-child,
.compact-modal-table tbody td:last-child {
    width: auto;
    white-space: normal;
    word-break: break-word;
}

.empty-cell {
    text-align: center;
    color: #7c8fa3;
    font-size: 13px;
    padding: 28px 10px !important;
}

.module-modal {
    position: fixed;
    inset: 0;
    background: rgba(14, 23, 36, 0.5);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 18px;
}

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

.module-modal-card {
    width: 100%;
    max-width: 760px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 46px rgba(6, 16, 28, 0.25);
    border: 1px solid #dfe9f6;
    overflow: hidden;
}

.module-modal-card-xl {
    max-width: 980px;
    max-height: 90vh;
    overflow: auto;
}

.module-modal-sm {
    max-width: 430px;
}

.module-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    border-bottom: 1px solid #e9eff7;
    background: linear-gradient(135deg, #f7faff 0%, #f2f7ff 100%);
}

.module-modal-head h3 {
    margin: 0;
    font-size: 15px;
    color: #1d3450;
}

.module-close {
    border: none;
    background: #f0f4fa;
    color: #40566e;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.module-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 13px 13px;
}

.module-form-grid-compact {
    gap: 9px;
    padding: 10px 12px 12px;
}

.module-form-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #2f4f70;
    background: linear-gradient(135deg, #f3f8ff 0%, #ecf4ff 100%);
    border: 1px solid #e5edf8;
    border-radius: 8px;
    padding: 7px 9px;
    margin-top: 4px;
}

.module-form-single {
    grid-template-columns: 1fr;
}

.module-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.module-form-field-full {
    grid-column: 1 / -1;
}

.module-form-field label {
    font-size: 11px;
    font-weight: 600;
    color: #3f5974;
}

.module-form-field input,
.module-form-field select {
    height: 34px;
    border: 1px solid #d9e3f0;
    border-radius: 8px;
    padding: 0 11px;
    font-size: 12px;
    color: #1f3348;
    background: #fbfdff;
}

.module-form-field input:focus,
.module-form-field select:focus {
    outline: none;
    border-color: #6ea5df;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
    background: #fff;
}

.module-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2px;
}

.module-help-text {
    font-size: 11px;
    color: #7a8da1;
}

.module-help-text-error {
    color: #bf3b3b;
}

.module-help-text-success {
    color: #1f8a51;
}

.module-textarea {
    min-height: 72px;
    padding: 8px 10px;
    border: 1px solid #d9e3f0;
    border-radius: 8px;
    font-size: 12px;
    color: #1f3348;
    background: #fbfdff;
    resize: vertical;
}

.settings-switch-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    font-weight: 800;
    color: #17233a;
}

.settings-switch-line input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-switch-line span {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d9e3f0;
    position: relative;
    transition: 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(30, 41, 59, 0.08);
}

.settings-switch-line span::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    left: 3px;
    top: 3px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    transition: 0.2s ease;
}

.settings-switch-line input:checked + span {
    background: linear-gradient(135deg, #111827, #2563eb);
}

.settings-switch-line input:checked + span::after {
    transform: translateX(18px);
}

.orders-admin-grid {
    display: grid;
    gap: 14px;
}

.admin-order-card {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.admin-order-head,
.admin-order-lines div,
.admin-order-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-order-head strong {
    display: block;
    color: #17233a;
}

.admin-order-head small,
.admin-order-lines em,
.admin-order-summary span {
    color: #6f8195;
    font-size: 12px;
    font-style: normal;
}

.admin-order-head > span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
}

.admin-order-lines {
    display: grid;
    gap: 6px;
    margin: 12px 0;
    padding: 10px 0;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.admin-order-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.admin-order-form input,
.admin-order-form select,
.admin-order-form textarea {
    min-height: 38px;
    border: 1px solid #d9e3f0;
    border-radius: 8px;
    padding: 0 10px;
}

.admin-order-form textarea {
    grid-column: span 2;
    padding-top: 10px;
    min-height: 40px;
}

@media (max-width: 900px) {
    .admin-order-form {
        grid-template-columns: 1fr;
    }

    .admin-order-form textarea {
        grid-column: auto;
    }
}

.module-textarea:focus {
    outline: none;
    border-color: #6ea5df;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
    background: #fff;
}

.dynamic-points-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.dynamic-point-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dynamic-point-row input {
    flex: 1;
    height: 34px;
    border: 1px solid #d9e3f0;
    border-radius: 8px;
    padding: 0 11px;
    font-size: 12px;
    background: #fbfdff;
}

.dynamic-point-row input:focus {
    outline: none;
    border-color: #6ea5df;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
    background: #fff;
}

.btn-point-remove {
    width: 28px;
    height: 28px;
    border: 1px solid #ffd1d1;
    background: #fff3f3;
    color: #b83c3c;
    border-radius: 7px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.table-logo-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dfe9f6;
    background: #f3f7fd;
}

.table-img-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 10px;
    color: #6e8298;
    background: #f4f8fd;
    border: 1px dashed #cfe0f3;
}

.table-title-row {
    padding: 8px 10px;
    background: linear-gradient(135deg, #f3f8ff 0%, #edf5ff 100%);
    border-bottom: 1px solid #e7eef8;
    color: #45607a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.module-card-gap {
    margin-bottom: 14px;
}

/* Compact Premium Content Mode */
.top-bar {
    padding: 14px 20px;
}

.top-bar-left {
    gap: 16px;
}

.page-title {
    font-size: 20px;
}

.top-bar-right {
    gap: 14px;
}

.search-input {
    width: 220px;
    padding: 8px 12px 8px 34px;
    font-size: 13px;
}

.search-icon {
    left: 10px;
    font-size: 14px;
}

.profile-btn {
    padding: 6px 10px;
}

.avatar {
    font-size: 20px;
}

.profile-name {
    font-size: 13px;
}

.dashboard-content {
    padding: 24px;
}

.welcome-section-premium {
    padding: 26px;
    margin-bottom: 24px;
    border-radius: 10px;
}

.greeting {
    font-size: 13px;
}

.doctor-name {
    font-size: 30px;
}

.doctor-title {
    font-size: 13px;
    margin-bottom: 16px;
}

.quick-stats-horizontal {
    gap: 18px;
}

.stat-number {
    font-size: 22px;
}

.stat-text {
    font-size: 11px;
}

.admin-avatar {
    width: 88px;
    height: 88px;
    border-radius: 12px;
}

.admin-role,
.admin-status {
    font-size: 12px;
}

.stats-cards-premium {
    gap: 14px;
    margin-bottom: 24px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.stat-card-premium {
    padding: 16px;
    border-radius: 10px;
}

.stat-card-header {
    margin-bottom: 10px;
}

.stat-card-header h4 {
    font-size: 12px;
}

.stat-icon {
    font-size: 18px;
}

.stat-big-number {
    font-size: 28px;
}

.stat-change {
    font-size: 11px;
}

.charts-section-premium {
    gap: 14px;
    margin-bottom: 24px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.chart-card {
    padding: 16px;
    border-radius: 10px;
}

.chart-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.chart-header h3 {
    font-size: 14px;
}

.chart-icon {
    font-size: 16px;
}

.chart-container {
    height: 190px;
    margin-bottom: 10px;
}

.legend-item {
    font-size: 11px;
}

.legend-dot {
    width: 10px;
    height: 10px;
}

.perf-label {
    font-size: 11px;
}

.perf-value {
    font-size: 12px;
}

.right-panel-stats {
    padding: 16px;
}

.right-panel-header {
    margin-bottom: 12px;
}

.right-panel-header h3 {
    font-size: 14px;
}

.metrics-grid {
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric-item {
    padding: 12px;
    gap: 10px;
}

.metric-icon {
    font-size: 20px;
}

.metric-label {
    font-size: 11px;
}

.metric-value {
    font-size: 18px;
}

.metric-subtext {
    font-size: 10px;
}

.metric-circle {
    width: 42px;
    height: 42px;
    font-size: 10px;
    border-width: 3px;
}

.activity-section-premium {
    margin-top: 16px;
    padding: 16px;
    border-radius: 10px;
}

.activity-section-premium h3 {
    margin-bottom: 10px;
    font-size: 14px;
}

.activity-list-premium {
    gap: 8px;
}

.activity-item-premium {
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
}

.activity-icon-premium {
    width: 30px;
    height: 30px;
    font-size: 13px;
}

.activity-title-premium {
    font-size: 13px;
}

.activity-time-premium {
    font-size: 11px;
}

.activity-tag {
    padding: 3px 8px;
    font-size: 10px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .search-input {
        width: 150px;
    }

    .charts-section-premium {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .module-widget-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-modal-card-xl {
        max-width: 100%;
        max-height: 95vh;
    }

    .module-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .module-actions {
        width: 100%;
    }

    .module-form-grid {
        grid-template-columns: 1fr;
    }

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

    .login-wrapper {
        flex-direction: column;
    }

    .login-left {
        padding: 40px 30px;
        min-height: 300px;
    }

    .login-brand {
        margin-bottom: 40px;
    }

    .login-brand h1 {
        font-size: 36px;
    }

    .login-features {
        display: none;
    }

    .sidebar {
        position: fixed;
        left: -220px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .dashboard-container.compact .sidebar {
        width: 220px;
        padding: 22px 14px;
    }

    .dashboard-container.compact .main-content {
        margin-left: 0;
    }

    .dashboard-container.compact .logo-text,
    .dashboard-container.compact .menu-text,
    .dashboard-container.compact .menu-arrow,
    .dashboard-container.compact .submenu,
    .dashboard-container.compact .logout-btn span:not(.btn-icon) {
        display: initial;
    }

    .sidebar-compact-btn {
        display: none;
    }

    .toggle-sidebar-btn {
        display: block;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
    }

    .top-bar-left {
        width: 100%;
        gap: 15px;
    }

    .top-bar-right {
        width: 100%;
        justify-content: space-between;
    }

    .search-input {
        width: 100%;
    }

    .dashboard-content {
        padding: 20px;
    }

    .welcome-section-premium {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .quick-stats-horizontal {
        justify-content: center;
    }

    .stats-cards-premium {
        grid-template-columns: 1fr;
    }

    .charts-section-premium {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .module-widget-grid {
        grid-template-columns: 1fr;
    }

    .books-stats-grid {
        grid-template-columns: 1fr;
    }

    .module-actions {
        flex-direction: column;
    }

    .btn-module {
        width: 100%;
    }

    .login-right {
        padding: 20px;
    }

    .login-card {
        max-width: 100%;
    }

    .login-brand h1 {
        font-size: 28px;
    }

    .top-bar-left h1 {
        font-size: 18px;
    }

    .doctor-name {
        font-size: 28px;
    }

    .page-title {
        font-size: 18px;
    }

    .activity-item-premium {
        flex-direction: column;
        text-align: center;
    }
}
.support-admin-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.support-widget-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.support-widget {
    min-height: 104px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 16px;
    border: 1px solid #dfe8ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(4, 22, 39, 0.05);
}

.support-widget span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.support-widget strong {
    color: #071827;
    font-size: 28px;
    line-height: 1;
}

.support-widget small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.support-widget-warn {
    border-color: #fed7aa;
    background: #fff7ed;
}

.support-widget-ok {
    border-color: #b8eee7;
    background: #effffb;
}

.support-admin-section {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #dfe8ef;
    border-radius: 10px;
    background: #f8fafc;
}

.contact-only-section {
    background: #ffffff;
}

.support-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.support-section-head span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #e8f7f5;
    color: #08786f;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.support-section-head h3 {
    margin: 6px 0 0;
    color: #071827;
    font-size: 22px;
}

.support-section-head em {
    color: #64748b;
    font-style: normal;
    font-weight: 800;
}

.support-filter-bar {
    display: grid;
    grid-template-columns: 150px 170px minmax(220px, 1fr) auto auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid #dfe8ef;
    border-radius: 8px;
    background: #ffffff;
}

.support-filter-contact {
    grid-template-columns: 170px minmax(260px, 1fr) auto auto;
}

.support-filter-bar label {
    display: grid;
    gap: 5px;
}

.support-filter-bar label span {
    color: #52637c;
    font-size: 11px;
    font-weight: 800;
}

.support-filter-bar input,
.support-filter-bar select {
    min-height: 38px;
    border: 1px solid #dbe5ee;
    border-radius: 8px;
    padding: 8px 10px;
    outline: none;
}

.support-ticket-list,
.support-conversation-card,
.contact-admin-card {
    border-radius: 8px;
}

.support-ticket-item {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid #e5edf4;
    border-radius: 8px;
    color: #102033;
    text-decoration: none;
    background: #fff;
    margin-top: 10px;
}

.support-ticket-item.active {
    border-color: #08786f;
    background: #f0fffc;
}

.support-ticket-item strong,
.support-contact-item strong {
    font-size: 14px;
    color: #071827;
}

.support-ticket-item span,
.support-contact-item span,
.support-conversation-head p {
    font-size: 12px;
    color: #667085;
}

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

.support-ticket-meta small {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.support-status {
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.support-status-open,
.support-status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.support-status-answered {
    background: #e8f7f5;
    color: #08786f;
}

.support-status-closed {
    background: #eef2f7;
    color: #475569;
}

.support-conversation-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5edf4;
}

.support-conversation-head span {
    color: #08786f;
    font-size: 12px;
    font-weight: 800;
}

.support-conversation-head h3 {
    margin: 5px 0;
    color: #071827;
    font-size: 21px;
}

.support-replies {
    display: grid;
    gap: 10px;
    max-height: 380px;
    overflow: auto;
    padding: 14px 2px;
}

.support-reply {
    width: min(84%, 720px);
    padding: 12px;
    border: 1px solid #e5edf4;
    border-radius: 8px;
    background: #f8fafc;
}

.support-reply.admin {
    justify-self: end;
    background: #e8f7f5;
    border-color: #b8eee7;
}

.support-reply strong {
    display: block;
    margin-bottom: 5px;
    color: #071827;
}

.support-reply p {
    margin: 0;
    color: #334155;
    line-height: 1.55;
}

.support-reply small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
}

.support-reply-form {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 10px;
    align-items: stretch;
    padding-top: 12px;
    border-top: 1px solid #e5edf4;
}

.support-reply-form select,
.support-reply-form textarea,
.support-contact-item select,
.support-contact-item input {
    width: 100%;
    border: 1px solid #dbe5ee;
    border-radius: 8px;
    padding: 10px;
    outline: none;
}

.support-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.support-contact-item {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5edf4;
    border-radius: 8px;
    background: #fff;
}

.support-contact-item p {
    margin: 0;
    color: #334155;
    line-height: 1.5;
}

.support-contact-item form {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 8px;
}

.contact-admin-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 14px;
    align-items: start;
}

.contact-table-card,
.contact-detail-card {
    overflow: hidden;
}

.responsive-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.contact-message-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.contact-message-table th,
.contact-message-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5edf4;
    text-align: left;
    vertical-align: middle;
}

.contact-message-table th {
    background: #f8fafc;
    color: #52637c;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-message-table td {
    color: #334155;
    font-size: 13px;
}

.contact-message-table td strong {
    color: #071827;
}

.contact-message-table td small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.contact-message-table .selected-row td {
    background: #effffb;
}

.btn-module-small {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.contact-detail-card {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.contact-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5edf4;
}

.contact-detail-head span,
.contact-detail-message span,
.contact-detail-form label > span {
    color: #08786f;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-detail-head h4 {
    margin: 5px 0 0;
    color: #071827;
    font-size: 20px;
    line-height: 1.25;
}

.contact-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.contact-detail-meta div {
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid #e5edf4;
    border-radius: 8px;
    background: #fbfcfe;
}

.contact-detail-meta span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.contact-detail-meta strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #071827;
    font-size: 13px;
}

.contact-detail-message {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid #e5edf4;
    border-radius: 8px;
    background: #ffffff;
}

.contact-detail-message p {
    margin: 0;
    color: #334155;
    line-height: 1.55;
}

.contact-reply-preview {
    background: #effffb;
    border-color: #b8eee7;
}

.contact-reply-preview small {
    color: #64748b;
    font-size: 11px;
}

.contact-detail-form {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e5edf4;
}

.contact-detail-form label {
    display: grid;
    gap: 5px;
}

.contact-detail-full,
.contact-detail-form button {
    grid-column: 1 / -1;
}

.contact-detail-form input,
.contact-detail-form select,
.contact-detail-form textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid #dbe5ee;
    border-radius: 8px;
    padding: 9px 10px;
    outline: none;
}

.contact-detail-form textarea {
    resize: vertical;
}

.contact-replied-dot,
.contact-pending-dot {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.contact-replied-dot {
    background: #e8f7f5;
    color: #08786f;
}

.contact-pending-dot {
    background: #fff7ed;
    color: #c2410c;
}

.admin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 12, 24, 0.62);
    backdrop-filter: blur(5px);
}

.admin-modal-overlay[hidden] {
    display: none;
}

.admin-modal {
    width: min(100%, 860px);
    max-height: min(92vh, 820px);
    overflow: hidden;
    border: 1px solid #dfe8ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(2, 12, 24, 0.28);
}

.admin-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #e5edf4;
    background: #f8fafc;
}

.admin-modal-head span {
    color: #08786f;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-modal-head h3 {
    margin: 4px 0 0;
    color: #071827;
    font-size: 22px;
}

.admin-modal-close {
    min-height: 36px;
    border: 1px solid #dbe5ee;
    border-radius: 8px;
    padding: 0 14px;
    background: #ffffff;
    color: #102033;
    cursor: pointer;
    font-weight: 800;
}

.contact-modal-body {
    display: grid;
    gap: 12px;
    max-height: calc(92vh - 78px);
    overflow-y: auto;
    padding: 16px 18px;
}

.contact-forms-admin-wrap .contact-message-table {
    min-width: 920px;
}

@media (max-width: 1100px) {
    .support-widget-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-admin-grid,
    .contact-admin-split,
    .support-reply-form,
    .support-contact-item form,
    .support-filter-bar,
    .support-filter-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .support-widget-grid {
        grid-template-columns: 1fr;
    }

    .support-admin-section {
        padding: 10px;
    }

    .support-section-head {
        align-items: start;
        flex-direction: column;
    }

    .admin-modal-overlay {
        padding: 10px;
    }

    .admin-modal-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-detail-meta,
    .contact-detail-form {
        grid-template-columns: 1fr;
    }
}

/* Premium compact admin login */
.admin-login-page {
    min-height: 100vh;
    background: #eef3f8;
}

.admin-login-page .login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
    background:
        linear-gradient(90deg, rgba(7, 24, 39, 0.05), transparent 42%),
        #eef3f8;
}

.admin-login-page .login-left {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 34px;
    align-items: stretch;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 16%, rgba(89, 224, 192, 0.26), transparent 28%),
        radial-gradient(circle at 86% 88%, rgba(74, 144, 226, 0.2), transparent 34%),
        linear-gradient(150deg, #071827 0%, #102033 58%, #08786f 100%);
}

.admin-login-page .login-left::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.85;
}

.admin-login-page .login-left::after {
    content: "";
    position: absolute;
    right: 28px;
    top: 34px;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.035);
}

.admin-login-page .login-brand,
.admin-login-page .login-side-card,
.admin-login-page .login-features {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 330px;
}

.admin-login-page .login-brand {
    margin: 0 0 18px;
    text-align: left;
}

.admin-login-page .brand-icon,
.admin-login-page .brand-icon:has(.login-brand-logo) {
    display: inline-grid;
    width: 58px;
    height: 58px;
    margin: 0 0 18px;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    animation: none;
}

.admin-login-page .brand-mark {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.admin-login-page .login-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
}

.admin-login-page .login-brand h1 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    font-size: 40px;
    line-height: 1;
}

.admin-login-page .login-brand p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 700;
}

.admin-login-page .login-side-card {
    margin: 0 0 18px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 22px 45px rgba(2, 12, 24, 0.22);
    backdrop-filter: blur(12px);
}

.admin-login-page .side-card-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #9ff5df;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-login-page .login-side-card strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.25;
}

.admin-login-page .side-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.admin-login-page .side-card-grid span {
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 900;
}

.admin-login-page .login-features {
    display: grid;
    gap: 8px;
}

.admin-login-page .feature {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.admin-login-page .feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(159, 245, 223, 0.17);
    color: #9ff5df;
    font-size: 12px;
    font-weight: 900;
}

.admin-login-page .feature-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 800;
}

.admin-login-page .login-right {
    position: relative;
    padding: 38px 24px;
    background:
        radial-gradient(circle at 70% 20%, rgba(8, 120, 111, 0.08), transparent 30%),
        #f8fafc;
}

.admin-login-page .login-right::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid #e7eef5;
    border-radius: 22px;
    pointer-events: none;
}

.admin-login-page .login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    max-width: 430px;
    padding: 32px;
    border: 1px solid #dfe8ef;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 70px rgba(7, 24, 39, 0.12);
    backdrop-filter: blur(14px);
}

.admin-login-page .login-kicker {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #e8f7f5;
    color: #08786f;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-login-page .login-header {
    margin-bottom: 24px;
}

.admin-login-page .login-header h2 {
    margin-top: 12px;
    color: #071827;
    font-size: 34px;
}

.admin-login-page .login-header p {
    max-width: 340px;
    color: #667085;
}

.admin-login-page .login-form {
    gap: 17px;
}

.admin-login-page .form-group {
    gap: 7px;
}

.admin-login-page .form-group label {
    color: #071827;
    font-size: 13px;
    font-weight: 900;
}

.admin-login-page .form-input {
    min-height: 50px;
    border: 1px solid #d8e1ea;
    border-radius: 11px;
    background: #ffffff;
    color: #071827;
    font-size: 14px;
}

.admin-login-page .form-input:focus,
.admin-login-page .input-wrapper.focused .form-input {
    border-color: #08786f;
    box-shadow: 0 0 0 4px rgba(8, 120, 111, 0.12);
}

.admin-login-page .toggle-password-btn {
    right: 8px;
    min-width: 58px;
    height: 34px;
    border-radius: 9px;
    background: #eef7f6;
    color: #08786f;
    font-size: 12px;
    font-weight: 900;
}

.admin-login-page .toggle-password-btn:hover {
    transform: none;
    background: #dff1ef;
}

.admin-login-page .remember-me {
    color: #475569;
    font-weight: 700;
}

.admin-login-page .btn-login {
    min-height: 50px;
    margin-top: 2px;
    border-radius: 11px;
    background: linear-gradient(135deg, #08786f 0%, #2563eb 100%);
    box-shadow: 0 14px 30px rgba(8, 120, 111, 0.22);
}

.admin-login-page .btn-login:hover {
    background: linear-gradient(135deg, #06685f 0%, #1d4ed8 100%);
    box-shadow: 0 18px 34px rgba(8, 120, 111, 0.28);
}

.admin-login-page .login-footer {
    margin-top: 18px;
    padding-top: 16px;
}

.admin-login-page .security-badge {
    margin-top: 14px;
    padding-top: 0;
    border-top: 0;
}

.admin-login-page .badge-icon {
    display: inline-grid;
    min-width: 34px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: #e8f7f5;
    color: #08786f;
    font-size: 10px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .admin-login-page .login-wrapper {
        grid-template-columns: 1fr;
    }

    .admin-login-page .login-left {
        min-height: auto;
        padding: 28px 22px;
    }

    .admin-login-page .login-brand,
    .admin-login-page .login-side-card,
    .admin-login-page .login-features {
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    .admin-login-page .login-features {
        display: none;
    }

    .admin-login-page .login-right {
        padding: 24px 18px;
    }
}

@media (max-width: 520px) {
    .admin-login-page .login-brand h1 {
        font-size: 32px;
    }

    .admin-login-page .login-side-card {
        display: none;
    }

    .admin-login-page .login-card {
        padding: 24px;
        border-radius: 14px;
    }
}
