/* AyarPoint — #840E26 · #6E1B2B · #6D6A7B · #F8FBFE */
.theme-ayar-point {
    --ap-primary: #840E26;
    --ap-dark: #6E1B2B;
    --ap-muted: #6D6A7B;
    --ap-bg: #F8FBFE;
    --c1: #840E26;
    --c1-rgb: 132, 14, 38;
    --primary: #840E26;
    --primary-clr: #840E26;
    --blue: #840E26;
    --ap-sidebar-bg: #5a1524;
    --ap-sidebar-surface: rgba(255, 255, 255, 0.06);
    --ap-sidebar-border: rgba(255, 255, 255, 0.08);
    --ap-sidebar-text: rgba(248, 251, 254, 0.92);
    --ap-sidebar-muted: rgba(248, 251, 254, 0.5);
    --ap-sidebar-sub-text: rgba(248, 251, 254, 0.88);
    --ap-sidebar-sub-muted: rgba(248, 251, 254, 0.68);
    --ap-sidebar-active: rgba(132, 14, 38, 0.45);
    --ap-sidebar-hover: rgba(255, 255, 255, 0.08);
    --ap-sidebar-accent: #d4a853;
    --ap-sidebar-radius: 12px;
    --ap-sidebar-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --base-clr: #840E26;
}

/* ── Admin Panel ── */
.theme-ayar-point .main {
    background-color: var(--ap-bg) !important;
}

.theme-ayar-point .navbar-vertical-aside {
    background: linear-gradient(180deg, var(--ap-dark) 0%, var(--ap-sidebar-bg) 45%, #4a101c 100%) !important;
    border-right: 1px solid rgba(132, 14, 38, 0.35) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.theme-ayar-point .navbar-vertical-aside .nav-link {
    color: var(--ap-sidebar-text) !important;
}

.theme-ayar-point .navbar-vertical-aside .nav-link:hover {
    color: #fff !important;
    background-color: var(--ap-sidebar-hover) !important;
}

.theme-ayar-point .nav-subtitle {
    color: var(--ap-muted) !important;
    opacity: 0.9;
}

.theme-ayar-point .btn-primary {
    background-color: var(--ap-primary) !important;
    border-color: var(--ap-primary) !important;
    color: var(--ap-bg) !important;
}

.theme-ayar-point .btn-primary:hover {
    background-color: var(--ap-dark) !important;
    border-color: var(--ap-dark) !important;
    color: var(--ap-bg) !important;
}

.theme-ayar-point .text-primary {
    color: var(--ap-primary) !important;
}

.theme-ayar-point .badge-soft-primary {
    color: var(--ap-primary) !important;
    background-color: var(--ap-bg) !important;
}

.theme-ayar-point .navbar-brand-badge {
    background-color: var(--ap-primary);
    color: var(--ap-bg);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.theme-ayar-point #header {
    background: #fff !important;
    border-bottom: 1px solid #ece6e8;
}

.theme-ayar-point .tenant-panel-label {
    color: var(--ap-primary);
}

.theme-ayar-point .card {
    background-color: #fff;
    border: 1px solid #ece6e8;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(26, 18, 20, 0.04);
}

.theme-ayar-point .page-header-title,
.theme-ayar-point .main h1,
.theme-ayar-point .main h2,
.theme-ayar-point .main h3,
.theme-ayar-point .main h4,
.theme-ayar-point .content h1,
.theme-ayar-point .content h2,
.theme-ayar-point .content h3,
.theme-ayar-point .content h4 {
    color: #1a1214 !important;
    letter-spacing: -0.03em;
}

.theme-ayar-point .main .input-label,
.theme-ayar-point .main label:not(.bg-primary),
.theme-ayar-point .content .input-label,
.theme-ayar-point .content label:not(.bg-primary) {
    color: #6d6670 !important;
    font-weight: 600;
}

.theme-ayar-point .form-control:focus {
    border-color: var(--ap-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(132, 14, 38, 0.25) !important;
}

/* ── Replace default blue accents ── */
.theme-ayar-point .text-base,
.theme-ayar-point .text-link {
    color: var(--ap-primary) !important;
}

.theme-ayar-point .custom-add-button {
    color: var(--ap-primary) !important;
}

.theme-ayar-point .custom-add-button:hover {
    color: var(--ap-dark) !important;
}

.theme-ayar-point .select2-container--default.select2-container--focus .select2-selection--single,
.theme-ayar-point .select2-container--default.select2-container--open .select2-selection--single,
.theme-ayar-point .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: rgba(132, 14, 38, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(132, 14, 38, 0.1) !important;
}

.theme-ayar-point .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--ap-primary) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(132, 14, 38, 0.12);
}

.theme-ayar-point .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(132, 14, 38, 0.08) !important;
    color: var(--ap-dark) !important;
}

.theme-ayar-point .badge-soft-info {
    color: var(--ap-primary) !important;
    background-color: rgba(132, 14, 38, 0.1) !important;
}

.theme-ayar-point .btn-outline-primary {
    color: var(--ap-primary) !important;
    border-color: var(--ap-primary) !important;
}

.theme-ayar-point .btn-outline-primary:hover {
    background-color: var(--ap-primary) !important;
    color: #fff !important;
}

.theme-ayar-point a.text-primary,
.theme-ayar-point .text-primary {
    color: var(--ap-primary) !important;
}

.theme-ayar-point .page-item.active .page-link,
.theme-ayar-point .pagination .page-item.active .page-link {
    background-color: var(--ap-primary) !important;
    border-color: var(--ap-primary) !important;
    color: #fff !important;
}

.theme-ayar-point .page-link {
    color: var(--ap-dark);
}

.theme-ayar-point .page-link:hover {
    color: var(--ap-primary);
    background-color: rgba(132, 14, 38, 0.08);
    border-color: #ead9dc;
}

.theme-ayar-point .switcher_input:checked ~ .switcher_control,
.theme-ayar-point .custom-control-input:checked ~ .custom-control-label::before,
.theme-ayar-point .toggle-switch-input:checked + .toggle-switch-label,
.theme-ayar-point .custom--switch input[switch]:checked + label {
    background-color: var(--ap-primary) !important;
    border-color: var(--ap-primary) !important;
}

.theme-ayar-point .text-record {
    color: var(--ap-muted) !important;
}

/* ── Toast notifications — AyarPoint styled ── */
@keyframes apToastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.theme-ayar-point #toast-container > div {
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(110, 27, 43, 0.22) !important;
    padding: 14px 16px 14px 50px !important;
    animation: apToastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.theme-ayar-point #toast-container > .toast-info {
    background-color: #6E1B2B !important;
}

.theme-ayar-point #toast-container > .toast-success {
    background-color: #2d6a4f !important;
}

.theme-ayar-point #toast-container > .toast-error {
    background-color: #991b1b !important;
}

.theme-ayar-point #toast-container > .toast-warning {
    background-color: #92400e !important;
}

.theme-ayar-point #toast-container > div:hover {
    box-shadow: 0 16px 48px rgba(110, 27, 43, 0.28) !important;
}

/* ── Login Page (admin-login.css variables) ── */
.theme-ayar-point.login-page {
    --login-primary: #840E26;
    --login-dark: #6E1B2B;
    --login-accent: #d4a853;
    --login-surface: rgba(255, 255, 255, 0.9);
    --login-surface-solid: #ffffff;
    --login-muted: #6D6A7B;
    --login-text: #2a1520;
    --login-glow: rgba(212, 168, 83, 0.45);
    --login-input-bg: rgba(248, 251, 254, 0.95);
    --login-input-border: rgba(132, 14, 38, 0.12);
}

.theme-ayar-point.login-page .login-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.theme-ayar-point.login-page .login-card-title {
    color: var(--login-primary) !important;
}

.theme-ayar-point.login-page .login-field label {
    color: var(--login-text) !important;
}

.theme-ayar-point.login-page .login-submit:focus {
    box-shadow: 0 0 0 4px rgba(132, 14, 38, 0.25);
}

.theme-ayar-point.login-page .form-control.login-input:focus {
    border-color: var(--login-primary);
    box-shadow: 0 0 0 4px rgba(132, 14, 38, 0.12);
}

/* ── Sidebar — clean modern ── */
.theme-ayar-point .navbar-vertical-content {
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(248, 251, 254, 0.2) transparent;
}

.theme-ayar-point .navbar-vertical-content::-webkit-scrollbar {
    width: 5px;
}

.theme-ayar-point .navbar-vertical-content::-webkit-scrollbar-track {
    background: transparent;
}

.theme-ayar-point .navbar-vertical-content::-webkit-scrollbar-thumb {
    background: rgba(248, 251, 254, 0.18);
    border-radius: 99px;
}

.theme-ayar-point .navbar-vertical-content::-webkit-scrollbar-thumb:hover {
    background: rgba(248, 251, 254, 0.32);
}

.theme-ayar-point .sidebar-brand-block {
    padding: 1.2rem 1rem 1.05rem;
    border-bottom: 1px solid var(--ap-sidebar-border);
    margin-bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
}

.theme-ayar-point .sidebar-brand-link {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-decoration: none !important;
}

.theme-ayar-point .sidebar-brand-link--composed {
    min-width: 0;
}

.theme-ayar-point .sidebar-brand-composed {
    display: inline-flex !important;
    align-items: center;
    gap: 0.8rem;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
}

.theme-ayar-point .sidebar-brand-mark {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-ayar-point .sidebar-brand-mark-ring {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    border: 2px solid var(--ap-sidebar-accent);
    box-shadow: 0 0 0 1px rgba(212, 168, 83, 0.15);
}

.theme-ayar-point .sidebar-brand-mark-gem {
    position: absolute;
    top: 0;
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f0d080, var(--ap-sidebar-accent) 55%, #9a7030);
    box-shadow: 0 0 6px rgba(212, 168, 83, 0.55);
    z-index: 1;
}

.theme-ayar-point .sidebar-brand-mark-letter {
    position: relative;
    z-index: 2;
    margin-top: 3px;
    font-family: 'Outfit', 'DM Sans', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.theme-ayar-point .sidebar-brand-mark--solo {
    width: 34px;
    height: 34px;
    display: none !important;
}

.theme-ayar-point .sidebar-brand-name {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    min-width: 0;
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    white-space: nowrap;
}

.theme-ayar-point .sidebar-brand-name-part {
    color: #fff;
}

.theme-ayar-point .sidebar-brand-name-accent {
    color: var(--ap-sidebar-accent);
}

body.theme-ayar-point.navbar-vertical-aside-mini-mode .sidebar-brand-composed {
    display: none !important;
}

body.theme-ayar-point.navbar-vertical-aside-mini-mode .sidebar-brand-link--composed {
    display: flex;
    justify-content: center;
}

body.theme-ayar-point.navbar-vertical-aside-mini-mode .sidebar-brand-mark--solo {
    display: inline-flex !important;
    margin-inline: auto;
}

.theme-ayar-point .sidebar-brand-logo {
    height: 44px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.theme-ayar-point .sidebar-brand-logo-mini {
    height: 36px !important;
    width: auto !important;
    max-width: 40px !important;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
}

.theme-ayar-point .sidebar-brand-title {
    display: none;
}

.theme-ayar-point .sidebar-collapse-btn {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: var(--ap-sidebar-surface);
    color: var(--ap-sidebar-text) !important;
    opacity: 1;
    flex-shrink: 0;
    transition: background 0.2s var(--ap-sidebar-ease), transform 0.2s var(--ap-sidebar-ease);
}

.theme-ayar-point .sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.theme-ayar-point .sidebar--search-form {
    padding: 0.85rem 1rem 0.65rem !important;
    margin-inline: 0 !important;
}

.theme-ayar-point .sidebar--search-form .search--form-group {
    border-radius: var(--ap-sidebar-radius);
    background: var(--ap-sidebar-surface);
    border: 1px solid var(--ap-sidebar-border);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.theme-ayar-point .sidebar--search-form .search--form-group:focus-within {
    border-color: rgba(212, 168, 83, 0.35);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.theme-ayar-point .sidebar--search-form .form--control {
    background: transparent !important;
    border: none !important;
    color: var(--ap-sidebar-text) !important;
    border-radius: var(--ap-sidebar-radius) !important;
    font-size: 0.8125rem;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
    height: auto;
}

.theme-ayar-point .sidebar--search-form .form--control::placeholder {
    color: var(--ap-sidebar-muted) !important;
}

.theme-ayar-point .sidebar--search-form .btn {
    color: var(--ap-sidebar-muted) !important;
    transition: color 0.2s ease;
}

.theme-ayar-point .sidebar--search-form .search--form-group:focus-within .btn {
    color: var(--ap-sidebar-accent) !important;
}

.theme-ayar-point .navbar-vertical-aside .navbar-nav.nav-tabs {
    padding: 0 0.65rem !important;
}

.theme-ayar-point .navbar-vertical-aside .nav-link {
    border-radius: var(--ap-sidebar-radius) !important;
    border: none !important;
    margin: 3px 0;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background-color 0.22s var(--ap-sidebar-ease),
                color 0.22s var(--ap-sidebar-ease),
                transform 0.22s var(--ap-sidebar-ease),
                box-shadow 0.22s var(--ap-sidebar-ease);
}

.theme-ayar-point .navbar-vertical-aside .nav-link:hover {
    transform: translateX(2px);
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-link {
    margin-left: 0;
    margin-right: 0;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem !important;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ap-sidebar-sub-text) !important;
    border-radius: 10px !important;
    position: relative;
    opacity: 1;
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-link::before {
    content: '';
    position: absolute;
    left: 1.15rem;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ap-sidebar-sub-muted);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: none;
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-link:hover::before {
    background: var(--ap-sidebar-accent);
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-item.active > .nav-link::before {
    background: var(--ap-sidebar-accent);
    transform: translateY(-50%) scale(1.2);
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-indicator-icon {
    display: none;
}

/* Active states — only the current item, not every link inside an open menu */
.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-item.active > .nav-link {
    background: var(--ap-sidebar-active) !important;
    box-shadow: inset 3px 0 0 var(--ap-sidebar-accent);
    color: #fff !important;
}

.theme-ayar-point .navbar-vertical-aside-has-menu.active > .nav-link:not(.nav-link-toggle),
.theme-ayar-point .navbar-vertical-aside-has-menu.show > .nav-link:not(.nav-link-toggle),
.theme-ayar-point .navbar-vertical-aside .nav-link.active {
    background: var(--ap-sidebar-active) !important;
    box-shadow: inset 3px 0 0 var(--ap-sidebar-accent);
    color: #fff !important;
}

.theme-ayar-point .navbar-vertical-aside-has-menu.active > .nav-link-toggle,
.theme-ayar-point .navbar-vertical-aside-has-menu.show > .nav-link-toggle {
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none;
    color: var(--ap-sidebar-text) !important;
}

.theme-ayar-point .navbar-vertical-aside .navbar-nav.nav-tabs .nav-item.active > .nav-link,
.theme-ayar-point .navbar-vertical-aside .navbar-nav.nav-tabs .active.nav-link {
    border-inline-start-color: transparent !important;
}

.theme-ayar-point .nav-subtitle {
    padding: 1.1rem 0.85rem 0.4rem !important;
    margin-top: 0.35rem;
    font-size: 0.65rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ap-sidebar-muted) !important;
    opacity: 1;
}

.theme-ayar-point .nav-subtitle:first-of-type {
    margin-top: 0;
}

.theme-ayar-point .navbar-vertical-aside .nav-icon {
    font-size: 1.15rem;
    width: 1.35rem;
    margin-inline-end: 0.65rem !important;
    opacity: 0.9;
    color: var(--ap-sidebar-muted);
    transition: color 0.2s ease, transform 0.25s var(--ap-sidebar-ease);
}

.theme-ayar-point .navbar-vertical-aside .nav-link:hover .nav-icon {
    color: var(--ap-sidebar-accent);
    opacity: 1;
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-item.active > .nav-link .nav-icon,
.theme-ayar-point .navbar-vertical-aside-has-menu.active > .nav-link:not(.nav-link-toggle) .nav-icon,
.theme-ayar-point .navbar-vertical-aside .nav-link.active .nav-icon {
    color: var(--ap-sidebar-accent);
    opacity: 1;
}

.theme-ayar-point .navbar-vertical-aside-has-menu > .nav-link-toggle::after {
    color: var(--ap-sidebar-muted) !important;
    opacity: 0.7;
    transition: transform 0.25s var(--ap-sidebar-ease), opacity 0.2s ease;
}

.theme-ayar-point .navbar-vertical-aside-has-menu.show > .nav-link-toggle::after,
.theme-ayar-point .navbar-vertical-aside-has-menu > .nav-link-toggle[aria-expanded="true"]::after {
    opacity: 1;
    color: var(--ap-sidebar-accent) !important;
}

.theme-ayar-point .navbar-vertical-aside .nav-sub {
    padding: 0.25rem 0 0.4rem 0.5rem;
    margin-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-link-toggle {
    padding-left: 0.85rem !important;
    font-weight: 650;
    color: #f4eadc !important;
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-link-toggle::before {
    display: none;
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .navbar-vertical-aside-has-menu.active > .nav-link-toggle,
.theme-ayar-point .navbar-vertical-aside .nav-sub .navbar-vertical-aside-has-menu.show > .nav-link-toggle {
    color: #fff !important;
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-sub {
    margin-left: 0.15rem;
    padding-left: 0.15rem;
    border-left-color: rgba(255, 255, 255, 0.08);
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-sub .nav-link {
    padding-left: 2rem !important;
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-sub .nav-link::before {
    left: 0.9rem;
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .badge,
.theme-ayar-point .navbar-vertical-aside .nav-sub .badge-soft-info {
    background: rgba(212, 168, 83, 0.22) !important;
    color: #f5d78e !important;
    font-weight: 700;
    font-size: 0.68rem;
    border: 1px solid rgba(212, 168, 83, 0.35);
    padding: 0.2em 0.5em;
    vertical-align: middle;
}

.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-item.active > .nav-link .badge,
.theme-ayar-point .navbar-vertical-aside .nav-sub .nav-item.active > .nav-link .badge-soft-info {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.35);
}

.theme-ayar-point .navbar-vertical-aside .active .nav-indicator-icon,
.theme-ayar-point .navbar-vertical-aside .nav-link:hover .nav-indicator-icon {
    color: var(--ap-sidebar-accent) !important;
}

.theme-ayar-point aside .navbar-nav > .nav-item:not(:first-child) {
    margin-top: 0 !important;
}

.theme-ayar-point .nav-divider {
    border-color: var(--ap-sidebar-border) !important;
    opacity: 0.6;
}

/* ── Dashboard — clean modern ── */
.theme-ayar-point .ap-dashboard {
    padding-top: 0.25rem;
}

.theme-ayar-point .ap-dashboard-header {
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #faf6f7 55%, #f8fbfe 100%);
    border: 1px solid rgba(132, 14, 38, 0.08);
    box-shadow: 0 4px 20px rgba(110, 27, 43, 0.06);
}

.theme-ayar-point .ap-dashboard-welcome {
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ap-dark) !important;
}

.theme-ayar-point .ap-dashboard-subtitle {
    font-size: 0.875rem;
    color: var(--ap-muted);
    line-height: 1.55;
}

.theme-ayar-point .ap-dashboard-card {
    background: #ffffff !important;
    border: 1px solid rgba(109, 106, 123, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 18px rgba(17, 24, 39, 0.04);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.theme-ayar-point .ap-dashboard-card:hover {
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.07);
}

.theme-ayar-point .ap-dashboard-card .card-body {
    padding: 1.35rem 1.5rem;
}

.theme-ayar-point .ap-dashboard-card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(109, 106, 123, 0.1) !important;
    padding: 1.1rem 1.5rem;
}

.theme-ayar-point .ap-dashboard-card-title {
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ap-dark) !important;
    letter-spacing: -0.01em;
}

.theme-ayar-point .ap-dashboard-card-title img {
    opacity: 0.85;
}

.theme-ayar-point .ap-dashboard .custom-select {
    border-radius: 10px;
    border-color: rgba(109, 106, 123, 0.25);
    font-size: 0.8125rem;
    padding: 0.45rem 2rem 0.45rem 0.85rem;
    color: var(--ap-dark);
    background-color: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-ayar-point .ap-dashboard .custom-select:focus {
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 3px rgba(132, 14, 38, 0.1);
}

.theme-ayar-point .ap-dashboard .dashboard--card {
    background: linear-gradient(145deg, #ffffff 0%, #fdfafb 100%);
    border: 1px solid rgba(132, 14, 38, 0.08);
    border-radius: 14px;
    padding: 1.35rem 1.25rem 1.1rem;
    box-shadow: none;
    text-decoration: none !important;
}

.theme-ayar-point .ap-dashboard .dashboard--card:hover {
    border-color: rgba(132, 14, 38, 0.18);
    box-shadow: 0 8px 20px rgba(132, 14, 38, 0.08);
    transform: translateY(-2px);
}

.theme-ayar-point .ap-dashboard .dashboard--card__title {
    color: var(--ap-primary) !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.theme-ayar-point .ap-dashboard .dashboard--card__subtitle {
    color: var(--ap-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: capitalize;
}

.theme-ayar-point .ap-dashboard .dashboard--card__img {
    opacity: 0.9;
    filter: saturate(0.95);
}

.theme-ayar-point .ap-dashboard .order-stats {
    background: #f9fafb;
    border: 1px solid rgba(109, 106, 123, 0.1);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    text-decoration: none !important;
}

.theme-ayar-point .ap-dashboard .order-stats:hover {
    background: #fff;
    border-color: rgba(132, 14, 38, 0.15);
    box-shadow: 0 6px 16px rgba(132, 14, 38, 0.06);
    transform: translateY(-1px);
}

.theme-ayar-point .ap-dashboard .order-stats__title {
    color: var(--ap-primary) !important;
    font-size: 1.125rem;
}

.theme-ayar-point .ap-dashboard .order-stats__subtitle {
    color: var(--ap-muted);
    font-size: 0.8125rem;
}

.theme-ayar-point .ap-dashboard .option-select-btn {
    background: #f3f4f6;
    border: 1px solid rgba(109, 106, 123, 0.15);
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
}

.theme-ayar-point .ap-dashboard .option-select-btn label span {
    color: var(--ap-muted);
    border-radius: 9px;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.theme-ayar-point .ap-dashboard .option-select-btn label input:checked ~ span {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-dark));
    box-shadow: 0 2px 8px rgba(132, 14, 38, 0.25);
}

.theme-ayar-point .ap-dashboard .card-header:not(.ap-dashboard-card-header) {
    background: transparent;
    border-bottom: 1px solid rgba(109, 106, 123, 0.1);
    padding: 1.1rem 1.5rem;
}

.theme-ayar-point .ap-dashboard .card-header h4 {
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ap-dark) !important;
}

.theme-ayar-point .ap-dashboard .bg-primary.text-white,
.theme-ayar-point .ap-dashboard label.bg-primary {
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-dark)) !important;
    color: #ffffff !important;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem !important;
    border-radius: 8px !important;
    white-space: nowrap;
}

.theme-ayar-point .ap-dashboard .avatar-lg {
    border-color: rgba(109, 106, 123, 0.15) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.theme-ayar-point .ap-dashboard .media-body span,
.theme-ayar-point .ap-dashboard .text-dark {
    color: #374151 !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.theme-ayar-point .ap-dashboard a:hover .text-dark,
.theme-ayar-point .ap-dashboard a:hover .media-body span {
    color: var(--ap-primary) !important;
}

.theme-ayar-point .ap-dashboard .grid-customers a {
    background: #f9fafb;
    border: 1px solid rgba(109, 106, 123, 0.1);
    border-radius: 14px !important;
    box-shadow: none !important;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-ayar-point .ap-dashboard .grid-customers a:hover {
    background: #fff;
    border-color: rgba(132, 14, 38, 0.15);
    box-shadow: 0 8px 20px rgba(132, 14, 38, 0.07) !important;
    transform: translateY(-2px);
}

.theme-ayar-point .ap-dashboard .grid-customers .avatar-lg {
    border-radius: 50% !important;
}

.theme-ayar-point .ap-dashboard .tio-star.gold {
    color: var(--ap-sidebar-accent);
}

.theme-ayar-point #header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(109, 106, 123, 0.12) !important;
    box-shadow: 0 2px 12px rgba(17, 24, 39, 0.04);
}

.theme-ayar-point #header .navbar-nav-wrap-content-left {
    border-left: none;
}

.theme-ayar-point #header .profile-name {
    color: var(--ap-dark) !important;
    font-weight: 600;
    font-size: 0.9375rem;
}

.theme-ayar-point #header .btn-ghost-secondary {
    border-radius: 12px;
    color: var(--ap-dark) !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.theme-ayar-point #header .btn-ghost-secondary i,
.theme-ayar-point #header .btn-ghost-secondary .tio {
    color: var(--ap-dark) !important;
}

.theme-ayar-point #header .btn-ghost-secondary:hover {
    background: rgba(132, 14, 38, 0.08) !important;
    transform: scale(1.05);
}

.theme-ayar-point #header .navbar-dropdown-account-wrapper {
    color: var(--ap-dark) !important;
}

.theme-ayar-point #header .avatar-sm {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
}

.theme-ayar-point #header .avatar-img {
    object-fit: cover;
    background: #e8eef5;
}

.theme-ayar-point #header .btn-status-danger {
    background: var(--ap-primary) !important;
}

.theme-ayar-point .main {
    background: linear-gradient(180deg, var(--ap-bg) 0%, #f3f6fa 100%) !important;
}

/* ── Profile Settings — in-page tab nav (not main sidebar) ── */
.theme-ayar-point #navbarSettings.card-navbar-nav {
    background: #fff;
    border: 1px solid rgba(109, 106, 123, 0.15);
    border-radius: 12px;
    padding: 0.5rem !important;
    box-shadow: 0 2px 8px rgba(110, 27, 43, 0.04);
}

.theme-ayar-point #navbarSettings .nav-link {
    color: var(--ap-dark) !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    font-weight: 500;
    padding: 0.7rem 1rem !important;
    margin: 2px 0;
    transform: none !important;
}

.theme-ayar-point #navbarSettings .nav-link .nav-icon {
    color: var(--ap-muted) !important;
    opacity: 1 !important;
}

.theme-ayar-point #navbarSettings .nav-link:hover {
    background: rgba(132, 14, 38, 0.06) !important;
    color: var(--ap-primary) !important;
}

.theme-ayar-point #navbarSettings .nav-link:hover .nav-icon {
    color: var(--ap-primary) !important;
}

.theme-ayar-point #navbarSettings .nav-link.active {
    background: linear-gradient(135deg, var(--ap-primary) 0%, var(--ap-dark) 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(132, 14, 38, 0.22) !important;
}

.theme-ayar-point #navbarSettings .nav-link.active .nav-icon {
    color: #fff !important;
}

.theme-ayar-point .content .card > .card-header {
    background: #fff;
    border-bottom: 1px solid rgba(109, 106, 123, 0.12);
}

.theme-ayar-point .content .card > .card-header .card-title {
    color: var(--ap-dark);
    font-weight: 600;
}

.theme-ayar-point .content .card > .card-header .card-title i {
    color: var(--ap-primary);
    margin-right: 0.35rem;
}

/* ── Language switcher — clean card dropdown ── */
.theme-ayar-point .ap-lang-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    overflow: hidden;
}

.theme-ayar-point .ap-lang-trigger-flag {
    position: static;
    display: inline-block;
    width: 20px !important;
    height: 15px !important;
    border-radius: 2px;
    background-color: transparent !important;
    box-shadow: none !important;
    transform: none;
    pointer-events: none;
}

.theme-ayar-point .ap-lang-dropdown {
    min-width: 248px;
    padding: 0 !important;
    margin-top: 0.65rem !important;
    border: 1px solid rgba(132, 14, 38, 0.1) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 12px 40px rgba(110, 27, 43, 0.14), 0 2px 8px rgba(17, 24, 39, 0.06) !important;
    overflow: hidden;
}

.theme-ayar-point .ap-lang-dropdown__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(132, 14, 38, 0.06) 0%, rgba(212, 168, 83, 0.08) 100%);
    border-bottom: 1px solid rgba(132, 14, 38, 0.08);
}

.theme-ayar-point .ap-lang-dropdown__icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-dark));
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(132, 14, 38, 0.22);
    flex-shrink: 0;
}

.theme-ayar-point .ap-lang-dropdown__title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ap-dark);
    line-height: 1.2;
}

.theme-ayar-point .ap-lang-dropdown__subtitle {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--ap-muted);
    line-height: 1.3;
}

.theme-ayar-point .ap-lang-dropdown__list {
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.theme-ayar-point .ap-lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-ayar-point .ap-lang-option:hover {
    background: rgba(132, 14, 38, 0.05);
    border-color: rgba(132, 14, 38, 0.08);
    transform: translateX(2px);
}

.theme-ayar-point .ap-lang-option.is-active {
    background: linear-gradient(135deg, rgba(132, 14, 38, 0.08) 0%, rgba(110, 27, 43, 0.04) 100%);
    border-color: rgba(132, 14, 38, 0.16);
    box-shadow: inset 3px 0 0 var(--ap-sidebar-accent);
}

.theme-ayar-point .ap-lang-option__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: auto;
    height: auto;
}

.theme-ayar-point .ap-lang-dropdown .iti__flag,
.theme-ayar-point .ap-lang-trigger .iti__flag {
    background-color: transparent !important;
    box-shadow: none !important;
    width: 20px !important;
    height: 15px !important;
}

.theme-ayar-point .ap-lang-flag {
    display: inline-block;
    flex-shrink: 0;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
    background-color: transparent !important;
    box-shadow: none !important;
}

.theme-ayar-point .ap-lang-option__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.theme-ayar-point .ap-lang-option__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ap-dark);
    line-height: 1.25;
}

.theme-ayar-point .ap-lang-option__meta {
    font-size: 0.72rem;
    color: var(--ap-muted);
    line-height: 1.2;
}

.theme-ayar-point .ap-lang-option__check {
    color: var(--ap-primary);
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.95;
}

.theme-ayar-point .ap-lang-option.is-active .ap-lang-option__label {
    color: var(--ap-primary);
}

/* Header gold price — quiet chip */
.ap-header-gold-price {
    gap: 6px;
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff8ee !important;
    color: #6E1B2B !important;
    font-size: 0.82rem;
    line-height: 1.2;
    text-decoration: none !important;
    border: 1px solid #f0e0c4;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.ap-header-gold-price:hover,
.ap-header-gold-price:focus {
    background: #fff1d6 !important;
    color: #6E1B2B !important;
    text-decoration: none !important;
    border-color: #e8d0a0;
}
.ap-header-gold-price i {
    color: #c9a24a !important;
    font-size: 0.95rem;
}
.ap-header-gold-price__label {
    color: #8a7a5a !important;
    font-weight: 600;
}
.ap-header-gold-price__value {
    color: #6E1B2B !important;
    font-weight: 800;
    letter-spacing: 0.01em;
    font-size: 0.9rem;
}
.ap-header-gold-price__unit {
    color: #9a8a6a !important;
    font-size: 0.72rem;
    font-weight: 500;
}

/* ── Shared content polish ── */
.theme-ayar-point .main .content.container-fluid {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
}

.theme-ayar-point .ap-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1199.98px) {
    .theme-ayar-point .ap-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .theme-ayar-point .ap-stat-grid {
        grid-template-columns: 1fr;
    }
}

.theme-ayar-point .ap-stat {
    position: relative;
    background: #fff;
    border: 1px solid rgba(109, 106, 123, 0.12);
    border-radius: 14px;
    padding: 1.05rem 1.15rem 1rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-ayar-point .ap-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--ap-stat-accent, var(--ap-primary));
}

.theme-ayar-point .ap-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(110, 27, 43, 0.08);
    border-color: rgba(132, 14, 38, 0.16);
}

.theme-ayar-point .ap-stat__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ap-muted);
    margin-bottom: 0.35rem;
}

.theme-ayar-point .ap-stat__value {
    margin: 0;
    font-family: 'Outfit', 'Open Sans', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ap-dark);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.theme-ayar-point .ap-stat--ok { --ap-stat-accent: #15803d; }
.theme-ayar-point .ap-stat--danger { --ap-stat-accent: #b91c1c; }
.theme-ayar-point .ap-stat--info { --ap-stat-accent: #1d4ed8; }
.theme-ayar-point .ap-stat--muted { --ap-stat-accent: #6b7280; }
.theme-ayar-point .ap-stat--gold { --ap-stat-accent: #d4a853; }

.theme-ayar-point #header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(109, 106, 123, 0.12);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 16px rgba(17, 24, 39, 0.03);
}

/* ── Global admin chrome — clean, light, consistent ── */
.theme-ayar-point {
    --ap-ink: #1a1214;
    --ap-label: #6d6670;
    --ap-line: #ece6e8;
}

.theme-ayar-point .main .content,
.theme-ayar-point .content.container-fluid {
    padding-top: 1.35rem;
}

.theme-ayar-point .modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 56px rgba(26, 18, 20, 0.16);
    overflow: hidden;
}

.theme-ayar-point .modal-header {
    border-bottom: 1px solid var(--ap-line);
    background: #fff;
    padding: 1rem 1.25rem;
}

.theme-ayar-point .modal-title {
    color: var(--ap-ink) !important;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.theme-ayar-point .modal-body {
    background: #fff;
}

.theme-ayar-point .modal-footer {
    border-top: 1px solid var(--ap-line);
    background: #fff;
}

.theme-ayar-point .form-control,
.theme-ayar-point .custom-select,
.theme-ayar-point select.form-control {
    border-color: #e5dfe1 !important;
    border-radius: 10px;
    min-height: 40px;
    color: var(--ap-ink);
}

.theme-ayar-point .form-control:focus,
.theme-ayar-point .custom-select:focus {
    border-color: rgba(110, 27, 43, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(110, 27, 43, 0.08) !important;
}

.theme-ayar-point .table thead th {
    border-bottom: 1px solid var(--ap-line);
    color: #8a8388;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    font-weight: 700;
    background: #fcfafb;
}

.theme-ayar-point .table td {
    border-color: #f3eef0;
    vertical-align: middle;
    color: var(--ap-ink);
}

.theme-ayar-point .card-header {
    background: #fff;
    border-bottom: 1px solid var(--ap-line);
}

.theme-ayar-point .page-header {
    margin-bottom: 1rem;
}

/* ── App shell: header / content / footer ── */
.theme-ayar-point #header.navbar {
    min-height: 64px;
    padding: 0;
}

.theme-ayar-point #header .navbar-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1.25rem;
    min-height: 64px;
}

.theme-ayar-point #header .navbar-nav-wrap-content-right {
    margin-left: auto;
}

.theme-ayar-point #header .navbar-nav {
    gap: 4px;
}

.theme-ayar-point #header .btn-icon.btn-ghost-secondary {
    width: 38px;
    height: 38px;
    border-radius: 10px !important;
    color: #6d6670 !important;
    background: transparent !important;
}

.theme-ayar-point #header .btn-icon.btn-ghost-secondary:hover {
    background: #f6f2f3 !important;
    color: #6E1B2B !important;
}

.theme-ayar-point #header .profile-name {
    font-size: 0.88rem;
    font-weight: 650;
    color: #1a1214 !important;
}

.theme-ayar-point #header .navbar-dropdown-account-wrapper .fs-12 {
    display: none;
}

.theme-ayar-point #header .avatar-sm {
    width: 36px;
    height: 36px;
}

.theme-ayar-point .main {
    background: #f6f4f5 !important;
}

.theme-ayar-point .main .content.container-fluid,
.theme-ayar-point .content.container-fluid {
    padding: 1.5rem 1.5rem 2rem;
}

.theme-ayar-point .footer.ap-footer,
.theme-ayar-point .ap-footer {
    background: #fff;
    border-top: 1px solid #ece6e8;
    padding: 0.7rem 1.5rem;
    margin-top: 0;
}

.theme-ayar-point .ap-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.theme-ayar-point .ap-footer__copy {
    color: #8a8388;
    font-size: 0.8rem;
}

.theme-ayar-point .ap-footer__ver {
    color: #a3999d;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

@media (max-width: 575.98px) {
    .theme-ayar-point .main .content.container-fluid,
    .theme-ayar-point .content.container-fluid {
        padding: 1rem 0.85rem 1.5rem;
    }

    .ap-header-gold-price__label,
    .ap-header-gold-price__unit {
        display: none;
    }
}
