/* ─────────────────────────────────────────────────────────────
   DALLAS LIFE ADMIN PANEL - STYLESHEET (VANILLA CSS)
   ───────────────────────────────────────────────────────────── */
:root {
    --bg-main: #0a0c13;
    --bg-card: rgba(18, 22, 34, 0.75);
    --bg-card-hover: rgba(26, 32, 50, 0.85);
    --bg-input: rgba(14, 18, 28, 0.8);
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-focus: #6366f1;

    --accent-primary: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.35);

    --color-gold: #f59e0b;
    --color-green: #10b981;
    --color-red: #ef4444;
    --color-blue: #3b82f6;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Outfit', 'Prompt', sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #090b10 0%, #0d101a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────
   LOGIN OVERLAY
   ───────────────────────────────────────────────────────────── */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 16, 0.92);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header .logo-glow {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    margin-bottom: 18px;
}

.login-header h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.badge-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input,
.search-box input,
.form-group input,
.form-group select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    padding: 13px 16px;
    outline: none;
    transition: var(--transition);
}

.input-group input {
    padding-left: 45px;
}

.input-group input:focus,
.search-box input:focus,
.form-group input:focus,
.form-group select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.login-error {
    margin-top: 15px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #fca5a5;
    font-size: 13px;
}

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

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-glass);
}

.login-divider span {
    padding: 0 12px;
}

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #5865f2;
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.login-footer {
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 12px;
}

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

.sidebar {
    width: 270px;
    background: rgba(14, 17, 26, 0.85);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    backdrop-filter: blur(15px);
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-left: 8px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand-text h1 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.version-tag {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transform: translateX(3px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #fff;
    font-weight: 600;
}

.nav-item.active i {
    color: var(--accent-primary);
}

.nav-badge {
    margin-left: auto;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border-glass);
}

.server-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: #34d399;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.status-dot.red {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ─────────────────────────────────────────────────────────────
   MAIN CONTENT
   ───────────────────────────────────────────────────────────── */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 40px;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

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

.topbar-left h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.topbar-left p {
    color: var(--text-secondary);
    font-size: 14px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-card.mini {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-card.mini i {
    font-size: 20px;
}

.stat-title {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-val {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.btn-icon {
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    color: #fff;
    border-color: var(--accent-primary);
    transform: rotate(45deg);
}

/* ─────────────────────────────────────────────────────────────
   TABS & TOOLBAR
   ───────────────────────────────────────────────────────────── */
.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-pane.active {
    display: block;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    padding-left: 44px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-gold, .btn-green, .btn-red, .btn-preset-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
}

.btn-green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-preset-all {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-preset-all:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}

/* ─────────────────────────────────────────────────────────────
   PLAYER CARDS GRID (LIVE PLAYERS)
   ───────────────────────────────────────────────────────────── */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.player-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.player-card.dead {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(30, 16, 20, 0.7);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-badge-id {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.player-name-block {
    display: flex;
    flex-direction: column;
}

.player-char-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.player-steam-name {
    font-size: 12.5px;
    color: var(--text-muted);
}

.card-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-tag {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-tag.job {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-tag.dead {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-tag.point {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-meters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.meter-row span {
    width: 50px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.progress-fill.health { background: #10b981; }
.progress-fill.health.low { background: #ef4444; }
.progress-fill.armor { background: #3b82f6; }

.card-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.btn-card-action {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 8px 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.btn-card-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-2px);
}

.btn-card-action.revive {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
}
.btn-card-action.revive:hover { background: rgba(239, 68, 68, 0.25); color: #fff; }

.btn-card-action.tp {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.25);
}

.btn-card-action.inv {
    color: #c084fc;
    border-color: rgba(192, 132, 252, 0.25);
}

.btn-card-action.point {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.25);
}

/* ─────────────────────────────────────────────────────────────
   DATA TABLE (DATABASE PLAYERS & VEHICLES & LOGS)
   ───────────────────────────────────────────────────────────── */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: rgba(14, 18, 28, 0.9);
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-glass);
}

.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.table-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.table-badge.garage-in {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.table-badge.garage-out {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* ─────────────────────────────────────────────────────────────
   ITEM SPAWNER GRID
   ───────────────────────────────────────────────────────────── */
.spawner-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
}

.spawner-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.spawner-title i {
    font-size: 32px;
    color: var(--accent-primary);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: var(--transition);
    position: relative;
}

.item-card:hover {
    border-color: rgba(99, 102, 241, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.item-card-img-wrap {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    padding: 6px;
}

.item-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
}

.item-card:hover .item-card-img {
    transform: scale(1.12);
}

.item-name {
    font-weight: 700;
    color: #fff;
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.item-id {
    font-size: 11.5px;
    color: var(--text-muted);
}

.item-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.item-weight {
    font-size: 11px;
    color: var(--color-gold);
}

/* ─────────────────────────────────────────────────────────────
   INVENTORY GRID MODAL
   ───────────────────────────────────────────────────────────── */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 6px;
}

.inv-slot {
    background: rgba(14, 18, 28, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    position: relative;
    transition: var(--transition);
}

.inv-slot:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
}

.inv-slot-num {
    position: absolute;
    top: 5px;
    left: 8px;
    font-size: 10px;
    color: var(--text-muted);
}

.inv-slot-count {
    position: absolute;
    top: 5px;
    right: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

.inv-slot-img-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 2px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.inv-slot-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s ease;
}

.inv-slot:hover .inv-slot-img {
    transform: scale(1.1);
}

.inv-slot-title {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.inv-slot-code {
    font-size: 10.5px;
    color: var(--text-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inv-slot-meta {
    font-size: 9.5px;
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.15);
    padding: 1px 5px;
    border-radius: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inv-slot-actions {
    display: flex;
    gap: 4px;
    width: 100%;
    margin-top: 4px;
}

.btn-remove-slot {
    flex: 1;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 4px;
    padding: 4px 5px;
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove-slot:hover {
    background: #ef4444;
    color: #fff;
}

.btn-remove-slot.all {
    background: rgba(185, 28, 28, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-remove-slot.all:hover {
    background: #dc2626;
    color: #fff;
}

.give-item-preview-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
}

.give-item-preview-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.give-item-preview-info {
    display: flex;
    flex-direction: column;
}

.give-item-preview-title {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.give-item-preview-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────
   MODAL WINDOWS
   ───────────────────────────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal.active {
    display: flex;
}

.modal-card {
    background: #111420;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: scaleIn 0.25s ease;
}

.modal-card.modal-large {
    max-width: 780px;
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

.form-group label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-secondary);
    cursor: pointer;
}

.quick-tp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.btn-tp {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.btn-tp i {
    font-size: 24px;
    color: var(--accent-primary);
}

.btn-tp:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   TOAST NOTIFICATION
   ───────────────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}

.toast {
    background: #181d2d;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-left: 4px solid var(--color-green); }
.toast.error { border-left: 4px solid var(--color-red); }
.toast.info { border-left: 4px solid var(--accent-primary); }

.toast-msg {
    font-size: 13.5px;
    color: #fff;
    flex: 1;
}

/* ─────────────────────────────────────────────────────────────
   ANIMATIONS & UTILITIES
   ───────────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

.hidden { display: none !important; }
.text-accent { color: var(--accent-primary) !important; }
.text-gold { color: var(--color-gold) !important; }
.text-green { color: var(--color-green) !important; }
.text-red { color: var(--color-red) !important; }
