/* =========================
   THEME VARIABLES
========================= */
:root {
    --bg: #0b0c12;
    --bg-soft: #0f111a;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.6);
    --card: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --primary: #9146ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --header-bg: rgba(11, 12, 20, 0.82);
    --header-border: rgba(255, 255, 255, 0.07);
    --au-gold: #F5A623;
    --au-gold-lt: #FFF3DC;
    --au-navy: #0D1B2A;
    --au-blue: #1565C0;
    --au-blue-lt: #E8F0FE;
    --au-success: #00897B;
    --au-radius: 16px;
}

/* =========================
   LIGHT MODE
========================= */
html.light-mode,
body.light-mode {
    --bg: #f4f6fb;
    --bg-soft: #ffffff;
    --text: #111318;
    --muted: rgba(0, 0, 0, 0.55);
    --card: #ffffff;
    --border: rgba(0, 0, 0, 0.10);
    --primary: #6a2fff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-border: rgba(0, 0, 0, 0.08);
}

html.dark-mode,
body.dark-mode {
    --bg: #0b0d14;
    --bg-soft: #0f121c;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.65);
    --card: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --primary: #9146ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --header-bg: rgba(11, 12, 20, 0.82);
    --header-border: rgba(255, 255, 255, 0.07);
}

/* =========================
   GLOBAL
========================= */
html,
body {
    height: 100%;
    background: var(--bg) !important;
    color: var(--text) !important;
    transition: background .25s ease, color .25s ease;
}

* {
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

/* =========================
   LAYOUT WRAPPERS
========================= */


.app-container {
    max-width: 1400px !important;
}

/* =========================
   HEADER  (search + switch + butonlar)
========================= */
.app-header,
.modern-header {
    background: var(--header-bg) !important;
    border-bottom: 1px solid var(--header-border) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 999;
    transition: background .25s ease, border-color .25s ease;
}

/* =========================
   HEADER — SEARCH
========================= */
.search-box {
    position: relative;
    max-width: 420px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search-input {
    padding-left: 40px;
    height: 38px;
    border-radius: 10px;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.search-input::placeholder {
    color: var(--muted);
}

.search-input:focus {
    background: var(--card) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.15) !important;
    outline: none;
}

/* =========================
   HEADER — ICON BUTTONS  (theme switch dahil)
========================= */
.modern-icon {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.modern-icon i,
.modern-icon svg {
    color: var(--text) !important;
    transition: color .25s ease;
}

.modern-icon:hover {
    background: rgba(145, 70, 255, 0.15) !important;
    border-color: rgba(145, 70, 255, 0.35) !important;
    transform: translateY(-1px);
}

/* NOTIFICATION DOT */
.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ff3b3b;
    border-radius: 50%;
}

/* =========================
   HEADER — GİRİŞ / ÜYE OL BUTONLARI
========================= */
.btn-header-login {
    height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-header-login:hover {
    background: rgba(145, 70, 255, 0.12) !important;
    border-color: rgba(145, 70, 255, 0.4) !important;
    transform: translateY(-1px);
}

.btn-header-register {
    height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    background: var(--primary) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(145, 70, 255, 0.35);
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-header-register:hover {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(145, 70, 255, 0.45);
}

/* =========================
   SIDEBAR
========================= */
#kt_app_sidebar,
.app-sidebar {
    background: var(--bg-soft) !important;
    border-right: 1px solid var(--border) !important;
    transition: background .25s ease, border-color .25s ease;
}

/* =========================
   SIDEBAR LINKS
========================= */
.sidebar-title {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 16px 10px 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 12px;
    color: var(--text) !important;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.sidebar-link i {
    font-size: 18px;
    color: var(--muted) !important;
    transition: color .18s ease;
}

.sidebar-link:hover {
    background: rgba(145, 70, 255, 0.12);
    transform: translateX(4px);
}

/* AKTİF SAYFA — hem dark hem light modda okunur */
.sidebar-link.active {
    background: rgba(145, 70, 255, 0.18);
    color: var(--primary) !important;
    box-shadow: inset 0 0 0 1px rgba(145, 70, 255, 0.3);
}

.sidebar-link.active i {
    color: var(--primary) !important;
}

/* SIDEBAR USER */
.sidebar-user {
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.06);
}

/* SIDEBAR DROPDOWN */
.sidebar-dropdown {
    background: var(--bg-soft) !important;
    backdrop-filter: blur(14px);
    border: 1px solid var(--border) !important;
    border-radius: 14px;
    padding: 8px;
    min-width: 240px;
}

.sidebar-dropdown-header {
    padding: 10px 12px;
    margin-bottom: 6px;
}

.sidebar-dropdown-header .name {
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.sidebar-dropdown-header .email {
    font-size: 12px;
    color: var(--muted);
}

.sidebar-dropdown .dropdown-item {
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s ease, transform .15s ease;
}

.sidebar-dropdown .dropdown-item:hover {
    background: rgba(145, 70, 255, 0.12) !important;
    transform: translateX(3px);
}

.sidebar-dropdown i {
    font-size: 16px;
    color: var(--muted) !important;
}

.sidebar-dropdown .dropdown-divider {
    border-color: var(--border);
}

/* =========================
   MENU LINKS (METRONIC)
========================= */
.menu-link {
    border-radius: 10px !important;
    transition: background .2s ease, transform .2s ease;
}

.menu-link:hover {
    background: rgba(145, 70, 255, 0.12) !important;
    transform: translateX(3px);
}

.menu-item.active>.menu-link {
    background: rgba(145, 70, 255, 0.18) !important;
    color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.15);
}

/* =========================
   DROPDOWNS
========================= */
.modern-dropdown,
.dropdown-menu {
    background: var(--bg-soft) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px;
    overflow: hidden;
    min-width: 280px;
    padding: 0;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    transition: background .25s ease, border-color .25s ease;
}

.dropdown-item {
    color: var(--text) !important;
    padding: 10px 14px;
    transition: background .15s ease;
}

.dropdown-item:hover {
    background: rgba(145, 70, 255, 0.12) !important;
    color: var(--primary) !important;
}

/* USER BOX */
.user-box {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

/* =========================
   CARDS
========================= */
.card,
.card-body,
.card-header {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    color: var(--text) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

/* =========================
   AUCTION CARD  (light modda metin sorunu çözüldü)
========================= */
.auction-card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
    backdrop-filter: blur(10px);
}

.auction-card:hover {
    transform: translateY(-6px);
    border-color: rgba(145, 70, 255, 0.4) !important;
}

/* auction-card içindeki TÜM metin var(--text) kullanır */
.auction-card,
.auction-card * {
    color: var(--text) !important;
}

.auction-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.price {
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 18px;
}

.meta {
    font-size: 12px;
    color: var(--muted) !important;
}

.section-title {
    color: var(--text);
    font-weight: 700;
    margin: 30px 0 15px;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
    background: linear-gradient(135deg, #9146ff, #6a2fff) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: var(--shadow);
}

.modern-btn {
    border-radius: 10px;
    font-weight: 600;
}

/* =========================
   TEXT HELPERS
========================= */
.text-muted {
    color: var(--muted) !important;
}

.text-white,
.text-light {
    color: var(--text) !important;
}

/* =========================
   ALERTS
========================= */
.alert {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(10px);
    color: var(--text) !important;
}

/* =========================
   FOOTER
========================= */
.app-footer {
    background: transparent !important;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(145, 70, 255, 0.7);
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    padding: 60px;
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.12), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1601597111158-2fceff292cdc?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-weight: 800;
    color: #fff;
    font-size: 34px;
}

.hero p {
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
}

/* =========================
   LIVE BADGE
========================= */
.live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
}

.live i {
    width: 8px;
    height: 8px;
    background: #ff3b3b;
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.7);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {
    .search-box {
        max-width: 180px;
    }
}

.loading {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.loading svg {
    display: none;
}

.loading::after {
    content: "";
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-right-color: #00d4ff;
    animation: spin 0.9s linear infinite;
    box-shadow: 0 0 25px rgba(145, 70, 255, 0.25);
}

.loading::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(145, 70, 255, 0.2), transparent 70%);
    filter: blur(20px);
    animation: glow-pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

body.loaded .loading {
    opacity: 0;
    visibility: hidden;
    transition: all .35s ease;
}

.profile-toolbar {
    background: linear-gradient(135deg, var(--bg) 0%, rgba(145, 70, 255, 0.3) 100%);
    border-radius: var(--au-radius);
    padding: 24px 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.profile-toolbar::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 166, 35, .15) 0%, transparent 70%);
    border-radius: 50%;
}

.profile-toolbar::after {
    content: '';
    position: absolute;
    right: 60px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(21, 101, 192, .2) 0%, transparent 70%);
    border-radius: 50%;
}

/* ── Profil özet kartı ── */
.profile-summary-card {
    background: linear-gradient(160deg, var(--au-navy) 0%, #1a2e45 60%, #1565C0 100%);
    border-radius: var(--au-radius);
    border: none;
    position: relative;
    overflow: hidden;
}

.profile-summary-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(245, 166, 35, .18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.profile-summary-card .card-body {
    position: relative;
    z-index: 1;
}

/* Avatar ring */
.avatar-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--au-gold), #ff6b35, var(--au-blue));
    padding: 3px;
    margin: 0 auto 16px;
    position: relative;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--au-navy);
}

.avatar-online {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #00e676;
    border-radius: 50%;
    border: 3px solid var(--au-navy);
}

/* Stat pill */
.stat-pill {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 12px 8px;
    transition: background .2s;
}

.stat-pill:hover {
    background: rgba(255, 255, 255, .14);
}

/* Info row */
.profile-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-row .icon-wrap {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Form kartları ── */
.settings-card {
    border-radius: var(--au-radius);
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    overflow: hidden;
    margin-bottom: 20px;
    transition: box-shadow .25s;
}

.settings-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .09);
}

.settings-card .card-header {
    background: #fff;
    border-bottom: 1px solid #EAECF0;
    padding: 20px 28px;
    cursor: pointer;
    user-select: none;
}

.settings-card .card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #101828;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card .card-header .header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Section label */
.section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #98A2B3;
    margin-bottom: 6px;
}

/* Input grup */
.input-group-icon {
    position: relative;
}

.input-group-icon .form-control {
    padding-left: 44px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    height: 48px;
    color: var(--text);
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.input-group-icon .form-control:focus {
    border-color: var(--primary);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, .1);
}

.input-group-icon .form-control.is-invalid {
    border-color: #F04438;
}

.input-group-icon .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #98A2B3;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.input-group-icon .form-control:disabled,
.input-group-icon .form-control[readonly] {
    background: var(--bg);
    color: var(--text);
    cursor: not-allowed;
}

/* Avatar upload */
.avatar-upload-zone {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--bg);
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}

.avatar-upload-zone:hover {
    border-color: var(--primary);
    background: var(--bg);
}

.avatar-upload-zone .avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #E4E7EC;
    flex-shrink: 0;
}

/* Role badge */
.role-badge-admin {
    background: #FEF0C7;
    color: #B54708;
}

.role-badge-seller {
    background: #D1FAE5;
    color: #065F46;
}

.role-badge-buyer {
    background: var(--au-blue-lt);
    color: var(--au-blue);
}

/* E-posta/şifre section */
.security-row {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.security-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Toggle chevron */
.chevron-icon {
    transition: transform .3s;
}

.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

/* Alert custom */
.alert-au {
    border-radius: 12px;
    border-left: 4px solid;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.alert-au.success {
    background: #ECFDF3;
    border-color: var(--au-success);
}

.alert-au.danger {
    background: #FEF3F2;
    border-color: #F04438;
}

/* Buton */

.btn-au-ghost {
    background: #F2F4F7;
    color: #344054;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s;
}

.btn-au-ghost:hover {
    background: #E4E7EC;
    color: #344054;
}

/* Animasyon */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeSlideIn .4s ease both;
}

.animate-in:nth-child(1) {
    animation-delay: .05s;
}

.animate-in:nth-child(2) {
    animation-delay: .12s;
}

.animate-in:nth-child(3) {
    animation-delay: .19s;
}

.btn-outline-primary {
    background: transparent !important;
    border: 1.5px solid #9146ff !important;
    color: #9146ff !important;
    box-shadow: none !important;
    transition: all .2s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #9146ff, #6a2fff) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.btn-outline-primary:active {
    transform: translateY(0);
    box-shadow: none;
}



/* ── Admin toolbar — profil sayfasındaki profile-toolbar ile aynı mantık ── */
.admin-toolbar {
    background: linear-gradient(135deg, var(--bg) 0%, rgba(145, 70, 255, .25) 100%);
    border: 1px solid var(--border);
    border-radius: var(--au-radius);
    padding: 22px 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.admin-toolbar::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(145, 70, 255, .15) 0%, transparent 70%);
    pointer-events: none;
}

.admin-toolbar .toolbar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.admin-toolbar .breadcrumb-item {
    color: var(--muted);
    font-size: 13px;
}

.admin-toolbar .breadcrumb-item a {
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
}

.admin-toolbar .breadcrumb-item a:hover {
    color: var(--primary);
}

.admin-toolbar .breadcrumb-item.active {
    color: var(--text);
    font-weight: 600;
}

.admin-toolbar .breadcrumb-item+.breadcrumb-item::before {
    color: var(--muted);
}

/* ── Stat kart ── */
.admin-stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .2s, border-color .2s;
    height: 100%;
}

.admin-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(145, 70, 255, .3);
}

.admin-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-stat-icon i {
    font-size: 20px;
}

.admin-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.admin-stat-lbl {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
    font-weight: 500;
}

/* ── Tablo kart ── */
.admin-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.admin-card-head {
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Tablo ── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 12px 18px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr {
    transition: background .15s;
}

.admin-table tbody tr:hover {
    background: rgba(145, 70, 255, .05);
}

/* ── Badge ── */
.a-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.a-badge.admin {
    background: rgba(251, 191, 36, .12);
    color: #fbbf24;
}

.a-badge.seller {
    background: rgba(16, 185, 129, .12);
    color: #10b981;
}

.a-badge.buyer {
    background: rgba(145, 70, 255, .12);
    color: var(--primary);
}

.a-badge.success {
    background: rgba(16, 185, 129, .12);
    color: #10b981;
}

.a-badge.warning {
    background: rgba(251, 191, 36, .12);
    color: #fbbf24;
}

.a-badge.danger {
    background: rgba(248, 113, 113, .12);
    color: #f87171;
}

.a-badge.info {
    background: rgba(6, 182, 212, .12);
    color: #06b6d4;
}

/* ── Avatar ── */
.a-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.a-avatar-init {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: rgba(145, 70, 255, .15);
    color: var(--primary);
}

/* ── Filtre input ── */
.admin-input-wrap {
    position: relative;
}

.admin-input-wrap .admin-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--muted);
    pointer-events: none;
}

.admin-filter-input {
    height: 38px;
    padding: 0 14px 0 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.admin-filter-input::placeholder {
    color: var(--muted);
}

.admin-filter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(145, 70, 255, .12);
}

.admin-filter-select {
    height: 38px;
    padding: 0 30px 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 13px;
    appearance: none;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%238b8fa8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .18s;
}

.admin-filter-select:focus {
    border-color: var(--primary);
}

/* ── Butonlar ── */
.btn-admin-pri {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #6a2fff);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(145, 70, 255, .3);
    transition: opacity .15s, transform .15s;
    text-decoration: none;
}

.btn-admin-pri:hover {
    opacity: .88;
    transform: translateY(-1px);
    color: #fff;
}

.btn-admin-sec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.btn-admin-sec:hover {
    border-color: rgba(145, 70, 255, .4);
    color: var(--text);
}

.btn-admin-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 9px;
    background: rgba(16, 185, 129, .1);
    border: 1px solid rgba(16, 185, 129, .2);
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.btn-admin-success:hover {
    background: rgba(16, 185, 129, .2);
}

.btn-admin-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 9px;
    background: rgba(248, 113, 113, .1);
    border: 1px solid rgba(248, 113, 113, .2);
    color: #f87171;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    transition: background .15s;
}

.btn-admin-danger:hover {
    background: rgba(248, 113, 113, .2);
    color: #f87171;
}

.btn-sm-icon {
    padding: 6px 10px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

/* ── Form input (edit sayfası) ── */
.admin-finput {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.admin-finput::placeholder {
    color: var(--muted);
}

.admin-finput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px rgba(145, 70, 255, .12);
}

.admin-finput.is-invalid {
    border-color: #f87171;
}

.admin-finput:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.admin-fselect {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 46px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%238b8fa8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color .18s;
}

.admin-fselect:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px rgba(145, 70, 255, .12);
}

.admin-fwrap {
    position: relative;
}

.admin-ficon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: var(--muted);
    pointer-events: none;
}

.admin-flabel {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
    display: block;
}

.admin-flabel .req {
    color: #f87171;
}

.admin-ferr {
    font-size: 12px;
    color: #f87171;
    margin-top: 5px;
}

/* ── Toggle switch ── */
.admin-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.admin-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: var(--border);
    cursor: pointer;
    transition: background .2s;
}

.admin-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    left: 3px;
    top: 3px;
    transition: transform .2s;
}

.admin-toggle input:checked+.admin-toggle-slider {
    background: var(--primary);
}

.admin-toggle input:checked+.admin-toggle-slider::before {
    transform: translateX(20px);
}

/* ── Pagination ── */
.admin-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-page {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}

.admin-page:hover,
.admin-page.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ── Upload zone ── */
.admin-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg-soft);
    border: 1.5px dashed var(--border);
    border-radius: 13px;
    cursor: pointer;
    transition: border-color .18s;
}

.admin-upload:hover {
    border-color: var(--primary);
}

/* ── Detay sayfası hero ── */
.admin-hero {
    background: linear-gradient(160deg, var(--au-navy) 0%, #1a2e45 60%, #1565C0 100%);
    padding: 28px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.admin-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, .15) 0%, transparent 65%);
    pointer-events: none;
}

/* ── Info row (detay kartı) ── */
.admin-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.admin-info-row:last-child {
    border-bottom: none;
}

.admin-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-info-icon i {
    font-size: 15px;
    color: var(--muted);
}

.admin-info-lbl {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-info-val {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-top: 2px;
}

/* ── Fade animasyon ── */
.admin-fade {
    animation: adminFade .3s ease both;
}

@keyframes adminFade {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ── SweetAlert2 tema ── */
.swal2-popup {
    background: var(--bg-soft) !important;
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;
    color: var(--text) !important;
}

.swal2-title {
    color: var(--text) !important;
}

.swal2-html-container {
    color: var(--muted) !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, var(--primary), #6a2fff) !important;
    border: none !important;
    border-radius: 10px !important;
}

.swal2-cancel {
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 10px !important;
}