/* FearlessBoard theme.
   :root          = website + draft room: bright wine on rich plum (esports art reads best on dark).
   .theme-portal  = admin, sign-in and account pages: light futuristic (same method as the auto-lens admin):
                    one token block, glass floating shell, one table look, gradient pill buttons, soft chips.
   Blue and red are reserved for the two draft teams everywhere. */
:root {
    --background: #26091B;
    --surface: #35102A;
    --surface-2: #451737;
    --border: #5C2547;
    --foreground: #FFF1EA;
    --muted-foreground: #DDB8C3;
    --primary: #A3245F;
    --primary-hover: #BA3470;
    --secondary: #C2678A;
    --accent: #F4A9BE;
    --destructive: #FF6B7A;
    --team-blue: #1EA7FF;
    --team-red: #FF3355;
    --radius: .5rem;
    --portal-bg: url('../images/brand/portal-bg.svg');
}

::selection { background: var(--secondary); color: #fff; }

/* =====================================================================
   ADMIN / AUTH / ACCOUNT PAGES: light futuristic
   ===================================================================== */
.theme-portal {
    --background: #FBF4F1;
    --surface: #FFFFFF;
    --surface-2: #F7EBE6;
    --border: #EFDDD6;
    --foreground: #2A0E1C;
    --muted-foreground: #7D5D68;
    --primary: #7C0E44;
    --primary-hover: #93184F;
    --secondary: #AA5E7A;
    --accent: #D49A9A;
    --destructive: #C2364A;
    --team-blue: #0B7FD1;
    --team-red: #D6203F;
    --grad-primary: linear-gradient(135deg, #A3245F 0%, #7C0E44 100%);
    --glass: rgba(255, 255, 255, .78);
    --shadow-1: 0 1px 2px rgba(42, 14, 28, .05), 0 6px 18px rgba(42, 14, 28, .06);
    --shadow-2: 0 14px 34px rgba(42, 14, 28, .12);
    --shadow-glow: 0 6px 18px rgba(124, 14, 68, .28);
    --r-md: 12px;
    --r-lg: 16px;
    --font-ui: 'Sora', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --chip-primary-bg: #F8E3EC; --chip-primary-fg: #7C0E44;
    --chip-amber-bg: #FDEFD9;   --chip-amber-fg: #7A4A00;
    --chip-danger-bg: #FBE2E5;  --chip-danger-fg: #A0172C;
    --chip-blue-bg: #E2F0FC;    --chip-blue-fg: #0A5A96;
    --chip-red-bg: #FCE4E8;     --chip-red-fg: #A8152F;
    --chip-success-bg: #E3F4EA; --chip-success-fg: #1D6640;

    background: var(--background) !important;
    background-image: radial-gradient(ellipse 60% 40% at 85% -5%, rgba(170, 94, 122, .16), transparent 70%), radial-gradient(ellipse 50% 40% at 0% 100%, rgba(212, 154, 154, .18), transparent 70%) !important;
    background-attachment: fixed !important;
    color: var(--foreground);
    font-family: var(--font-ui);
}
.theme-portal h1, .theme-portal h2, .theme-portal h3, .theme-portal h4, .theme-portal h5, .theme-portal h6,
.theme-portal .card-title, .theme-portal .page-title { color: var(--foreground); font-family: var(--font-ui); letter-spacing: -.01em; }
.theme-portal a { color: var(--primary); }
.theme-portal a:hover { color: var(--primary-hover); }
.theme-portal .text-muted { color: var(--muted-foreground) !important; }
.theme-portal .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Shell: floating glass topbar + sidebar (desktop) ---------- */
.theme-portal .main-wrapper, .theme-portal .page-wrapper { background: transparent; }
.theme-portal .header, .theme-portal .header .header-left { background: transparent; border: 0; box-shadow: none; }
.theme-portal .header { background: var(--glass); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--border); }
.theme-portal .header .header-left .logo img { max-height: 40px; }
.theme-portal .user-menu.nav > li > a, .theme-portal .user-menu.nav > li > a i { color: var(--muted-foreground); }
.theme-portal .user-menu.nav > li > a:hover, .theme-portal .user-menu.nav > li > a:focus { background: transparent; }
.theme-portal .user-menu.nav > li > a:hover i { color: var(--primary); }
.theme-portal .header-nav-list { width: 38px; height: 38px; margin-top: 11px; display: grid !important; place-items: center; padding: 0 !important; border-radius: 50%; background: var(--surface-2); line-height: 1 !important; }
.theme-portal .header-nav-list img { width: 16px; filter: invert(12%) sepia(40%) saturate(2000%) hue-rotate(300deg); }
.theme-portal .user-text h6 { color: var(--foreground); font-weight: 600; }
.theme-portal .user-header { background: var(--surface-2); border-radius: var(--r-md) var(--r-md) 0 0; }
.theme-portal .menu-toggle a, .theme-portal #toggle_btn { color: var(--primary); }
@media (min-width: 992px) {
    .theme-portal .menu-toggle #toggle_btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--chip-primary-bg); }
}

.theme-portal .sidebar { background: var(--glass); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-right: 1px solid var(--border); }
.theme-portal .menu-title, .theme-portal .menu-title span { color: var(--muted-foreground); font-size: 12px; font-weight: 600; }
.theme-portal .sidebar-menu li a { color: var(--muted-foreground); font-weight: 500; }
.theme-portal .sidebar-menu > ul > li > a { margin: 0; padding: 11px 14px; border-radius: 10px; }
.theme-portal .sidebar-menu > ul > li > a:hover { background: var(--surface-2); color: var(--foreground); margin: 0; padding-left: 14px; }
.theme-portal .sidebar-menu li.active > a { background: linear-gradient(90deg, rgba(124, 14, 68, .1), rgba(124, 14, 68, .02)); color: var(--primary); margin: 0; padding-left: 14px; font-weight: 600; }
.theme-portal .sidebar-menu li.active > a::before { left: -15px; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary); box-shadow: var(--shadow-glow); }
.theme-portal .sidebar-menu li.active > a i { color: var(--primary); }
.theme-portal .sidebar-menu .menu-count { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--chip-primary-bg); color: var(--chip-primary-fg); font: 600 11px/1.4 var(--font-mono); }

@media (min-width: 992px) {
    .theme-portal .header { top: 12px; left: 12px; right: 12px; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
    .theme-portal .sidebar { top: 84px; left: 12px; bottom: 12px; width: 247px; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
    .theme-portal .page-wrapper { margin-left: 271px; padding-top: 84px; }
    .theme-portal.mini-sidebar .sidebar { width: 78px; }
    .theme-portal.mini-sidebar .page-wrapper { margin-left: 102px; }
    .theme-portal.mini-sidebar.expand-menu .sidebar { width: 247px; }
}

/* ---------- Page header ---------- */
.theme-portal .page-header { margin-bottom: 1.25rem; }
.theme-portal .breadcrumb { margin: 0; padding: 0; background: transparent; }
.theme-portal .breadcrumb-item, .theme-portal .breadcrumb-item a, .theme-portal .breadcrumb-item + .breadcrumb-item::before { color: var(--muted-foreground); font-size: 13px; }
.theme-portal .breadcrumb-item.active { color: var(--foreground); font-weight: 600; }
.theme-portal .page-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 1.25rem; }
.theme-portal .page-heading h1 { margin: 2px 0 0; font-size: 26px; font-weight: 700; }

/* ---------- Cards ---------- */
.theme-portal .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); color: var(--foreground); margin-bottom: 1.25rem; }
.theme-portal .card .card-header { background: transparent; border-bottom: 1px solid var(--border); }
.theme-portal .card-body { padding: 1.25rem; }
.theme-portal .card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 1rem; }
.theme-portal .card-head h2, .theme-portal .card-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.theme-portal .card-head p { margin: 2px 0 0; color: var(--muted-foreground); font-size: 13px; }
.theme-portal .card-table .card-body .page-header { margin-bottom: 0; }

/* KPI cards */
.theme-portal .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.theme-portal .kpi { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: box-shadow .18s, transform .18s; }
.theme-portal .kpi:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.theme-portal .kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(170, 94, 122, .14), transparent 70%); }
.theme-portal .kpi-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--chip-primary-bg); color: var(--primary); font-size: 19px; }
.theme-portal .kpi-icon.is-grad { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-glow); }
.theme-portal .kpi-label { margin: 0; color: var(--muted-foreground); font-size: 13px; font-weight: 500; }
.theme-portal .kpi-value { margin: 2px 0 0; font: 700 26px/1.1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--foreground); }
.theme-portal .kpi-delta { font: 600 12px/1 var(--font-mono); }
.theme-portal .kpi-delta.up { color: var(--chip-success-fg); }
.theme-portal .kpi-delta.down { color: var(--chip-danger-fg); }

/* Ranked lists (dashboard: most picked / banned) */
.theme-portal .rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.theme-portal .rank-list li { display: grid; grid-template-columns: 18px 36px 1fr auto; align-items: center; gap: 12px; }
.theme-portal .rank-pos { color: var(--muted-foreground); font-size: 12px; text-align: center; }
.theme-portal .rank-body { display: grid; gap: 6px; min-width: 0; }
.theme-portal .rank-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-portal .rank-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.theme-portal .rank-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-primary); }
.theme-portal .rank-bar.is-ban i { background: linear-gradient(90deg, #E26A7E, var(--destructive)); }
.theme-portal .rank-count { font-weight: 700; font-size: 14px; }

/* ---------- Chips ---------- */
.theme-portal .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; background: var(--surface-2); color: var(--foreground); }
.theme-portal .chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.theme-portal .chip-primary { background: var(--chip-primary-bg); color: var(--chip-primary-fg); }
.theme-portal .chip-amber { background: var(--chip-amber-bg); color: var(--chip-amber-fg); }
.theme-portal .chip-danger { background: var(--chip-danger-bg); color: var(--chip-danger-fg); }
.theme-portal .chip-success { background: var(--chip-success-bg); color: var(--chip-success-fg); }
.theme-portal .team { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.theme-portal .team::before { content: ''; width: 8px; height: 8px; border-radius: 2px; }
.theme-portal .team-blue::before { background: var(--team-blue); }
.theme-portal .team-red::before { background: var(--team-red); }
.theme-portal .vs-sep { margin: 0 8px; color: var(--muted-foreground); font-size: 12px; }

/* ---------- Buttons ---------- */
.theme-portal .btn { border-radius: 999px; font-weight: 600; padding: .5rem 1.1rem; transition: box-shadow .18s, transform .12s, background-color .18s; }
.theme-portal .btn:active { transform: translateY(1px); }
.theme-portal .btn-primary, .btn-primary-yellow { background: var(--grad-primary) !important; border: 0 !important; color: #fff !important; box-shadow: var(--shadow-glow); }
.theme-portal .btn-primary:hover, .btn-primary-yellow:hover { box-shadow: 0 8px 24px rgba(124, 14, 68, .38); filter: brightness(1.06); }
.theme-portal .btn-primary:focus-visible, .btn-primary-yellow:focus-visible { box-shadow: 0 0 0 3px rgba(124, 14, 68, .25) !important; }
.theme-portal .btn-outline { background: var(--surface); border: 1px solid var(--border); color: var(--foreground); }
.theme-portal .btn-outline:hover { border-color: var(--secondary); color: var(--primary); }
.theme-portal .btn-close { filter: none; }

/* Round row actions (icon button + tooltip via title + aria-label) */
.theme-portal .row-actions { display: inline-flex; gap: 6px; }
.theme-portal .row-action { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--muted-foreground); font-size: 14px; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
.theme-portal .row-action:hover, .theme-portal .row-action:focus-visible { background: var(--chip-primary-bg); border-color: transparent; color: var(--primary); outline: 0; box-shadow: 0 0 0 3px rgba(124, 14, 68, .12); }
.theme-portal .row-action.is-blue:hover { background: var(--chip-blue-bg); color: var(--chip-blue-fg); }
.theme-portal .row-action.is-red:hover { background: var(--chip-red-bg); color: var(--chip-red-fg); }
.theme-portal .row-action.is-danger:hover { background: var(--chip-danger-bg); color: var(--chip-danger-fg); }
.theme-portal .row-action.is-done { background: var(--chip-success-bg); color: var(--chip-success-fg); border-color: transparent; }

/* ---------- Forms ---------- */
.theme-portal .form-control, .theme-portal .form-select { background-color: var(--surface); color: var(--foreground); border: 1px solid var(--border); border-radius: 10px; }
.theme-portal .form-control::placeholder { color: #B09099; }
.theme-portal .form-control:focus, .theme-portal .form-select:focus { background-color: var(--surface); color: var(--foreground); border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(124, 14, 68, .12); }
.theme-portal .form-control[type=file]::file-selector-button { background: var(--surface-2); color: var(--foreground); border-color: var(--border); }
.theme-portal .form-check-input { background-color: var(--surface); border-color: var(--secondary); }
.theme-portal .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.theme-portal .form-text, .theme-portal label { color: var(--muted-foreground); }
.theme-portal .form-title { color: var(--foreground); }
.theme-portal .form-title span { background-color: var(--surface); }
.theme-portal .local-forms label { background: var(--surface) !important; color: var(--muted-foreground) !important; }
.theme-portal .checktoggle { background-color: #EADAD3; border-color: transparent; }
.theme-portal .checktoggle::after { background-color: #fff; box-shadow: 0 1px 3px rgba(42, 14, 28, .25); }
.theme-portal .check:checked + .checktoggle { background: var(--grad-primary); border-color: transparent; }
.theme-portal .check:focus-visible + .checktoggle { box-shadow: 0 0 0 3px rgba(124, 14, 68, .2); }
.theme-portal .invalid-feedback, .theme-portal .text-danger, .theme-portal .login-danger { color: var(--destructive) !important; }

/* ---------- Tables: one look for every table ---------- */
.theme-portal .table-responsive { max-height: 640px; overflow: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.theme-portal .table { margin: 0; color: var(--foreground); --bs-table-bg: transparent; --bs-table-striped-bg: transparent; --bs-table-hover-bg: transparent; --bs-table-color: var(--foreground); --bs-table-striped-color: var(--foreground); --bs-table-hover-color: var(--foreground); border-color: var(--border); }
.theme-portal .table > :not(caption) > * > * { background: transparent; color: var(--foreground); border-bottom: 1px solid var(--border); padding: .8rem .9rem; vertical-align: middle; }
.theme-portal .table thead th { position: sticky; top: 0; z-index: 2; background: #FCF6F3 !important; color: var(--muted-foreground) !important; font-size: 12px; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--border); }
.theme-portal .table tbody tr { border-bottom: 0; transition: background-color .12s; }
.theme-portal .table tbody tr:last-child > * { border-bottom: 0; }
.theme-portal .table-striped > tbody > tr:nth-of-type(odd), .theme-portal .table-striped tbody tr:nth-of-type(even) { background-color: transparent; }
.theme-portal .table-hover tbody tr:hover, .theme-portal .table-hover tbody tr:hover td { background-color: rgba(124, 14, 68, .035) !important; color: var(--foreground); }
.theme-portal .table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.theme-portal .table-avatar { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 600; }
.theme-portal .table-avatar .avatar-img, .theme-portal .champ-img { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); object-fit: cover; }
.theme-portal .empty-state { padding: 36px 12px !important; text-align: center; color: var(--muted-foreground); }

/* DataTables chrome: search with icon, pill length, pill paginator */
.theme-portal .dataTables_wrapper .row:first-child { align-items: center; margin-bottom: .9rem; }
.theme-portal .dataTables_wrapper .row:last-child { align-items: center; margin-top: .9rem; }
.theme-portal .dataTables_length label, .theme-portal .dataTables_filter label, .theme-portal .dataTables_info { color: var(--muted-foreground) !important; font-size: 13px; }
.theme-portal .dataTables_info { font-family: var(--font-mono); padding-top: 0 !important; }
.theme-portal .dataTables_length select { min-width: 72px; margin: 0 6px; padding: 6px 28px 6px 12px; border: 1px solid var(--border); border-radius: 999px; background-color: var(--surface); color: var(--foreground); }
.theme-portal .dataTables_filter input { width: 260px !important; max-width: 100%; margin-left: 0 !important; padding: 8px 14px 8px 36px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237D5D68' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 13px center no-repeat; color: var(--foreground); }
.theme-portal .dataTables_filter input:focus { outline: 0; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(124, 14, 68, .12); }
.theme-portal .pagination { gap: 4px; }
.theme-portal .page-link { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border) !important; border-radius: 999px !important; background: var(--surface); color: var(--foreground); font: 600 13px/1 var(--font-mono); }
.theme-portal .page-link:hover { background: var(--surface-2); color: var(--primary); }
.theme-portal .page-item.active .page-link { background: var(--grad-primary); border-color: transparent !important; color: #fff; box-shadow: var(--shadow-glow); }
.theme-portal .page-item.disabled .page-link { background: var(--surface); color: #C9AFB6; }
.theme-portal table.dataTable thead .sorting::before, .theme-portal table.dataTable thead .sorting::after,
.theme-portal table.dataTable thead .sorting_asc::before, .theme-portal table.dataTable thead .sorting_desc::after { opacity: .3; }
.theme-portal table.dataTable thead .sorting_asc::after, .theme-portal table.dataTable thead .sorting_desc::before { opacity: .9; color: var(--primary); }

/* ---------- Dropdowns, alerts, misc ---------- */
.theme-portal .dropdown-menu { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 6px; overflow: hidden; }
.theme-portal .dropdown-item { color: var(--foreground); border-radius: 8px; }
.theme-portal .header .dropdown-menu > li > a:hover, .theme-portal .header .dropdown-menu > li > a:focus, .theme-portal .dropdown-item:hover, .theme-portal .dropdown-item:focus { background: var(--chip-primary-bg); color: var(--primary); }
.theme-portal .header .dropdown-menu > li > a i, .theme-portal .header .user-menu .dropdown-menu > li > a i { color: var(--primary); }
.theme-portal .alert-success { display: flex; align-items: center; gap: 10px; background: var(--chip-success-bg); border: 1px solid #BFE3CC !important; border-radius: var(--r-md); color: var(--chip-success-fg) !important; }
.theme-portal .alert-success .text-success { color: var(--chip-success-fg) !important; font-weight: 600; }
.theme-portal .alert-success .btn-close-white { filter: none; }
.theme-portal .alert-danger { background: var(--chip-danger-bg); border-color: #F2C2C9; color: var(--chip-danger-fg); border-radius: var(--r-md); }
.theme-portal .img-thumbnail { background: var(--surface); border-color: var(--border); border-radius: 10px; }
.theme-portal .avatar-img { border: 1px solid var(--border); }

/* Brand lockup in the admin header */
.theme-portal .header .header-left .logo { text-decoration: none; }
.theme-portal .header .header-left .logo img { vertical-align: middle; }
.theme-portal .brand-word { margin-left: 10px; vertical-align: middle; font: 700 17px/1 var(--font-ui); letter-spacing: -.02em; color: var(--foreground); }
.theme-portal .brand-word b { font-weight: 400; color: var(--secondary); }
.theme-portal.mini-sidebar .brand-word { display: none; }

/* Footer (in the page flow, never over content) */
.theme-portal .admin-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 8px 1.5rem 1.25rem; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--glass); color: var(--muted-foreground); font-size: 13px; }
.theme-portal .admin-footer p { margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted-foreground); }
.theme-portal .admin-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.theme-portal .admin-footer a { color: var(--muted-foreground); text-decoration: none; font-weight: 500; }
.theme-portal .admin-footer a:hover { color: var(--primary); }

/* ---------- Demo mode ---------- */
.theme-portal .demo-badge-item { display: flex; align-items: center; margin-right: 12px; }
.demo-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #EBC9D6; border-radius: 999px; background: var(--chip-primary-bg, #F8E3EC); color: var(--chip-primary-fg, #7C0E44); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: help; }
.demo-badge i { color: inherit; }
.demo-accounts { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.demo-accounts__title { margin: 0 0 10px; color: var(--muted-foreground); font-size: 14px; font-weight: 600; }
.demo-account { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--foreground); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.demo-account:hover, .demo-account:focus-visible { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(124, 14, 68, .1); outline: 0; }
.demo-account__role { padding: 4px 10px; border-radius: 999px; background: var(--grad-primary, #7C0E44); color: #fff; font-size: 12px; font-weight: 700; }
.demo-account__email { font: 500 13px/1.3 var(--font-mono, monospace); overflow: hidden; text-overflow: ellipsis; }
.demo-account__use { color: var(--primary); font-size: 13px; font-weight: 600; }
.demo-accounts__note { margin: 6px 0 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.45; }
@media (max-width: 575px) { .theme-portal .demo-badge-item { display: none; } }

/* SweetAlert confirm (delete) */
.swal-overlay { background-color: rgba(42, 14, 28, .45); }
.swal-modal { background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(42, 14, 28, .25); }
.swal-title { color: #2A0E1C; }
.swal-text { color: #7D5D68; }
.swal-button { border-radius: 999px; background: #7C0E44; }
.swal-button--cancel { background: #F7EBE6; color: #2A0E1C; }
.swal-button--danger { background: #C2364A; }
.swal-icon--warning { border-color: #D49A9A; }
.swal-icon--warning__body, .swal-icon--warning__dot { background-color: #AA5E7A; }

/* ---------- Sign-in page ---------- */
.login-body-section.theme-portal { background-image: radial-gradient(ellipse 60% 50% at 80% 0%, rgba(170, 94, 122, .22), transparent 70%), radial-gradient(ellipse 50% 50% at 10% 100%, rgba(212, 154, 154, .25), transparent 70%), linear-gradient(rgba(124, 14, 68, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 14, 68, .035) 1px, transparent 1px) !important; background-size: auto, auto, 32px 32px, 32px 32px !important; }
.theme-portal .login-wrapper .loginbox { background: var(--glass) !important; border: 1px solid var(--border); border-radius: 20px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-2); }
.theme-portal .login-wrapper .text-white { color: var(--foreground) !important; }
.theme-portal .login-wrapper .profile-views, .theme-portal .login-wrapper .profile-views i { color: var(--muted-foreground) !important; }
.theme-portal .dark-input, .theme-portal .dark-input:focus { background: var(--surface) !important; border-color: var(--border) !important; color: var(--foreground) !important; border-radius: 10px; }
.theme-portal .dark-input:focus { border-color: var(--secondary) !important; box-shadow: 0 0 0 3px rgba(124, 14, 68, .12) !important; }

/* ---------- Laravel UI pages (register, password reset) ---------- */
.theme-portal .navbar { background: var(--glass) !important; backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.theme-portal .navbar-brand, .theme-portal .navbar .nav-link { color: var(--foreground) !important; font-weight: 600; }
.theme-portal .navbar-toggler { border-color: var(--border); }
.theme-portal .navbar-toggler-icon { filter: invert(1); }

@media (prefers-reduced-motion: reduce) {
    .theme-portal *, .theme-portal *::before, .theme-portal *::after { transition-duration: .01ms !important; }
}
