/* ==================== DESTAN CLAN SYSTEM v9.3 - LEGEND OF YMIR THEME ==================== */

/* ==================== NO TEXT SELECTION ====================
   Mouse ile sürükleyip metin seçmeyi engelle. Input/textarea hariç. */
html, body, * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
input, textarea, [contenteditable="true"], [contenteditable=""] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

:root {
    --bg-deep: #130e0b;
    --bg-card: rgba(46, 35, 22, 0.6);
    --bg-glass: rgba(46, 35, 22, 0.45);
    --bg-input: #1d160e;
    --border-glow: rgba(205, 175, 125, 0.35);
    --border-subtle: rgba(205, 175, 125, 0.12);
    --text-primary: #e9ddc4;
    --text-secondary: #967c57;
    --text-muted: #796c59;
    --accent-purple: #cdaf7d;
    --accent-cyan: #cdaf7d;
    --accent-pink: #dfcfa5;
    --accent-orange: #c9a04e;
    --accent-green: #8fad5a;
    --accent-red: #c44b3f;
    --accent-yellow: #cdaf7d;
    --accent-blue: #7a9bb5;
    --gold: #cdaf7d;
    --gold-light: #dfcfa5;
    --gold-dark: #967c57;
    --gold-gradient: linear-gradient(135deg, #cdaf7d, #967c57);
    --gold-text-gradient: linear-gradient(135deg, #e9ddc4, #cdaf7d);
}

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

html {
    /* Mobil pull-to-refresh'i kapat (yukarı çekince sayfa yenilenmesin) */
    overscroll-behavior-y: none;
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 800px 600px at 20% 10%, rgba(205, 175, 125, 0.06), transparent 50%),
        radial-gradient(ellipse 600px 500px at 80% 90%, rgba(150, 124, 87, 0.05), transparent 50%);
}

/* Header */
.header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #130e0b;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: 'Spectral', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #e9ddc4, #cdaf7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    text-transform: uppercase;
}

.nav-links { display: flex; gap: 6px; }

.nav-link {
    color: var(--text-secondary);
    font-family: 'Spectral', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    background: none;
    text-decoration: none;
}

.nav-link:hover { color: var(--text-primary); background: var(--bg-glass); }
.nav-link.active { color: var(--gold); background: rgba(205, 175, 125, 0.1); }
.nav-link.admin-link { color: var(--accent-orange); }
.nav-link.admin-link:hover { color: var(--accent-orange); background: rgba(201, 160, 78, 0.1); }
.nav-link.admin-link.active { color: var(--accent-orange); background: rgba(201, 160, 78, 0.15); }

.nav-user { display: flex; align-items: center; gap: 12px; }

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.3s;
}

.user-info:hover { border-color: var(--gold); }

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #cdaf7d, #967c57);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-name { font-weight: 700; font-size: 14px; }
.user-points { font-size: 11px; color: var(--gold); font-family: 'Spectral', serif; font-weight: 700; }
.user-priority { font-size: 10px; color: var(--accent-orange); }

.week-badge {
    background: rgba(205, 175, 125, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover { border-color: var(--accent-red); color: var(--accent-red); }

/* Sound Toggle */
.sound-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.sound-toggle:hover { background: var(--bg-glass); color: var(--text-primary); }
.sound-toggle.muted { opacity: 0.5; }

/* Notifications */
.notification-bell {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.notification-bell:hover { background: var(--bg-glass); color: var(--text-primary); }

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 450px;
    background: rgba(29, 22, 14, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    display: none;
    z-index: 200;
}

.notification-dropdown.open { display: block; }

.notification-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 { font-family: 'Spectral', serif; font-size: 14px; }

.notification-list { max-height: 350px; overflow-y: auto; }

.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover { background: rgba(205, 175, 125, 0.1); }
.notification-item.unread { background: rgba(205, 175, 125, 0.05); }

.notification-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-item .icon.bid { background: rgba(249, 115, 22, 0.2); }
.notification-item .icon.win { background: rgba(16, 185, 129, 0.2); }
.notification-item .icon.outbid { background: rgba(239, 68, 68, 0.2); }
.notification-item .icon.system { background: rgba(205, 175, 125, 0.2); }

.notification-item .content { flex: 1; }
.notification-item .title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.notification-item .desc { font-size: 12px; color: var(--text-muted); }
.notification-item .time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-dropdown a:last-child {
    border-bottom: none;
}

.profile-dropdown a:hover {
    background: rgba(205, 175, 125, 0.1);
    color: var(--accent-purple);
}

.profile-dropdown a i {
    width: 18px;
    text-align: center;
}

/* Bid Status Badges */
.product-badge.won {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.product-badge.winning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.product-badge.losing {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(251, 146, 60, 0.1));
    color: var(--accent-orange);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.product-badge.lost {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.product-badge.direct {
    background: linear-gradient(135deg, rgba(205, 175, 125, 0.2), rgba(205, 175, 125, 0.1));
    color: var(--accent-cyan);
    border: 1px solid rgba(205, 175, 125, 0.3);
}

.product-badge.auction {
    background: linear-gradient(135deg, rgba(205, 175, 125, 0.2), rgba(205, 175, 125, 0.1));
    color: var(--accent-purple);
    border: 1px solid rgba(205, 175, 125, 0.3);
}

.product-badge.raffle {
    background: linear-gradient(135deg, rgba(223, 207, 165, 0.2), rgba(223, 207, 165, 0.1));
    color: var(--accent-pink);
    border: 1px solid rgba(223, 207, 165, 0.3);
}

/* Admin Events — RSVP Pills */
.rsvp-summary {
    padding: 4px 6px;
    border-radius: 10px;
    transition: background 0.15s ease, transform 0.15s ease;
}
.rsvp-summary:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}
.rsvp-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}
.rsvp-pill i {
    font-size: 10px;
}
.rsvp-pill strong {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
}
.rsvp-pill.rsvp-yes {
    color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.08));
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.rsvp-pill.rsvp-no {
    color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.08));
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.rsvp-summary:hover .rsvp-pill.rsvp-yes {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.14));
    border-color: rgba(34, 197, 94, 0.55);
}
.rsvp-summary:hover .rsvp-pill.rsvp-no {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(239, 68, 68, 0.14));
    border-color: rgba(239, 68, 68, 0.55);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 20px;
}

.mobile-nav.open { display: block; }
.mobile-nav .nav-link { display: block; padding: 16px; font-size: 16px; border-radius: 12px; margin-bottom: 8px; }

/* Container */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 2;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-family: 'Spectral', serif;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* Cards */
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.card-title {
    font-family: 'Spectral', serif;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body { padding: 20px; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.stat-card:hover { transform: translateY(-4px); border-color: var(--border-glow); }
.stat-card .icon { font-size: 28px; margin-bottom: 10px; }
.stat-card .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.stat-card .value { font-family: 'Spectral', serif; font-size: 28px; font-weight: 800; }
.stat-card .value.cyan { color: var(--accent-cyan); }
.stat-card .value.purple { color: var(--accent-purple); }
.stat-card .value.green { color: var(--accent-green); }
.stat-card .value.orange { color: var(--accent-orange); }

/* Buttons */
.btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary { background: linear-gradient(135deg, #cdaf7d, #967c57); color: #130e0b; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(205, 175, 125, 0.3); }
.btn-success { background: linear-gradient(135deg, var(--accent-green), #059669); color: white; }
.btn-warning { background: linear-gradient(135deg, var(--accent-orange), #ea580c); color: white; }
.btn-danger { background: linear-gradient(135deg, var(--accent-red), #dc2626); color: white; }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-glass); color: var(--text-primary); }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-loading { pointer-events: none; opacity: 0.7; }
.btn-loading .fa-spinner { margin-right: 2px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    outline: none;
    transition: all 0.3s;
}
.form-select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23796c59' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(205, 175, 125, 0.15);
}

.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }

/* Rich Text Editor */
.rich-editor {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}
.rich-editor:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(205, 175, 125, 0.1);
}
.rich-editor a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* Week Selector */
.week-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.week-selector .form-label { margin-bottom: 0; }

/* Coin Visuals */
.coin-ap, .coin-op {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    margin-right: 4px;
    vertical-align: middle;
    font-size: 10px;
    font-weight: 900;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
}

.coin-ap {
    background: linear-gradient(145deg, #cdaf7d, #967c57);
    border: 2px solid #cdaf7d;
}

.coin-ap::after {
    content: 'AP';
}

.coin-op {
    background: linear-gradient(145deg, #fb923c, #ea580c);
    border: 2px solid #f97316;
}

.coin-op::after {
    content: 'ÖP';
}

.coin-reserve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    margin-right: 4px;
    vertical-align: middle;
    font-size: 10px;
    font-weight: 900;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #ef4444, #dc2626);
    border: 2px solid #ef4444;
    cursor: pointer;
}

.coin-reserve::after {
    content: '🔒';
    font-size: 10px;
}

/* Coin Tooltips */
.coin-tooltip {
    position: relative;
}

/* coin-tooltip: ::before ile alt tarafta göster, genel ::after'ı devre dışı bırak */
.coin-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-deep);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1001;
    margin-top: 6px;
    border: 1px solid var(--border-subtle);
}

.coin-tooltip:hover::before {
    opacity: 1;
}

.coin-tooltip::after {
    display: none !important;
}

/* Points Table Sticky Header */
.points-header {
    /* Thead-level sticky bazı tarayıcılarda <table> semantiği nedeniyle çalışmaz.
       Sticky davranışı .data-table.sticky-head thead th üzerinden TH-level uygulanır. */
}

.points-header th {
    background: var(--bg-deep);
    border-bottom: 2px solid var(--border-subtle);
}

/* Sort Buttons */
.sort-buttons { display: flex; align-items: center; gap: 6px; }
.sort-buttons .btn { padding: 6px 12px; font-size: 11px; }

/* Sortable Table Headers */
th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

th.sortable:hover {
    color: var(--accent-cyan);
    background: rgba(205, 175, 125, 0.1);
}

th.sortable.active {
    color: var(--accent-cyan);
    background: rgba(205, 175, 125, 0.15);
}

/* Filters */
.filters-bar {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box { flex: 1; min-width: 200px; position: relative; }

.search-box input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px 18px 12px 44px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    outline: none;
}

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

.filter-select {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    min-width: 140px;
}

.filter-range { display: flex; align-items: center; gap: 8px; }

.filter-range input {
    width: 80px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text-primary);
    font-size: 13px;
    text-align: center;
}

/* Shop Tabs */
.shop-tabs { display: flex; gap: 10px; margin-bottom: 20px; }

.shop-tab {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.shop-tab:hover { background: rgba(255, 255, 255, 0.05); }
.shop-tab.active { background: rgba(205, 175, 125, 0.2); border-color: var(--accent-purple); color: var(--accent-purple); }
.shop-tab .count { display: inline-block; background: rgba(0, 0, 0, 0.3); padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-left: 6px; }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.product-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
}

.product-card.hidden { display: none; }
.product-card.sold { opacity: 0.6; }
.product-card.scheduled { border-color: rgba(234, 179, 8, 0.3); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4); border-color: var(--border-glow); }

.product-media {
    height: 160px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3), rgba(3, 7, 18, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s;
}

.product-card:hover .product-image { transform: scale(1.05); }
#purchasesPage .product-card:hover,
#mybidsPage .product-card:hover { transform: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
#purchasesPage .product-card:hover .product-image,
#mybidsPage .product-card:hover .product-image { transform: none; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image .emoji { font-size: 56px; }

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-badge.auction { background: rgba(249, 115, 22, 0.2); border: 1px solid rgba(249, 115, 22, 0.4); color: var(--accent-orange); }
.product-badge.direct { background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.4); color: var(--accent-green); }
.product-badge.sold { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.4); color: var(--accent-red); }
.product-badge.scheduled { background: rgba(234, 179, 8, 0.2); border: 1px solid rgba(234, 179, 8, 0.4); color: var(--accent-yellow); }
.product-badge.raffle { background: rgba(223, 207, 165, 0.2); border: 1px solid rgba(223, 207, 165, 0.4); color: var(--accent-pink); }

.product-region {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(205, 175, 125, 0.15);
    border: 1px solid rgba(205, 175, 125, 0.3);
    color: var(--text-muted);
    margin-bottom: 6px;
}

.product-favorite {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #fff;
}
.product-favorite i { color: inherit; }

.stock-inline {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 1px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}

.product-favorite:hover { background: rgba(239, 68, 68, 0.3); color: #fff; }
.product-favorite.active { background: rgba(239, 68, 68, 0.3); color: var(--accent-red); }
.product-favorite.active i { color: var(--accent-red); }

.product-timer {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.product-timer .time { font-family: 'Spectral', serif; font-weight: 700; color: var(--accent-orange); }
.product-timer.ending { background: rgba(239, 68, 68, 0.3); }
.product-timer.ending .time { color: var(--accent-red); animation: pulse 1s infinite; }
.product-timer.scheduled { background: rgba(234, 179, 8, 0.3); }
.product-timer.scheduled .time { color: var(--accent-yellow); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.product-info { padding: 16px; }
.product-body { padding: 20px; }
.product-title { font-family: 'Spectral', serif; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.product-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

.price-tag .amount {
    font-family: 'Spectral', serif;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-tag .unit { font-size: 12px; color: var(--text-muted); margin-left: 4px; }

.highest-bidder {
    font-size: 11px;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.product-actions { display: flex; gap: 10px; }
.product-actions .btn { flex: 1; padding: 10px; font-size: 12px; }

/* Dashboard Grid */
.dashboard-grid { display: grid; grid-template-columns: 1fr 350px; gap: 20px; }
.dashboard-main { display: flex; flex-direction: column; gap: 20px; }

/* Chat */
.chat-container { display: flex; flex-direction: column; height: 560px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.chat-message { display: flex; gap: 10px; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.chat-message .avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-message .content { flex: 1; }
.chat-message .header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.chat-message .name { font-weight: 700; font-size: 13px; }
.chat-message .time { font-size: 11px; color: var(--text-muted); }
.chat-message .text { background: var(--bg-input); padding: 10px 14px; border-radius: 0 12px 12px 12px; font-size: 13px; line-height: 1.5; }
.chat-message .text .mention { color: var(--accent-cyan); font-weight: 700; cursor: pointer; }
.chat-message .text .mention:hover { text-decoration: underline; }
.chat-message.own { flex-direction: row-reverse; }
.chat-message.own .text { background: rgba(205, 175, 125, 0.2); border-radius: 12px 0 12px 12px; }

.chat-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}
.chat-message:hover .chat-delete-btn { opacity: 1; }
.chat-delete-btn:hover { color: var(--accent-red); }
/* (v683) Dokunmatikte hover yok → 44px'lik görünmez sil hedefi kalıyordu; soluk da olsa görünür yap */
@media (hover: none) { .chat-delete-btn { opacity: .55; } }

.chat-input {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-card);
    flex-shrink: 0;
    position: relative;
    align-items: center;
}
.chat-input .emoji-btn i,
.chat-input .btn-primary i {
    font-size: inherit;
    line-height: 1;
}
.chat-input .btn-primary i { color: #fff; }
.chat-input .emoji-btn { color: #cdaf7d; }

.chat-input input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.mention-dropdown {
    position: absolute;
    bottom: 100%;
    left: 16px;
    right: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.mention-dropdown.open { display: block; }

.mention-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mention-item:hover { background: rgba(205, 175, 125, 0.1); }

.mention-item .avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Emoji Picker */
.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    max-height: 200px;
    max-width: 320px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.emoji-item {
    font-size: 20px;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    text-align: center;
    transition: all 0.15s;
}

.emoji-item:hover {
    background: rgba(205, 175, 125, 0.2);
    transform: scale(1.2);
}

/* Announcements */
.announcement-item {
    padding: 14px;
    background: var(--bg-input);
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-purple);
}

.announcement-item.important { border-left-color: var(--accent-red); background: rgba(239, 68, 68, 0.1); }
.announcement-item .title { font-weight: 700; margin-bottom: 6px; }
.announcement-item .text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.announcement-item .date { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* Top Players */
.top-player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.2s;
}

.top-player-item:hover { background: rgba(205, 175, 125, 0.08); }

.top-player-item .rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Spectral', serif;
    font-weight: 800;
    font-size: 12px;
}

.top-player-item .rank.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000; }
.top-player-item .rank.silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #000; }
.top-player-item .rank.bronze { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.top-player-item .rank.normal { background: var(--bg-input); color: var(--text-muted); }

.top-player-item .avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.top-player-item .info { flex: 1; }
.top-player-item .name { font-weight: 600; font-size: 14px; }
.top-player-item .class { font-size: 11px; color: var(--text-muted); }
.top-player-item .priority { font-family: 'Spectral', serif; font-size: 12px; font-weight: 700; color: var(--accent-orange); }

/* Clickable Users */
.clickable-user {
    cursor: pointer;
    transition: all 0.2s;
}

.clickable-user:hover {
    color: var(--accent-cyan);
}

.clickable-user:hover .avatar {
    box-shadow: 0 0 0 2px var(--accent-cyan);
}

.clickable-user:hover .name,
.clickable-user:hover .user-name {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* Profile */
.profile-header {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 24px;
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 900;
    font-family: 'Spectral', serif;
}

.profile-info { flex: 1; }
.profile-name { font-family: 'Spectral', serif; font-size: 28px; font-weight: 900; margin-bottom: 4px; }
.profile-class { font-size: 14px; color: var(--accent-purple); margin-bottom: 12px; }
.profile-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.profile-stat { text-align: center; }
.profile-stat .value { font-family: 'Spectral', serif; font-size: 24px; font-weight: 800; color: var(--accent-cyan); }
.profile-stat .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.profile-badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.badge {
    padding: 6px 12px;
    background: var(--bg-input);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge.gold { background: rgba(234, 179, 8, 0.2); color: var(--accent-yellow); }
.badge.purple { background: rgba(205, 175, 125, 0.2); color: var(--accent-purple); }
.badge.green { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.badge.cyan { background: rgba(205, 175, 125, 0.2); color: var(--accent-cyan); }
.badge.orange { background: rgba(249, 115, 22, 0.2); color: var(--accent-orange); }
.badge.pink { background: rgba(223, 207, 165, 0.2); color: var(--accent-pink); }

/* Raffle */
.raffle-card { background: linear-gradient(135deg, rgba(223, 207, 165, 0.1), rgba(205, 175, 125, 0.1)); border: 1px solid rgba(223, 207, 165, 0.3); }

.raffle-participant {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.raffle-participant.more { background: var(--bg-input); color: var(--text-muted); font-size: 10px; }

.raffle-participant-name { 
    padding: 8px 12px; 
    background: var(--bg-glass); 
    border-radius: 8px; 
    font-size: 13px; 
    cursor: pointer; 
    transition: all 0.2s;
    margin-bottom: 6px;
}
.raffle-participant-name:hover { background: rgba(223, 207, 165, 0.2); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
}

.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-subtle); }
.data-table tr:hover { background: rgba(205, 175, 125, 0.05); }
.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover { background: rgba(205, 175, 125, 0.1); }

/* ===================== STICKY TABLE HEADERS =====================
   Oyuncular & Puanlama tablolarının başlık satırını sayfa scroll'unda dondurur.
   Header (sticky, 70px) + olası page-header offset'i için top değeri ayarlandı.
   ============================================================== */
.sticky-table-card { overflow: visible !important; }
.sticky-table-wrap { overflow: visible !important; }

.data-table.sticky-head thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 70px; /* .header height */
    z-index: 20;
    /* Saydamlık olmasın diye opak arka plan — altından geçen satırlar sızmasın */
    background: #1a1410;
    background-image: linear-gradient(to bottom, #1f1812 0%, #15100c 100%);
    box-shadow: 0 2px 0 0 var(--border-subtle), 0 4px 8px rgba(0,0,0,0.35);
}

/* Tıklanabilir (sıralanabilir) başlıklarda hover hissi kalsın */
.data-table.sticky-head thead th[onclick]:hover {
    background-image: linear-gradient(to bottom, #2a2018 0%, #1c1510 100%);
    color: var(--text-bright, #e8d5a8);
}

/* Mobilde header daha kısa olabilir; ufak ofset düzeltme */
@media (max-width: 768px) {
    .data-table.sticky-head thead th {
        top: 60px;
        padding: 10px 8px;
        font-size: 10.5px;
    }
}

.user-cell { display: flex; align-items: center; gap: 10px; }

.user-cell .avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.class-badge { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.class-badge.berserker { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.class-badge.warlord { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.class-badge.archer { background: rgba(205, 175, 125, 0.15); color: #cdaf7d; }
.class-badge.volva { background: rgba(205, 175, 125, 0.15); color: #cdaf7d; }
.class-badge.skald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.class-badge.runefighter { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.point-cell { font-family: 'Spectral', serif; font-weight: 700; font-size: 12px; }
.point-cell.cyan { color: var(--accent-cyan); }
.point-cell.purple { color: var(--accent-purple); }
.point-cell.green { color: var(--accent-green); }
.point-cell.orange { color: var(--accent-orange); }

/* Inline Point Input */
.inline-point-input {
    width: 60px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 8px;
    color: var(--text-primary);
    font-family: 'Spectral', serif;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.2s;
}

.inline-point-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(205, 175, 125, 0.2);
}

.inline-point-input:hover {
    border-color: var(--accent-purple);
}

.inline-point-input.carryover {
    color: var(--accent-purple);
}

.inline-point-input.carryover:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(205, 175, 125, 0.2);
}

/* Check Toggle Button for Points */
.check-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid var(--border-subtle);
    background: var(--bg-input);
    color: var(--accent-red);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-toggle:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.05);
}

.check-toggle.checked {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.check-toggle.partial {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #f59e0b;
}
.check-toggle.full {
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Day selection modal */
.day-select-grid { display: flex; flex-direction: column; gap: 6px; }
.day-select-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: var(--bg-input); border-radius: 8px;
    cursor: pointer; transition: all 0.2s; user-select: none; border: 1px solid transparent;
}
.day-select-item:hover { background: var(--bg-hover); }
.day-select-item.selected {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-green);
}
.day-select-item .day-check {
    width: 24px; height: 24px; border-radius: 6px;
    border: 2px solid var(--border-subtle); background: var(--bg-input);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--text-muted);
    transition: all 0.2s; flex-shrink: 0;
}
.day-select-item.selected .day-check {
    background: rgba(16, 185, 129, 0.3); border-color: var(--accent-green); color: var(--accent-green);
}
.day-select-item .day-label { font-size: 13px; font-weight: 600; }
.day-select-item .day-activity { font-size: 11px; color: var(--text-muted); }

.points-header th { background: linear-gradient(135deg, #cdaf7d, #967c57) !important; color: #130e0b !important; }

/* Admin */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.admin-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-tab:hover { background: rgba(255, 255, 255, 0.05); }
.admin-tab.active { background: rgba(205, 175, 125, 0.2); border-color: var(--accent-purple); color: var(--accent-purple); }

.admin-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
.user-list { display: flex; flex-direction: column; gap: 4px; max-height: 500px; overflow-y: auto; }

.user-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.user-list-item:hover { background: rgba(205, 175, 125, 0.08); }
.user-list-item.selected { background: rgba(205, 175, 125, 0.12); border-color: rgba(205, 175, 125, 0.3); }

.user-list-item .avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-list-item .info { flex: 1; }
.user-list-item .name { font-weight: 600; font-size: 14px; }
.user-list-item .meta { font-size: 11px; color: var(--text-muted); }

.points-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 16px;
}

.point-input-item { text-align: center; }
.point-input-item label { display: block; font-size: 10px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; }

.point-input-item input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-primary);
    font-family: 'Spectral', serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    outline: none;
}

/* Logs */
.log-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: 10px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.log-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.log-item .icon.user { background: rgba(205, 175, 125, 0.2); }
.log-item .icon.product { background: rgba(205, 175, 125, 0.2); }
.log-item .icon.bid { background: rgba(249, 115, 22, 0.2); }
.log-item .icon.purchase { background: rgba(16, 185, 129, 0.2); }
.log-item .icon.raffle { background: rgba(223, 207, 165, 0.2); }
.log-item .icon.system { background: rgba(239, 68, 68, 0.2); }

.log-item .content { flex: 1; }
.log-item .action { font-weight: 600; font-size: 13px; }
.log-item .details { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.log-item .time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* Image Upload */
.image-upload {
    border: 2px dashed var(--border-subtle);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.image-upload:hover { border-color: var(--accent-purple); }
.image-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.image-upload .preview {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin: 0 auto 10px;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-upload .preview img { width: 100%; height: 100%; object-fit: cover; }
.image-upload .text { color: var(--text-muted); font-size: 12px; }

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.99));
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.open .modal { transform: scale(1); }

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

.modal-title { font-family: 'Spectral', serif; font-size: 16px; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover { background: rgba(239, 68, 68, 0.2); color: var(--accent-red); }

.modal-body { padding: 20px; max-height: 60vh; overflow-y: auto; }

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-product-header {
    height: 160px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(3, 7, 18, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-product-image {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-product-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-product-image .emoji { font-size: 56px; }

.modal-price-section {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    padding: 16px;
    background: rgba(205, 175, 125, 0.1);
    border-radius: 14px;
    margin-bottom: 20px;
}

.modal-price {
    font-family: 'Spectral', serif;
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
}

.modal-timer .time { font-family: 'Spectral', serif; font-size: 18px; font-weight: 700; color: var(--accent-orange); }

/* Bid History */
.bid-history {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    max-height: 180px;
    overflow-y: auto;
}

.bid-history-title { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; font-weight: 600; }

.bid-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
}

.bid-history-item:last-child { border-bottom: none; }
.bid-history-item .user { display: flex; align-items: center; gap: 8px; }

.bid-history-item .avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.bid-history-item .user-info { display: flex; flex-direction: column; }
.bid-history-item .user-name { font-weight: 600; }
.bid-history-item .user-class { font-size: 10px; color: var(--text-muted); }
.bid-history-item .amount { font-family: 'Spectral', serif; font-weight: 700; color: var(--accent-cyan); }
.bid-history-item .time { font-size: 11px; color: var(--text-muted); }

/* Product Chat */
.product-chat {
    background: var(--bg-input);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.product-chat-header {
    font-size: 12px;
    color: var(--text-muted);
    padding: 10px 14px;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
}

.product-chat-messages {
    height: 150px;
    overflow-y: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-chat-msg {
    display: flex;
    gap: 8px;
    font-size: 12px;
}

.product-chat-msg .avatar {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.product-chat-msg .msg-content {
    flex: 1;
}

.product-chat-msg .msg-header {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 2px;
}

.product-chat-msg .msg-name {
    font-weight: 600;
    color: var(--accent-cyan);
}

.product-chat-msg .msg-time {
    font-size: 10px;
    color: var(--text-muted);
}

.product-chat-msg .msg-text {
    color: var(--text-primary);
    line-height: 1.4;
}

.product-chat-input {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border-subtle);
}

.product-chat-input input {
    flex: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 12px;
}

.product-chat-input input::placeholder {
    color: var(--text-muted);
}

.product-chat-input .btn {
    background: var(--accent-purple);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
}

/* Toast */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }

.toast {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.4s;
    font-size: 13px;
}

.toast.show { transform: translateX(0); }
.toast.success { border-color: rgba(16, 185, 129, 0.3); }
.toast.error { border-color: rgba(239, 68, 68, 0.3); }

/* Responsive utility classes */
.show-mobile-only { display: none; }
/* .hide-mobile handled in @media block */

/* Pages */
.page-section { display: none; }
.page-section.active { display: block; }
/* Sticky thead için: ana page-section ve descendant'larda overflow visible olmalı
   (aksi takdirde position:sticky scroll context'i kaybolur ve çalışmaz) */
.page-section.active { overflow: visible; }

/* Login */
/* ==================== LOGIN SCREEN ==================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 40px;
    position: relative;
    overflow-x: hidden;
}

/* Arka plan radial glow efektleri */
.login-wrapper::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 25%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(205, 175, 125, 0.12) 0%, rgba(205, 175, 125, 0.04) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    animation: loginGlowPulse 8s ease-in-out infinite;
}
@keyframes loginGlowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.login-box {
    position: relative;
    z-index: 2;
    background:
        radial-gradient(ellipse at top, rgba(205, 175, 125, 0.10) 0%, transparent 55%),
        linear-gradient(135deg, rgba(30, 22, 16, 0.88) 0%, rgba(19, 14, 11, 0.94) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(205, 175, 125, 0.28);
    border-radius: 20px;
    padding: 44px 40px 32px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(205, 175, 125, 0.06) inset,
        0 18px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 80px -20px rgba(205, 175, 125, 0.25);
    animation: loginBoxEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes loginBoxEnter {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dekoratif köşe çizgileri */
.login-box::before,
.login-box::after {
    content: '';
    position: absolute;
    width: 38px;
    height: 38px;
    border-color: rgba(205, 175, 125, 0.55);
    pointer-events: none;
}
.login-box::before {
    top: 12px; left: 12px;
    border-top: 2px solid;
    border-left: 2px solid;
    border-top-left-radius: 6px;
}
.login-box::after {
    bottom: 12px; right: 12px;
    border-bottom: 2px solid;
    border-right: 2px solid;
    border-bottom-right-radius: 6px;
}

/* Üst ornament — çapraz kılıçlar + runeler */
.login-crest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
    height: 44px;
}
.login-crest-swords {
    width: 80px;
    height: 32px;
    filter: drop-shadow(0 2px 6px rgba(205, 175, 125, 0.35));
}
.login-crest-rune {
    font-size: 22px;
    color: #cdaf7d;
    opacity: 0.75;
    font-family: 'Spectral', serif;
    text-shadow: 0 0 12px rgba(205, 175, 125, 0.5);
    animation: runeGlow 3s ease-in-out infinite;
}
.login-crest-rune-left { animation-delay: 0s; }
.login-crest-rune-right { animation-delay: 1.5s; }
@keyframes runeGlow {
    0%, 100% { opacity: 0.55; text-shadow: 0 0 8px rgba(205, 175, 125, 0.3); }
    50% { opacity: 1; text-shadow: 0 0 18px rgba(232, 213, 168, 0.8); }
}

/* Başlık */
.login-logo {
    font-family: 'Spectral', serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 6px;
    background: linear-gradient(180deg, #f5e4ba 0%, #cdaf7d 50%, #8f7546 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px;
    text-shadow: 0 2px 20px rgba(205, 175, 125, 0.3);
    position: relative;
}
.login-logo::after {
    content: 'DESTAN';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 240, 200, 0.6) 50%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: -100% 0;
    animation: logoShimmer 4s ease-in-out infinite;
    animation-delay: 1s;
}
@keyframes logoShimmer {
    0%, 60%, 100% { background-position: -100% 0; }
    30% { background-position: 200% 0; }
}

/* Diamond ayraç */
.login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 14px;
}
.login-divider-line {
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(205, 175, 125, 0.6), transparent);
}
.login-divider-diamond {
    color: #cdaf7d;
    font-size: 10px;
    text-shadow: 0 0 8px rgba(205, 175, 125, 0.6);
}

.login-subtitle {
    color: #a89a82;
    margin-bottom: 30px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.login-version {
    color: #cdaf7d;
    background: rgba(205, 175, 125, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
    border: 1px solid rgba(205, 175, 125, 0.2);
    letter-spacing: 0.5px;
}

.login-form { text-align: left; }
.login-form .form-group { margin-bottom: 18px; }
.login-form .form-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #a89a82;
    margin-bottom: 8px;
}
.login-form .form-label i { color: #cdaf7d; font-size: 11px; }

.login-input-wrap { position: relative; }
.login-input {
    width: 100%;
    padding: 13px 15px;
    background: rgba(10, 7, 4, 0.55);
    border: 1px solid rgba(205, 175, 125, 0.22);
    border-radius: 10px;
    color: #e8d5a8;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
    box-sizing: border-box;
}
.login-input::placeholder { color: rgba(168, 154, 130, 0.5); letter-spacing: 0.5px; }
.login-input:hover { border-color: rgba(205, 175, 125, 0.4); background: rgba(10, 7, 4, 0.7); }
.login-input:focus {
    outline: none;
    border-color: rgba(205, 175, 125, 0.7);
    background: rgba(10, 7, 4, 0.8);
    box-shadow: 0 0 0 3px rgba(205, 175, 125, 0.12), 0 0 24px -8px rgba(205, 175, 125, 0.4);
}

.login-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8a7a5a;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
    transition: color 0.2s ease;
}
.login-eye-btn:hover { color: #cdaf7d; }

/* Giriş butonu — gold gradient + shine efekti */
.login-btn {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    background: linear-gradient(135deg, #dfcfa5 0%, #cdaf7d 45%, #967c57 100%);
    border: 1px solid rgba(223, 207, 165, 0.6);
    border-radius: 10px;
    color: #1a1208;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow:
        0 4px 16px -4px rgba(205, 175, 125, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 8px 24px -6px rgba(205, 175, 125, 0.6),
        0 0 0 1px rgba(0, 0, 0, 0.1) inset;
    background: linear-gradient(135deg, #efdfb5 0%, #ddbf8d 45%, #a68c67 100%);
}
.login-btn:active { transform: translateY(0); }
.login-btn i { font-size: 13px; }

.login-btn-shine {
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3.5s ease-in-out infinite;
    animation-delay: 2s;
    pointer-events: none;
}
@keyframes btnShine {
    0%, 70%, 100% { left: -80%; }
    35% { left: 130%; }
}

/* Alt footer marka */
.login-footer-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(205, 175, 125, 0.12);
    color: #6e6555;
    font-size: 10.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Spectral', serif;
}
.login-footer-mark > span:first-child,
.login-footer-mark > span:last-child {
    color: #8a7a5a;
    font-size: 14px;
    opacity: 0.7;
}
.login-footer-text { font-weight: 500; }

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

/* ==================== LOGIN RESPONSIVE ==================== */
@media (max-width: 480px) {
    .login-wrapper { padding: 30px 14px; align-items: center; }
    .login-box { padding: 32px 22px 24px; border-radius: 16px; }
    .login-logo { font-size: 32px; letter-spacing: 4px; }
    .login-crest-swords { width: 64px; height: 28px; }
    .login-crest-rune { font-size: 18px; }
    .login-box::before, .login-box::after { width: 28px; height: 28px; }
}

/* Empty State */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* Sold Items */
.sold-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-input);
    border-radius: 12px;
    margin-bottom: 10px;
}

.sold-item .image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sold-item .image img { width: 100%; height: 100%; object-fit: cover; }
.sold-item .info { flex: 1; }
.sold-item .name { font-weight: 700; }
.sold-item .details { font-size: 12px; color: var(--text-muted); }
.sold-item .price { font-family: 'Spectral', serif; font-weight: 700; color: var(--accent-green); }

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

/* Tablet */
@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
}

/* Bottom nav + more menu styled via inline <style> in HTML */

/* ==================== MOBILE — max-width: 768px ==================== */
@media (max-width: 768px) {

    /* ── GLOBAL (Safari-safe) ── */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
    }

    .container {
        padding: 10px 10px 90px 10px !important;
    }

    /* ── HEADER & NAV ── */
    .header {
        box-shadow: 0 1px 10px rgba(0,0,0,0.4);
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    .nav-container {
        padding: 0 10px;
        height: 50px;
    }
    .logo { font-size: 17px; letter-spacing: 2px; }
    .nav-links { display: none !important; }
    .mobile-menu-btn { display: none !important; }
    .mobile-nav { display: none !important; }
    .nav-user { gap: 5px; }
    .user-info { padding: 5px 7px; gap: 5px; }
    .user-name { font-size: 11px; }
    .user-points { font-size: 9px; }
    .user-avatar { width: 32px; height: 32px; }
    .user-priority { display: none; }
    .week-badge { display: none !important; visibility: hidden !important; width: 0 !important; overflow: hidden !important; }
    .hide-mobile { display: none !important; }
    .show-mobile-only { display: block !important; }
    .sound-toggle { padding: 5px; font-size: 15px; }

    /* Bottom nav + more menu now inline in HTML <style> tag */

    /* ── NOTIFICATION DROPDOWN ── */
    .notification-bell { padding: 5px; font-size: 17px; }
    .notification-dropdown {
        position: fixed;
        top: 50px;
        left: 8px;
        right: 8px;
        width: auto;
        max-height: calc(100vh - 60px);
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    }

    /* ── PROFILE DROPDOWN ── */
    .profile-dropdown {
        position: fixed;
        top: 50px;
        right: 6px;
        left: auto;
        width: 190px;
        border-radius: 14px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    }
    .profile-dropdown a { padding: 11px 14px; font-size: 13px; }

    /* ── LOGIN PAGE ── */
    .login-wrapper {
        padding: 20px;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    .login-box {
        padding: 28px 20px;
        border-radius: 20px;
        max-width: 100%;
        width: 100%;
    }
    .login-logo { font-size: 30px; }
    .login-subtitle { font-size: 13px; margin-bottom: 24px; }
    .login-btn { min-height: 50px; font-size: 16px; border-radius: 14px; }
    .form-input { border-radius: 12px !important; -webkit-appearance: none; appearance: none; }
    .form-select { -webkit-appearance: none; appearance: none; border-radius: 12px !important; }

    /* ── PAGE HEADERS ── */
    .page-header { margin-bottom: 12px; gap: 8px; }
    .page-title { font-size: 18px; }
    .page-subtitle { font-size: 12px; }

    /* ── BUTTONS (app-like) ── */
    .btn { border-radius: 12px; }
    .btn-sm { border-radius: 10px; }

    /* ── CARDS (app-like) ── */
    .card { border-radius: 16px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.06); }
    .card-header { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
    .card-body { padding: 12px; }
    .card-title { font-size: 13px; }
    .page-section { -webkit-animation: fadeInPage 0.25s ease-out; animation: fadeInPage 0.25s ease-out; }
    /* keyframes moved outside @media — see below */

    /* ── STATS GRID ── */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; border-radius: 12px; }
    .stat-card .icon { font-size: 22px; margin-bottom: 6px; }
    .stat-card .value { font-size: 22px; }
    .stat-card .label { font-size: 10px; }
    .stat-card:hover { transform: none; }

    /* ── SHOP TABS ── */
    .shop-tabs {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 14px;
    }
    .shop-tab {
        flex: 1 1 calc(50% - 3px);
        min-width: 0;
        padding: 10px 8px;
        font-size: 12px;
        border-radius: 10px;
    }
    .shop-tab .count { font-size: 10px; padding: 1px 6px; margin-left: 4px; }

    /* ── FILTERS ── */
    .filters-bar {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
        border-radius: 12px;
    }
    .filter-select, .filter-range { width: 100%; }
    .search-box { min-width: 100%; }

    /* ── PRODUCTS GRID (app-like cards) ── */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card {
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.06);
    }
    .product-card .product-media { height: 120px; }
    .product-card .product-body { padding: 12px; }   /* (v683) .product-info hiçbir kartta yok (ölü seçici) → gövde .product-body */
    .product-card .product-title { font-size: 12px; line-height: 1.3; }
    .product-card .product-actions { padding: 8px 10px; }
    .product-card .product-actions .btn { font-size: 11px; padding: 6px 8px; min-height: 32px; border-radius: 10px; }

    /* ── FORMS (app-like) ── */
    .form-input, .form-select {
        font-size: 16px; /* iOS zoom engelleme */
        padding: 12px 14px;
        border-radius: 12px !important;
    }
    .form-label { font-size: 12px; }
    .form-row { grid-template-columns: 1fr; gap: 10px; }
    .form-textarea { font-size: 16px; border-radius: 12px !important; }
    /* (v683) iOS: appearance:none olan BOŞ date/time girdileri çöküyor (kısa) + değer ortalanıyor */
    input.form-input[type="date"],
    input.form-input[type="time"],
    input.form-input[type="datetime-local"] { min-height: 46px; }
    input.form-input::-webkit-date-and-time-value { min-height: 1.2em; text-align: left; }

    /* ── BUTTONS (app-like) ── */
    .btn {
        min-height: 44px;
        font-size: 14px;
        padding: 10px 16px;
        border-radius: 12px;
    }
    .btn-sm { min-height: 36px; font-size: 12px; padding: 6px 12px; border-radius: 10px; }

    /* ── PROFILE PAGE (app-like) ── */
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 14px;
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.06);
    }
    .profile-stats { justify-content: center; flex-wrap: wrap; gap: 12px; }
    .profile-avatar { width: 64px; height: 64px; font-size: 24px; }

    /* ── MODALS (app-like sheet, Safari-safe) ── */
    .modal-overlay {
        padding: 0;
        -webkit-align-items: flex-end;
        align-items: flex-end;
    }
    .modal-overlay {
        z-index: 10000 !important;
    }
    .modal {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 90vh;
        /* (v683) vh = büyük viewport (iOS/Android araç çubuğu gizli) → görünür alanı aşıp üstten kesiliyordu; dvh destekleyen tarayıcılarda gerçek görünür yükseklik */
        max-height: 90dvh;
        margin: 0;
        border-radius: 20px 20px 0 0 !important;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-animation: sheetSlideUp 0.25s ease-out;
        animation: sheetSlideUp 0.25s ease-out;
    }
    /* keyframes moved outside @media — see below */
    .modal-header {
        padding: 20px 16px 12px;
        -webkit-flex-shrink: 0;
        flex-shrink: 0;
        position: relative;
    }
    .modal-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: rgba(205,175,125,0.25);
        border-radius: 2px;
    }
    .modal-body {
        -webkit-flex: 1;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 14px 16px;
        max-height: none;
    }
    .modal-footer {
        -webkit-flex-shrink: 0;
        flex-shrink: 0;
        padding: 12px 16px;
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
    }
    .modal-footer .btn { -webkit-flex: 1; flex: 1; border-radius: 12px; }
    .modal-close { width: 40px; height: 40px; font-size: 20px; }

    /* ── TABLES ── */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -14px;
        padding: 0 14px;
    }
    table { min-width: 500px; }
    th, td { padding: 10px 8px; font-size: 12px; }

    /* ── DASHBOARD ── */
    .dashboard-widgets { grid-template-columns: 1fr; gap: 12px; }
    .dashboard-widgets .widget-card {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        padding: 14px;
        overflow: hidden;
    }
    /* Haftalık Hedefler: mobilde tek sütun — iki sütun sığmıyor */
    .dashboard-widgets .goals-list {
        grid-template-columns: 1fr !important;
        max-height: 260px !important;
    }
    /* Haftalık Etkinlik Takvimi: header wrap edilsin, butonlar küçülsün */
    .dashboard-widgets .event-calendar .widget-header {
        gap: 8px !important;
    }
    .dashboard-widgets .event-calendar .widget-header .btn.btn-sm {
        padding: 4px 8px;
        font-size: 12px;
    }

    /* ── HERO BANNER ── */
    .hero-banner {
        width: calc(100% + 20px);
        margin-left: -10px;
        margin-top: -10px;
        height: 130px;
        border-radius: 0 0 18px 18px;
        overflow: hidden;
    }
    .hero-banner-title {
        bottom: 10px;
        left: 12px;
        right: 12px;
    }
    .hero-banner-title .page-title { font-size: 16px; }

    /* ── EVENT CAROUSEL ── */
    #eventCarouselContainer > div { flex-direction: column; }
    #eventCarouselContainer > div > div { min-width: 100% !important; }
    /* Saat mobilde küçült */
    #liveClock > div { padding: 3px 6px !important; border-radius: 6px !important; }
    #liveClock span:first-child { font-size: 8px !important; }
    #liveClock span:last-child { font-size: 12px !important; }

    /* ── VAULT / DEPO ── */
    #vaultPage .card-header {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    #vaultPage .card-header .shop-tabs {
        order: 2;
        flex-wrap: wrap;
        gap: 4px;
    }
    #vaultPage .card-header .shop-tab {
        flex: 1 1 calc(33.3% - 3px);
        min-width: 0;
        padding: 8px 4px;
        font-size: 11px;
        text-align: center;
    }
    #vaultPage .card-header .search-box {
        max-width: 100% !important;
        order: 1;
    }
    #vaultPage .card-body { padding: 10px; }
    #vaultPage .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    #vaultPage .product-card {
        border-radius: 10px;
        overflow: hidden;
    }
    #vaultPage .product-card .product-media { height: 100px; }
    #vaultPage .product-card .product-body { padding: 10px; }   /* (v683) ölü .product-info yerine */
    #vaultPage .product-card .product-title { font-size: 12px; line-height: 1.3; }
    #vaultPage .product-card .product-price { font-size: 11px; }
    #vaultPage .product-card .product-badge { font-size: 9px; padding: 2px 6px; }
    #vaultPage .product-card .product-actions { padding: 6px 8px; }
    #vaultPage .product-card .product-actions .btn { font-size: 10px; padding: 4px 8px; min-height: 28px; }

    /* ── CHAT (app-like messenger) ── */
    .chat-container { height: 380px; border-radius: 0 0 16px 16px; }
    .chat-messages { padding: 10px; gap: 6px; }
    .chat-message .avatar { width: 28px; height: 28px; font-size: 11px; }
    .chat-message .name { font-size: 11px; padding-left: 6px; }
    .chat-message .text { font-size: 13px; padding: 8px 12px; border-radius: 4px 16px 16px 16px; max-width: 80%; }
    .chat-message.own .text { border-radius: 16px 4px 16px 16px; }
    .chat-message .time { font-size: 10px; }
    .chat-input {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 8px 10px;
        align-items: center;
        border-top: 1px solid rgba(255,255,255,0.06);
        overflow: visible; /* (v683) hidden idi → üstte açılan @mention listesi (#mentionDropdown, bottom:100%) tamamen kırpılıyordu */
        max-width: 100%;
        box-sizing: border-box;
    }
    .chat-input input {
        flex: 1;
        min-width: 0;
        width: 0;
        font-size: 16px;
        padding: 10px 14px;
        border-radius: 20px !important;
        box-sizing: border-box;
    }
    .chat-input .emoji-btn {
        height: 38px !important;
        width: 38px !important;
        min-height: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border-radius: 50% !important;
        background: rgba(205,175,125,0.1) !important;
        border: 1px solid rgba(205,175,125,0.2) !important;
        color: #cdaf7d !important;
        font-size: 16px !important;
        line-height: 1 !important;
    }
    .chat-input .emoji-btn i,
    .chat-input .emoji-btn svg {
        font-size: 16px !important;
        color: #cdaf7d !important;
        line-height: 1 !important;
    }
    .chat-input .btn-primary {
        height: 38px !important;
        width: 38px !important;
        min-height: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border-radius: 50% !important;
        font-size: 15px !important;
        line-height: 1 !important;
    }
    .chat-input .btn-primary i,
    .chat-input .btn-primary svg {
        font-size: 15px !important;
        color: #fff !important;
        line-height: 1 !important;
    }
    /* (emoji-picker mobil stili aşağıda admin bloğunun altında) */

    /* ── CALENDAR MODAL ── */
    .calendar-grid { gap: 2px; }
    .calendar-day { min-height: 38px; font-size: 11px; padding: 3px; }
    .calendar-header { font-size: 9px; }
    .calendar-day .event-dot { width: 5px; height: 5px; }
    .calendar-nav { gap: 4px; }
    .calendar-nav .btn { min-height: 36px; padding: 6px 10px; }
    #calendarDayEvents { padding: 8px; }

    /* ── DASHBOARD GRID (sohbet + top10) ── */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── ADMIN ── */
    #adminPage .page-title { font-size: 20px; }

    /* Admin üst 4 stat kartı */
    .admin-top-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    .admin-top-stats .stat-card { padding: 12px; }
    .admin-top-stats .stat-card .icon { font-size: 20px; margin-bottom: 4px; }
    .admin-top-stats .stat-card .value { font-size: 20px; }
    .admin-top-stats .stat-card .label { font-size: 9px; }

    /* Admin 6'lı stats dashboard */
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    .admin-stat-card { padding: 10px; }
    .admin-stat-card .value { font-size: 18px; }

    /* Admin tab'ları — yatay kaydırılabilir */
    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 6px;
        margin-bottom: 14px;
        scrollbar-width: none;
    }
    .admin-tabs::-webkit-scrollbar { display: none; }
    .admin-tab {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 8px;
    }

    /* Admin grid (kullanıcı listesi + detay) */
    .admin-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    .user-list { max-height: 300px; }
    .user-list-item { padding: 8px 10px; gap: 8px; }
    .user-list-item .avatar { width: 32px; height: 32px; font-size: 12px; }
    .user-list-item .name { font-size: 13px; }
    .user-list-item .role { font-size: 10px; }

    /* Admin card header — butonlar wrap olsun */
    #adminPage .card-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    #adminPage .card-header .card-title {
        font-size: 12px;
        flex: 1 1 100%;
    }
    #adminPage .card-header .btn-sm {
        font-size: 11px;
        padding: 6px 10px;
        min-height: 32px;
    }

    /* Admin formları */
    #editUserForm .form-row {
        grid-template-columns: 1fr;
    }
    #adminBonusSection h4 { font-size: 13px; }

    /* Admin tabloları — kaydırılabilir, kompakt */
    #adminPage .card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    #adminPage .data-table th,
    #adminPage .data-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    #adminPage .data-table { min-width: 500px; }

    /* Alt sekmeler (Aktif/Tamamlanan) */
    #adminPage .shop-tabs {
        flex-direction: row;
        gap: 6px;
    }
    #adminPage .shop-tab {
        flex: 1;
        padding: 8px;
        font-size: 12px;
    }

    /* ══════════════════════════════════════════════════
       ADMIN — DUYURULAR (Announcements)
       ══════════════════════════════════════════════════ */
    #adminAnnouncementsTab .card-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }
    #adminAnnouncementsTab .card-header .btn { width: 100%; justify-content: center; }
    .announcement-item {
        padding: 12px !important;
        padding-right: 50px !important;
    }
    /* (v683) Admin listesinde düzenle+sil (2 × btn-sm, sağ üst) ~90px → başlığın üstüne biniyordu */
    #adminAnnouncementsList .announcement-item { padding-right: 96px !important; }
    .announcement-item .title { font-size: 13px; line-height: 1.4; }
    .announcement-item .text { font-size: 12px; }
    .announcement-item .date { font-size: 10px; }

    /* ══════════════════════════════════════════════════
       ADMIN — ETKİNLİKLER (Events)
       ══════════════════════════════════════════════════ */
    #adminEventsTab .card-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }
    #adminEventsTab .card-header > div { width: 100%; }
    #adminEventsTab .card-header > div .btn { flex: 1; justify-content: center; }
    .event-admin-item {
        flex-wrap: wrap !important;
        padding: 10px 12px !important;
        gap: 8px !important;
    }
    .event-admin-item > div:first-child { min-width: auto !important; }
    .event-admin-item > div:nth-child(2) { flex: 1 1 100% !important; order: -1; }
    .event-admin-item > div:nth-child(2) > div:first-child { font-size: 13px; }
    .event-admin-item > div:nth-child(2) > div:last-child { font-size: 11px; }

    /* ══════════════════════════════════════════════════
       ADMIN — DEPO YÖNETİMİ (Vault)
       ══════════════════════════════════════════════════ */
    #adminVaultTab .card-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }
    #adminVaultTab .card-header > div { width: 100%; display: flex; }
    #adminVaultTab .card-header > div .btn { flex: 1; justify-content: center; font-size: 11px; }
    #adminVaultTable { min-width: 0 !important; }
    #adminVaultTable th:nth-child(3),
    #adminVaultTable td:nth-child(3),
    #adminVaultTable th:nth-child(5),
    #adminVaultTable td:nth-child(5) { display: none; }
    #adminVaultTable th, #adminVaultTable td { padding: 6px 4px !important; font-size: 11px !important; }
    #adminVaultTable td div[style*="40px"] { width: 30px !important; height: 30px !important; }

    /* ══════════════════════════════════════════════════
       ADMIN — ÜRÜNLER (Products)
       ══════════════════════════════════════════════════ */
    #adminProductsTab .card-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }
    #adminProductsTab .card-header .btn { width: 100%; justify-content: center; }
    #adminProductsTable { min-width: 0 !important; }
    #adminProductsTable th:nth-child(1),
    #adminProductsTable td:nth-child(1),
    #adminProductsTable th:nth-child(3),
    #adminProductsTable td:nth-child(3) { display: none; }
    #adminProductsTable th, #adminProductsTable td { padding: 6px 4px !important; font-size: 11px !important; }
    /* (v683) Aynı kaba çizilen çekiliş tablolarında 3. sütun 'Katılım' (ürünlerde 'Klan') → geri aç */
    #adminProductsTable .admin-raffle-table th:nth-child(3),
    #adminProductsTable .admin-raffle-table td:nth-child(3) { display: table-cell; }

    /* ══════════════════════════════════════════════════
       ADMIN — ÇEKİLİŞLER (Raffles)
       ══════════════════════════════════════════════════ */
    #adminRafflesTab .card-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }
    #adminRafflesTab .card-header .btn { width: 100%; justify-content: center; }
    #adminRafflesTable { min-width: 0 !important; }
    #adminRafflesTable th:nth-child(1),
    #adminRafflesTable td:nth-child(1) { display: none; }
    #adminRafflesTable th, #adminRafflesTable td { padding: 6px 4px !important; font-size: 11px !important; }

    /* ══════════════════════════════════════════════════
       ADMIN — HAFTALIK RAPORLAR (Weekly Reports)
       ══════════════════════════════════════════════════ */
    #adminWeeklyReport > div:first-child {
        flex-direction: column !important;
        gap: 8px !important;
    }
    #adminWeeklyReport > div:first-child > select { max-width: 100% !important; width: 100% !important; }
    #adminWeeklyReport > div:first-child > div {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100%;
    }
    #adminWeeklyReport > div:first-child > div > div {
        width: 100% !important;
        padding: 10px 12px !important;
    }
    #adminWeeklyReport .data-table { min-width: 0 !important; }
    #adminWeeklyReport .data-table th,
    #adminWeeklyReport .data-table td { padding: 6px 4px !important; font-size: 11px !important; white-space: nowrap; }
    /* (v683) Ürün adı sarabilsin + son sütun (Durum: Gönderildi/Bekliyor) sağa yapışık → yana kaydırmadan görünür */
    #adminWeeklyReport .data-table td:first-child:not([colspan]) { white-space: normal; min-width: 100px; }
    #adminWeeklyReport .data-table th:last-child,
    #adminWeeklyReport .data-table td:last-child:not([colspan]) {
        position: sticky;
        right: 0;
        z-index: 1;
        background: linear-gradient(var(--bg-card), var(--bg-card)), var(--bg-deep);
    }
    #adminWeeklyReport h4 { font-size: 13px !important; }

    /* ══════════════════════════════════════════════════
       ADMIN — GENEL YÖNETİM (General Settings)
       ══════════════════════════════════════════════════ */
    .general-settings-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .point-setting-item { padding: 6px 10px !important; }
    .point-setting-item label { font-size: 11px !important; }
    .point-setting-item input { width: 50px !important; }
    #adminGeneralSettings .card { margin-top: 12px !important; }
    #adminGeneralSettings .card-header { flex-wrap: wrap; gap: 6px; }
    #adminGeneralSettings .card-header .btn { font-size: 11px; }
    #adminGeneralSettings .audit-log-item {
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px !important;
    }
    #adminGeneralSettings .audit-log-item .time { font-size: 10px !important; }
    #adminGeneralSettings .audit-log-item .content .action { font-size: 12px; }
    #adminGeneralSettings .audit-log-item .content .details { font-size: 11px; }
    #adminGeneralSettings .audit-log-item .log-user { font-size: 10px !important; margin-left: 0 !important; }
    /* Veri yönetimi butonları */
    #adminGeneralSettings div[style*="justify-content:space-between"] {
        flex-wrap: wrap;
        gap: 8px;
    }
    #adminGeneralSettings div[style*="justify-content:space-between"] .btn {
        flex-shrink: 0;
    }

    /* ══════════════════════════════════════════════════
       ADMIN — Genel tablo kuralları (mobil için override)
       ══════════════════════════════════════════════════ */
    #adminPage .data-table { min-width: 0 !important; width: 100% !important; table-layout: auto; }
    #adminPage .card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* ══════════════════════════════════════════════════
       EMOJI PICKER — Mobil (tam ekran modal)
       ══════════════════════════════════════════════════ */
    .emoji-picker {
        position: fixed !important;
        bottom: auto !important;
        top: 50% !important;
        left: 12px !important;
        right: 12px !important;
        -webkit-transform: translateY(-50%) !important;
        transform: translateY(-50%) !important;
        width: auto !important;
        max-width: none !important;
        max-height: 45vh !important;
        z-index: 9999 !important;
        grid-template-columns: repeat(7, 1fr) !important;
        border-radius: 18px !important;
        padding: 14px !important;
        box-shadow: 0 12px 40px rgba(0,0,0,0.6) !important;
        -webkit-overflow-scrolling: touch;
        background: #1d160e !important;
        border: 1px solid rgba(205,175,125,0.15) !important;
    }
    .emoji-item {
        font-size: 22px !important;
        padding: 5px !important;
    }

    /* ── TOAST ── */
    .toast-container {
        left: 12px;
        right: 12px;
        top: 64px;
        max-width: 100%;
    }
    .toast { max-width: 100%; }

    /* ── MISC ── */
    .vault-card { border-radius: 12px; }
    .sold-item { flex-direction: column; text-align: center; }
    .game-banner-inner { padding: 16px; }
}

/* Mobile Keyframes — MUST be outside @media for Safari */
@-webkit-keyframes fadeInPage {
    from { opacity: 0; -webkit-transform: translateY(8px); }
    to { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@-webkit-keyframes sheetSlideUp {
    from { -webkit-transform: translateY(100%); }
    to { -webkit-transform: translateY(0); }
}
@keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@-webkit-keyframes slideUpMore {
    from { -webkit-transform: translateY(100%); opacity: 0; }
    to { -webkit-transform: translateY(0); opacity: 1; }
}
@keyframes slideUpMore {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }

/* Product Search Dropdown */
.product-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin-top: 4px;
}

.product-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-subtle);
}

.product-dropdown-item:last-child { border-bottom: none; }

.product-dropdown-item:hover {
    background: rgba(205, 175, 125, 0.1);
}

.product-dropdown-item .name {
    font-size: 13px;
    color: var(--text-primary);
    flex: 1;
}

.product-dropdown-item .name mark {
    background: rgba(205, 175, 125, 0.3);
    color: var(--accent-cyan);
    padding: 0 2px;
    border-radius: 2px;
}

.product-dropdown-item .price {
    font-family: 'Spectral', serif;
    font-size: 12px;
    color: var(--accent-cyan);
    background: rgba(205, 175, 125, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    margin-left: 12px;
}

/* Rules Page */
.rules-container {
    max-width: 900px;
    margin: 0 auto;
}

.rules-hero {
    background: linear-gradient(135deg, var(--bg-card), rgba(150, 124, 87, 0.1));
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: center;
}

.rules-hero p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.rule-item {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-deep));
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.rule-item:hover {
    transform: translateY(-2px);
    border-color: rgba(150, 124, 87, 0.3);
}

.rule-number {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Spectral', serif;
    font-weight: 900;
    font-size: 16px;
    color: white;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    box-shadow: 0 8px 20px rgba(150, 124, 87, 0.3);
    flex-shrink: 0;
}

.rule-content h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.rule-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.rules-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rules-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), var(--bg-deep));
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 18px 22px;
}

.rules-section h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.rules-section p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.rules-section.accept-section {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(14, 165, 233, 0.08));
    border-color: rgba(34, 197, 94, 0.25);
}

.accept-box {
    margin-top: 16px;
    padding: 18px;
    background: rgba(2, 6, 23, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.accept-info {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    flex: 1;
    min-width: 260px;
}

.check-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.accept-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 6px;
    line-height: 1.4;
}

.accept-count {
    font-size: 13px;
    color: var(--accent-purple);
    margin: 0;
    font-weight: 700;
}

.accept-count strong {
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .rule-item { flex-direction: column; }
    .accept-box { flex-direction: column; }
}

/* ==================== ANIMATIONS ==================== */
.coin-animation-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

.coin-fly {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: coinFlyUp 1.5s ease-out forwards;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 2px 10px rgba(205, 175, 125, 0.5);
}

.coin-fly .coin-ap {
    width: 32px;
    height: 32px;
}

@keyframes coinFlyUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-100px) scale(0.5); }
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Win Celebration Overlay */
.win-celebration-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: celebFadeIn 0.5s ease-out;
}

@keyframes celebFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.win-celebration-content {
    text-align: center;
    animation: celebBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes celebBounceIn {
    from { transform: scale(0.3); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.win-trophy {
    font-size: 80px;
    color: #ffd700;
    margin-bottom: 16px;
    animation: trophyPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
}

@keyframes trophyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.win-title {
    font-family: 'Spectral', serif;
    font-size: 42px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 6px;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.win-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.win-product-name {
    font-family: 'Spectral', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding: 12px 24px;
    background: rgba(205, 175, 125, 0.1);
    border: 1px solid rgba(205, 175, 125, 0.3);
    border-radius: 12px;
    display: inline-block;
}

.win-amount {
    font-family: 'Spectral', serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-cyan);
    margin: 16px 0 24px;
}

.win-close-btn {
    padding: 12px 40px;
    font-size: 16px;
    font-family: 'Spectral', serif;
    letter-spacing: 2px;
}

.pulse-anim {
    animation: pulseAnim 0.6s ease-out;
}

@keyframes pulseAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}

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

/* Hot Badge */
.hot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    animation: hotPulse 2s ease-in-out infinite;
    z-index: 5;
}

@keyframes hotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-top: -24px;
    margin-bottom: 24px;
    height: 340px;
    position: relative;
    background: url('https://gcdn.wemade.games/lygl/official/0.0.4/_next/static/images/top_panel/news.webp') center center / cover no-repeat;
    background-color: var(--bg-deep);
    overflow: hidden;
}

.hero-banner-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent 0%, rgba(19, 14, 11, 0.25) 40%, rgba(19, 14, 11, 0.6) 70%, var(--bg-deep) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
}

.hero-banner-title {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 2;
}

.hero-banner-title .page-title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
    margin: 0;
}

.hero-banner-rules {
    background-image: url('https://gcdn.wemade.games/lygl/official/0.0.4/_next/static/images/top_panel/partners_program_v2.webp');
}

/* ==================== GAME BANNER ==================== */
.game-banner {
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1232 0%, #2d1b4e 40%, #1e1338 100%);
    border: 1px solid rgba(130, 100, 200, 0.25);
    position: relative;
}

.game-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.game-banner-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(120, 80, 200, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(80, 60, 180, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.game-banner-character {
    flex-shrink: 0;
    height: 140px;
    position: relative;
    z-index: 1;
    margin-right: -10px;
}

.game-banner-character img {
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(130, 100, 200, 0.3));
}

.game-banner-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.game-banner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-banner-title {
    font-family: 'Spectral', serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.game-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.game-banner-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

.game-banner-link img {
    width: 14px;
    height: 7px;
    transition: transform 0.3s ease;
}

.game-banner-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-banner-bird {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(205, 175, 125, 0.3));
    transition: transform 0.3s ease;
}

.game-banner-cta:hover .game-banner-bird {
    transform: scale(1.05);
}

.game-banner-link:hover img {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .game-banner-inner {
        flex-direction: column;
        padding: 16px;
        text-align: center;
    }
    .game-banner-character {
        height: 100px;
        margin-right: 0;
    }
    .game-banner-content {
        flex-direction: column;
        gap: 12px;
    }
    .game-banner-title {
        font-size: 18px;
    }
}

.ending-soon-card {
    border-color: rgba(239, 68, 68, 0.5);
}

/* Bid Count */
.bid-count {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================== DASHBOARD WIDGETS ==================== */
/* Dashboard Video Section */
.dash-video-section {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    position: relative;
}

.dash-video-wrapper {
    position: relative;
    width: 100%;
    max-height: 360px;
    overflow: hidden;
}

.dash-video-wrapper video {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 360px;
}

.dash-video-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    pointer-events: none;
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
}

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

.widget-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(205, 175, 125, 0.2);
    color: var(--accent-cyan);
}

.widget-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.widget-stat .value {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Spectral', serif;
}

.widget-stat .label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.widget-stat .value.cyan { color: var(--accent-cyan); }
.widget-stat .value.orange { color: var(--accent-orange); }
.widget-stat .value.green { color: var(--accent-green); }
.widget-stat .value.red { color: var(--accent-red); }

/* Goals Checklist */
.goals-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-glass);
    border-radius: 10px;
    font-size: 13px;
}

.goal-item.completed {
    background: rgba(16, 185, 129, 0.1);
}

.goal-item .check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.goal-item.completed .check {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

.goal-progress-bar {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-track {
    flex: 1;
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-green);
    min-width: 40px;
    text-align: right;
}

/* Event Calendar */
.event-calendar {
    grid-column: span 1;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-input);
    border-radius: 8px;
    border-left: 3px solid var(--accent-purple);
}

.event-item:nth-child(1) {
    border-left-color: var(--accent-cyan);
}

.event-time {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-cyan);
    min-width: 45px;
}

.event-info {
    flex: 1;
}

.event-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.event-location {
    font-size: 11px;
    color: var(--text-muted);
}

.event-type {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.event-type.clan-boss {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.event-type.field-boss {
    background: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple);
}

.event-type.meeting {
    background: var(--accent-orange);
    box-shadow: 0 0 8px var(--accent-orange);
}

.event-type.server-battle {
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

/* Activity Graph */
.activity-graph {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
}

.graph-bar {
    flex: 1;
    background: linear-gradient(to top, var(--gold), var(--gold-dark));
    border-radius: 6px 6px 0 0;
    min-height: 10px;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
}

.graph-bar:hover {
    filter: brightness(1.2);
}

.graph-bar .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-deep);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.graph-bar:hover .tooltip {
    opacity: 1;
}

.graph-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    color: var(--text-muted);
}

/* ==================== ADMIN STATISTICS ==================== */
.admin-top-stats {
    grid-template-columns: repeat(4, 1fr);
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.admin-stat-card .icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.admin-stat-card .value {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Spectral', serif;
}

.admin-stat-card .label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.admin-stat-card .trend {
    font-size: 11px;
    margin-top: 6px;
}

.admin-stat-card .trend.up { color: var(--accent-green); }
.admin-stat-card .trend.down { color: var(--accent-red); }

/* Audit Log Detailed */
.audit-log-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-glass);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    align-items: flex-start;
}

.audit-log-item .time {
    font-family: 'Spectral', serif;
    font-size: 11px;
    color: var(--text-muted);
    min-width: 70px;
}

.audit-log-item .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.audit-log-item .icon.bid { background: rgba(251, 146, 60, 0.2); }
.audit-log-item .icon.win { background: rgba(16, 185, 129, 0.2); }
.audit-log-item .icon.purchase { background: rgba(205, 175, 125, 0.2); }
.audit-log-item .icon.raffle { background: rgba(223, 207, 165, 0.2); }
.audit-log-item .icon.points { background: rgba(205, 175, 125, 0.2); }
.audit-log-item .icon.system { background: rgba(100, 116, 139, 0.2); }

.audit-log-item .content {
    flex: 1;
}

.audit-log-item .action {
    font-weight: 600;
    color: var(--text-primary);
}

.audit-log-item .details {
    color: var(--text-secondary);
    margin-top: 2px;
}

.audit-log-item .user-tag {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Multiple Ticket Raffle */
.ticket-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-glass);
    border-radius: 10px;
    margin: 12px 0;
}

.ticket-selector label {
    font-size: 13px;
    color: var(--text-secondary);
}

.ticket-selector input {
    width: 60px;
    text-align: center;
}

.ticket-selector .total {
    margin-left: auto;
    font-weight: 700;
    color: var(--accent-pink);
}

.ticket-info {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Calendar View */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 4px;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 2px;
    background: var(--bg-glass);
    border-radius: 8px;
    font-size: 12px;
    position: relative;
    min-height: 50px;
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(205, 175, 125, 0.3), rgba(223, 207, 165, 0.3));
    border: 1px solid var(--accent-purple);
}

.calendar-day.selected {
    background: linear-gradient(135deg, rgba(205, 175, 125, 0.3), rgba(150, 124, 87, 0.3));
    border: 2px solid var(--accent-cyan);
}

.calendar-day:not(.other-month):hover {
    background: var(--bg-glass);
    transform: scale(1.05);
}

.calendar-day .day-number {
    font-weight: 600;
    margin-bottom: 4px;
}

.calendar-day .day-events {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
}

.calendar-day .event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.calendar-day .event-dot.clan-boss { background: var(--accent-cyan); }
.calendar-day .event-dot.field-boss { background: var(--accent-purple); }
.calendar-day .event-dot.meeting { background: var(--accent-orange); }
.calendar-day .event-dot.server-battle { background: var(--accent-red); }
.calendar-day .event-dot.island-war { background: #22c55e; }
.calendar-day .event-dot.annihilation { background: #f59e0b; }
.calendar-day .event-dot.item-distribution { background: #ec4899; }   /* (v701) */

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.legend-dot.clan-boss { background: var(--accent-cyan); }
.legend-dot.field-boss { background: var(--accent-purple); }
.legend-dot.meeting { background: var(--accent-orange); }
.legend-dot.server-battle { background: var(--accent-red); }
.legend-dot.island-war { background: #22c55e; }
.legend-dot.annihilation { background: #f59e0b; }
.legend-dot.item-distribution { background: #ec4899; }   /* (v701) */

/* Raffle Wheel */
.wheel-container {
    position: relative;
    display: inline-block;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: var(--accent-pink);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

#raffleWheel {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(205, 175, 125, 0.5), inset 0 0 20px rgba(0,0,0,0.3);
}

.wheel-spinning {
    animation: none !important;
}

@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* (mobil kurallar ana @media bloğuna taşındı) */

/* Vault / Klan Deposu Styles */
.vault-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vault-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.vault-card .product-title {
    font-size: 14px;
    font-weight: 600;
}

/* Rarity Colors */
/* Vault styles - no rarity */

/* Vault Stats */
#vaultPage .stat-card .value {
    font-size: 24px;
}

/* (vault mobil kurallar ana @media bloğuna taşındı) */

/* AI Import Styles */
.ai-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-glass);
    border-top: 4px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* ==================== UI/UX İYİLEŞTİRMELERİ - CSS ==================== */

/* 🎨 1. LOADING STATES - Skeleton Screens */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-glass) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        var(--bg-glass) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 16px;
}

.skeleton-line {
    height: 16px;
    margin-bottom: 12px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.title {
    height: 24px;
    width: 40%;
    margin-bottom: 20px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

/* Kullanım örneği HTML:
<div class="skeleton-card">
    <div class="skeleton skeleton-line title"></div>
    <div class="skeleton skeleton-line"></div>
    <div class="skeleton skeleton-line short"></div>
</div>
*/

/* 🎨 2. BUTTON LOADING STATES */
.btn {
    position: relative;
    overflow: hidden;
}

.btn.loading {
    pointer-events: none;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Kullanım örneği JavaScript:
btn.classList.add('loading');
// İşlem tamamlandığında:
btn.classList.remove('loading');
*/

/* 🎨 3. SMOOTH TRANSITIONS & MICRO-INTERACTIONS */
.stat-card {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(205, 175, 125, 0.15);
}

.stat-card:active {
    transform: translateY(-2px);
}

/* Tüm interactive elementler için */
.btn,
.nav-link,
.card,
input,
select {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🎨 4. GELIŞMIŞ TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border-left: 4px solid var(--accent-cyan);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), var(--bg-card));
}

.toast.error {
    border-left-color: var(--accent-red);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), var(--bg-card));
}

.toast.warning {
    border-left-color: var(--accent-yellow);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), var(--bg-card));
}

.toast.info {
    border-left-color: var(--accent-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), var(--bg-card));
}

/* Toast progress bar */
.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    width: 100%;
    animation: toast-progress 3s linear;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* 🎨 5. RESPONSIVE — (ana mobil kurallar yukarıda birleştirildi) */

/* Tablet için 2 sütun grid */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 🎨 6. IMPROVED EMPTY STATES */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.empty-state .btn {
    margin-top: 12px;
}

/* 🎨 7. DARK/LIGHT MODE SUPPORT */
body.light-mode {
    --bg-deep: #ffffff;
    --bg-card: #f8fafc;
    --bg-glass: #e2e8f0;
    --bg-input: #ffffff;
    --border-glow: rgba(99, 102, 241, 0.3);
    --border-subtle: rgba(0, 0, 0, 0.1);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
}

.theme-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    padding: 4px;
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.theme-toggle button {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 50px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.theme-toggle button.active {
    background: var(--accent-purple);
    color: white;
}

/* 🎨 8. ACCESSIBILITY IMPROVEMENTS */

/* Focus indicators */
*:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-purple);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 10px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 🎨 9. ANIMATION UTILITIES */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.3s ease-out;
}

.animate-slideInUp {
    animation: slideInUp 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 🎨 10. IMPROVED FORM INPUTS */
.form-input,
.form-select {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(205, 175, 125, 0.1);
    transform: translateY(-1px);
}

.form-input.error {
    border-color: var(--accent-red);
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-error {
    color: var(--accent-red);
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-error::before {
    content: '⚠️';
}

/* 🎨 11. TOOLTIPS */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    padding: 8px 12px;
    background: var(--bg-deep);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* 🎨 12. BADGE IMPROVEMENTS */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.badge.warning {
    background: rgba(234, 179, 8, 0.15);
    color: var(--accent-yellow);
}

.badge.info {
    background: rgba(205, 175, 125, 0.15);
    color: var(--accent-cyan);
}

/* 🎨 13. PROGRESS INDICATORS */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

/* Linear progress */
.linear-progress {
    height: 4px;
    background: var(--bg-glass);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.linear-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
    border-radius: 4px;
    transition: width 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.linear-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 🎨 14. EVENT CAROUSEL — (mobil kurallar ana blokta) */

/* 🎨 15. REDUCE MOTION SUPPORT */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== EXTRA SMALL — max-width: 380px ==================== */
@media (max-width: 380px) {
    .container { padding: 8px 8px 90px 8px !important; }
    .nav-container { padding: 0 8px; }
    .logo { font-size: 16px; letter-spacing: 1px; }
    .user-info { padding: 4px 6px; }
    .user-avatar { width: 28px; height: 28px; font-size: 11px; }
    .user-name { font-size: 11px; }
    .notification-bell { font-size: 16px; padding: 4px; }

    .hero-banner { height: 130px; }
    .hero-banner-title .page-title { font-size: 16px; }

    .stat-card { padding: 10px; }
    .stat-card .value { font-size: 18px; }

    .shop-tab { padding: 8px 6px; font-size: 11px; }

    .card-header { padding: 10px 12px; }
    .card-body { padding: 10px 12px; }

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

    .modal-header { padding: 12px 14px; }
    .modal-body { padding: 12px; }

    /* Admin küçük ekran */
    .admin-tab { padding: 6px 10px; font-size: 11px; }
    .admin-top-stats { gap: 6px; }
    .admin-top-stats .stat-card { padding: 8px; }
    .admin-top-stats .stat-card .value { font-size: 16px; }
    #adminPage .card-header .btn-sm { font-size: 10px; padding: 5px 8px; }
}

/* ==================== SETTINGS PAGE ==================== */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.settings-item:last-child { border-bottom: none; }

.settings-item-info { flex: 1; }
.settings-item-label { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.settings-item-desc { font-size: 12px; color: var(--text-muted); }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-cyan);
}

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

/* ==================== CHAT REACTIONS ==================== */
.chat-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #e8d5a8;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.reaction-badge:hover {
    background: rgba(205,175,125,0.15);
    border-color: rgba(205,175,125,0.4);
    transform: translateY(-1px);
}
.reaction-badge.mine {
    background: rgba(205,175,125,0.25);
    border-color: rgba(205,175,125,0.6);
}
.reaction-badge span {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}
.reaction-add-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.15s;
    margin-left: 4px;
    -webkit-tap-highlight-color: transparent;
    min-width: 32px;
    min-height: 32px;
}
.reaction-add-btn:hover,
.reaction-add-btn:active {
    color: #cdaf7d;
    background: rgba(205,175,125,0.1);
}
.reaction-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: transparent;
}
.reaction-picker-backdrop.mobile {
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: reactionFadeIn 0.2s ease-out;
}
@keyframes reactionFadeIn { from { opacity: 0; } to { opacity: 1; } }
.reaction-picker-float {
    display: flex;
    gap: 4px;
    background: linear-gradient(135deg, #1a1510, #130e0b);
    border: 1px solid rgba(205,175,125,0.3);
    border-radius: 24px;
    padding: 6px 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    animation: reactionPopIn 0.15s ease-out;
}
.reaction-picker-float.mobile {
    gap: 2px;
    padding: 12px 16px;
    border-radius: 999px;
    width: auto;
    max-width: calc(100vw - 24px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    animation: reactionSlideUp 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes reactionPopIn {
    from { opacity: 0; transform: scale(0.8) translateY(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes reactionSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.reaction-pick-item {
    font-size: 22px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 10px;
    transition: all 0.12s;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
.reaction-pick-item:hover {
    background: rgba(205,175,125,0.15);
    transform: scale(1.25);
}
.reaction-pick-item:active {
    background: rgba(205,175,125,0.3);
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .reaction-picker-float.mobile .reaction-pick-item {
        font-size: 28px;
        padding: 10px 10px;
        min-width: 44px;
        text-align: center;
    }
    .reaction-badge {
        font-size: 13px;
        padding: 5px 10px;
    }
    .reaction-add-btn {
        font-size: 15px;
        padding: 8px 12px;
    }
}

/* ==================== OFFLINE BANNER ==================== */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: linear-gradient(90deg, #7f1d1d, #991b1b);
    color: #fecaca;
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: slideDown 0.3s ease-out;
}
.offline-banner.online {
    background: linear-gradient(90deg, #065f46, #047857);
    color: #a7f3d0;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
.offline-banner i { font-size: 14px; }

/* ==================== PWA INSTALL PROMPT ==================== */
.pwa-install-prompt {
    position: fixed;
    bottom: 90px;
    left: 16px;
    right: 16px;
    z-index: 9985;   /* (v683) 99997 idi → modal/sheet (10000), Menü (9995) ve toast'ların ÜSTÜNDE kalıyordu; bnav (9990) altında, bottom:90px ile ona binmez */
    background: linear-gradient(135deg, #1a1510, #130e0b);
    border: 1px solid rgba(205,175,125,0.4);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
    animation: slideUp 0.35s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.pwa-install-prompt .pwa-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: linear-gradient(135deg, #cdaf7d, #e8d5a8);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #130e0b; font-size: 20px; font-weight: 800;
}
.pwa-install-prompt .pwa-text { flex: 1; color: #e8d5a8; font-size: 13px; }
.pwa-install-prompt .pwa-text b { display: block; color: #fff; margin-bottom: 2px; }
.pwa-install-prompt button {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}
.pwa-install-prompt .pwa-btn-install {
    background: linear-gradient(135deg, #cdaf7d, #e8d5a8);
    color: #130e0b;
}
.pwa-install-prompt .pwa-btn-dismiss {
    background: transparent;
    color: rgba(255,255,255,0.4);
}

/* ==================== PWA STANDALONE MODE (iOS + Android) ==================== */
/* Telefona yüklendiğinde top notch ve bottom home indicator safe-area'ları */
/* (v696) Üst güvenli alan artık YALNIZCA sabit header'ın padding-top'unda: eskiden body'ye de
   env(safe-area-inset-top) + .container'a 60px+inset veriliyordu → çentikli iPhone'da içerik header'ın
   ~56 px altından başlıyordu (tarayıcıda 8–10 px). Sabit header yüksekliği = 51px (50 nav + 1 kenarlık)
   + inset; içerik boşluğu tarayıcıdaki mobil .container padding'iyle aynı (10px, ≤380px'te 8px).
   Header'daki backdrop-filter da kaldırıldı: arka plan zaten opak, iOS WebKit fixed + backdrop-filter
   öğeyi (logo/yazılar) bulanık çiziyordu. */
@media screen and (max-width: 768px) {
    @media all and (display-mode: standalone) {
        /* Header — fixed, safe-area dahil (status bar alanını header kaplar; body'de ayrıca boşluk YOK) */
        .header {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 1000 !important;
            padding-top: env(safe-area-inset-top, 0px) !important;
            background: #130e0b !important;   /* (v698) düz renk — iOS 26 üst kenarda gradyanı bulanıklaştırıyor */
            -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
            border-bottom: 1px solid rgba(205,175,125,0.15);
        }
        /* Header fixed olunca içerik header'ın altından (51px + inset) + tarayıcıdaki 10px boşlukla başlar */
        .container {
            padding-top: calc(61px + env(safe-area-inset-top, 0px)) !important;
            padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
        }
        /* Bottom nav — home indicator için fazla yükseklik + padding */
        #dstBottomNav {
            min-height: 76px !important;
            padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
            padding-top: 6px !important;
        }
        .bnav {
            padding: 8px 0 !important;
            font-size: 10px !important;
        }
        .bnav i {
            font-size: 20px !important;
            margin-bottom: 3px !important;
        }
        .bnav-center-icon {
            width: 52px !important;
            height: 52px !important;
            margin-top: -28px !important;
        }
        .bnav-center-icon i {
            font-size: 19px !important;
        }
        /* Notification & profile dropdown'larını header'ın altına hizala */
        .notification-dropdown,
        .profile-dropdown {
            top: calc(50px + env(safe-area-inset-top, 0px)) !important;
        }
        /* Offline banner'ı notch altına it */
        .offline-banner {
            padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
        }
        /* (v696) Yapışkan filtre çubuğu ("Sticky filter bar" bölümü) ve tablo başlıkları / giriş ekranı
           (dosyanın sonundaki v696 bölümü) body.pwa-standalone ile orada: sonraki genel kurallar aynı
           özgüllükle burayı ezeceği için. app.js standalone'da bu sınıfı her zaman ekler. */
    }
    @media all and (display-mode: standalone) and (max-width: 380px) {
        /* (v696) Dar ekranda tarayıcıdaki .container boşluğu 8px */
        .container {
            padding-top: calc(59px + env(safe-area-inset-top, 0px)) !important;
        }
    }
}

/* iOS PWA standalone ek fallback — navigator.standalone (app.js standalone'da body.pwa-standalone ekler;
   yukarıdaki display-mode bloğuyla BİREBİR aynı tutulmalı) */
@media screen and (max-width: 768px) {
    body.pwa-standalone .header {
        position: fixed !important;
        top: 0 !important; left: 0 !important; right: 0 !important;
        z-index: 1000 !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
        background: #130e0b !important;   /* (v698) düz renk — iOS 26 üst kenarda gradyanı bulanıklaştırıyor */
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        border-bottom: 1px solid rgba(205,175,125,0.15);
    }
    body.pwa-standalone .container {
        padding-top: calc(61px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.pwa-standalone #dstBottomNav {
        min-height: 76px !important;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
        padding-top: 6px !important;
    }
    body.pwa-standalone .bnav { padding: 8px 0 !important; }
    body.pwa-standalone .bnav i { font-size: 20px !important; margin-bottom: 3px !important; }
    body.pwa-standalone .bnav-center-icon {
        width: 52px !important; height: 52px !important; margin-top: -28px !important;
    }
    /* (v696) display-mode bloğundaki eşleri — fallback'te eksikti */
    body.pwa-standalone .notification-dropdown,
    body.pwa-standalone .profile-dropdown {
        top: calc(50px + env(safe-area-inset-top, 0px)) !important;
    }
    body.pwa-standalone .offline-banner {
        padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
    }
}
@media screen and (max-width: 380px) {
    body.pwa-standalone .container {
        padding-top: calc(59px + env(safe-area-inset-top, 0px)) !important;
    }
}

/* ==================== v9.3+ DESIGN SYSTEM ENHANCEMENTS ==================== */
/* Aşağıdaki blok önceki stilleri override etmek için tasarlanmıştır. */

:root {
    /* Kontrast güçlendirilmiş muted ton — WCAG AA için */
    --text-muted-strong: #a0906f;
    /* Tek birincil aksiyon rengi semantiği */
    --primary-accent: #cdaf7d;
    --success: #8fad5a;
    --danger: #c44b3f;
    --warning: #c9a04e;
    --info: #7a9bb5;
    /* Focus ring */
    --focus-ring: 0 0 0 3px rgba(205, 175, 125, 0.55);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
}

/* ---- Erişilebilirlik: focus ring ---- */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 6px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ---- Buton mikro-etkileşim ---- */
.btn {
    transition: transform 120ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
}

/* ---- Ürün kartı bilgi hiyerarşisi ---- */
.product-card {
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    border-color: var(--border-glow);
}
.product-card .price-tag .amount {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}
.product-card .product-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.product-card .product-region {
    opacity: 0.78;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.product-card .product-desc {
    color: var(--text-muted-strong);
    font-size: 12px;
    line-height: 1.45;
}

/* Son dakika/ending vurgusu — sadece timer badge pulse yapar, kart yanıp sönmez */
.product-timer.ending {
    animation: endingPulse 1.2s ease-in-out infinite;
}
@keyframes endingPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 75, 63, 0.25); }
    50% { box-shadow: 0 0 0 6px rgba(196, 75, 63, 0.0); }
}

/* ---- Teklif pulse vurgusu ---- */
.pulse-highlight {
    animation: bidPulse 1.2s ease;
    position: relative;
}
@keyframes bidPulse {
    0% { box-shadow: 0 0 0 0 rgba(205, 175, 125, 0.65); }
    60% { box-shadow: 0 0 0 18px rgba(205, 175, 125, 0); }
    100% { box-shadow: 0 0 0 0 rgba(205, 175, 125, 0); }
}

/* ---- Skeleton loader ---- */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
}
.skeleton-media {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(205,175,125,0.06);
}
.skeleton-body { padding: 14px; }
.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(205,175,125,0.08);
    margin: 8px 0;
}
.skeleton-shimmer {
    position: relative;
    overflow: hidden;
}
.skeleton-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(205,175,125,0.12), transparent);
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ---- Empty state zenginleştirme ---- */
.empty-state {
    padding: 36px 20px;
    text-align: center;
    color: var(--text-muted-strong);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.empty-state .icon {
    font-size: 42px;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(205,175,125,0.12), transparent 70%);
    opacity: 0.85;
}
.empty-state p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 320px;
}
.empty-state-action {
    margin-top: 8px;
}

/* ---- Modal tutarlılığı ---- */
.modal .modal-content,
.modal-content {
    border-radius: var(--radius-lg);
}
.modal-header,
.modal .modal-content > h2:first-child,
.modal .modal-content > h3:first-child {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.modal-body,
.modal .modal-content > *:not(h2):not(h3):not(.modal-header):not(.modal-footer) {
    padding-inline: 22px;
}
.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ---- Admin tablo modernize ---- */
.admin-table,
table.admin-table,
.admin-section table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}
.admin-table thead th {
    background: rgba(205,175,125,0.08);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-muted-strong);
    padding: 12px 14px;
    position: sticky;
    top: 0;
    z-index: 1;
}
.admin-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
}
.admin-table tbody tr {
    transition: background 150ms ease;
}
.admin-table tbody tr:hover {
    background: rgba(205,175,125,0.05);
}
.admin-table tbody tr.clickable {
    cursor: pointer;
}
.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---- Shop gelişmiş filtre barı ---- */
.shop-filters-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}
.shop-filters-advanced .filter-select,
.shop-filters-advanced .filter-input {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.shop-filters-advanced .filter-select:focus,
.shop-filters-advanced .filter-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: var(--focus-ring);
}
.filter-reset-btn {
    background: transparent;
    border: 1px dashed var(--border-subtle);
    color: var(--text-muted-strong);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
}
.filter-reset-btn:hover { color: var(--text-primary); border-color: var(--primary-accent); }

/* ---- Adil çekiliş rozeti ve şans yüzdesi ---- */
.fair-raffle-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(143, 173, 90, 0.15);
    border: 1px solid rgba(143, 173, 90, 0.35);
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.my-chance-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(205,175,125,0.2), rgba(150,124,87,0.15));
    border: 1px solid rgba(205,175,125,0.35);
    color: var(--primary-accent);
}

/* ---- Onboarding overlay ---- */
.onb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 7, 4, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9996;   /* (v683) 9000 idi → mobil alt menü (9990) ve Menü sheet'i (9995) turun üstünde tıklanabiliyordu; modal (10000) altında → zorunlu kurallar modalı üstte kalır */
    display: grid;
    place-items: center;
    padding: 20px;
    animation: fadeIn 250ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.onb-card {
    max-width: 460px;
    width: 100%;
    background: linear-gradient(180deg, #1a130c, #130e0b);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--text-primary);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.onb-step-indicator {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}
.onb-step-dot {
    flex: 1;
    height: 4px;
    background: rgba(205,175,125,0.15);
    border-radius: 2px;
    transition: background 200ms ease;
}
.onb-step-dot.active { background: var(--primary-accent); }
.onb-icon {
    font-size: 44px;
    margin-bottom: 12px;
    color: var(--primary-accent);
}
.onb-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.onb-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted-strong);
    margin-bottom: 20px;
}
.onb-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* ---- Toast canlılık ---- */
.toast {
    transform: translateY(12px);
    opacity: 0;
    transition: transform 260ms ease, opacity 220ms ease;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.info {
    background: rgba(122, 155, 181, 0.12);
    border-left: 3px solid var(--info);
}

/* ---- Sıkılaştırılmış muted kontrast ---- */
.product-meta, .meta-muted, .muted {
    color: var(--text-muted-strong);
}

/* ---- Mobil uyum ---- */
@media (max-width: 640px) {
    .admin-table,
    table.admin-table,
    .admin-section table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border-radius: var(--radius-sm);
    }
    /* Tablo satırlarını kart gibi göstermek istenirse .admin-table-stack sınıfı eklenebilir */
    .admin-table-stack thead { display: none; }
    .admin-table-stack tbody tr {
        display: block;
        margin-bottom: 10px;
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        padding: 10px 12px;
    }
    .admin-table-stack tbody td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        border: none;
        font-size: 13px;
    }
    .admin-table-stack tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted-strong);
        margin-right: 10px;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        display: grid;
        gap: 10px;
    }
    .form-row .form-group { width: 100%; }
    .form-input, .form-select { font-size: 16px; } /* iOS zoom engelleme */

    .modal-content {
        max-width: 100% !important;
        width: calc(100vw - 20px) !important;
        margin: 10px !important;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    .shop-filters-advanced {
        grid-template-columns: 1fr 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .product-card .product-title { font-size: 14px; }
    .product-card .price-tag .amount { font-size: 18px !important; }
}
@media (max-width: 400px) {
    .products-grid { grid-template-columns: 1fr; }
    .shop-filters-advanced { grid-template-columns: 1fr; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---- Sticky filter bar ---- */
#shopPage .filters-bar,
#shopPage .shop-filters-advanced,
#rafflesPage .filters-bar {
    position: sticky;
    top: 62px; /* header yüksekliği kadar */
    z-index: 20;
    background: var(--bg-deep);
    padding-top: 10px;
    padding-bottom: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#shopPage .filters-bar {
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0;
}
/* Bottom nav'a ve status bar'a göre mobilde header offset farklı olabilir */
@media (max-width: 640px) {
    #shopPage .filters-bar,
    #shopPage .shop-filters-advanced,
    #rafflesPage .filters-bar { top: 58px; }
}
/* (v696) Yüklü uygulamada (≤768px) header sabit ve 51px + inset → çubuk header'a bitişik (eskiden 60px'te
   arada 9 px'lik aralıktan kayan içerik görünüyordu); zemin opak olduğu için bulanıklık kapalı */
@media screen and (max-width: 768px) {
    body.pwa-standalone #shopPage .filters-bar,
    body.pwa-standalone #shopPage .shop-filters-advanced,
    body.pwa-standalone #rafflesPage .filters-bar {
        top: calc(51px + env(safe-area-inset-top, 0px));
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-muted-strong);
}
.breadcrumb a,
.breadcrumb button.bc-link {
    background: none;
    border: none;
    color: var(--text-muted-strong);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: color 150ms, background 150ms;
}
.breadcrumb a:hover,
.breadcrumb button.bc-link:hover {
    color: var(--primary-accent);
    background: rgba(205,175,125,0.08);
}
.breadcrumb .bc-sep {
    opacity: 0.5;
    font-size: 10px;
}
.breadcrumb .bc-current {
    color: var(--text-primary);
    font-weight: 600;
}
.breadcrumb .bc-home i { margin-right: 4px; }

/* ---- Language switcher ---- */
.lang-switcher {
    display: inline-flex;
    gap: 2px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 2px;
    font-size: 11px;
}
.lang-switcher button {
    background: none;
    border: none;
    padding: 4px 10px;
    color: var(--text-muted-strong);
    cursor: pointer;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 150ms;
}
.lang-switcher button.active {
    background: var(--primary-accent);
    color: #130e0b;
}

/* ==================== AP SALDIRI ANİMASYONU ==================== */
/* ==================== FIGHT ARENA — Fighting Game Style ==================== */
.fight-arena {
    background: linear-gradient(180deg, #0a0608 0%, #1a0a0a 30%, #2d1216 60%, #1a0a0a 100%);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    /* v26: arena tam taşmalı (full-bleed) — mobil bloktaki eski padding:12px
       kaldırıldı; bant, boss figürünün bot parçalarını kopuk gösteriyordu */
    padding: 0;
}
.fight-arena::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 40% at 50% 70%, rgba(239,68,68,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* ── DEV BOSS FİGÜRÜ (v23) — sahnenin sağından üzerimize doğru dikilir ── */
.fight-boss-figure {
    position: absolute;
    right: -6%;
    bottom: -4%;
    height: 118%;
    width: auto;
    z-index: 1;                     /* arka plan üstünde, HUD/karakterlerin altında */
    pointer-events: none;
    transform-origin: 60% 85%;      /* ayaklarına yakın pivot — öne eğilme doğal dursun */
    filter: drop-shadow(-14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 34px rgba(251,191,36,0.22));
    animation: bossLoom 4.5s ease-in-out infinite;
    /* v26: 631KB görsel savaş ortasında PAT diye belirmesin — yumuşak giriş.
       opacity, onload'da eklenen has-boss-figure sınıfıyla 1'e geçer. */
    opacity: 0;
    transition: opacity 0.45s ease;
}
.fight-arena.has-boss-figure .fight-boss-figure { opacity: 1; }
/* Boşta: yavaş, tehditkâr salınım + nefes */
@keyframes bossLoom {
    0%, 100% { transform: rotate(-1.2deg) scale(1); }
    50%      { transform: rotate(1.4deg)  scale(1.025) translateY(-4px); }
}
/* SALDIRI: oyuncuya (sola-aşağı) hamle — büyüyüp topuzunu indiriyormuş hissi */
.fight-boss-figure.boss-strike {
    animation: bossStrike 0.55s cubic-bezier(.2,.9,.3,1);
}
@keyframes bossStrike {
    0%   { transform: rotate(1deg)    scale(1); }
    28%  { transform: rotate(4deg)    scale(1.06) translate(3%, -2%); }   /* geriye kurulum */
    55%  { transform: rotate(-11deg)  scale(1.18) translate(-9%, 5%); }   /* DARBE — üzerimize */
    72%  { transform: rotate(-7deg)   scale(1.12) translate(-6%, 3%); }
    100% { transform: rotate(-1.2deg) scale(1); }
}
/* VURULMA: kızarır, geri sarsılır */
.fight-boss-figure.boss-hurt {
    animation: bossHurt 0.45s ease-out;
}
@keyframes bossHurt {
    0%   { transform: rotate(-1deg) scale(1);   filter: drop-shadow(-14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 30px rgba(239,68,68,0.9)) brightness(1.6) sepia(0.4) hue-rotate(-30deg); }
    35%  { transform: rotate(4deg)  scale(0.96) translate(4%, 1%); }
    100% { transform: rotate(-1.2deg) scale(1); filter: drop-shadow(-14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 34px rgba(251,191,36,0.22)); }
}
/* YENİLGİ: grileşip öne yıkılır */
.fight-boss-figure.boss-dead {
    animation: bossDead 0.9s ease-in forwards;
}
@keyframes bossDead {
    0%   { transform: rotate(-1deg) scale(1); filter: grayscale(0) brightness(1); opacity: 1; }
    100% { transform: rotate(-24deg) scale(0.92) translate(-4%, 14%); filter: grayscale(1) brightness(0.45); opacity: 0.55; }
}
/* ZAFER: parlayıp doğrulur */
.fight-boss-figure.boss-victory {
    animation: bossVictory 1s ease-out forwards;
}
@keyframes bossVictory {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.1) translateY(-3%); filter: drop-shadow(-14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 60px rgba(251,191,36,0.8)) brightness(1.3); }
    100% { transform: scale(1.05) translateY(-1%); filter: drop-shadow(-14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 44px rgba(251,191,36,0.5)) brightness(1.1); }
}
/* Dev figür varken sağdaki küçük boss dairesi gizlenir (çift boss görünmesin)
   — sınıf JS'te figürün onload'ıyla eklenir (eski tarayıcı uyumu için :has yok)
   v26: visibility şart — fightKO keyframe'i opacity'yi 1→0.3 oynattığından
   (animasyon cascade'i normal opacity:0'ı ezer) KO anında gizli mini-boss
   "hayalet" gibi geri beliriyordu. Keyframe'ler visibility içermediği için
   visibility:hidden animasyonla ezilemez. */
.fight-arena.has-boss-figure .fight-char.right { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    .fight-boss-figure,
    .fight-boss-figure.boss-strike,
    .fight-boss-figure.boss-hurt { animation: none; }
}

/* ── OYUNCU FİGÜRÜ (v27) — Envanter'deki sınıf portresi, solda boss'a karşı ──
   img/classes/*.webp büstleri (şeffaf zemin) dövüş oyunu portresi gibi sol-alt
   köşeden yükselir. Boss figürüyle aynı desen: onload → has-player-figure. */
.fight-player-figure {
    position: absolute;
    left: -12%;
    bottom: -2%;
    height: 88%;
    width: auto;
    z-index: 1;                     /* HUD/hasar sayılarının altında */
    pointer-events: none;
    transform-origin: 42% 80%;
    filter: drop-shadow(14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 30px rgba(59,130,246,0.25));
    animation: playerLoom 4.2s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.45s ease;
}
.fight-arena.has-player-figure .fight-player-figure { opacity: 1; }
@keyframes playerLoom {
    0%, 100% { transform: rotate(0.8deg) scale(1); }
    50%      { transform: rotate(-1deg)  scale(1.02) translateY(-3px); }
}
/* SALDIRI: boss'a (sağa) hamle */
.fight-player-figure.player-strike { animation: playerStrike 0.55s cubic-bezier(.2,.9,.3,1); }
@keyframes playerStrike {
    0%   { transform: rotate(-0.5deg) scale(1); }
    28%  { transform: rotate(-3deg)  scale(1.05) translate(-3%, -1%); }  /* geriye kurulum */
    55%  { transform: rotate(7deg)   scale(1.14) translate(8%, 2%); }   /* DARBE — boss'a */
    72%  { transform: rotate(4deg)   scale(1.09) translate(5%, 1%); }
    100% { transform: rotate(0.8deg) scale(1); }
}
/* VURULMA: kızarır, geri sarsılır */
.fight-player-figure.player-hurt { animation: playerHurt 0.45s ease-out; }
@keyframes playerHurt {
    0%   { transform: rotate(1deg) scale(1);    filter: drop-shadow(14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 30px rgba(239,68,68,0.9)) brightness(1.6) sepia(0.4) hue-rotate(-30deg); }
    35%  { transform: rotate(-4deg) scale(0.96) translate(-4%, 1%); }
    100% { transform: rotate(0.8deg) scale(1);  filter: drop-shadow(14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 30px rgba(59,130,246,0.25)); }
}
/* YENİLGİ: grileşip öne yıkılır */
.fight-player-figure.player-dead { animation: playerDead 0.9s ease-in forwards; }
@keyframes playerDead {
    0%   { transform: rotate(1deg) scale(1); filter: grayscale(0) brightness(1); opacity: 1; }
    100% { transform: rotate(22deg) scale(0.92) translate(4%, 14%); filter: grayscale(1) brightness(0.45); opacity: 0.55; }
}
/* ZAFER: mavi parlayıp doğrulur */
.fight-player-figure.player-victory { animation: playerVictory 1s ease-out forwards; }
@keyframes playerVictory {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.08) translateY(-3%); filter: drop-shadow(14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 55px rgba(59,130,246,0.85)) brightness(1.25); }
    100% { transform: scale(1.04) translateY(-1%); filter: drop-shadow(14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 40px rgba(59,130,246,0.5)) brightness(1.1); }
}
/* Figür varken soldaki küçük sınıf dairesi gizlenir — visibility şart
   (fightKO keyframe'i opacity'yi ezebiliyor, bkz. v26 notu) */
.fight-arena.has-player-figure .fight-char.left { opacity: 0; visibility: hidden; pointer-events: none; }
/* Mobilde iki figür ortada çakışmasın — oyuncu büstü biraz küçülür */
@media (max-width: 480px) {
    .fight-player-figure { height: 74%; left: -14%; }
}
@media (prefers-reduced-motion: reduce) {
    .fight-player-figure,
    .fight-player-figure.player-strike,
    .fight-player-figure.player-hurt { animation: none; }
}

/* ── SAVUNAN FİGÜRÜ (v29) — PvP arenada rakibin sınıf portresi, sağda ──
   Oyuncu figürünün aynası: kızıl aura (düşman), sola hamle, sağa irkilme. */
.fight-defender-figure {
    position: absolute;
    right: -12%;
    bottom: -2%;
    height: 88%;
    width: auto;
    z-index: 1;
    pointer-events: none;
    transform-origin: 58% 80%;
    filter: drop-shadow(-14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 30px rgba(239,68,68,0.28));
    animation: defenderLoom 4.6s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.45s ease;
}
.fight-arena.has-defender-figure .fight-defender-figure { opacity: 1; }
@keyframes defenderLoom {
    0%, 100% { transform: rotate(-0.8deg) scale(1); }
    50%      { transform: rotate(1deg)   scale(1.02) translateY(-3px); }
}
/* SALDIRI: oyuncuya (sola) hamle */
.fight-defender-figure.defender-strike { animation: defenderStrike 0.55s cubic-bezier(.2,.9,.3,1); }
@keyframes defenderStrike {
    0%   { transform: rotate(0.5deg)  scale(1); }
    28%  { transform: rotate(3deg)    scale(1.05) translate(3%, -1%); }   /* geriye kurulum */
    55%  { transform: rotate(-7deg)   scale(1.14) translate(-8%, 2%); }   /* DARBE — oyuncuya */
    72%  { transform: rotate(-4deg)   scale(1.09) translate(-5%, 1%); }
    100% { transform: rotate(-0.8deg) scale(1); }
}
/* VURULMA: kızarır, geri sarsılır */
.fight-defender-figure.defender-hurt { animation: defenderHurt 0.45s ease-out; }
@keyframes defenderHurt {
    0%   { transform: rotate(-1deg) scale(1);   filter: drop-shadow(-14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 30px rgba(239,68,68,0.95)) brightness(1.6) sepia(0.4) hue-rotate(-30deg); }
    35%  { transform: rotate(4deg)  scale(0.96) translate(4%, 1%); }
    100% { transform: rotate(-0.8deg) scale(1);  filter: drop-shadow(-14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 30px rgba(239,68,68,0.28)); }
}
/* YENİLGİ: grileşip öne yıkılır */
.fight-defender-figure.defender-dead { animation: defenderDead 0.9s ease-in forwards; }
@keyframes defenderDead {
    0%   { transform: rotate(-1deg) scale(1); filter: grayscale(0) brightness(1); opacity: 1; }
    100% { transform: rotate(-22deg) scale(0.92) translate(-4%, 14%); filter: grayscale(1) brightness(0.45); opacity: 0.55; }
}
/* ZAFER: kızıl parlayıp doğrulur */
.fight-defender-figure.defender-victory { animation: defenderVictory 1s ease-out forwards; }
@keyframes defenderVictory {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.08) translateY(-3%); filter: drop-shadow(-14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 55px rgba(239,68,68,0.85)) brightness(1.25); }
    100% { transform: scale(1.04) translateY(-1%); filter: drop-shadow(-14px 10px 26px rgba(0,0,0,0.65)) drop-shadow(0 0 40px rgba(239,68,68,0.5)) brightness(1.1); }
}
/* Figür varken sağdaki küçük sınıf dairesi (ve kızıl aurası) gizlenir */
.fight-arena.has-defender-figure .fight-char.right { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 480px) {
    .fight-defender-figure { height: 74%; right: -14%; }
}
@media (prefers-reduced-motion: reduce) {
    .fight-defender-figure,
    .fight-defender-figure.defender-strike,
    .fight-defender-figure.defender-hurt { animation: none; }
}
/* v26: BOSS ARENASI MOBİLDE ORTALANIR — genel mobil modal kuralı tüm
   .modal-overlay'ları alt-sayfaya (bottom-sheet, 100vw !important) çevirir;
   #attackModal'ın istisnası vardı ama boss arenasının YOKTU. Sonuç: telefonda
   arena ekranın altına yapışıyor, sheet yüksekliğine gerilip devasa/tepesi
   kesik görünüyordu ("savaş ekranı bozuk"). PvP arena ile aynı kompakt
   ortalanmış görünüm: */
@media (max-width: 640px) {
    .boss-arena-overlay {
        align-items: center !important;
        padding: 12px !important;
    }
    .boss-arena-overlay .modal {
        width: 100% !important;
        max-width: 500px !important;
        max-height: none !important;
        border-radius: 18px !important;
        animation: none !important;
    }
}

/* HUD — Health bars */
.fight-hud {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 16px 0;
    gap: 8px;
    position: relative;
    z-index: 2;
}
.fight-hud-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fight-hud-player.right { align-items: flex-end; }
.fight-hud-name {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f5e6c8;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    max-width: 140px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fight-hp-bar {
    width: 100%;
    height: 16px;
    background: linear-gradient(180deg, #1a1410 0%, #0d0907 100%);
    border: 2px solid rgba(205,175,125,0.4);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.5);
}
.fight-hp-fill {
    height: 100%;
    width: 100%;
    border-radius: 1px;
    transition: background 0.3s;
    position: relative;
}
.fight-hp-fill.left {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
}
.fight-hp-fill.right {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    float: right;
    box-shadow: 0 0 10px rgba(239,68,68,0.5);
}
.fight-hp-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent);
    border-radius: 1px 1px 0 0;
}
.fight-hp-text {
    font-size: 10px;
    font-weight: 700;
    color: rgba(245,230,200,0.6);
    font-family: monospace;
}
.fight-hud-player.right .fight-hp-text { text-align: right; }

/* VS Badge */
.fight-vs-badge {
    font-family: 'Spectral', serif;
    font-size: 22px;
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251,191,36,0.8), 0 0 4px rgba(239,68,68,0.9), 2px 2px 0 #7c2d12;
    letter-spacing: 2px;
    flex-shrink: 0;
    padding: 0 4px;
    margin-top: 6px;
    animation: fightVsPulse 1s infinite alternate ease-in-out;
}
@keyframes fightVsPulse {
    from { transform: scale(0.95); text-shadow: 0 0 10px rgba(251,191,36,0.5), 2px 2px 0 #7c2d12; }
    to   { transform: scale(1.08); text-shadow: 0 0 28px rgba(251,191,36,0.9), 0 0 6px rgba(239,68,68,0.9), 2px 2px 0 #7c2d12; }
}

/* Stage — Characters */
.fight-stage {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    padding: 10px 16px 0;
    position: relative;
    min-height: 180px;
}
.fight-char {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7));
}
.fight-char img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
}
.fight-char.left {
    animation: fightIdleLeft 1.2s infinite ease-in-out;
    transform-origin: bottom center;
}
.fight-char.right {
    animation: fightIdleRight 1.2s infinite ease-in-out;
    transform-origin: bottom center;
}
@keyframes fightIdleLeft {
    0%, 100% { transform: translateY(0) scaleX(1); }
    50%      { transform: translateY(-4px) scaleX(1); }
}
@keyframes fightIdleRight {
    0%, 100% { transform: translateY(0) scaleX(-1); }
    50%      { transform: translateY(-4px) scaleX(-1); }
}

/* Hit effect on characters */
.fight-char.fight-hit {
    animation: fightCharHit 0.2s ease-out !important;
}
@keyframes fightCharHit {
    0%   { filter: brightness(3) drop-shadow(0 0 20px #fff); transform: translateX(0); }
    30%  { transform: translateX(-6px); }
    60%  { transform: translateX(6px); }
    100% { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7)); transform: translateX(0); }
}

/* KO — Loser falls */
.fight-char.fight-ko {
    animation: fightKO 0.6s ease-in forwards !important;
}
@keyframes fightKO {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; filter: brightness(0.5) saturate(0.3); }
    40%  { transform: translateY(-10px) rotate(-5deg); }
    100% { transform: translateY(30px) rotate(15deg); opacity: 0.3; filter: brightness(0.3) saturate(0); }
}

/* Clash FX — center impact */
.fight-clash-fx {
    position: absolute;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}
.fight-clash-fx.hit {
    animation: fightClashFlash 0.25s ease-out forwards;
}
.fight-clash-burst {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,200,0.9) 0%, rgba(251,191,36,0.6) 30%, rgba(239,68,68,0.3) 60%, transparent 80%);
}
@keyframes fightClashFlash {
    0%   { opacity: 1; transform: translateX(-50%) scale(0.3); }
    50%  { opacity: 1; transform: translateX(-50%) scale(1.4); }
    100% { opacity: 0; transform: translateX(-50%) scale(1.8); }
}

/* Bottom title bar */
.fight-title-bar {
    text-align: center;
    padding: 10px 16px 14px;
    font-family: 'Spectral', serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fbbf24;
    text-shadow: 0 0 12px rgba(251,191,36,0.5);
    position: relative;
    z-index: 2;
}
.fight-title-bar i {
    color: #ef4444;
    filter: drop-shadow(0 0 6px rgba(239,68,68,0.6));
    font-size: 12px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .fight-arena { min-height: 280px; }
    .fight-char { width: 90px; height: 90px; }
    .fight-hud { padding: 12px 10px 0; }
    .fight-hp-bar { height: 13px; }
    .fight-vs-badge { font-size: 18px; }
    .fight-hud-name { font-size: 10px; max-width: 110px; }
    .fight-stage { min-height: 150px; padding: 8px 10px 0; }
}

/* ═══════════ ARENA FX — gelişmiş savaş ekranı (boss + PvP ortak) ═══════════
   .fight-arena.arena-fx üzerine scope'lu. Hem boss (map.js _openBossArena) hem
   PvP (players.js _doAttack) .fight-arena'ya 'arena-fx' sınıfını ekler.
   (.fight-shake / .fight-dmg global; ilgili JS animasyonu sınıfı ekler.) */
.fight-arena.arena-fx {
    min-height: 360px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 16%, rgba(127,29,29,0.40) 0%, transparent 60%),
        linear-gradient(180deg, #06040a 0%, #14070d 35%, #2a0e16 65%, #0a0509 100%);
    box-shadow: inset 0 0 130px rgba(0,0,0,0.92);
}
.fight-arena.arena-fx::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background:
        radial-gradient(ellipse 90% 35% at 50% 100%, rgba(239,68,68,0.20), transparent 70%),
        radial-gradient(circle at 50% 48%, transparent 52%, rgba(0,0,0,0.62) 100%);
}
/* Rakip/boss tarafı kızıl aura */
.fight-arena.arena-fx .fight-char.right::before {
    content: ''; position: absolute; inset: -20% -14%; z-index: -1; border-radius: 50%;
    background: radial-gradient(circle, rgba(239,68,68,0.48) 0%, rgba(127,29,29,0.26) 42%, transparent 72%);
    filter: blur(5px);
    animation: bossAuraPulse 1.6s infinite alternate ease-in-out;
}
@keyframes bossAuraPulse {
    from { opacity: 0.5; transform: scale(0.9); }
    to   { opacity: 1;   transform: scale(1.1); }
}

/* Ekran sarsıntısı (vuruşta) — yalnızca boss arenada tetiklenir */
.fight-arena.fight-shake { animation: fightShake 0.32s cubic-bezier(.36,.07,.19,.97); }
@keyframes fightShake {
    10%,90% { transform: translate(-1px,0); }
    20%,80% { transform: translate(2px,-1px); }
    30%,50%,70% { transform: translate(-3px,1px); }
    40%,60% { transform: translate(3px,1px); }
}

/* Uçuşan hasar sayıları */
.fight-dmg {
    position: absolute; z-index: 6; pointer-events: none;
    font-family: 'Spectral', serif; font-weight: 900; font-size: 26px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 14px currentColor;
    animation: fightDmgFloat 0.85s ease-out forwards;
}
.fight-dmg.left  { color: #fca5a5; }   /* oyuncu hasar aldı */
.fight-dmg.right { color: #fde68a; }   /* boss hasar aldı */
@keyframes fightDmgFloat {
    0%   { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.6); }
    25%  { opacity: 1; transform: translateX(-50%) translateY(-6px) scale(1.15); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-46px) scale(1); }
}

/* HP bar — boss arenada daha kalın + segment çizgileri + canlı geçiş */
.fight-arena.arena-fx .fight-hp-bar { height: 18px; border-color: rgba(251,191,36,0.45); }
.fight-arena.arena-fx .fight-hp-bar::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
    background: repeating-linear-gradient(90deg, transparent 0 9.9%, rgba(0,0,0,0.42) 9.9% 10%);
}
.fight-arena.arena-fx .fight-hp-fill { transition: width 0.1s linear, background 0.3s; }

/* İntro "⚔ SAVAŞ ⚔" flaşı */
.fight-arena.arena-fx .fight-intro {
    position: absolute; inset: 0; z-index: 7; display: flex;
    align-items: center; justify-content: center; pointer-events: none;
    animation: fightIntro 1s ease-out forwards;
}
.fight-arena.arena-fx .fight-intro span {
    font-family: 'Spectral', serif; font-weight: 900; font-size: 46px; letter-spacing: 6px;
    color: #fff0c9;
    text-shadow: 0 0 24px rgba(251,191,36,0.9), 0 0 6px rgba(239,68,68,0.9), 3px 3px 0 #7c2d12;
}
@keyframes fightIntro {
    0%   { opacity: 0; transform: scale(2.4); }
    22%  { opacity: 1; transform: scale(1); }
    70%  { opacity: 1; transform: scale(1.04); }
    100% { opacity: 0; transform: scale(1.2); }
}

/* "Saldırı gönderiliyor…" buton spinner'ı (modal) — @keyframes spin mevcut */
.boss-atk-spinner {
    display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px;
    border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@media (max-width: 480px) {
    .fight-arena.arena-fx { min-height: 320px; }
    .fight-arena.arena-fx .fight-intro span { font-size: 34px; letter-spacing: 4px; }
    .fight-dmg { font-size: 21px; }
}

/* Result reveal */
.attack-result-reveal {
    animation: attackResultIn 0.45s ease-out;
}
@keyframes attackResultIn {
    0%   { transform: scale(0.75); opacity: 0; filter: blur(6px); }
    60%  { transform: scale(1.05); opacity: 1; filter: blur(0); }
    100% { transform: scale(1); opacity: 1; }
}

/* ==================== VICTORY VIDEO ==================== */
.fight-victory-video {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.fight-victory-player {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover !important;
    border-radius: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
/* Loading overlay on KO screen */
.fight-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: fightOverlayIn 0.4s ease-out;
}
.fight-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 0 40px;
}
.fight-loading-text {
    font-size: 20px;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 16px rgba(251,191,36,0.6);
    animation: fightLoadPulse 1s ease-in-out infinite;
}
@keyframes fightLoadPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.fight-loading-bar {
    width: 100%;
    max-width: 260px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.fight-loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(251,191,36,0.5);
}

.fight-victory-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 70%);
    z-index: 2;
    pointer-events: none;
    animation: fightOverlayIn 0.6s ease-out;
}
@keyframes fightOverlayIn {
    0%   { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}
.fight-victory-icon {
    font-size: 52px;
    margin-bottom: 6px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7));
}
.fight-victory-title {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px currentColor, 0 2px 8px rgba(0,0,0,0.9);
    margin-bottom: 6px;
}
.fight-victory-desc {
    font-size: 14px;
    color: #e5e5e5;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
    text-align: center;
    padding: 0 20px;
}
.fight-victory-desc b {
    color: #fbbf24;
}
.fight-victory-skip {
    position: absolute;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 24px;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s, color 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
}
.fight-victory-skip:hover {
    background: rgba(251,191,36,0.3);
    color: #fff;
}
@media (max-width: 480px) {
    .fight-victory-icon { font-size: 40px; }
    .fight-victory-title { font-size: 20px; letter-spacing: 1px; }
    .fight-victory-desc { font-size: 12px; padding: 0 16px; }
    .fight-victory-skip { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); padding: 10px 24px; font-size: 13px; }
}
@media (max-height: 500px) {
    /* Landscape modda küçük ekranlar */
    .fight-victory-icon { font-size: 30px; margin-bottom: 2px; }
    .fight-victory-title { font-size: 18px; }
    .fight-victory-desc { font-size: 11px; }
    .fight-victory-skip { bottom: 8px; padding: 6px 18px; font-size: 12px; }
}

/* ==================== BATTLES PAGE — MOBILE ==================== */
.battles-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.battles-summary-card {
    padding: 14px;
    text-align: center;
}
.battles-summary-label {
    font-size: 11px;
    color: var(--text-muted);
}
.battles-summary-value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
}
.battles-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}
.battles-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.battles-date-filter { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.battles-mobile-list { display: none; }
.battles-desktop-table { display: block; }

@media (max-width: 720px) {
    .battles-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .battles-summary-card { padding: 10px; }
    .battles-summary-label { font-size: 10px; }
    .battles-summary-value { font-size: 18px; }
    .battles-filters { gap: 6px; }
    .battles-date-filter { margin-left: 0; width: 100%; }
    .battles-date-filter .filter-select { flex: 1; }
    .battles-desktop-table { display: none; }
    .battles-mobile-list { display: flex; flex-direction: column; gap: 10px; }
}
@media (max-width: 420px) {
    .battles-filter-tabs .btn .battles-tab-label { display: none; }
    .battles-filter-tabs .btn { padding: 8px 10px; }
}

.battle-card {
    background: var(--bg-card, rgba(20,14,9,0.8));
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border-left-width: 3px;
}
.battle-card.won  { border-left-color: var(--accent-green, #22c55e); }
.battle-card.lost { border-left-color: var(--accent-red, #ef4444); }
.battle-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.battle-card-time { font-size: 11px; color: var(--text-muted); }
.battle-card-result { font-size: 12px; font-weight: 700; }
.battle-card-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}
.battle-card-player {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: background 0.2s;
    min-width: 0;
}
.battle-card-player:hover { background: rgba(205,175,125,0.08); }
.battle-card-player.is-me { background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.3); }
.battle-card-role { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.battle-card-name { font-size: 13px; font-weight: 700; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.battle-card-power { font-size: 11px; color: var(--accent-cyan); }
.battle-card-vs { font-size: 16px; color: var(--accent-red); padding: 0 4px; }
.battle-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 11px;
}
.battle-card-chance { color: var(--text-muted); }

/* ==================== ATTACK MODAL — MOBILE ==================== */
@media (max-width: 480px) {
    #attackModal {
        -webkit-align-items: center !important;
        align-items: center !important;
        padding: 16px !important;
    }
    #attackModal .modal, #playerActionMenu .modal {
        max-width: 96vw !important;
        max-height: 92vh;
        border-radius: 20px !important;
        animation: none !important;
    }
    #attackModal .modal-body { padding: 14px; max-height: 70vh; overflow-y: auto; }
    #attackModal .modal-header h3 { font-size: 14px; }
    #attackModal .modal-header h3 i { font-size: 13px; }

    /* Üst avatar kartları — Sen vs Rakip */
    #attackModal .modal-body > div[style*="grid-template-columns:1fr auto 1fr"] {
        gap: 6px !important;
        margin-bottom: 12px !important;
    }
    #attackModal .modal-body > div[style*="grid-template-columns:1fr auto 1fr"] > div {
        padding: 8px !important;
    }
    #attackModal .modal-body > div[style*="grid-template-columns:1fr auto 1fr"] > div > div {
        font-size: 11px !important;
    }
    /* v26: padding:12px kaldırıldı — dev boss figürünün bot/bacak parçaları
       başlık çubuğunun altındaki boş bantta kopuk fragman gibi görünüyordu */
    .fight-char { width: 80px !important; height: 80px !important; }
    .fight-hp-bar { height: 14px !important; }
    .fight-vs-badge { font-size: 20px !important; }
}

/* ==================== PROFILE + INVENTORY ROW ==================== */
.profile-inv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: start;
}
.profile-inv-col.profile-col .profile-header {
    margin-bottom: 0;
    height: 100%;
}
.profile-inv-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.profile-inv-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Profile inventory compact slots */
.profile-inv-card .inv-slots-area {
    min-height: 320px;
    padding: 16px 0 20px;
    margin-top: 12px;
}
.profile-inv-card .inv-slot {
    width: 56px;
    height: 56px;
}
.profile-inv-card .inv-slots-container {
    gap: 0;
}
.profile-inv-card .inv-slot-row {
    margin-bottom: 2px;
}
.profile-inv-card .inv-slot-row.left { padding-left: 10px; }
.profile-inv-card .inv-slot-row.right { padding-right: 10px; }
.profile-inv-card .inv-slot-label { font-size: 10px; max-width: 120px; }
.profile-inv-card .inv-power-bar {
    padding: 10px 14px;
    margin-top: 16px;
}
.profile-inv-card .inv-power-bonus { font-size: 16px; }
.profile-inv-card .inv-power-total-value { font-size: 14px; }
.profile-inv-card .inv-power-icon { width: 34px; height: 34px; font-size: 15px; }
.profile-inv-card .inv-tabs { margin-bottom: 8px; }
.profile-inv-card .inv-tab { padding: 6px 16px; font-size: 12px; }

@media (max-width: 900px) {
    .profile-inv-row {
        grid-template-columns: 1fr;
    }
}

/* ==================== INVENTORY / EQUIPMENT PAGE ==================== */

/* Tabs */
.inv-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}
.inv-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.inv-tab:hover {
    border-color: var(--border-glow);
    color: var(--text-secondary);
}
.inv-tab.active {
    background: linear-gradient(135deg, rgba(205,175,125,0.2), rgba(205,175,125,0.08));
    border-color: var(--border-glow);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(205,175,125,0.15);
}

/* Slots Area */
.inv-slots-area {
    display: flex;
    justify-content: center;
    padding: 0 0 10px;
    min-height: 300px;
    margin-top: 16px;
}
.inv-slots-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 340px;
    width: 100%;
}

/* Slot Row — zigzag */
.inv-slot-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    transition: transform 0.2s;
    margin-bottom: 2px;
    position: relative;
}
.inv-slot-row:last-child {
    margin-bottom: 0;
}
.inv-slot-row.left {
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 20px;
}
.inv-slot-row.right {
    flex-direction: row-reverse;
    justify-content: flex-start;
    padding-right: 20px;
}

/* Diamond Slot */
.inv-slot {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    position: relative;
    cursor: default;
}
.inv-slot.clickable {
    cursor: pointer;
}
.inv-slot.clickable,
.inv-slot.clickable * {
    pointer-events: all;
}
.inv-slot .inv-slot-diamond {
    width: 100%;
    height: 100%;
    transform: rotate(45deg);
    border: 2px solid rgba(205,175,125,0.25);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(30,22,14,0.9), rgba(46,35,22,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}
.inv-slot.empty .inv-slot-diamond {
    border-style: dashed;
    border-color: rgba(205,175,125,0.15);
}
.inv-slot.empty:hover .inv-slot-diamond {
    border-color: rgba(205,175,125,0.4);
    background: linear-gradient(135deg, rgba(46,35,22,0.9), rgba(60,46,28,0.7));
}
.inv-slot.equipped .inv-slot-diamond {
    border-color: var(--slot-border, rgba(205,175,125,0.4));
    box-shadow: 0 0 14px var(--slot-glow, rgba(205,175,125,0.2)),
                inset 0 0 12px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, rgba(40,30,18,0.95), rgba(55,42,26,0.85));
}
.inv-slot.equipped:hover .inv-slot-diamond {
    box-shadow: 0 0 22px var(--slot-glow, rgba(205,175,125,0.35)),
                inset 0 0 12px rgba(0,0,0,0.3);
    transform: rotate(45deg) scale(1.06);
}

/* Empty slot icon */
.inv-slot-icon-empty {
    transform: rotate(-45deg);
    font-size: 22px;
    color: rgba(205,175,125,0.18);
}

/* Equipped item icon (fallback) */
.inv-slot-icon-equipped {
    transform: rotate(-45deg);
    font-size: 24px;
    color: var(--slot-border, #cdaf7d);
    filter: drop-shadow(0 0 4px var(--slot-glow, rgba(205,175,125,0.3)));
}

/* Equipped item image — kare görseli diamond slot'a sığdır (crop) */
.inv-slot-img {
    width: 130%;
    height: 130%;
    object-fit: cover;
    object-position: center 30%;
    transform: rotate(-45deg);
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.6));
}

/* Grade badge on slot */
.inv-slot-grade {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 9px;
    font-weight: 800;
    transform: rotate(-45deg);
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
    line-height: 1;
}

/* Slot label */
.inv-slot-label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    line-height: 1.2;
}
.inv-slot-label.has-item {
    font-weight: 600;
    font-size: 11px;
}
.inv-slot-power {
    display: inline-block;
    margin-left: 4px;
    color: var(--accent-cyan);
    font-size: 10px;
    font-weight: 700;
}

/* Power Bar */
.inv-power-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(46,35,22,0.7), rgba(30,22,14,0.8));
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    margin-top: 20px;
}
.inv-power-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(205,175,125,0.2), rgba(205,175,125,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #cdaf7d;
    flex-shrink: 0;
}
.inv-power-info {
    flex: 1;
}
.inv-power-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.inv-power-bonus {
    font-size: 22px;
    font-weight: 800;
    color: #cdaf7d;
    text-shadow: 0 0 12px rgba(205,175,125,0.3);
}
.inv-power-total {
    text-align: right;
    flex-shrink: 0;
}
.inv-power-total-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.inv-power-total-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ──────────────────────────────────────────────────────────────
   PAKET WW: Envanter "Arena" Layout — sol sidebar + karakter ortada + dairesel slotlar
   ────────────────────────────────────────────────────────────── */

.inv-stage {
    position: relative;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    margin-bottom: 24px;
    /* Legend of Ymir NFT stili: koyu, merkezde mor büyü aurası */
    background:
        radial-gradient(ellipse 58% 58% at 50% 44%, rgba(126, 58, 168, 0.26) 0%, rgba(58, 28, 82, 0.12) 40%, transparent 70%),
        linear-gradient(180deg, #130d17 0%, #0a060d 100%);
    border: 1px solid rgba(196, 150, 232, 0.16);
    border-radius: 16px;
    padding: 24px;
    min-height: 540px;
    overflow: hidden;
}

/* Sol Sidebar */
.inv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    z-index: 2;
}
.inv-side-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
}
.inv-side-tab:hover { background: rgba(245, 158, 11, 0.06); color: var(--text-secondary); }
.inv-side-tab.active { color: #e6cc00; background: linear-gradient(90deg, rgba(230,204,0,0.12), transparent); }
.inv-side-diamond {
    width: 42px;
    height: 42px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #2a1810, #3a2418);
    border: 1px solid rgba(230,204,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
}
.inv-side-diamond i { transform: rotate(-45deg); font-size: 18px; color: inherit; }
/* LoY menü ikonları (gear/treasures) — elmas 45° dönük olduğundan ikon geri döndürülür */
.inv-side-diamond .inv-side-img {
    transform: rotate(-45deg);
    width: 26px; height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
.inv-stage.compact .inv-side-diamond .inv-side-img { width: 20px; height: 20px; }
.inv-side-tab.active .inv-side-diamond {
    border-color: #e6cc00;
    background: linear-gradient(135deg, #3a2818, #5a3818);
    box-shadow: inset 0 0 12px rgba(230,204,0,0.25), 0 0 12px rgba(230,204,0,0.15);
}
.inv-side-label { font-size: 16px; font-weight: 600; letter-spacing: 0.5px; }
.inv-side-tab.active .inv-side-label { color: #f5e6a8; }

/* Arena (karakter + dairesel slotlar) */
.inv-arena {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Karakter */
.inv-character {
    position: relative;
    width: 280px;
    height: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.inv-character-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    /* Referans NFT: mor büyü / zodyak çemberi */
    background: radial-gradient(circle at center, rgba(176, 74, 224, 0.32) 0%, rgba(104, 44, 178, 0.15) 42%, transparent 70%);
    border: 1px solid rgba(198, 128, 236, 0.24);
    box-shadow: 0 0 60px rgba(158, 74, 214, 0.24), inset 0 0 44px rgba(126, 54, 188, 0.15);
    pointer-events: none;
    z-index: 0;
}
/* Dönen runik halka — kesik çizgili mor çember */
.inv-character-ring::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px dashed rgba(214, 156, 244, 0.32);
    animation: invRuneSpin 60s linear infinite;
}
/* İç ince halka (sabit) */
.inv-character-ring::after {
    content: '';
    position: absolute;
    inset: 46px;
    border-radius: 50%;
    border: 1px solid rgba(232, 194, 250, 0.28);
    box-shadow: 0 0 26px rgba(176, 90, 224, 0.16), inset 0 0 24px rgba(150, 70, 204, 0.12);
}
@keyframes invRuneSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .inv-character-ring::before { animation: none; }
}
.inv-character-image {
    position: relative;
    width: 240px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.inv-character-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 34px rgba(220, 160, 50, 0.38));
}
.inv-character-fallback {
    font-size: 120px;
    color: rgba(230, 204, 0, 0.4);
    filter: drop-shadow(0 4px 16px rgba(220, 160, 50, 0.45));
}
.inv-character-name {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #f5e6a8;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.inv-character-class {
    position: relative;
    z-index: 1;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(230, 204, 0, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Dairesel grade-madalyon slotlar (Legend of Ymir NFT stili) ── */
.inv-arena-slot {
    position: absolute;
    width: 70px;
    height: 70px;
    transition: transform 0.2s;
    z-index: 3;
    /* Boş slot varsayılan grade rengi (altın), equipped'te JS inline ile ezilir */
    --slot-border: rgba(230, 204, 0, 0.42);
    --slot-glow: rgba(230, 204, 0, 0.18);
}
.inv-arena-slot.clickable { cursor: pointer; }
.inv-arena-slot.clickable:hover { transform: scale(1.09); }
/* Dış dairesel altın rim + grade renkli halo */
.inv-arena-slot::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, rgba(58, 38, 20, 0.5) 0%, rgba(14, 9, 5, 0.5) 70%, transparent 100%);
    border: 1px solid var(--slot-border);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 3px 10px rgba(0,0,0,0.5), inset 0 0 12px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 0;
}
.inv-arena-slot.equipped::before {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 0 16px var(--slot-glow), inset 0 0 12px rgba(0,0,0,0.55);
}
/* Madalyon gövdesi — dairesel koyu metal disk */
.inv-arena-diamond {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 34%, #3a2614 0%, #241608 58%, #140b05 100%);
    border: 1.5px solid var(--slot-border);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
/* İç elmas süsü — 45° döndürülmüş kare çerçeve (referanstaki gibi) */
.inv-arena-diamond::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    transform: rotate(45deg);
    border: 1px solid var(--slot-border);
    opacity: 0.5;
    border-radius: 5px;
    pointer-events: none;
    z-index: 2;
}
.inv-arena-slot.equipped .inv-arena-diamond {
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.55), 0 0 14px var(--slot-glow);
}
/* İçerik upright — dairesel madalyon olduğu için döndürme yok */
.inv-arena-icon-empty {
    font-size: 24px;
    color: var(--slot-border);
    opacity: 0.55;
}
.inv-arena-icon-equipped {
    font-size: 26px;
    color: var(--slot-border, #e6cc00);
}
/* Kuşanılmış item görseli */
.inv-arena-img {
    width: 76%;
    height: 76%;
    object-fit: cover;
    object-position: center 28%;
    border-radius: 50%;
    z-index: 1;
}
.inv-arena-enh {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffe9a8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 1px 8px;
    background: linear-gradient(180deg, #2a1a0c, #140b05);
    border: 1px solid var(--slot-border, rgba(230, 204, 0, 0.5));
    border-radius: 9px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 4;
    pointer-events: none;
    white-space: nowrap;
}

/* Slot pozisyonları (Ekipman tab — 10 slot)
   Karakter ortada, slot'lar onun etrafında oval düzende.
   Sağ kolon (r1-r5): üstten alta — sağ yarıda
   Sol kolon (l1-l5): üstten alta — sol yarıda */
.pos-r1 { top: 6%;   right: 22%; }
.pos-r2 { top: 24%;  right: 14%; }
.pos-r3 { top: 44%;  right: 10%; }
.pos-r4 { top: 64%;  right: 14%; }
.pos-r5 { top: 82%;  right: 24%; }

.pos-l1 { top: 6%;   left: 22%; }
.pos-l2 { top: 24%;  left: 14%; }
.pos-l3 { top: 44%;  left: 10%; }
.pos-l4 { top: 64%;  left: 14%; }
.pos-l5 { top: 82%;  left: 24%; }

/* Aksesuar tab — 3 slot (üçgen) */
.pos-acc1 { top: 14%; left: 50%; transform: translateX(-50%); }
.pos-acc2 { top: 50%; left: 22%; }
.pos-acc3 { top: 50%; right: 22%; }
.pos-acc1.clickable:hover { transform: translateX(-50%) scale(1.08); }

/* ──────────────────────────────────────────────────────────────
   Compact mode — Profile sayfası widget'ı için küçültülmüş arena
   ────────────────────────────────────────────────────────────── */
.inv-stage.compact {
    grid-template-columns: 120px 1fr;
    padding: 16px;
    min-height: 420px;
    gap: 12px;
}
.inv-stage.compact .inv-side-diamond { width: 32px; height: 32px; }
.inv-stage.compact .inv-side-diamond i { font-size: 14px; }
.inv-stage.compact .inv-side-label { font-size: 13px; }
.inv-stage.compact .inv-arena { min-height: 440px; }
/* v28: sınıf portresi 1.5x büyütüldü (görsel 170→255px), halka/sahne orantılandı.
   Görsel kutusu 280px — kare kaynak (1184×1158) 255 genişlikte ~249px'te bittiği
   için daha uzun kutu ismi alt slotların üstüne itiyordu. */
.inv-stage.compact .inv-character { width: 300px; height: 380px; }
.inv-stage.compact .inv-character-ring { width: 300px; height: 300px; }
.inv-stage.compact .inv-character-image { width: 255px; height: 280px; }
.inv-stage.compact .inv-character-fallback { font-size: 110px; }
.inv-stage.compact .inv-character-name { font-size: 12px; }
.inv-stage.compact .inv-character-class { font-size: 10px; }
.inv-stage.compact .inv-arena-slot { width: 54px; height: 54px; }
.inv-stage.compact .inv-arena-icon-empty,
.inv-stage.compact .inv-arena-icon-equipped { font-size: 20px; }
.inv-stage.compact .inv-arena-img { width: 44px; height: 44px; }
.inv-stage.compact .inv-arena-enh { font-size: 10px; padding: 1px 6px; }

/* Mobil — grid layout */
@media (max-width: 768px) {
    .inv-stage {
        grid-template-columns: 1fr;
        padding: 16px;
        min-height: auto;
    }
    .inv-sidebar {
        flex-direction: row;
        gap: 8px;
        padding-top: 0;
        justify-content: center;
    }
    .inv-side-tab { flex: 1; max-width: 160px; justify-content: center; }
    .inv-arena {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto auto auto;
        gap: 12px;
        min-height: auto;
        padding: 8px 0;
    }
    .inv-character {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        height: 280px;
        margin-bottom: 8px;
    }
    .inv-character-ring { width: 220px; height: 220px; }
    .inv-character-image { width: 180px; height: 240px; }
    .inv-character-fallback { font-size: 80px; }
    .inv-arena-slot {
        position: relative;
        width: 100%;
        height: 70px;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
    }
    .inv-arena-slot.clickable:hover { transform: scale(1.04) !important; }
    /* Mobil grid'de geniş slot'larda dış daire taşmasın */
    .inv-arena-slot::before { display: none; }
    .pos-acc1, .pos-acc2, .pos-acc3 { grid-column: span 1; }
}

/* ──────────────────────────────────────────────────────────────
   Mobil dairesel envanter (≤ 480px) — küçük cihazlarda da
   referans gibi karakterin etrafında oval slot dizilimi.
   ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .inv-stage {
        padding: 12px;
        gap: 8px;
    }
    .inv-arena {
        display: block !important;
        position: relative !important;
        min-height: 460px;
        padding: 0;
    }
    .inv-character {
        position: relative;
        margin: 0 auto;
        width: 200px;
        height: 320px;
        grid-column: auto;
        grid-row: auto;
    }
    .inv-character-ring { width: 280px; height: 280px; }
    .inv-character-image { width: 160px; height: 220px; }
    .inv-character-fallback { font-size: 70px; }
    /* Slotları tekrar absolute pozisyona al, daha sıkı oval düzen */
    .inv-arena-slot {
        position: absolute !important;
        width: 48px !important;
        height: 48px !important;
    }
    .inv-arena-slot::before { display: block !important; }
    .inv-arena-img { width: 38px; height: 38px; }
    .inv-arena-icon-empty,
    .inv-arena-icon-equipped { font-size: 18px; }
    .inv-arena-enh { font-size: 10px; }
    /* Mobil oval pozisyonlar — desktop ile aynı oran */
    .pos-r1 { top: 4%  !important; right: 18% !important; left: auto !important; }
    .pos-r2 { top: 22% !important; right: 8%  !important; left: auto !important; }
    .pos-r3 { top: 44% !important; right: 4%  !important; left: auto !important; }
    .pos-r4 { top: 66% !important; right: 8%  !important; left: auto !important; }
    .pos-r5 { top: 84% !important; right: 20% !important; left: auto !important; }
    .pos-l1 { top: 4%  !important; left: 18% !important; right: auto !important; }
    .pos-l2 { top: 22% !important; left: 8%  !important; right: auto !important; }
    .pos-l3 { top: 44% !important; left: 4%  !important; right: auto !important; }
    .pos-l4 { top: 66% !important; left: 8%  !important; right: auto !important; }
    .pos-l5 { top: 84% !important; left: 20% !important; right: auto !important; }
    .pos-acc1 { top: 6%  !important; left: 50% !important; transform: translateX(-50%) !important; }
    .pos-acc2 { top: 50% !important; left: 6%  !important; transform: none !important; }
    .pos-acc3 { top: 50% !important; right: 6% !important; left: auto !important; transform: none !important; }

    /* v28: PROFİL WIDGET'I (compact) telefonda tek kolon — 120px sidebar sütunu
       specificity yüzünden mobilde de kalıyor, portreyi sağa sıkıştırıyordu.
       Tablar üstte yatay sıra, portre ortada (1.5x büyütmeyle uyumlu). */
    .inv-stage.compact { grid-template-columns: 1fr; }
    .inv-stage.compact .inv-arena { min-height: 460px; }
    .inv-stage.compact .inv-character { width: 240px; height: 350px; margin: 0 auto; }
    .inv-stage.compact .inv-character-ring { width: 270px; height: 270px; }
    .inv-stage.compact .inv-character-image { width: 230px; height: 250px; }
    .inv-stage.compact .inv-character-fallback { font-size: 90px; }
}

/* ──────────────────────────────────────────────────────────────
   Mobil etkinlik kartlarında TR + UTC-4 + countdown taşma fix
   ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .event-countdown { font-size: 9px !important; }
}

/* Equip modal list */
.inv-equip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 4px;
    background: rgba(46,35,22,0.3);
}
.inv-equip-item:hover {
    background: rgba(205,175,125,0.1);
}
.inv-equip-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.inv-equip-item-info {
    flex: 1;
    min-width: 0;
}

/* Demirci Enhancement Animations
   v30: smithShake'teki rotate(45deg) kaldırıldı — item kutusu düz durur, eski
   keyframe kutuyu 45° yan yatırıyordu. Efektler artık class tabanlı. */
@keyframes smithShakeFlat {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-5px); }
    30%, 60%, 90% { transform: translateX(5px); }
}
@keyframes smithPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); }
    100% { transform: scale(1); }
}
@keyframes smithGlow {
    0% { box-shadow: 0 0 8px rgba(34,197,94,0.3); }
    50% { box-shadow: 0 0 42px rgba(34,197,94,0.85), 0 0 80px rgba(0,200,255,0.35), inset 0 0 16px rgba(34,197,94,0.2); }
    100% { box-shadow: 0 0 8px rgba(34,197,94,0.3); }
}
@keyframes smithFail {
    0% { box-shadow: 0 0 8px rgba(239,68,68,0.3); }
    50% { box-shadow: 0 0 42px rgba(239,68,68,0.85), inset 0 0 16px rgba(239,68,68,0.2); }
    100% { box-shadow: 0 0 8px rgba(239,68,68,0.3); }
}
#smithItemBox.smith-success {
    animation: smithGlow 0.7s ease-out, smithPop 0.5s ease-out;
    border-color: #22c55e !important;
}
#smithItemBox.smith-fail {
    animation: smithFail 0.7s ease-out, smithShakeFlat 0.45s ease-in-out;
    border-color: #ef4444 !important;
}
@media (prefers-reduced-motion: reduce) {
    #smithItemBox.smith-success,
    #smithItemBox.smith-fail { animation: none; }
}

/* Draggable purchase/raffle cards */
#profilePurchasesList .sold-item[draggable="true"],
#profileRafflesList .sold-item[draggable="true"] {
    transition: opacity 0.2s, transform 0.2s;
    padding-right: 30px;
}
#profilePurchasesList .sold-item[draggable="true"]:hover,
#profileRafflesList .sold-item[draggable="true"]:hover {
    transform: translateX(4px);
}
#profilePurchasesList .sold-item[draggable="true"]::after,
#profileRafflesList .sold-item[draggable="true"]::after {
    content: '\f58e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(205,175,125,0.3);
    font-size: 14px;
    pointer-events: none;
}
/* Giyin/Çıkar butonu varsa drag ikonunu gizle, padding'i kaldır */
#profilePurchasesList .sold-item.has-equip-btn[draggable="true"]::after {
    display: none;
}
#profilePurchasesList .sold-item.has-equip-btn[draggable="true"] {
    padding-right: 14px;
}
/* Equip butonları */
.equip-btn {
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 6px;
    border: none;
    background: var(--accent-gold, #d4a843);
    color: #000;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    touch-action: manipulation;
}
.equip-btn:active {
    transform: scale(0.95);
}
.equip-btn.unequip {
    background: transparent;
    border: 1px solid var(--accent-red, #ef4444);
    color: var(--accent-red, #ef4444);
}
.equip-btn.unequip:active {
    background: rgba(239, 68, 68, 0.15);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .inv-slot {
        width: 62px;
        height: 62px;
    }
    .inv-slot-row.left { padding-left: 10px; }
    .inv-slot-row.right { padding-right: 10px; }
    .inv-slot-label { font-size: 11px; max-width: 130px; }
    .inv-power-bar { padding: 12px 14px; gap: 10px; }
    .inv-power-bonus { font-size: 18px; }
    .inv-power-total-value { font-size: 16px; }
    .inv-power-icon { width: 38px; height: 38px; font-size: 17px; }
    .inv-tabs { gap: 6px; }
    .inv-tab { padding: 8px 20px; font-size: 13px; }
}

/* Hover row for clan overview table */
.hover-row { cursor: pointer; transition: background 0.15s; }
.hover-row:hover { background: rgba(56,189,248,0.06) !important; }

/* =====================================================================
   CUSTOM DROPDOWN — Steam-style koyu kromlu, altın aksanlı dropdown
   Tüm <select>'ler js/modules/dropdown.js tarafından otomatik dönüştürülür.
   Opt-out: <select data-no-custom>
   ===================================================================== */
.custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 160px;
    width: 100%;
    max-width: 100%;
    font-family: 'Spectral', 'Inter', serif;
    -webkit-user-select: none;
    user-select: none;
}
.custom-dropdown > select {
    /* Asıl <select>'i ekranda göstermeden DOM'da tutuyoruz —
       form submit + name + value + change event aynen çalışır */
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.custom-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 13px 22px;
    background: linear-gradient(180deg, #1a120a 0%, #14100a 100%);
    border: 1.5px solid #6b5a3a;
    border-radius: 999px;       /* Pill shape — görseldeki gibi */
    color: #f0e6d2;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.05s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 1px 2px rgba(0,0,0,0.4);
    outline: none;
    font-family: inherit;
}
.custom-dropdown-trigger:hover {
    border-color: #a0875a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 3px rgba(160,135,90,0.08), 0 2px 4px rgba(0,0,0,0.4);
}
.custom-dropdown-trigger:focus-visible {
    border-color: #cdaf7d;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 3px rgba(205,175,125,0.18);
}
.custom-dropdown[data-open="true"] .custom-dropdown-trigger {
    border-color: #cdaf7d;
    background: linear-gradient(180deg, #1e160c 0%, #18120a 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 0 0 3px rgba(205,175,125,0.16);
}
.custom-dropdown[data-disabled="true"] .custom-dropdown-trigger {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.custom-dropdown-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.custom-dropdown-chevron {
    flex: 0 0 auto;
    font-size: 12px;
    color: #cdaf7d;
    transition: transform 0.2s ease;
    line-height: 1;
    transform: translateY(1px);
}
.custom-dropdown[data-open="true"] .custom-dropdown-chevron {
    transform: rotate(180deg) translateY(-1px);
}
.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px 0;
    list-style: none;
    background: linear-gradient(180deg, #1a120a 0%, #14100a 100%);
    border: 1.5px solid #6b5a3a;
    border-radius: 22px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2147483000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    box-shadow: 0 12px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(205,175,125,0.05);
    scrollbar-width: thin;
    scrollbar-color: #6b5a3a transparent;
}
.custom-dropdown-menu::-webkit-scrollbar { width: 6px; }
.custom-dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.custom-dropdown-menu::-webkit-scrollbar-thumb { background: #6b5a3a; border-radius: 3px; }
/* Menu portal pattern ile body'ye taşındığında selector wrap üstünden çalışmaz.
   Menu'nün kendi data-cd-open attribute'u açılma durumunu taşır. */
.custom-dropdown-menu[data-cd-open="true"],
.custom-dropdown[data-open="true"] .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.custom-dropdown[data-flip="up"] .custom-dropdown-menu,
.custom-dropdown-menu[data-cd-flip="up"] {
    top: auto;
    bottom: calc(100% + 8px);
    transform-origin: bottom center;
    transform: translateY(6px) scale(0.98);
}
.custom-dropdown[data-flip="up"][data-open="true"] .custom-dropdown-menu,
.custom-dropdown-menu[data-cd-open="true"][data-cd-flip="up"] {
    transform: translateY(0) scale(1);
}
.custom-dropdown-option {
    display: block;
    padding: 13px 24px;
    cursor: pointer;
    color: #b8a47d;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-dropdown-option:hover {
    background: rgba(205, 175, 125, 0.1);
    color: #f0e6d2;
}
.custom-dropdown-option[data-selected="true"] {
    background: rgba(205, 175, 125, 0.14);
    color: #ffffff;
}
.custom-dropdown-option[data-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Form içinde dar alanlar için kompakt varyant — gerekirse .custom-dropdown.cd-sm */
.custom-dropdown.cd-sm .custom-dropdown-trigger {
    padding: 9px 16px;
    font-size: 12px;
    border-radius: 999px;
}
.custom-dropdown.cd-sm .custom-dropdown-menu {
    padding: 8px 0;
    border-radius: 16px;
}
.custom-dropdown.cd-sm .custom-dropdown-option {
    padding: 9px 18px;
    font-size: 12px;
}

/* Modal içindeki dropdown'lar — fixed positioning ile body seviyesinde */
.modal-overlay .custom-dropdown[data-open="true"] .custom-dropdown-menu,
.modal .custom-dropdown[data-open="true"] .custom-dropdown-menu {
    z-index: 2147483000;
}

/* =====================================================================
   SHOP FILTERS — Birleşik kart (tek panel, 2 satır grid)
   ===================================================================== */
.shop-filters-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.shop-filters-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(260px, 2fr) minmax(180px, 1.4fr);
    gap: 12px;
    align-items: stretch;
}
.shop-filters-row > * { min-width: 0; }
.shop-filters-row .search-box { width: 100%; min-width: 0; }

/* İkinci satır: Grade + Sort + Sıfırla */
.shop-filters-row-secondary {
    grid-template-columns: 1fr 1fr auto;
}
.shop-filters-row-secondary .filter-reset-btn {
    align-self: stretch;
    padding: 10px 18px;
}

/* Mobil: tek sütuna düş */
@media (max-width: 640px) {
    .shop-filters-row,
    .shop-filters-row-secondary {
        grid-template-columns: 1fr;
    }
}

/* ---- Vault modal inline-edit hover (Kategori/Grade/Bölge rozetleri) ---- */
.vault-inline-edit { transition: background 0.15s, transform 0.05s; }
.vault-inline-edit:hover { background: rgba(205,175,125,0.1) !important; }
.vault-inline-edit:active { transform: scale(0.98); }

/* =====================================================================
   MOBİL + UX İYİLEŞTİRMELERİ v2 (Aralık 2025)
   - Horizontal overflow düzeltme
   - Touch target minimums (WCAG 2.5.5: 44x44)
   - Font minimum 12px
   - Mobile modal fullscreen
   - Toast mobil konum
   - Notification drawer mobil
   - Color contrast iyileştirme
   - Tablo → kart görünüm (mobil)
   - Pagination mobil
   ===================================================================== */

/* ── 1. Horizontal overflow guard — sadece mobil ── */
/* (v683) html seçiciden çıkarıldı: html'de overflow olunca body'nin overflow'u viewport'a
   yayılmıyor, body kendi (hiç kaymayan) scroll kabı oluyordu → sticky header ölü,
   UI.openModal'ın body.style.overflow='hidden' kilidi sayfaya ulaşmıyordu.
   Artık body değeri viewport'a yayılır; yatay taşma kaynakları (hero-banner) ayrıca düzeltildi. */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
}
img, video, canvas {
    max-width: 100%;
    height: auto;
}
/* Tablolar kendi wrapper'larında scroll edebilsin, max-width zorlamayalım */

/* ── 2. Touch target minimum 44px (WCAG 2.5.5) ── */
@media (pointer: coarse) {
    button, .btn, .nav-link, .bnav, .shop-tab, .modal-close,
    select, input[type="checkbox"], input[type="radio"],
    .custom-dropdown-trigger, .filter-reset-btn {
        min-height: 44px;
    }
    .btn-sm { min-height: 38px; }
    /* Icon-only butonlar için min width de */
    .modal-close, .reaction-add-btn, .chat-delete-btn { min-width: 44px; }
}

/* ── 3. Font size minimum 12px ── */
body { font-size: clamp(14px, 2.5vw, 15px); }
@media (max-width: 480px) {
    .count, .badge, .meta, .tag { font-size: 11px !important; }
}

/* ── 4. Mobile modal: tam ekran + sticky header/footer ── */
@media (max-width: 640px) {
    .modal-overlay {
        align-items: flex-end;
    }
    .modal-overlay .modal {
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 95vh !important;
        /* (v683) dvh: araç çubukları görünürken sheet başlığı + ✕ üstten taşmasın (dvh'siz tarayıcı 95vh'de kalır) */
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 8px) !important;
        margin: 0 !important;
        border-radius: 16px 16px 0 0 !important;
        border-bottom: 0 !important;
        animation: modalSlideUp 0.25s ease;
    }
    .modal-overlay .modal-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--bg-card, #14141f);
        border-bottom: 1px solid var(--border-subtle);
    }
    .modal-overlay .modal-footer {
        position: sticky;
        bottom: 0;
        background: var(--bg-card, #14141f);
        border-top: 1px solid var(--border-subtle);
        padding: 12px 16px;
    }
    .modal-close {
        position: absolute !important;
        top: 12px;
        right: 12px;
        background: rgba(255,255,255,0.08);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
@keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ── 5. Toast mobilde alt-orta ── */
@media (max-width: 640px) {
    .toast-container {
        bottom: 80px !important; /* bottom nav üstünde */
        top: auto !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
    }
    .toast {
        width: 100%;
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* ── 6. Notification dropdown mobilde drawer ── */
@media (max-width: 640px) {
    #notifDropdown {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-height: 100vh !important;
        height: 100vh !important;
        border-radius: 0 !important;
        z-index: 10000;
        overflow-y: auto;
    }
    #notifDropdown::before {
        content: 'Bildirimler';
        display: block;
        font-size: 18px;
        font-weight: 700;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-subtle);
        background: var(--bg-card);
        position: sticky;
        top: 0;
        z-index: 1;
    }
}

/* ── 7. Header avatar büyütme ── */
@media (max-width: 640px) {
    #headerAvatar {
        width: 40px !important;
        height: 40px !important;
    }
    .user-info { gap: 8px; }
}

/* ── 8. Mobile bottom nav yüksekliği ── */
@media (max-width: 768px) {
    #dstBottomNav {
        padding: 6px 4px 8px;
        gap: 4px;
    }
    #dstBottomNav .bnav {
        min-height: 56px;
        padding: 4px 6px;
        font-size: 10px;
    }
    #dstBottomNav .bnav i { font-size: 18px; margin-bottom: 2px; }
}

/* ── 9. Color contrast iyileştirme — muted text WCAG AA ── */
:root {
    --text-muted-improved: #a89878;  /* eski #b8a47d daha okunaklı */
}
.text-muted, [style*="color:var(--text-muted)"] {
    color: var(--text-muted-improved, var(--text-muted)) !important;
}

/* ── 10. Tablo → kart görünüm (mobile data-table) ── */
@media (max-width: 640px) {
    .data-table.mobile-cards thead { display: none; }
    .data-table.mobile-cards tbody { display: block; }
    .data-table.mobile-cards tbody tr {
        display: block;
        background: var(--bg-glass);
        border: 1px solid var(--border-subtle);
        border-radius: 12px;
        padding: 12px 14px;
        margin-bottom: 10px;
    }
    .data-table.mobile-cards tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none !important;
        font-size: 13px;
    }
    .data-table.mobile-cards tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        color: var(--text-muted-improved);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
        flex-shrink: 0;
        margin-right: 12px;
    }
    .data-table.mobile-cards tbody td:first-child {
        font-weight: 700;
        font-size: 15px;
        border-bottom: 1px solid var(--border-subtle) !important;
        padding-bottom: 10px;
        margin-bottom: 4px;
    }
    .data-table.mobile-cards tbody td:first-child::before { display: none; }
}

/* ── 11. Pagination mobil — sadece prev/next + sayfa göstergesi ── */
@media (max-width: 640px) {
    .pagination-mobile-hide-middle { display: none !important; }
}

/* ── 12. Skeleton loading ── */
.skeleton {
    background: linear-gradient(90deg,
        rgba(205,175,125,0.04) 0%,
        rgba(205,175,125,0.12) 50%,
        rgba(205,175,125,0.04) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s infinite;
    border-radius: 8px;
    min-height: 16px;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 10px;
}

/* ── 13. Empty state ── */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted-improved);
}
.empty-state-icon {
    font-size: 48px;
    color: rgba(205,175,125,0.35);
    margin-bottom: 16px;
}
.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.empty-state-msg {
    font-size: 14px;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto 20px;
}
.empty-state-cta {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(205,175,125,0.15);
    border: 1px solid rgba(205,175,125,0.35);
    color: #cdaf7d;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.empty-state-cta:hover { background: rgba(205,175,125,0.22); }

/* ── 14. Pull-to-refresh göstergesi ── */
.pull-to-refresh {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid #cdaf7d;
    color: #cdaf7d;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.25s ease;
    pointer-events: none;
}
.pull-to-refresh.visible { top: 16px; }
.pull-to-refresh i { margin-right: 6px; }

/* ── 15. Focus ring (klavye navigasyonu) ── */
:focus-visible {
    outline: 2px solid #cdaf7d;
    outline-offset: 2px;
    border-radius: 4px;
}
button:focus-visible, a:focus-visible {
    box-shadow: 0 0 0 3px rgba(205,175,125,0.25);
}

/* ── 16. Touch device-only — hover efektleri yok ── */
@media (hover: none) {
    .vault-inline-edit:hover { background: transparent !important; }
    .clickable:hover { background: inherit !important; }
}

/* ── 17. Sticky table head ──
   NOT: top değeri sabit header (70px / mobil 60px) yüksekliği kadar olmalı,
   yoksa başlık nav'ın arkasında kalır. z-index satır içeriğinden yüksek olmalı. */
.data-table.sticky-head thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 70px;
    z-index: 20;
    background: #1a1410;
    background-image: linear-gradient(to bottom, #1f1812 0%, #15100c 100%);
    box-shadow: 0 2px 0 0 var(--border-subtle), 0 4px 8px rgba(0,0,0,0.35);
}
@media (max-width: 768px) {
    .data-table.sticky-head thead th { top: 60px; }
}

/* ── 21. Arena Leaderboard (Liderlik Tablosu) ── */
.battles-view-switch {
    display: flex; gap: 8px;
    background: rgba(0,0,0,0.30);
    border: 1px solid rgba(205,175,125,0.20);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 18px;
    width: fit-content;
}
.bvs-btn {
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}
.bvs-btn:hover { color: rgba(255,255,255,0.85); }
.bvs-btn.active {
    background: rgba(205,175,125,0.15);
    border-color: rgba(205,175,125,0.50);
    color: #fff0c9;
    box-shadow: 0 0 12px rgba(205,175,125,0.30);
}

.lb-filters {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
}

.lb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 22px;
}
@media (max-width: 920px) { .lb-grid { grid-template-columns: 1fr; } }

.lb-clan-block {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 18px;
    overflow: hidden;
}
.lb-clan-head {
    font-family: 'Spectral', serif;
    font-size: 18px; font-weight: 800;
    letter-spacing: 1.5px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.lb-week-tag {
    font-size: 11px; font-weight: 600;
    color: var(--text-muted);
    background: rgba(0,0,0,0.30);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

/* Podyum */
.lb-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 10px;
    margin-bottom: 18px;
    min-height: 220px;
}
.lb-podium-slot {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
}
.lb-podium-avatar {
    width: 56px; height: 56px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--c, #cdaf7d);
    box-shadow: 0 0 14px color-mix(in srgb, var(--c, #cdaf7d) 45%, transparent);
    background: var(--bg-tertiary);
    margin-bottom: 8px;
}
.lb-podium-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-podium-avatar.empty {
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.30); font-size: 24px;
}
.lb-podium-name {
    font-size: 13px; font-weight: 700;
    color: var(--text-primary);
    max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    margin-bottom: 2px;
}
.lb-podium-wins {
    font-size: 12px; font-weight: 700;
    color: var(--c, #cdaf7d);
    margin-bottom: 8px;
}
.lb-podium-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--c, #cdaf7d), color-mix(in srgb, var(--c, #cdaf7d) 60%, #1a1a2e));
    border-radius: 8px 8px 0 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.25), 0 -2px 12px color-mix(in srgb, var(--c, #cdaf7d) 35%, transparent);
}
.lb-podium-rank {
    color: #1a1a2e;
    font-family: 'Spectral', serif;
    font-size: 36px; font-weight: 900;
    text-shadow: 0 2px 0 rgba(255,255,255,0.3);
}

/* Tablo */
.lb-table-wrap { overflow-x: auto; }
.lb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    font-size: 13px;
}
.lb-table thead th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}
.lb-table tbody tr {
    background: rgba(255,255,255,0.015);
    transition: background 0.15s;
}
.lb-table tbody tr:hover { background: rgba(205,175,125,0.06); }
.lb-table tbody tr.lb-me {
    background: rgba(34,211,238,0.08);
    border: 1px solid rgba(34,211,238,0.25);
}
.lb-table td {
    padding: 8px 10px;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.lb-table td:first-child { border-left: 1px solid rgba(255,255,255,0.04); border-radius: 8px 0 0 8px; }
.lb-table td:last-child  { border-right: 1px solid rgba(255,255,255,0.04); border-radius: 0 8px 8px 0; }

.lb-rank {
    font-weight: 700; font-size: 14px;
    color: #cdaf7d;
    text-align: center;
}
.lb-player {
    display: flex; align-items: center; gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}
.lb-avatar-sm {
    width: 28px; height: 28px; border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.lb-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.lb-num {
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.lb-wins { color: #22c55e; }
.lb-losses { color: #ef4444; }

@media (max-width: 480px) {
    .lb-podium { min-height: 180px; }
    .lb-podium-avatar { width: 44px; height: 44px; }
    .lb-podium-name { font-size: 11px; }
    .lb-podium-rank { font-size: 28px; }
    .lb-table th, .lb-table td { padding: 6px 6px; font-size: 12px; }
}

/* ── 20. Admin > Genel Katılım Raporu — modern tablo ── */
.ovw-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: 13px;
}
.ovw-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    /* Tam opak — altından tablo satırları geçmesin */
    background: #15101a;
    background-image: linear-gradient(to bottom, #1c1525 0%, #15101a 100%);
    box-shadow: 0 2px 0 0 var(--border-subtle), 0 4px 8px rgba(0,0,0,0.35);
}
.ovw-th {
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid var(--border-subtle);
    transition: color 0.15s;
}
.ovw-th:hover { color: #cdaf7d; }
.ovw-th-center { text-align: center; }

.ovw-row {
    background: rgba(255,255,255,0.015);
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}
.ovw-row:hover { background: rgba(205,175,125,0.06); }
.ovw-row:active { transform: scale(0.998); }

.ovw-row td {
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ovw-row td:first-child {
    border-left: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px 0 0 10px;
}
.ovw-row td:last-child {
    border-right: 1px solid rgba(255,255,255,0.04);
    border-radius: 0 10px 10px 0;
}

.ovw-td-player { min-width: 220px; }
.ovw-td-bar { width: 18%; min-width: 130px; vertical-align: middle; }

/* Oyuncu hücresi */
.ovw-player { display: flex; align-items: center; gap: 10px; }
.ovw-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.ovw-rank-gold   { background: linear-gradient(135deg,#fbbf24,#d97706); color: #1a1a2e; }
.ovw-rank-silver { background: linear-gradient(135deg,#e5e7eb,#9ca3af); color: #1a1a2e; }
.ovw-rank-bronze { background: linear-gradient(135deg,#fdba74,#c2410c); color: #1a1a2e; }

.ovw-avatar {
    width: 36px; height: 36px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}
.ovw-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ovw-pinfo { min-width: 0; }
.ovw-pname {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ovw-pmeta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 11px;
}
.ovw-guild {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid;
    letter-spacing: 0.3px;
}
.ovw-pclass { color: var(--text-muted); }

/* Progress bar hücreleri */
.ovw-cell { display: flex; flex-direction: column; gap: 5px; }
.ovw-cell-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
}
.ovw-pct {
    font-size: 13px;
    font-weight: 700;
}
.ovw-count {
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.ovw-bar {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    overflow: hidden;
}
.ovw-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
}
.ovw-cell-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    opacity: 0.4;
    padding: 8px 0;
}

/* Mobil */
@media (max-width: 768px) {
    .ovw-table { font-size: 12px; }
    .ovw-th { padding: 8px 8px; font-size: 11px; }
    .ovw-row td { padding: 8px 8px; }
    .ovw-avatar { width: 30px; height: 30px; }
    .ovw-pname { font-size: 13px; }
    .ovw-td-bar { min-width: 100px; }
    .ovw-pct { font-size: 12px; }
}

/* ── 19. Admin > Kullanıcılar 2-kolon responsive ── */
@media (max-width: 1024px) {
    .admin-users-wrap {
        grid-template-columns: 1fr !important;
    }
    .admin-users-wrap #userDetailSection {
        position: static !important;
    }
    /* (v683) 'Klan Toplu Yönetim' + 'Devamsızlık Takibi' satırı (inline 1fr 1fr) da tek sütuna */
    .admin-bulk-wrap {
        grid-template-columns: 1fr !important;
    }
}

/* ── 19. Admin > Kullanıcılar kart layout ── */
.user-card-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, transform 0.05s;
    margin-bottom: 6px;
}
.user-card-row:hover {
    background: rgba(205,175,125,0.06);
    border-color: rgba(205,175,125,0.30);
}
.user-card-row.selected {
    background: rgba(205,175,125,0.12);
    border-color: rgba(205,175,125,0.50);
    box-shadow: 0 0 0 1px rgba(205,175,125,0.25) inset;
}
.user-card-avatar {
    width: 44px; height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}
.user-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-card-info { min-width: 0; overflow: hidden; }
.user-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
}
.user-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-top: 2px;
}
.user-card-meta .dot { opacity: 0.4; }
.user-card-ap {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-cyan, #22d3ee);
    text-align: right;
    min-width: 60px;
}
.user-pill {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
@media (max-width: 640px) {
    .user-card-row { padding: 8px 10px; gap: 8px; grid-template-columns: 38px 1fr auto; }
    .user-card-avatar { width: 38px; height: 38px; }
    .user-card-name { font-size: 13px; }
    .user-card-ap { font-size: 13px; min-width: 48px; }
}

/* ── 18. Animasyon tutarlılığı — global transition ── */
.btn, .nav-link, .bnav, .shop-tab, .custom-dropdown-trigger {
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active, .shop-tab:active, .bnav:active {
    transform: scale(0.97);
}

/* ══════════════════ ÇANTA / DEPO (Bag/Warehouse) — LoY tarzı ══════════════════ */
.bag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
    gap: 8px;
    padding: 4px 2px;
}
.bag-slot {
    position: relative;
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background-color: #15151d;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.4);
    transition: transform 0.12s ease, filter 0.12s ease;
    overflow: hidden;
}
/* Rarity kutu dokuları — url() css/ klasöründen çözülür → ../img gerekir */
.bag-slot.g-common,    .bag-modal-icon.g-common    { background-image: url('../img/loy/bag/slot_common.webp'); }
.bag-slot.g-uncommon,  .bag-modal-icon.g-uncommon  { background-image: url('../img/loy/bag/slot_uncommon.webp'); }
.bag-slot.g-rare,      .bag-modal-icon.g-rare      { background-image: url('../img/loy/bag/slot_rare.webp'); }
.bag-slot.g-epic,      .bag-modal-icon.g-epic      { background-image: url('../img/loy/bag/slot_epic.webp'); }
.bag-slot.g-unique,    .bag-modal-icon.g-unique,
.bag-slot.g-legendary, .bag-modal-icon.g-legendary { background-image: url('../img/loy/bag/slot_legendary.webp'); }
.bag-slot:hover { transform: translateY(-2px) scale(1.05); filter: brightness(1.15); z-index: 2; }
.bag-slot:active { transform: scale(0.97); }
.bag-slot-img { position: absolute; inset: 13%; width: 74%; height: 74%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.65)); }
.bag-slot-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: rgba(255,255,255,0.45); }
.bag-slot-src { position: absolute; top: 2px; right: 3px; font-size: 9px; color: #ecdcae; text-shadow: 0 1px 2px #000, 0 0 3px rgba(0,0,0,0.9); opacity: 0.9; pointer-events: none; }
.bag-slot-enh { position: absolute; top: 1px; left: 3px; font-size: 11px; font-weight: 800; color: #ffe9a8; text-shadow: 0 1px 3px #000, 0 0 5px rgba(0,0,0,0.9); pointer-events: none; }
.bag-slot-qty { position: absolute; bottom: 1px; right: 4px; font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none; }

/* Modal */
.bag-modal-overlay {
    position: fixed; inset: 0; z-index: 9998;   /* (v683) 4000 idi → mobil alt menü (9990) örtüsün üstünde + tıklanabilirdi; toast (10050) altında */
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.8); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    animation: bagFadeIn 0.2s ease-out; padding: 20px;
}
@keyframes bagFadeIn { from { opacity: 0; } to { opacity: 1; } }
.bag-modal {
    position: relative;
    width: min(92vw, 440px);
    padding: 44px 40px 40px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: radial-gradient(ellipse at 50% 35%, #2c2617, #16130c 78%);
    border: 44px solid transparent;
    border-image: url('../img/loy/bag/frame.webp') 72 stretch;
    animation: bagPop 0.25s cubic-bezier(.2,1,.3,1);
}
@keyframes bagPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* Çarpı frame'in TAMAMEN dışında (border 44px → offset > 44 olmalı) */
.bag-modal-x {
    position: absolute; top: -54px; right: -54px; z-index: 3;
    width: 40px; height: 40px; border: none; border-radius: 50%;
    background: rgba(0,0,0,0.55); box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    color: #d8c48a; font-size: 26px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    text-shadow: 0 1px 4px #000; transition: color 0.15s, transform 0.15s, background 0.15s;
}
.bag-modal-x:hover { color: #fff; background: rgba(0,0,0,0.8); transform: scale(1.15) rotate(90deg); }
.bag-modal-icon {
    width: 116px; height: 116px; margin-bottom: 18px; position: relative;
    background-color: #15151d; background-size: cover; background-position: center; background-repeat: no-repeat;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(0,0,0,0.4);
}
.bag-modal-icon img { position: absolute; inset: 13%; width: 74%; height: 74%; object-fit: contain; filter: drop-shadow(0 3px 7px rgba(0,0,0,0.75)); }
.bag-modal-icon i { position: absolute; inset: 0; align-items: center; justify-content: center; font-size: 46px; color: rgba(255,255,255,0.5); }
.bag-modal-name { font-family: 'Spectral', serif; font-size: 25px; font-weight: 700; color: #ecdcae; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.7); line-height: 1.2; }
.bag-modal-ap { font-size: 17px; font-weight: 700; color: #ffe9a8; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.bag-modal-src { font-size: 14px; color: #b8a884; font-style: italic; }
.bag-modal-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 640px) {
    .bag-grid { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
    .bag-modal { border-width: 34px; padding: 34px 26px 30px; }
    .bag-modal-name { font-size: 21px; }
    .bag-modal-x { top: -46px; right: -6px; width: 36px; height: 36px; font-size: 23px; }
}

/* Sayfadan Haritaya dönüş — kapı-çıkış butonu (Arena / Sol's Summon page-header) */
.map-return-btn {
    width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4); border: 1px solid var(--border-glow, rgba(205,175,125,0.35));
    color: var(--gold, #cdaf7d); font-size: 18px; cursor: pointer;
    transition: background 0.15s, transform 0.15s, color 0.15s;
}
.map-return-btn:hover { background: var(--gold-gradient, linear-gradient(135deg,#cdaf7d,#967c57)); color: #130e0b; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(205,175,125,0.3); }

/* TÜM SİTEDE 2x temalı altın imleç (uç noktası 0,0) — kullanıcı isteği v571: sadece 3D değil her sayfada */
*, *::before, *::after { cursor: url('../img/asgard/cursor.png?v=571') 0 0, auto !important; }

/* kullanılamayan beceri SÖNÜK (referans oyundaki disable görünümü) */

.ring-base { fill: none; stroke: rgba(216,180,90,.30); stroke-width: 3.5; }
/* dodge (4 segment) + koşu (tam çevre) şarj göstergeleri — gold UI temasıyla altın tonlarında */
.dedge { fill: none; stroke: #8fd0ff; stroke-width: 5.5; stroke-dasharray: 65.05; stroke-dashoffset: 65.05; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(126,204,255,.95)); transition: stroke-dashoffset .15s linear; }
.redge { fill: none; stroke: #cfd6e2; stroke-width: 5.5; stroke-dasharray: 260.2; stroke-dashoffset: 260.2; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(200,215,235,.9)); transition: stroke-dashoffset .15s linear; }

/* ═════════════════════════════════════════════════════════════════════════
   (v667) ENVANTER SLOTLARI — kullanıcı isteği: dairesel çerçeveler kaldırıldı,
   köşegen (45° kare) kaldı ve asıl slot gövdesi oldu; slotlar büyütüldü.
   Dosya sonuna eklendi → yukarıdaki (mobil !important dahil) kuralları ezer.
   ═════════════════════════════════════════════════════════════════════════ */
.inv-arena-slot::before { display: none !important; }            /* dış yuvarlak rim + halo */
.inv-arena-diamond {                                                /* yuvarlak metal disk → şeffaf taşıyıcı */
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    aspect-ratio: 1 / 1;          /* geniş mobil grid hücresinde de kare (elmas bozulmasın) */
    height: 100%;
    width: auto;
    margin: 0 auto;
}
.inv-arena-diamond::before {                                        /* köşegen = slot gövdesi */
    width: 72%;
    height: 72%;
    border: 1.5px solid var(--slot-border);
    opacity: 1;
    border-radius: 6px;
    background: radial-gradient(circle at 50% 38%, #3a2614 0%, #241608 60%, #140b05 100%);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.6), 0 3px 10px rgba(0,0,0,0.5);
    z-index: 0;
}
.inv-arena-slot.equipped .inv-arena-diamond { box-shadow: none; }
.inv-arena-slot.equipped .inv-arena-diamond::before {
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.55), 0 0 16px var(--slot-glow);
}
.inv-arena-img {                                                    /* görsel elmas şeklinde kırpılır */
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    clip-path: polygon(50% 1%, 99% 50%, 50% 99%, 1% 50%);
    position: relative;
    z-index: 1;
}
.inv-arena-icon-empty, .inv-arena-icon-equipped { position: relative; z-index: 1; }
.inv-arena-enh { z-index: 2; }
/* Boyutlar: masaüstü 70→80, profil (compact) 54→64, küçük mobil 48→56 */
.inv-arena-slot { width: 80px; height: 80px; }
.inv-stage.compact .inv-arena-slot { width: 64px; height: 64px; }
@media (max-width: 480px) {
    .inv-arena-slot { width: 56px !important; height: 56px !important; }
}

/* ═════════════════════════════════════════════════════════════════════════
   (v669) REHBER — veri tabanlı modern tasarım (site tokenları: altın, cam kart,
   Spectral başlık / Inter metin). Masaüstü: sol menü + içerik; mobil: çip menü.
   ═════════════════════════════════════════════════════════════════════════ */
#guideModal { backdrop-filter: blur(10px); background: rgba(0,0,0,0.82); }
.gd-modal {
    max-width: 1040px; width: min(96vw, 1040px); height: min(88vh, 820px); max-height: 88vh;
    display: flex; flex-direction: column; padding: 0; overflow: hidden;
    border: 1px solid var(--border-glow); border-radius: 20px;
    background: linear-gradient(180deg, rgba(30,22,14,0.98), rgba(19,14,11,0.99));
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.gd-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 22px; border-bottom: 1px solid var(--border-subtle); flex-shrink: 0;
    background: linear-gradient(90deg, rgba(205,175,125,0.10), transparent 60%);
}
.gd-header-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gd-header-title i { color: var(--gold); font-size: 18px; }
.gd-header-title h2 {
    margin: 0; font-family: 'Spectral', serif; font-size: 20px; font-weight: 700; letter-spacing: .3px;
    background: var(--gold-text-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gd-layout { display: grid; grid-template-columns: 240px 1fr; flex: 1; min-height: 0; }
.gd-nav {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; overflow-y: auto;
    border-right: 1px solid var(--border-subtle); background: rgba(0,0,0,0.18);
}
.gd-nav-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
    border: 1px solid transparent; background: transparent; color: var(--text-secondary);
    font: 600 13px 'Inter', sans-serif; text-align: left; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.gd-nav-item i { width: 18px; text-align: center; color: var(--gold-dark); transition: color .15s; }
.gd-nav-item:hover { background: rgba(205,175,125,0.07); color: var(--text-primary); }
.gd-nav-item.active {
    background: linear-gradient(90deg, rgba(205,175,125,0.18), rgba(205,175,125,0.05));
    border-color: rgba(205,175,125,0.28); color: var(--gold-light);
}
.gd-nav-item.active i { color: var(--gold); }
.gd-body { overflow-y: auto; padding: 26px 30px 22px; min-height: 0; }
.gd-hero { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.gd-hero-icon {
    flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: var(--gold-gradient); color: #1a120a; font-size: 22px; box-shadow: 0 8px 22px rgba(205,175,125,0.25);
}
.gd-kicker { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 2px; }
.gd-title { margin: 0 0 6px; font-family: 'Spectral', serif; font-size: 24px; font-weight: 700; color: var(--text-primary); }
.gd-lead { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.gd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 6px 0 20px; }
.gd-stat { background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 12px 14px; }
.gd-stat-v { font-family: 'Spectral', serif; font-size: 20px; font-weight: 700; color: var(--gold-light); line-height: 1.2; }
.gd-stat-l { font-size: 11px; color: var(--text-muted); margin-top: 3px; letter-spacing: .2px; }
.gd-h { margin: 22px 0 10px; font-family: 'Spectral', serif; font-size: 16px; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.gd-h::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(205,175,125,0.35), transparent); }
.gd-p { margin: 0 0 12px; color: var(--text-primary); font-size: 14px; line-height: 1.75; }
.gd-p strong, .gd-list strong, .gd-steps strong, .gd-callout strong, .gd-table strong, .gd-lead strong { color: var(--gold-light); font-weight: 700; }
.gd-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gd-list li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.65; color: var(--text-primary); }
.gd-list li::before {
    content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 1px;
    background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 6px rgba(205,175,125,0.5);
}
.gd-steps { list-style: none; counter-reset: gdstep; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gd-steps li {
    counter-increment: gdstep; position: relative; padding: 10px 14px 10px 50px; font-size: 14px; line-height: 1.6;
    background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: 12px; color: var(--text-primary);
}
.gd-steps li::before {
    content: counter(gdstep); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%; background: var(--gold-gradient); color: #1a120a;
    font: 800 12px 'Inter', sans-serif; display: flex; align-items: center; justify-content: center;
}
.gd-table-wrap { overflow-x: auto; margin: 4px 0 16px; border: 1px solid var(--border-subtle); border-radius: 14px; }
.gd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gd-table th { text-align: left; padding: 10px 14px; background: rgba(205,175,125,0.10); color: var(--gold-light); font-weight: 700; white-space: nowrap; }
.gd-table td { padding: 9px 14px; color: var(--text-primary); border-top: 1px solid var(--border-subtle); }
.gd-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.gd-callout {
    display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 16px; padding: 13px 16px;
    border-radius: 14px; border: 1px solid; font-size: 13.5px; line-height: 1.65; color: var(--text-primary);
}
.gd-callout i { margin-top: 3px; font-size: 15px; flex-shrink: 0; }
.gd-callout.gd-tip  { background: rgba(205,175,125,0.08); border-color: rgba(205,175,125,0.28); }
.gd-callout.gd-tip i { color: var(--gold); }
.gd-callout.gd-warn { background: rgba(196,75,63,0.10); border-color: rgba(196,75,63,0.35); }
.gd-callout.gd-warn i { color: #e2766a; }
.gd-callout.gd-info { background: rgba(122,155,181,0.10); border-color: rgba(122,155,181,0.32); }
.gd-callout.gd-info i { color: var(--accent-blue); }
.gd-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.gd-pager button {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; max-width: 48%;
    border: 1px solid var(--border-subtle); background: var(--bg-glass); color: var(--text-secondary);
    font: 600 13px 'Inter', sans-serif; cursor: pointer; transition: border-color .15s, color .15s;
}
.gd-pager button:hover { border-color: var(--border-glow); color: var(--gold-light); }
.gd-pager button.next { margin-left: auto; }
.gd-pager button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-empty { padding: 48px 20px; text-align: center; color: var(--text-muted); }
.gd-empty i { font-size: 32px; color: var(--gold-dark); margin-bottom: 10px; }
@media (max-width: 760px) {
    .gd-modal { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: none; }
    .gd-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .gd-nav {
        flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 10px 12px; gap: 6px;
        border-right: none; border-bottom: 1px solid var(--border-subtle); scrollbar-width: none;
    }
    .gd-nav::-webkit-scrollbar { display: none; }
    .gd-nav-item { flex-shrink: 0; padding: 8px 12px; border-radius: 999px; border-color: var(--border-subtle); font-size: 12px; white-space: nowrap; }
    .gd-body { padding: 18px 16px; }
    .gd-table { min-width: 0; }                              /* 2-3 sütunlu tablolar yatay kaymasın */
    .gd-table:has(th:nth-child(4)) { min-width: 520px; }     /* 4+ sütun: sarmalayıcı içinde kaydır */
    .gd-table th { white-space: normal; }
    .gd-table th, .gd-table td { padding: 8px 10px; }
    .gd-title { font-size: 20px; }
    .gd-hero-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 13px; }
}

/* ═══ (v675) Aylık Takvim modalı — site tasarımıyla uyumlu (Rehber/gd-* dili). Yalnızca #calendarModal içi. ═══ */
#calendarModal .cal-modal {
    max-width: 640px; width: calc(100vw - 32px); padding: 0; overflow: hidden;
    border: 1px solid var(--border-glow, rgba(205,175,125,0.28)); border-radius: 20px;
    background: linear-gradient(180deg, rgba(30,22,14,0.98), rgba(19,14,11,0.99));
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
#calendarModal .cal-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(90deg, rgba(205,175,125,0.10), transparent 60%);
}
#calendarModal .cal-header-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
#calendarModal .cal-header-title i { color: var(--gold); font-size: 18px; }
#calendarModal .cal-title {
    margin: 0; font-family: 'Spectral', serif; font-size: 20px; font-weight: 700; letter-spacing: .3px;
    background: var(--gold-text-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#calendarModal .cal-body { padding: 16px 20px 20px; }
#calendarModal .cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
#calendarModal .cal-nav-btn {
    width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-subtle); background: var(--bg-glass); color: var(--gold-light); cursor: pointer;
    transition: background .15s, border-color .15s;
}
#calendarModal .cal-nav-btn:hover { background: rgba(205,175,125,0.14); border-color: rgba(205,175,125,0.35); }
#calendarModal .cal-nav-center { display: flex; flex-direction: column; align-items: center; gap: 5px; }
#calendarModal .cal-month { font-family: 'Spectral', serif; font-size: 21px; font-weight: 700; color: var(--text-primary); letter-spacing: .3px; line-height: 1.1; }
#calendarModal .cal-today-btn {
    display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .4px;
    padding: 3px 11px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(205,175,125,0.30); background: rgba(205,175,125,0.08); color: var(--gold);
}
#calendarModal .cal-today-btn:hover { background: rgba(205,175,125,0.16); }
#calendarModal .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
#calendarModal .calendar-header {
    text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--gold-dark); padding: 2px 0 6px;
}
#calendarModal .calendar-header.weekend { color: var(--gold); }
#calendarModal .calendar-day {
    aspect-ratio: 1 / 0.9; min-height: 0; padding: 6px 3px 6px; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    background: rgba(46,35,22,0.38); border: 1px solid rgba(205,175,125,0.08);
    font-size: 13px; position: relative; transition: background .15s, border-color .15s, box-shadow .15s;
}
#calendarModal .calendar-day.weekend { background: rgba(46,35,22,0.58); }
#calendarModal .calendar-day.other-month { opacity: 0.28; background: transparent; border-color: transparent; }
#calendarModal .calendar-day:not(.other-month):hover { transform: none; background: rgba(205,175,125,0.10); border-color: rgba(205,175,125,0.32); }
#calendarModal .calendar-day .day-number { font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.2; }
#calendarModal .calendar-day.today {
    background: rgba(205,175,125,0.10); border: 1px solid var(--gold);
    box-shadow: inset 0 0 0 1px rgba(205,175,125,0.22), 0 0 14px rgba(205,175,125,0.18);
}
#calendarModal .calendar-day.today .day-number { color: var(--gold-light); }
#calendarModal .calendar-day.selected { background: var(--gold-gradient); border-color: transparent; box-shadow: 0 6px 18px rgba(205,175,125,0.28); }
#calendarModal .calendar-day.selected .day-number { color: #1a120a; }
#calendarModal .calendar-day .day-events { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; align-items: center; max-width: 100%; }
#calendarModal .calendar-day .event-dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,0.35); }
#calendarModal .calendar-day.selected .event-dot { box-shadow: 0 0 0 1.5px rgba(26,18,10,0.55); }
#calendarModal .calendar-day .event-more { font-size: 9px; font-weight: 700; color: var(--gold); line-height: 1; }
#calendarModal .calendar-day.selected .event-more { color: #1a120a; }
#calendarModal .cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; font-size: 11.5px; color: var(--text-secondary); }
#calendarModal .cal-legend > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-glass); border: 1px solid var(--border-subtle); }
#calendarModal .cal-legend .legend-dot { width: 8px; height: 8px; margin: 0; }
#calendarModal .cal-day-events { margin-top: 14px; max-height: 240px; overflow-y: auto; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
#calendarModal .cal-day-events::-webkit-scrollbar { width: 6px; }
#calendarModal .cal-day-events::-webkit-scrollbar-thumb { background: rgba(205,175,125,0.25); border-radius: 3px; }
@media (max-width: 560px) {
    #calendarModal .cal-modal { width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; }
    #calendarModal .cal-header { padding: 12px 14px; }
    #calendarModal .cal-title { font-size: 18px; }
    #calendarModal .cal-body { padding: 12px 12px 16px; }
    #calendarModal .calendar-grid { gap: 4px; }
    #calendarModal .calendar-day { border-radius: 9px; font-size: 12px; padding: 4px 2px; }
    #calendarModal .calendar-day .event-dot { width: 5px; height: 5px; }
    #calendarModal .cal-month { font-size: 18px; }
    #calendarModal .cal-legend > span { padding: 3px 8px; font-size: 10.5px; }
}

/* ═══ (v679) MOBİL İYİLEŞTİRMELER — telefon ölçümünde (375 px) bulunan sorunlar ═══ */
.notif-close-mobile { display: none; }
@media (max-width: 640px) {
    /* Oyuncular: kart görünümünde genel "table { min-width:500px }" kuralı kartları 500 px yapıp
       değerleri (isim, klan, güç) ekran dışına itiyordu → sadece etiketler görünüyordu. */
    .data-table.mobile-cards { min-width: 0 !important; width: 100% !important; }
    .data-table.mobile-cards tbody tr, .data-table.mobile-cards tbody td { max-width: 100%; box-sizing: border-box; }
    .data-table.mobile-cards tbody td { gap: 10px; min-width: 0; }
    .data-table.mobile-cards tbody td > * { min-width: 0; }

    /* Bildirimler: tam ekran panelde zil de kapanıyordu ve kapatma düğmesi yoktu. */
    #notifDropdown {
        height: 100dvh !important; max-height: 100dvh !important;
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }
    #notifDropdown::before { content: none !important; display: none !important; }
    #notifDropdown .notification-header {
        position: sticky; top: 0; z-index: 2; background: var(--bg-card, #1f1812);
        padding-top: calc(14px + env(safe-area-inset-top, 0px));
    }
    #notifDropdown .notification-header h3 { font-size: 17px; }
    #notifDropdown .notification-list { max-height: none; }
    .notif-close-mobile {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
        border: 1px solid var(--border-subtle); background: var(--bg-glass); color: var(--text-primary); font-size: 18px;
    }
}
@media (max-width: 768px) {
    /* iPhone: 16 px altı yazı boyutlu kutuya dokununca sayfa yakınlaşıyordu (Mağaza/Depo/Admin arama) */
    input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
    select, textarea { font-size: 16px !important; }

    /* Puanlama: tablo ekrandan genişti ama kaydırılamıyordu (TOPLAM AP / Kalan AP görünmüyordu).
       Artık kendi kutusunda iki yöne kayar; başlık satırı ve kullanıcı sütunu sabit kalır. */
    #pointsPage .sticky-table-card { overflow: hidden !important; }
    #pointsPage .sticky-table-wrap {
        overflow: auto !important; max-height: 72dvh;
        -webkit-overflow-scrolling: touch; padding: 0 !important;
    }
    #pointsPage .data-table.sticky-head thead th { top: 0 !important; }
    #pointsTable thead th:first-child,
    #pointsTable tbody td:first-child { position: -webkit-sticky; position: sticky; left: 0; }
    #pointsTable thead th:first-child { z-index: 22; }
    #pointsTable tbody td:first-child {
        z-index: 5; background: #1d1611;
        box-shadow: 2px 0 6px rgba(0,0,0,0.35);
    }
    #pointsTable .user-cell span { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }

    /* Dokunma alanları (en az ~40 px) */
    .notification-bell { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    .event-calendar .widget-header .btn-sm { min-width: 36px; min-height: 36px; }
    .login-eye-btn { min-width: 40px; }
}

/* ═════════════════════════════════════════════════════════════════════════
   (v683) MOBİL DENETİM DÜZELTMELERİ — telefon (360–430 px) denetiminde doğrulanan sorunlar.
   Mobil z-index merdiveni (≤768 px):
     sayfa < PWA kartı 9985 < alt menü 9990 < Menü sheet 9995 < onboarding 9996
       < oyun/çanta overlay'leri 9998 < .modal-overlay 10000 < toast 10050
   ═════════════════════════════════════════════════════════════════════════ */

/* Envanter/Profil: BONUS Savaş Gücü dökümü yalnız title tooltip'indeydi (dokunmatikte hiç görünmüyordu).
   Çubuğa dokununca/tıklayınca .open → altındaki liste açılır (inventory.js). */
.inv-power-breakdown { display: none; font-size: 12px; padding: 6px 14px; color: var(--text-secondary); }
.inv-power-bar.open + .inv-power-breakdown { display: block; }
.inv-power-bar[role="button"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }

@media (max-width: 768px) {
    /* Toast'lar: .modal-overlay ile aynı z-index (10000) + DOM'da önce → açık modalın ALTINDA kalıyordu
       (teklif hataları vb. hiç görünmüyordu). showToast tıklanabilir içerik üretmez → pointer-events:none güvenli. */
    .toast-container { z-index: 10050 !important; pointer-events: none; }
    .toast { pointer-events: none; }

    /* Hero banner: taban kural (~3440, calc(100%+48px) / -24px) mobil kuraldan SONRA geldiği için onu eziyordu
       → 375 px'te banner 407 px, sayfa yatay taşıyordu. .container mobil padding'i (10px) ile hizalı. */
    .hero-banner {
        width: calc(100% + 20px);
        margin-left: -10px;
        margin-top: -10px;
    }

    /* Puanlama/Oyuncular hafta seçici: "Görüntüle:" + uzun hafta etiketli açılır menü nowrap flex'te 360 px'te
       ekrandan ~12 px taşıyordu (html overflow'u kalkınca görünür oldu) → satır daralabilsin, etiket üç noktayla kısalsın. */
    #pointsWeekSelector > div > div { min-width: 0; max-width: 100%; }
    #playersTabs > div, #playersTabs .week-selector { min-width: 0; max-width: 100%; }

    /* Profil — Savaş Gücü Gelişimi haftalık tablosu: genel "table{min-width:500px}" + kartın overflow:hidden'ı
       3. sütunu (Değişim) tamamen kesiyordu; 3 sütun dar ekrana rahat sığar. */
    #profilePowerTable .data-table { min-width: 0 !important; }

    /* Klan Sohbet @mention listesi mesajların üstünde çizilsin (.chat-input artık overflow:visible) */
    .mention-dropdown { z-index: 20; }

    /* Emoji seçici mobilde position:fixed ama sohbet kartının backdrop-filter'ı onu KART'a göre
       konumlandırıyor + kartın overflow:hidden'ı kırpıyordu → blur kaldırılınca viewport'a göre ortalanır. */
    #dashboardPage .dashboard-grid > .card:first-child { -webkit-backdrop-filter: none; backdrop-filter: none; }

    /* Harita: toplama/boss onay modalı ve sonuç (kutlama) overlay'leri alt menünün (9990) altında kalıyordu
       → menü karartmanın üstünde ve tıklanabilirdi. (map.js enjekte CSS'i sonra yüklendiği için !important) */
    .mine-modal-overlay,
    .mine-celebrate-overlay:not(.modal-overlay) { z-index: 9998 !important; }
}
@media (max-width: 380px) {
    /* .container padding'i burada 8px */
    .hero-banner {
        width: calc(100% + 16px);
        margin-left: -8px;
        margin-top: -8px;
    }
}

/* Mağaza: 6 sekme 3 satıra + filtreler tek sütuna düşünce ilk ekranda HİÇ ürün görünmüyordu.
   Sekmeler tek satır yatay kaydırma, 2. filtre satırı (Grade / Sıralama / Sıfırla) tek satır. */
@media (max-width: 640px) {
    #shopTabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    #shopTabs::-webkit-scrollbar { display: none; }
    #shopTabs .shop-tab { flex: 0 0 auto; white-space: nowrap; }
    .shop-filters-card { padding: 12px; gap: 8px; }
    .shop-filters-row-secondary { grid-template-columns: 1fr 1fr auto; }
    .shop-filters-row-secondary .filter-reset-btn { padding: 10px 12px; }
}

/* Arena — Liderlik tablosu: 500 px'e zorlanıp sabit sütun genişlikleriyle ~320 px kutuda
   Yenilgi/Oran yalnız ipucusuz yana kaydırmayla görünüyordu; td.lb-player'ın flex'i hücre düzenini bozuyordu.
   'Toplam' (= Galibiyet + Yenilgi) gizlenir, kalan sütunlar sığar, uzun isim üç noktayla kısalır. */
@media (max-width: 480px) {
    .lb-clan-block { padding: 12px; }
    .lb-table { min-width: 0 !important; table-layout: fixed; }
    .lb-table thead th {
        width: auto !important;
        font-size: 10px;
        letter-spacing: 0;
        text-transform: none;   /* BÜYÜK HARF 'GALİBİYET' 54 px'e sığmıyordu */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .lb-table th:nth-child(1) { width: 34px !important; }
    .lb-table th:nth-child(3),
    .lb-table th:nth-child(4),
    .lb-table th:nth-child(6) { width: 54px !important; }
    .lb-table th:nth-child(5),
    .lb-table td:nth-child(5) { display: none; }
    .lb-table thead th, .lb-table td { padding: 6px 3px; }
    .lb-table td.lb-player { display: table-cell; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lb-avatar-sm { display: none; }
}

/* Mağaza başlığı AP / Rezerve rozetleri: açıklama yalnız :hover tooltip'indeydi; dokunmatikte sağdaki
   rozetin tek satırlık (~270 px) tooltip'i ekran kenarından taşıp kesiliyordu. */
@media (hover: none) {
    .coin-tooltip::before {
        white-space: normal;
        width: max-content;
        max-width: min(240px, 64vw);
        text-align: center;
        line-height: 1.35;
    }
    .coin-tooltip:last-child::before { left: auto; right: 0; transform: none; }
    .coin-tooltip:active::before,
    .coin-tooltip:focus::before { opacity: 1; }
}

/* (v684) Telefonda üst başlık artık gerçekten sabit (51 px) — tablo başlıkları 60 px'te kalınca
   aradan satırlar görünüyordu. Puanlama tablosu kendi kutusunda kaydığı için top:0 kuralı korunur. */
@media (max-width: 768px) {
    .data-table.sticky-head thead th { top: 51px; }
    #pointsPage .data-table.sticky-head thead th { top: 0 !important; }
}

/* (v687) Puanlama tablosu ~1260 px genişliğinde — 1024–1366 px ekranlarda (iPad yatay, küçük dizüstü)
   sağdaki sütunlar (TOPLAM AP / Kalan AP) kesiliyordu. Telefondaki gibi kendi kutusunda kayar;
   başlık satırı ve kullanıcı sütunu sabit kalır. Geniş masaüstünde (1367+ px) davranış değişmez. */
@media (min-width: 769px) and (max-width: 1366px) {
    #pointsPage .sticky-table-card { overflow: hidden !important; }
    #pointsPage .sticky-table-wrap {
        overflow: auto !important; max-height: calc(100dvh - 190px);
        -webkit-overflow-scrolling: touch;
    }
    #pointsPage .data-table.sticky-head thead th { top: 0 !important; }
    #pointsTable thead th:first-child,
    #pointsTable tbody td:first-child { position: -webkit-sticky; position: sticky; left: 0; }
    #pointsTable thead th:first-child { z-index: 22; }
    #pointsTable tbody td:first-child { z-index: 5; background: #1d1611; box-shadow: 2px 0 6px rgba(0,0,0,0.35); }
}

/* ==================== (v691) TELEFON BİLDİRİMLERİ (Ayarlar → #pushSettingsBody) ====================
   SettingsPage.renderPush() çizer. Katman/overlay yok (z-index merdivenine dokunmaz), tablo yok.
   375 px'te yatay taşma olmasın: metin kutuları min-width:0 + kelime kırma, düğmeler sarılır. */
.push-settings .settings-item { gap: 12px; }
.push-settings .settings-item-info { min-width: 0; }
.push-settings .settings-item-desc { line-height: 1.45; overflow-wrap: anywhere; }
.push-status { border-bottom: none; padding-bottom: 10px; flex-wrap: wrap; }
/* Çok dar ekranda (≈320 px) rozet açıklamayı sıkıştırmak yerine alta iner */
.push-status .settings-item-info { flex: 1 1 180px; }

/* Durum rozeti */
.push-pill {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    padding: 5px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap;
    color: var(--text-muted); background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
}
.push-pill.on   { color: var(--accent-green);  background: rgba(143, 173, 90, 0.12); border-color: rgba(143, 173, 90, 0.45); }
.push-pill.bad  { color: var(--accent-red);    background: rgba(196, 75, 63, 0.12);  border-color: rgba(196, 75, 63, 0.45); }
.push-pill.warn { color: var(--accent-orange); background: rgba(201, 160, 78, 0.12); border-color: rgba(201, 160, 78, 0.45); }

/* Açıklama / adım kutusu (iOS kurulum, izin engellendi, desteklenmiyor) */
.push-hint {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 2px 0 14px; padding: 12px 14px; border-radius: 10px;
    background: rgba(205, 175, 125, 0.06); border: 1px solid var(--border-subtle);
    font-size: 13px; line-height: 1.5; color: var(--text-secondary);
    overflow-wrap: anywhere;
}
.push-hint > i { flex-shrink: 0; margin-top: 3px; color: var(--accent-orange); }
.push-hint > div { min-width: 0; }
.push-hint strong { color: var(--text-primary); }
.push-hint ol, .push-hint ul { margin: 6px 0 0; padding-left: 18px; }
.push-hint li { margin: 4px 0; }
.push-hint small { display: block; margin-top: 8px; font-size: 12px; color: var(--text-muted); }

/* Düğme satırı — dokunmatikte ≥44 px, dar ekranda sarılır */
.push-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px 0 16px; }
.push-actions .btn { min-height: 44px; }
.push-actions .btn.push-btn-off { color: var(--accent-red); border-color: rgba(196, 75, 63, 0.35); }
.push-actions .btn.push-btn-off:hover { background: rgba(196, 75, 63, 0.10); color: var(--accent-red); }

/* Kategori tercihleri — satırın tamamı <label>, dokunma alanı geniş */
.push-cats-wrap { border-top: 1px solid var(--border-subtle); padding-top: 14px; }
.push-cats-head { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); }
.push-cats-note { margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.push-cat { cursor: pointer; min-height: 48px; padding: 12px 0; }
.push-cat .settings-item-label { display: block; margin-bottom: 0; }
.push-cats-wrap.is-off .push-cat { opacity: 0.55; }
.push-cat input:disabled + .toggle-slider { opacity: 0.6; cursor: progress; }
.push-cat input:focus-visible + .toggle-slider { box-shadow: var(--focus-ring, 0 0 0 3px rgba(205, 175, 125, 0.55)); }
/* (v692) Kategori alt başlıkları (Sana özel / Klan ve hatırlatmalar / Yönetici) */
.push-cats-group {
    display: flex; align-items: center; gap: 8px; min-width: 0;
    margin-top: 16px; padding-bottom: 2px;
    font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--text-secondary);
    overflow-wrap: anywhere;
}
.push-cats-group > i { flex-shrink: 0; width: 14px; text-align: center; font-size: 11px; color: var(--accent-orange); }

@media (max-width: 480px) {
    .push-actions .btn { flex: 1 1 auto; }
    .push-hint { padding: 10px 12px; }
}


/* ═══════════════ (v694) Mobil düzenlemeler ═══════════════ */

/* Yatay mod uyarısı (OrientationGuard, js/app.js). En üst katman: toast'ların (10050) da üstünde. */
#dstRotateOverlay { display: none; }
html.dst-landscape-phone #dstRotateOverlay {
    display: flex; position: fixed; inset: 0; z-index: 10100;
    align-items: center; justify-content: center; text-align: center;
    background: #0d0907; color: var(--text-primary, #f0e6d2);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
html.dst-landscape-phone body { overflow: hidden; }
.dst-rotate-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; }
.dst-rotate-ico { font-size: 44px; color: var(--accent-gold, #cdaf7d); animation: dstRotateHint 1.8s ease-in-out infinite; }
.dst-rotate-title { font-size: 18px; font-weight: 700; }
.dst-rotate-sub { font-size: 13px; color: var(--text-muted-improved, #a89878); }
@keyframes dstRotateHint { 0%, 30% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .dst-rotate-ico { animation: none; } }

@media (max-width: 768px) {
    /* Ana sayfa kapak görseli: alt yarıdaki buğu (backdrop blur) kaldırıldı — geçiş gradyanı yazı okunurluğu için kalır */
    .hero-banner-blur { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

    /* Puanlama: tablo kutusunun kenarında iOS'un esnemesi tüm tabloyu parmakla sürüklüyordu → kapalı.
       Uzun basınca tablonun/avatarın "kaldırılıp" sürüklenmesi de engellenir. */
    #pointsPage .sticky-table-wrap,
    #playersPage .sticky-table-wrap { overscroll-behavior: none; }
    #pointsTable, #playersTable { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
    #pointsTable img, #playersTable img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }

    /* Oyuncular: kart görünümü yerine tablo — kendi kutusunda kayar; başlık satırı ile #/Üye sütunları sabit */
    #playersPage .sticky-table-card { overflow: hidden !important; }
    #playersPage .sticky-table-wrap {
        overflow: auto !important; max-height: 72dvh;
        -webkit-overflow-scrolling: touch; padding: 0 !important;
    }
    #playersPage .data-table.sticky-head thead th { top: 0 !important; }
    #playersTable { width: max-content; min-width: 100% !important; }
    #playersTable th, #playersTable td { padding: 10px 8px; font-size: 12.5px; white-space: nowrap; }
    #playersTable thead th:nth-child(1), #playersTable tbody td:nth-child(1) {
        position: -webkit-sticky; position: sticky; left: 0; width: 34px; min-width: 34px; max-width: 34px;
        text-align: center; padding-left: 4px; padding-right: 4px;
    }
    #playersTable thead th:nth-child(2), #playersTable tbody td:nth-child(2) {
        position: -webkit-sticky; position: sticky; left: 34px;
    }
    #playersTable thead th:nth-child(1), #playersTable thead th:nth-child(2) { z-index: 22; }
    #playersTable tbody td:nth-child(1), #playersTable tbody td:nth-child(2) { z-index: 5; background: #1d1611; }
    #playersTable tbody td:nth-child(2) { box-shadow: 2px 0 6px rgba(0,0,0,0.35); }
    #playersTable .user-cell { gap: 8px; }
    #playersTable .user-cell .avatar, #playersTable .user-cell .avatar img { width: 26px !important; height: 26px !important; }
    #playersTable .user-cell span { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
}

/* ===== (v695) Giriş butonu aşama metni (BootStatus, auth.js) =====
   Sessiz spinner yerine 'Giriş yapılıyor…' → 'Profil yükleniyor…' → 'Veriler yükleniyor…';
   ~12 sn'de 'Bağlantı yavaş, bekleniyor…' + aşama alt satırı. Uzun metin dar ekranda sarar,
   büyük harf/aralık kapatılır ki taşmasın; meşgulken soluk (0.5) değil okunur kalsın. */
.login-btn.is-busy { text-transform: none; letter-spacing: 0.3px; cursor: progress; }
.login-btn.is-busy:disabled { opacity: 0.85; }
.login-btn.is-busy:hover { transform: none; }
.login-btn .login-btn-phase {
    display: inline-flex; flex-direction: column; align-items: center;
    line-height: 1.3; white-space: normal; text-align: center; min-width: 0;
}
.login-btn .login-btn-sub { font-size: 11px; font-weight: 600; opacity: 0.75; letter-spacing: 0.2px; }

/* ===== (v695) Satış geçmişi şeridi (Mağaza 'Tamamlanan', Tekliflerim 'Kazandıklarım/Kaybedilenler')
   + başka oyuncunun profil çantası durum çipi: dokunmatik hedefler en az 44px, dar ekranda buton tam satır ===== */
.sold-history-banner .btn,
.profile-hist-chip .btn { min-height: 44px; }
.sold-history-banner > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
    .sold-history-banner .btn { width: 100%; justify-content: center; }
}

/* ===== (v696) Yüklü uygulama (PWA, ≤768px) — üst kenar =====
   Header sabit ve yüksekliği 51px + env(safe-area-inset-top). Sayfa kaydırmasında yapışan tablo başlıkları
   header'ın altına hizalanır (genel mobil kural 51px → çentikli iPhone'da inset kadar header'ın altında
   kalıyordu). Kendi kutusunda kayan Puanlama/Oyuncular tablolarının top:0 !important kuralı etkilenmez.
   Bildirim paneli / profil menüsü zemini ~opak (0.98) → iOS'ta yazıları bulanıklaştıran backdrop-filter kapalı. */
@media screen and (max-width: 768px) {
    body.pwa-standalone .data-table.sticky-head thead th {
        top: calc(51px + env(safe-area-inset-top, 0px));
    }
    #notifDropdown,
    .profile-dropdown {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    /* body'deki üst güvenli alan boşluğu kalktı → giriş ekranı ve "yenileniyor" hapı status bar'ın altına kendisi iner */
    body.pwa-standalone .login-wrapper {
        padding-top: calc(20px + env(safe-area-inset-top, 0px));
    }
    body.pwa-standalone .pull-to-refresh.visible {
        top: calc(16px + env(safe-area-inset-top, 0px));
    }
}

/* (v698) Mobil başlık: profil kutusu 52px ile 50px'lik başlık satırından taşıyordu (40px avatar + 10px iç boşluk + 2px çerçeve)
   → dikey iç boşluk 4px, kutu tam 50px. */
@media (max-width: 640px) {
    .user-info { padding-top: 4px; padding-bottom: 4px; }
}

/* ═══════════════ (v702) Uygulama kurulum rehberi — InstallGuide (js/modules/install.js) ═══════════════
   v700'ün çok kutulu/dağınık görünümü yerine sade 'kompakt kontrol listesi':
   kahraman (simge + başlık + tek fayda satırı) → zaman çizgili numaralı adımlar (her adımda dokunulacak gerçek
   tarayıcı düğmesinin küçük kopyası = 'çip') → sabit alt eylem alanı (tek ana düğme ya da ok şeridi).
   İkincil her şey tek açılır bölümde ('Sorun mu var?'); kutudaki TEK ince çizgi onun üstünde.
   Katman: .modal-overlay (mobilde 10000) — z-index merdiveni korunur. İçeride .modal / .modal-header /
   .modal-close / .btn KULLANILMAZ: ≤640 genel kuralları !important ile genişlik, köşe, animasyon ve tutamak
   ekler; .btn üzerine gelince kayar. Telefon: kenarlardan 8 px içeride yüzen alt sayfa (28 px köşe, tutamak yok);
   ≥641: ortada 460 px pencere, masaüstü görünümlerinde 760 px iki sütun (sağda QR paneli). */
.ig-overlay, .ig-ask {
    --ig-bg: #1a1410; --ig-bg-hi: #231a13; --ig-edge: rgba(205, 175, 125, .16);
    --ig-ink: #f3e6c8;                 /* başlık, kalın — --ig-bg üzerinde 14.7:1 */
    --ig-text: var(--text-primary, #e9ddc4);
    --ig-text-2: #b8a98b;              /* ikincil — 7.9:1 */
    --ig-eyebrow: #c2a46f;             /* üst satır / ipucu simgeleri — 7.7:1 */
    --ig-gold: var(--gold, #cdaf7d); --ig-gold-hi: #e8d09f; --ig-gold-lo: #bf9c66;
    --ig-line: rgba(205, 175, 125, .13); --ig-tint: rgba(205, 175, 125, .08); --ig-tint-2: rgba(205, 175, 125, .14);
    --ig-ok: #a9c77c; --ig-warn: #e0786c; --ig-ink-dark: #1a120b;
    --ig-ease: cubic-bezier(.2, .8, .2, 1);
    --ig-chip-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
    --ig-md-font: Roboto, 'Inter', system-ui, sans-serif;
}

/* ── Katman + kutu (telefon, varsayılan) ── */
.modal-overlay.ig-overlay {
    padding: 0; align-items: flex-end; justify-content: center;
    background: rgba(9, 7, 5, .66);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ig-sheet {
    --ig-sheet-sh: 0 0 0 1px var(--ig-edge), inset 0 1px 0 rgba(255, 236, 200, .06), 0 -10px 50px rgba(0, 0, 0, .55);
    position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0;
    width: calc(100% - 16px); margin: 0 8px calc(8px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 16px);   /* dvh desteklemeyen tarayıcı */
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 28px; overflow: hidden; outline: none; text-align: left;
    color: var(--ig-text); font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(180deg, var(--ig-bg-hi) 0, var(--ig-bg) 160px);
    box-shadow: var(--ig-sheet-sh);
    animation: igUp .32s var(--ig-ease);
}
/* Kutu programla odaklanır (tabindex=-1): genel [tabindex]:focus-visible halkası kutuyu çevrelemesin */
.ig-overlay .ig-sheet:focus, .ig-overlay .ig-sheet:focus-visible { outline: none; box-shadow: var(--ig-sheet-sh); }
/* ↑ rozet varken kutu onun altında kalsın (rozetin altı ile kutunun üstü arasında ≥ 12 px) */
.ig-has-up .ig-sheet {
    max-height: calc(100vh - 78px);
    max-height: calc(100dvh - 78px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}
.ig-main { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.ig-scroll {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 20px 20px 4px;
}
.ig-scroll::-webkit-scrollbar { display: none; }
.ig-foot { position: relative; z-index: 1; flex: none; padding: 8px 20px 16px; transition: box-shadow .2s; }
.ig-foot:empty { padding: 0 0 12px; }
.ig-foot.is-scrolled { box-shadow: 0 -12px 18px -14px rgba(0, 0, 0, .7); }   /* içerik yukarıda devam ediyor */
.ig-sheet b, .ig-ask b { font-weight: 650; color: var(--ig-ink); }
.ig-sheet svg, .ig-ask svg { flex: none; }

/* ── Kapat ── */
.ig-close {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    width: 44px; height: 44px; min-width: 44px; border: 0; padding: 0; background: none; border-radius: 50%;
    display: grid; place-items: center; color: #cbbd9f; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ig-close::before {
    content: ''; position: absolute; inset: 6px; border-radius: 50%;
    background: rgba(46, 37, 29, .94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: background .15s;
}
.ig-close:hover { color: var(--ig-ink); }
.ig-close:hover::before { background: rgba(62, 50, 40, .96); }
.ig-close:focus-visible { outline: none; box-shadow: none; }
.ig-close:focus-visible::before { box-shadow: 0 0 0 2px var(--ig-bg), 0 0 0 4px var(--ig-gold-hi); }
.ig-close svg { position: relative; width: 15px; height: 15px; }

/* ── Kahraman ── */
.ig-hero { display: flex; align-items: center; gap: 14px; padding: 0 0 18px 0; }
/* ✕ ile yalnız üst satır + başlık çakışır; fayda satırı ✕'in altından tam genişlikte akar (daha az satır) */
.ig-hero-t > .ig-eyebrow, .ig-hero-t > .ig-title { margin-right: 40px; }
.ig-icon { position: relative; flex: none; width: 56px; height: 56px; isolation: isolate; }
.ig-icon img {
    display: block; width: 100%; height: 100%; border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 236, 200, .08);
}
.ig-badge {
    position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; color: #1a73e8; box-shadow: 0 0 0 3px var(--ig-bg-hi);
}
.ig-badge svg { width: 15px; height: 15px; }
.ig-badge.ok { background: #8fad5a; color: #0f1709; }
.ig-hero-t { min-width: 0; }
/* BÜYÜK HARF YOK: lang=tr 'iPhone'u 'İPHONE' yapar */
.ig-eyebrow { margin: 0 0 3px; font-size: 12.5px; line-height: 1.3; font-weight: 600; letter-spacing: .02em; color: var(--ig-eyebrow); }
.ig-title {
    margin: 0; font-family: 'Spectral', Georgia, serif; font-size: 23px; line-height: 1.12; font-weight: 700;
    letter-spacing: .2px; color: var(--ig-ink); overflow-wrap: anywhere;
    text-wrap: balance;   /* dar ekranda 'Önce Chrome'da / aç' değil 'Önce / Chrome'da aç' */
}
.ig-benefit { margin: 5px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--ig-text-2); }
.ig-benefit, .ig-t, .ig-h, .ig-tips li > span, .ig-status > span { text-wrap: pretty; }   /* tek kelimelik yetim satır olmasın */
.ig-nw { white-space: nowrap; }   /* 'seçeneğine dokun', 'tam aşağıda' gibi öbekler bölünmez */
/* Ortalı kahraman (yüklendi / zaten yüklü) */
/* ✕ yalnızca simgenin sağ üstüyle aynı yükseklikte → başlık/fayda satırı tam genişlik (dar 'her / şey' kırılması olmasın) */
.ig-center .ig-hero { flex-direction: column; text-align: center; gap: 14px; padding: 8px 0 0; }
.ig-center .ig-hero-t { width: 100%; }
.ig-center .ig-hero-t > .ig-title { margin-right: 0; }
.ig-center .ig-benefit { text-wrap: balance; }
.ig-center .ig-icon { width: 76px; height: 76px; }
.ig-center .ig-icon img { border-radius: 19px; }
.ig-glow {
    position: absolute; inset: -26px; z-index: -1; border-radius: 50%;
    background: radial-gradient(circle, rgba(205, 175, 125, .28), rgba(205, 175, 125, 0) 68%);
}
.ig-center .ig-badge { width: 30px; height: 30px; right: -8px; bottom: -8px; box-shadow: 0 0 0 4px var(--ig-bg-hi); }
.ig-center .ig-badge svg { width: 16px; height: 16px; }
.ig-center .ig-title { font-size: 26px; }
.ig-center .ig-benefit { font-size: 14px; }
.ig-center .ig-notif, .ig-center .ig-status { margin-top: 20px; text-align: left; }

/* ── Durum satırı (kutusuz: simge + metin) ── */
.ig-status { display: flex; align-items: flex-start; gap: 8px; margin: -6px 0 16px; font-size: 13px; line-height: 1.45; color: var(--ig-text-2); }
.ig-status svg { width: 16px; height: 16px; margin-top: 1px; }
.ig-status.ok svg { color: var(--ig-ok); }
.ig-status.info svg { color: var(--ig-eyebrow); }
.ig-status.warn svg { color: var(--ig-warn); }
.ig-status.is-after { margin: 20px 0 4px; }   /* masaüstü Firefox/diğer: özellik listesinin altında */

/* ── Adım listesi (zaman çizgisi) ── */
.ig-list { list-style: none; margin: 0; padding: 2px 0 0; }
.ig-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding-bottom: 20px; }
.ig-step::before {
    content: ''; position: absolute; left: 13px; top: 32px; bottom: 0; width: 2px; border-radius: 2px;
    background: rgba(205, 175, 125, .17);
}
.ig-step:last-child { padding-bottom: 6px; }
.ig-step:last-child::before { display: none; }
.ig-n {
    position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    font-size: 13px; font-weight: 700; color: var(--ig-gold-hi); background: var(--ig-bg);
    box-shadow: inset 0 0 0 1.5px rgba(205, 175, 125, .5);
}
.ig-step:first-child .ig-n {   /* 'buradan başla' */
    background: linear-gradient(180deg, var(--ig-gold-hi), var(--ig-gold-lo)); color: var(--ig-ink-dark);
    box-shadow: 0 0 0 4px rgba(205, 175, 125, .12);
}
.ig-t { padding-top: 2px; font-size: 15px; line-height: 24px; font-weight: 500; color: var(--ig-text); overflow-wrap: anywhere; }
.ig-h { margin-top: 4px; font-size: 12.5px; line-height: 20px; color: var(--ig-text-2); overflow-wrap: anywhere; }
.ig-end .ig-n { background: rgba(143, 173, 90, .15); color: var(--ig-ok); box-shadow: none; }
.ig-end .ig-n svg { width: 14px; height: 14px; }
.ig-end .ig-t { padding-top: 4px; font-size: 13.5px; line-height: 20px; color: var(--ig-text-2); }

/* ── Gerçek tarayıcı düğmelerinin kopyaları (satır içi çip; süs — metin karşılığı aria-label'da) ── */
.ig-x {
    position: relative; top: -1px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 26px; padding: 0 10px; margin: 0 2px; border-radius: 9px; vertical-align: middle; white-space: nowrap;
    font: 600 13px/1 var(--ig-chip-font); color: #fff; background: #2c2c2e;
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14);
}
.ig-x svg { width: 15px; height: 15px; }
.ig-x-c { width: 28px; height: 28px; padding: 0; border-radius: 50%; }
.ig-x-c svg { width: 16px; height: 16px; }
.ig-x-glass {   /* iOS 26 ••• (cam) */
    background: linear-gradient(180deg, rgba(128, 128, 136, .5), rgba(92, 92, 98, .4));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 .5px rgba(255, 255, 255, .18), 0 2px 6px rgba(0, 0, 0, .35);
}
.ig-x-tint { color: #4aa3ff; }   /* klasik Safari'nin mavi Paylaş simgesi */
.ig-x-ios { padding: 0 9px 0 11px; gap: 10px; }   /* menü satırı: yazı + sağda simge */
.ig-x-blue { color: #4aa3ff; background: rgba(10, 132, 255, .15); box-shadow: none; }
.ig-x-sw { width: 32px; height: 19px; padding: 0; border-radius: 999px; background: #34c759; box-shadow: none; }
.ig-x-sw::after {
    content: ''; position: absolute; right: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.ig-x-md {   /* Android (Material) */
    background: #303134; color: #e8eaed; font-family: var(--ig-md-font); font-weight: 500;
    border-radius: 8px; gap: 8px; padding: 0 10px 0 8px; box-shadow: none;
}
.ig-x-md.ig-x-c { padding: 0; border-radius: 50%; }
.ig-x-mdbtn { background: #a8c7fa; color: #062e6f; border-radius: 999px; box-shadow: none; font-family: var(--ig-md-font); padding: 0 12px; }
.ig-x-mac { background: #0a84ff; color: #fff; border-radius: 6px; box-shadow: none; padding: 0 12px; height: 24px; }
.ig-x-plain { background: #262626; color: #f5f5f5; }
.ig-x-mini { height: 20px; min-width: 22px; padding: 0 5px; border-radius: 6px; font-size: 11px; }
.ig-x-mini svg { width: 13px; height: 13px; }
/* Yalnızca ok ile eşleşen 1. adım çipi: sabit altın halka + yavaş nabız */
.ig-x-hot { margin: 0 6px; box-shadow: 0 0 0 2px var(--ig-bg), 0 0 0 3.5px var(--ig-gold); }
.ig-x-hot::after {
    content: ''; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none;
    animation: igRing 1.9s ease-out infinite;
}

/* ── Artılar (telefon prompt/wait) + özellikler (masaüstü) ── */
.ig-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 4px; }
.ig-perk {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 16px;
    background: var(--ig-tint); font-size: 12.5px; font-weight: 600; line-height: 1.25; color: #dccca8; text-align: center;
}
.ig-perk svg { width: 22px; height: 22px; color: var(--ig-gold-hi); }
.ig-feats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.ig-feats li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.35; color: var(--ig-text); }
.ig-feats i {   /* yalnızca SVG kabı (FA değil) */
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(205, 175, 125, .12); color: var(--ig-gold); font-style: normal;
}
.ig-feats i svg { width: 17px; height: 17px; }
.ig-feats small { display: block; margin-top: 1px; font-size: 13px; color: var(--ig-text-2); }

/* ── Bildirim bloğu (yüklendi / zaten yüklü) ── */
.ig-notif { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border-radius: 20px; background: var(--ig-tint); }
.ig-bell { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(205, 175, 125, .16); color: var(--ig-gold-hi); }
.ig-bell svg { width: 22px; height: 22px; }
.ig-notif > div > b { display: block; font-size: 15px; font-weight: 650; color: var(--ig-ink); margin-bottom: 2px; }
.ig-notif > div > span { display: block; font-size: 13px; line-height: 1.45; color: var(--ig-text-2); }

/* ── Açılır bölüm (ikincil içeriğin TEK yeri; kutudaki tek ince çizgi) ── */
.ig-more { margin-top: 4px; border-top: 1px solid var(--ig-line); }
.ig-more > summary {
    display: block; list-style: none; cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent;
    font-size: 14px; font-weight: 600; color: var(--ig-text-2);
}
.ig-more > summary::-webkit-details-marker { display: none; }
.ig-more > summary::marker { content: ''; }
.ig-more-s { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 2px; }
.ig-more > summary:hover { color: var(--ig-ink); }
.ig-more > summary:focus-visible { outline: 2px solid var(--ig-gold-hi); outline-offset: 2px; box-shadow: none; }
.ig-more > summary svg { width: 18px; height: 18px; transition: transform .2s var(--ig-ease); }
.ig-more[open] > summary svg { transform: rotate(180deg); }
.ig-more-b { padding: 0 0 4px; }
.ig-tips { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.ig-tips li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 21px; color: #cdbfa3; overflow-wrap: anywhere; }
.ig-tips li > svg { width: 16px; height: 16px; margin-top: 3px; color: var(--ig-eyebrow); }
.ig-tips .ig-x { top: 0; }

/* ── Bağlantı satırı ── */
.ig-link { display: flex; gap: 8px; margin: 12px 0 4px; min-width: 0; }
.ig-more-b > .ig-link { margin: 0 0 12px; }
.ig-link input {
    flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; border-radius: 12px;
    background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(205, 175, 125, .13);
    color: var(--ig-text); font: 500 16px 'Inter', system-ui, sans-serif;   /* 16 px: iOS odakta yakınlaştırmaz */
}
.ig-link input:focus-visible { outline: 2px solid var(--ig-gold-hi); outline-offset: 1px; box-shadow: inset 0 0 0 1px rgba(205, 175, 125, .13); }
.ig-copy {
    flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px;
    cursor: pointer; font: 650 14px 'Inter', system-ui, sans-serif; color: #f0dcb2; background: var(--ig-tint-2);
    -webkit-tap-highlight-color: transparent; transition: background .15s;
}
.ig-copy svg { width: 16px; height: 16px; }
@media (hover: hover) { .ig-copy:hover { background: rgba(205, 175, 125, .19); } }

/* ── Düğmeler (ana düğmeler Başlık Düzeni: 'Uygulamayı Yükle'; diğerleri cümle düzeni) ── */
.ig-primary, .ig-tonal {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; cursor: pointer;
    text-decoration: none; font-family: 'Inter', system-ui, sans-serif; line-height: 1.2; text-align: center;
    -webkit-tap-highlight-color: transparent; transition: transform .12s, filter .12s, background .15s;
}
.ig-primary, .ig-primary:visited {
    min-height: 54px; padding: 0 20px; border-radius: 16px; font-size: 16px; font-weight: 700; letter-spacing: .01em;
    color: var(--ig-ink-dark);
    background: linear-gradient(180deg, #ecd6a8 0, #cdaf7d 55%, #bd9a63 100%);
    box-shadow: 0 12px 26px -10px rgba(205, 175, 125, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.ig-primary svg { width: 20px; height: 20px; }
@media (hover: hover) {
    .ig-primary:hover { filter: brightness(1.04); }
    .ig-tonal:hover { background: rgba(205, 175, 125, .19); }
}
.ig-primary:active, .ig-tonal:active { transform: translateY(1px); filter: brightness(.96); }
.ig-primary:focus-visible, .ig-tonal:focus-visible, .ig-copy:focus-visible, .ig-textbtn:focus-visible, .ig-soft:focus-visible {
    outline: none; box-shadow: 0 0 0 3px var(--ig-bg), 0 0 0 5px var(--ig-gold-hi);
}
.ig-primary[disabled] { cursor: progress; opacity: .75; filter: saturate(.6); transform: none; }
/* Meşgul (Hazırlanıyor… / Bekleniyor… / Açılıyor…): soluk-gri değil, altın kalır; döndürücü durumu anlatır */
.ig-primary[disabled][aria-busy="true"] { opacity: .92; filter: saturate(.85); }
.ig-tonal { min-height: 52px; padding: 0 18px; border-radius: 16px; font-size: 15px; font-weight: 650; color: #f0dcb2; background: var(--ig-tint-2); }
.ig-tonal svg { width: 18px; height: 18px; }
.ig-textbtn {
    display: block; width: 100%; min-height: 44px; margin-top: 4px; border: 0; border-radius: 12px; background: none; cursor: pointer;
    font: 600 14px 'Inter', system-ui, sans-serif; color: var(--ig-text-2); -webkit-tap-highlight-color: transparent;
}
.ig-textbtn:hover { color: var(--ig-ink); }
.ig-footnote { margin: 9px 0 0; text-align: center; font-size: 12.5px; line-height: 1.4; color: var(--ig-text-2); text-wrap: balance; }
.ig-spin {
    display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(26, 18, 11, .25); border-top-color: var(--ig-ink-dark);
    animation: igSpin .8s linear infinite;
}
.ig-qr .ig-spin { width: 22px; height: 22px; border-color: rgba(26, 18, 11, .15); border-top-color: #cdaf7d; }

/* ── Oklar ── */
/* ↓ şerit (alt eylem alanında): iOS 26 •••, klasik Paylaş (ortada), Samsung ≡, Edge-iOS ≡ */
.ig-rail {
    display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 6px 6px 16px; border-radius: 18px;
    background: var(--ig-tint); color: #e6d4ae; font-size: 13.5px; font-weight: 600; line-height: 1.35;
}
.ig-rail > span:first-child { flex: 1; min-width: 0; }
/* ortalı şerit: [metin] (↓) [metin] — ok tam ortada, klasik Safari'nin Paylaş düğmesinin üstünde */
.ig-rail.is-center { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 10px; padding: 6px 12px; }
.ig-rail.is-center > span:first-child { text-align: right; }
.ig-rail.is-center > span:last-child { text-align: left; }
.ig-rail .ig-x { top: 0; }
.ig-ptr {   /* flex:none — elipse gerilmesin */
    flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ig-ink-dark);
    background: linear-gradient(180deg, var(--ig-gold-hi), var(--ig-gold-lo)); box-shadow: 0 8px 18px -6px rgba(205, 175, 125, .6);
    animation: igBobDown 1.5s ease-in-out infinite;
}
.ig-ptr svg { width: 20px; height: 20px; }
/* ↑ rozet (kutunun üstünde, tarayıcının ⋮ / ••• / Paylaş düğmesinin hizasında). Dokunuş YUTULUR:
   _onClick yalnızca hedef katmanın kendisiyse kapatır — rozete dokunmak rehberi kapatmaz. */
.ig-ptr-up {
    position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 10px; z-index: 2;
    display: flex; align-items: center; gap: 8px; pointer-events: auto;
}
.ig-ptr-up[hidden] { display: none; }
.ig-ptr-up .ig-ptr { animation-name: igBobUp; }
.ig-ptr-lbl {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 5px; border-radius: 999px;
    background: rgba(26, 20, 16, .94); box-shadow: inset 0 0 0 1px rgba(205, 175, 125, .38), 0 6px 18px rgba(0, 0, 0, .4);
    color: var(--ig-ink); font: 600 13px 'Inter', system-ui, sans-serif; white-space: nowrap;
}
.ig-ptr-lbl .ig-x { top: 0; margin: 0; }

/* Masaüstü QR paneli yalnızca ≥641'de */
.ig-side { display: none; }

/* ── Masaüstü / tablet (≥641): ortada pencere; masaüstü görünümlerinde iki sütun + QR paneli ── */
@media (min-width: 641px) {
    .modal-overlay.ig-overlay { align-items: center; padding: 24px; background: rgba(9, 6, 4, .70); }
    .ig-sheet {
        --ig-sheet-sh: 0 0 0 1px var(--ig-edge), inset 0 1px 0 rgba(255, 236, 200, .06), 0 30px 80px rgba(0, 0, 0, .6);
        width: min(460px, 100%); margin: 0;
        max-height: min(calc(100vh - 48px), 760px);
        max-height: min(calc(100dvh - 48px), 760px);
        animation: igPop .28s var(--ig-ease);
    }
    .ig-has-up .ig-sheet { max-height: min(calc(100vh - 120px), 760px); max-height: min(calc(100dvh - 120px), 760px); }
    .ig-ptr-up { right: 24px; top: 12px; }
    .ig-scroll { padding: 28px 28px 4px; }
    .ig-foot { padding: 10px 28px 28px; }
    .ig-foot:empty { padding: 0 0 20px; }
    .ig-hero { padding: 0 0 20px 0; }
    .ig-icon { width: 60px; height: 60px; }
    .ig-icon img { border-radius: 15px; }
    .ig-title { font-size: 28px; }
    .ig-benefit { font-size: 14.5px; }
    .ig-link input { font-size: 13px; }
    /* iki sütun: solda içerik + eylem, sağda tam boy QR paneli */
    .ig-sheet.ig-wide { width: min(760px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr); }
    .ig-wide .ig-scroll { padding: 36px 36px 8px; }
    .ig-wide .ig-foot { padding: 12px 36px 32px; }
    .ig-side {
        display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 0; overflow-y: auto;
        padding: 60px 24px 28px;   /* 60 px: ✕ QR'ın üstüne binmesin */
        background: rgba(255, 240, 214, .035); box-shadow: inset 1px 0 0 rgba(205, 175, 125, .10);
    }
    /* Masaüstü 'zaten yüklü' (iki sütun): ortalı içerik sütunda dikey ortalansın (altta boş delik kalmasın);
       auto kenar boşlukları taşmada 0'a iner → içerik üstten kırpılmaz */
    .ig-wide.ig-center .ig-scroll { display: flex; flex-direction: column; }
    .ig-wide.ig-center .ig-scroll > :first-child { margin-top: auto; }
    .ig-wide.ig-center .ig-scroll > :last-child { margin-bottom: auto; }
    .ig-side-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 650; color: var(--ig-ink); }
    .ig-side-h svg { width: 17px; height: 17px; color: var(--ig-gold); }
    .ig-qr {
        flex: none; width: 172px; height: 172px; margin-top: 16px; padding: 12px; border-radius: 18px; background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .35); display: grid; place-items: center;
    }
    .ig-qr svg { display: block; width: 100%; height: 100%; }
    .ig-qr-txt { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--ig-text-2); text-wrap: balance; }
    /* Bağlantı alt alta: adres tam görünsün (yan yana 120 px'lik kutuda 'https://destan.k…' diye kesiliyordu) */
    .ig-side .ig-link { width: 100%; margin: 18px 0 0; flex-direction: column; }
    .ig-side .ig-link input { flex: none; width: 100%; padding: 0 10px; font-size: 12px; text-align: center; text-overflow: ellipsis; }
    .ig-side .ig-copy { justify-content: center; width: 100%; }
}
/* Dar masaüstü penceresi: QR içeriğin altına */
@media (min-width: 641px) and (max-width: 719px) {
    .ig-sheet.ig-wide { width: min(460px, 100%); grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
    .ig-side { padding: 20px 28px 24px; box-shadow: inset 0 1px 0 rgba(205, 175, 125, .10); }
    .ig-qr { width: 132px; height: 132px; }
    .ig-side .ig-link { flex-direction: row; }
    .ig-side .ig-link input { flex: 1; width: auto; font-size: 13px; text-align: left; }
    .ig-side .ig-copy { width: auto; }
}

/* ── Küçük / kısa telefonlar ── */
@media (max-width: 360px) {
    .ig-scroll, .ig-foot { padding-left: 16px; padding-right: 16px; }
    .ig-hero { gap: 12px; }
    .ig-icon { width: 50px; height: 50px; }
    .ig-icon img { border-radius: 13px; }
    .ig-title { font-size: 21px; }
    /* ✕ dairesi metin kutusuna ~32 px girer; 34 px yeter → 'Önce Safari'de aç' 320 px'te tek satır */
    .ig-hero-t > .ig-eyebrow, .ig-hero-t > .ig-title { margin-right: 34px; }
    .ig-step { column-gap: 12px; }
    .ig-t { font-size: 14.5px; }
    /* 'Tek dokunuş' ortadaki kutuda iki satıra bölünmesin (üç kutu eşit kalsın) */
    .ig-perks { gap: 6px; }
    .ig-perk { padding: 14px 4px 12px; font-size: 12px; }
}
@media (max-width: 640px) and (max-height: 600px) {
    .ig-benefit.is-opt { display: none; }
    .ig-hero { padding-bottom: 14px; }
    .ig-step { padding-bottom: 14px; }
    .ig-icon { width: 48px; height: 48px; }
    .ig-title { font-size: 21px; }
    .ig-scroll { padding-top: 16px; }
}

/* ── Hareket ── */
@keyframes igUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes igPop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes igBobDown { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@keyframes igBobUp { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-4px); } }
@keyframes igSpin { to { transform: rotate(360deg); } }
@keyframes igRing { 0% { box-shadow: 0 0 0 0 rgba(205, 175, 125, .55); } 75%, 100% { box-shadow: 0 0 0 10px rgba(205, 175, 125, 0); } }
@keyframes igBellRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }

/* ── Yüklü uygulamada tek seferlik 'Bildirimleri açalım mı?' kartı (#igNotifCard; PWA kart katmanı 9985) ── */
.ig-ask {
    position: fixed; left: 12px; right: 12px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 9985;
    max-width: 440px; margin: 0 auto; padding: 16px 16px 14px; border-radius: 24px; text-align: left;
    color: var(--ig-text); font-family: 'Inter', system-ui, sans-serif; line-height: 1.45; -webkit-font-smoothing: antialiased;
    background: linear-gradient(180deg, #251b14, #18120e);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(205, 175, 125, .2);
    animation: igUp .35s var(--ig-ease);
}
.ig-ask-top { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.ig-ask .ig-bell { position: relative; }
.ig-ask .ig-bell svg { width: 20px; height: 20px; }
.ig-ask .ig-bell::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(205, 175, 125, .35);
    animation: igBellRing 2.2s ease-out infinite; pointer-events: none;
}
.ig-ask-top b { display: block; font-size: 15.5px; font-weight: 650; color: var(--ig-ink); }
.ig-ask-top span:not(.ig-bell) { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ig-text-2); }
.ig-ask-btns { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 14px; }
.ig-ask-btns > * { min-height: 46px; border-radius: 14px; font-size: 14.5px; }
.ig-ask-btns .ig-primary { padding: 0 12px; gap: 8px; }
.ig-ask-btns .ig-primary svg { width: 17px; height: 17px; }
.ig-soft {
    border: 0; cursor: pointer; background: rgba(255, 255, 255, .05); color: var(--ig-text);
    font: 600 14.5px 'Inter', system-ui, sans-serif; -webkit-tap-highlight-color: transparent; transition: background .15s;
}
@media (hover: hover) { .ig-soft:hover { background: rgba(255, 255, 255, .09); } }

/* ── Azaltılmış hareket: kutu/ok/nabız/zil halkası durur; döndürücü yavaşlar (meşgul durumu okunur kalsın).
   Genel '*' kuralı süreleri !important ile 0.01 ms'ye indirir → döndürücü için sınıf seçiciyle geri alınır. */
@media (prefers-reduced-motion: reduce) {
    .ig-sheet, .ig-ptr, .ig-x-hot::after, .ig-ask, .ig-ask .ig-bell::after { animation: none !important; }
    .ig-spin { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; }
    .ig-more > summary svg, .ig-foot, .ig-primary, .ig-tonal, .ig-copy, .ig-soft { transition: none; }
    .ig-ask .ig-bell::after { opacity: .5; }   /* sabit halka */
}

/* Giriş ekranı bağlantısı — yüklü uygulamada gizli */
.login-install-wrap { display: flex; justify-content: center; margin-top: 10px; }
.login-install-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; max-width: 100%; padding: 10px 16px;   /* giriş kutusu 0.97 ölçekli olabilir → görünür ≥ 44 px */
    border-radius: 999px; border: 1px solid rgba(205, 175, 125, 0.28);
    background: rgba(205, 175, 125, 0.05); color: var(--accent-cyan, #cdaf7d);
    font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.login-install-link:hover { background: rgba(205, 175, 125, 0.12); border-color: rgba(205, 175, 125, 0.5); }
.login-install-link:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 3px rgba(205, 175, 125, 0.55)); }
body.pwa-standalone .login-install-wrap { display: none; }
@media (display-mode: standalone) { .login-install-wrap { display: none; } }

/* Eski otomatik PWA kartı: düğmeler alt alta, dokunma hedefi ≥ 44 px ('Nasıl?' rehberi açar) */
.pwa-install-prompt .pwa-text { min-width: 0; overflow-wrap: anywhere; }
.pwa-install-prompt .pwa-btns { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.pwa-install-prompt button { min-height: 44px; }
.pwa-install-prompt .pwa-kbd { font-weight: 800; letter-spacing: 1px; color: #fff; }

/* 'Sonra' / 'Kapat' okunur kalsın (0.4 beyaz koyu zeminde zayıftı) */
.pwa-install-prompt .pwa-btn-dismiss { color: rgba(255, 255, 255, 0.66); }
