/* Cute, Calm & Cozy Retro RPG Theme */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');



:root {

    --bg-dark: #0b0f17;

    --panel-bg: #151b26;

    --panel-border: #232d3f;

    --slot-bg: #1c2433;

    --slot-hover: #263246;

    --slot-border: #334155;

    --text-primary: #f1f5f9;

    --text-muted: #94a3b8;

    --gold: #fde047;

    --hp-green: #22c55e;

    --exp-blue: #a855f7;

    --leaf-green: #4ade80;

}



* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

    user-select: none;

    -webkit-user-select: none;

}



.hidden,

#phaser-canvas-container.hidden,

#town-hub-container.hidden,

#btn-battle-return-town.hidden {

    display: none !important;

}



body {

    background-color: var(--bg-dark);

    color: var(--text-primary);

    font-family: 'VT323', monospace;

    font-size: 19px;

    height: 100vh;

    overflow: hidden;

    display: flex;

    justify-content: center;

    align-items: center;

    image-rendering: pixelated;

}



/* Master Layout */

#game-container {

    width: 1200px;

    height: 820px;

    max-width: 98vw;

    max-height: 98vh;

    background: var(--panel-bg);

    border: 3px solid var(--panel-border);

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.75), inset 0 0 20px rgba(0, 0, 0, 0.35);

    position: relative;

    overflow: hidden;

}



/* Header Bar */

#header-bar {

    height: 64px;

    background: #111722;

    border-bottom: 2px solid var(--panel-border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 16px;

    overflow: hidden;

    position: relative;

    z-index: 50;

}



.header-left {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 1;

    min-width: 0;

}



.header-center {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;

}



.header-right {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

    margin-left: auto;

}



/* Dynamic Header Adaptivity: Prevent UI Collision & Overflow */

#game-container.mode-battle #btn-header-tod {

    display: none !important;

}



/* .header-center is now shared in battle mode */



#game-container.mode-town #btn-header-analytics {

    display: none !important;

}



.stage-badge {

    background: #1e293b;

    border: 1px solid #334155;

    padding: 6px 16px;

    border-radius: 8px;

    font-size: 21px;

    font-weight: bold;

    color: #e2e8f0;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

}



.stage-zone-name {

    color: #93c5fd;

    font-weight: bold;

}



.wave-num {

    color: #fde047;

    font-size: 22px;

}



.wave-record-tag {

    display: inline-block;

    background: rgba(245, 158, 11, 0.18);

    border: 1px solid #d97706;

    color: #fcd34d;

    font-size: 16px;

    padding: 1px 7px;

    border-radius: 4px;

    margin-left: 8px;

    vertical-align: middle;

}



.boss-warning {

    color: #f87171;

    animation: blink 0.8s infinite alternate;

}



@keyframes blink {

    from { opacity: 1; }

    to { opacity: 0.45; }

}



.wave-progress-container {

    width: 140px;

    height: 11px;

    background: #0f172a;

    border: 1px solid #334155;

    border-radius: 6px;

    overflow: hidden;

}



#wave-progress {

    height: 100%;

    width: 20%;

    background: linear-gradient(90deg, #38bdf8, #818cf8);

    transition: width 0.3s ease;

}



.gold-pill {

    background: #232213;

    border: 1px solid #854d0e;

    color: var(--gold);

    font-size: 20px;

    font-weight: bold;

    padding: 4px 14px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    gap: 7px;

}



.gem-pill {

    background: #172554;

    border: 1px solid #3b82f6;

    color: #93c5fd;

    font-size: 20px;

    font-weight: bold;

    padding: 4px 14px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    gap: 7px;

}



.blacksmith-toggle-btn {

    background: linear-gradient(180deg, #ea580c, #c2410c);

    border: 1px solid #fdba74;

    color: #fff;

    font-family: 'VT323', monospace;

    font-size: 19px;

    font-weight: bold;

    padding: 5px 14px;

    border-radius: 8px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 6px;

    transition: all 0.2s ease;

    box-shadow: 0 4px 10px rgba(194, 65, 12, 0.4);

}



.blacksmith-toggle-btn:hover {

    background: linear-gradient(180deg, #f97316, #ea580c);

    transform: translateY(-1px);

    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.5);

}



.blacksmith-toggle-btn:active {

    transform: translateY(1px);

}



.ui-icon {

    width: 18px;

    height: 18px;

    vertical-align: middle;

    image-rendering: pixelated;

    display: inline-block;

    object-fit: contain;

}



.ui-icon-sm {

    width: 15px;

    height: 15px;

}



.ui-icon-lg {

    width: 22px;

    height: 22px;

}



.hero-vitals {

    display: flex;

    flex-direction: column;

    gap: 4px;

    width: 220px;

}



.vital-bar-wrap {

    height: 15px;

    background: #0f172a;

    border: 1px solid #334155;

    border-radius: 5px;

    position: relative;

    overflow: hidden;

}



.vital-bar-fill {

    height: 100%;

    transition: width 0.15s ease-out;

}



#player-hp-fill {

    background: linear-gradient(90deg, #10b981, #34d399);

    width: 100%;

}



#player-exp-fill {

    background: linear-gradient(90deg, #8b5cf6, #c084fc);

    width: 0%;

}



.vital-text {

    position: absolute;

    width: 100%;

    text-align: center;

    font-size: 13px;

    line-height: 15px;

    color: #fff;

    font-weight: bold;

    text-shadow: 1px 1px 2px #000;

}



/* Main Content Grid */

#main-content {

    flex: 1;

    display: grid;

    grid-template-columns: 280px 1fr 310px;

    overflow: hidden;

}



/* Left Panel: Hero & Equipment */

#left-panel {

    background: #131924;

    border-right: 2px solid var(--panel-border);

    padding: 14px;

    display: flex;

    flex-direction: column;

    gap: 12px;

    overflow-y: auto;

}



.panel-title {

    font-size: 20px;

    font-weight: bold;

    color: #cbd5e1;

    letter-spacing: 0.5px;

    border-bottom: 1px solid #232d3f;

    padding-bottom: 6px;

    display: flex;

    align-items: center;

    gap: 6px;

}



.equipment-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    grid-gap: 10px;

    justify-items: center;

    padding: 12px 6px;

    background: #0f1520;

    border-radius: 10px;

    border: 1px solid #232d3f;

}



#slot-helmet { grid-column: 2; }

#slot-weapon { grid-column: 1; }

#slot-armor  { grid-column: 2; }

#slot-shield { grid-column: 3; }

#slot-ring   { grid-column: 1; }

#slot-amulet { grid-column: 3; }



.equip-slot, .inv-slot {

    width: 62px;

    height: 62px;

    background: var(--slot-bg);

    border: 2px solid var(--slot-border);

    border-radius: 8px;

    display: flex;

    justify-content: center;

    align-items: center;

    position: relative;

    cursor: pointer;

    transition: transform 0.1s, border-color 0.2s, background 0.2s;

}



.equip-slot:hover, .inv-slot:hover {

    background: var(--slot-hover);

    transform: translateY(-2px);

}



.slot-icon {

    width: 44px;

    height: 44px;

    image-rendering: pixelated;

    pointer-events: none;

}



.slot-placeholder {

    font-size: 13px;

    color: #475569;

    text-align: center;

    pointer-events: none;

}



.slot-lvl-badge {

    position: absolute;

    bottom: 2px;

    right: 4px;

    font-size: 13px;

    font-weight: bold;

    color: var(--gold);

    text-shadow: 1px 1px 1px #000;

}



.item-stack-badge {

    position: absolute;

    bottom: 2px;

    right: 3px;

    background: rgba(15, 23, 42, 0.92);

    border: 1px solid #475569;

    border-radius: 4px;

    padding: 0 4px;

    font-size: 13px;

    font-weight: bold;

    color: #fde047;

    text-shadow: 1px 1px 1px #000;

    line-height: 14px;

    pointer-events: none;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);

    z-index: 2;

}



/* Rarity Glows */

.rarity-common { border-color: #64748b !important; }

.rarity-uncommon { border-color: #4ade80 !important; box-shadow: inset 0 0 8px rgba(74, 222, 128, 0.2); }

.rarity-rare { border-color: #38bdf8 !important; box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.25); }

.rarity-epic { border-color: #c084fc !important; box-shadow: inset 0 0 12px rgba(192, 132, 252, 0.35); }

.rarity-legendary { border-color: #fde047 !important; box-shadow: inset 0 0 15px rgba(253, 224, 71, 0.45); }



/* Stats List */

#player-stats-list {

    background: #0f1520;

    border: 1px solid #232d3f;

    border-radius: 8px;

    padding: 10px 14px;

    display: flex;

    flex-direction: column;

    gap: 4px;

}



.stat-row {

    display: flex;

    justify-content: space-between;

    font-size: 17px;

    color: var(--text-muted);

}



.stat-row strong {

    color: #f8fafc;

}



/* Center Panel */

#center-panel {

    display: flex;

    flex-direction: column;

    overflow: hidden;

}



#phaser-canvas-container {

    flex: 1;

    width: 100%;

    height: 100%;

    min-height: 0;

    position: relative;

    background: #0f172a;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

}



#bottom-inventory-panel {

    height: 250px;

    background: #111722;

    border-top: 2px solid var(--panel-border);

    padding: 12px 18px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.inventory-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.inventory-header small {

    color: #64748b;

    font-size: 14px;

}



#inventory-grid {

    display: grid;

    grid-template-columns: repeat(8, 56px);

    grid-gap: 8px;

    overflow-y: auto;

    padding-bottom: 4px;

}



#inventory-grid .inv-slot {

    width: 56px;

    height: 56px;

}



#inventory-grid .inv-slot.empty {

    border-color: #1e293b;

    background: #131924;

    cursor: default;

}



/* Right Panel: Core Attributes */

#right-panel {

    background: #131924;

    border-left: 2px solid var(--panel-border);

    padding: 14px;

    display: flex;

    flex-direction: column;

    gap: 12px;

    overflow-y: auto;

}



.stat-points-badge {

    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 179, 8, 0.25));

    border: 1.5px solid #f59e0b;

    border-radius: 8px;

    padding: 8px 12px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 15px;

    color: #fef08a;

    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);

}



.stat-points-badge strong {

    font-size: 18px;

    color: #ffffff;

    background: #d97706;

    padding: 2px 9px;

    border-radius: 12px;

    border: 1px solid #fef08a;

}



#attributes-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.attribute-card {

    background: #192231;

    border: 1.5px solid #2b394e;

    border-radius: 8px;

    padding: 11px 12px;

    display: flex;

    align-items: center;

    gap: 12px;

    cursor: help;

    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;

}



.attribute-card:hover {

    border-color: #38bdf8;

    background: #1e293b;

    transform: translateX(2px);

    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);

}



.attribute-card.has-points {

    border-color: #3b82f6;

}



.attr-icon {

    font-size: 26px;

    width: 36px;

    text-align: center;

    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));

}



.attr-details {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 2px;

}



.attr-title-row {

    display: flex;

    align-items: baseline;

    gap: 6px;

}



.attr-title {

    font-size: 16px;

    font-weight: bold;

    color: #f8fafc;

}



.attr-score {

    color: #fde047;

    font-size: 15px;

    font-weight: bold;

}



.attr-desc {

    font-size: 13px;

    color: #94a3b8;

}



.attr-bonus-preview {

    font-size: 12px;

    color: #4ade80;

    font-weight: 500;

}



.attr-btn {

    background: #1e293b;

    border: 1.5px solid #475569;

    color: #64748b;

    padding: 6px 12px;

    border-radius: 6px;

    font-family: inherit;

    font-size: 15px;

    font-weight: bold;

    cursor: not-allowed;

    transition: all 0.18s;

    user-select: none;

    min-width: 48px;

    text-align: center;

}



.attr-btn.can-spend {

    background: linear-gradient(135deg, #2563eb, #1d4ed8);

    border-color: #60a5fa;

    color: #ffffff;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);

}



.attr-btn.can-spend:hover {

    background: linear-gradient(135deg, #3b82f6, #2563eb);

    transform: translateY(-1px) scale(1.05);

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.6);

}



.attr-btn.can-spend:active {

    transform: translateY(1px);

}



/* Tooltip */

#item-tooltip {

    display: none;

    position: fixed;

    z-index: 9999;

    background: #0f172a;

    border: 2px solid #38bdf8;

    border-radius: 8px;

    padding: 10px 14px;

    width: 290px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);

    pointer-events: none;

}



.tooltip-title {

    font-size: 19px;

    font-weight: bold;

}



.tooltip-rarity {

    font-size: 13px;

    color: #94a3b8;

    margin-bottom: 6px;

}



.tooltip-desc {

    font-size: 14px;

    color: #cbd5e1;

    margin-bottom: 8px;

    font-style: italic;

}



.tooltip-stats {

    border-top: 1px solid #334155;

    padding-top: 6px;

    display: flex;

    flex-direction: column;

    gap: 3px;

}



.tooltip-stat {

    font-size: 16px;

    color: #4ade80;

}



/* Tooltip Affix Slots */

.tooltip-affixes-wrap {

    border-top: 1px solid #334155;

    margin-top: 6px;

    padding-top: 6px;

    display: flex;

    flex-direction: column;

    gap: 4px;

}



.tooltip-affixes-header {

    font-size: 13px;

    font-weight: bold;

    color: #94a3b8;

    margin-bottom: 2px;

}



.tooltip-affix-row {

    font-size: 13px;

    padding: 3px 5px;

    border-radius: 4px;

    background: rgba(15, 23, 42, 0.65);

    border: 1px solid rgba(51, 65, 85, 0.5);

}



.tooltip-affix-row.empty {

    color: #64748b;

    border: 1px dashed rgba(51, 65, 85, 0.7);

    padding: 2px 5px;

}



.tooltip-affix-num {

    font-size: 12px;

    color: #94a3b8;

    margin-right: 4px;

    font-weight: bold;

}



.tooltip-affix-empty {

    color: #64748b;

    font-style: italic;

}



.tooltip-affix-top {

    display: flex;

    align-items: center;

    gap: 4px;

}



.tooltip-affix-name {

    font-weight: bold;

}



.affix-trigger-badge {

    font-size: 11px;

    color: #38bdf8;

    background: rgba(56, 189, 248, 0.15);

    padding: 0 4px;

    border-radius: 3px;

    font-family: monospace;

}



.tooltip-affix-desc {

    font-size: 12px;

    color: #cbd5e1;

    margin-top: 1px;

    line-height: 1.25;

}



.tooltip-footer {

    border-top: 1px dashed #334155;

    margin-top: 8px;

    padding-top: 5px;

    font-size: 12px;

    color: #94a3b8;

}



/* Enchant Targeting Banner */

.enchant-banner {

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: rgba(15, 23, 42, 0.95);

    border: 2px solid #4ade80;

    border-radius: 8px;

    padding: 6px 12px;

    margin-bottom: 6px;

    animation: enchant-pulse 1.8s infinite;

}



@keyframes enchant-pulse {

    0% { box-shadow: 0 0 4px rgba(74, 222, 128, 0.2); }

    50% { box-shadow: 0 0 14px rgba(74, 222, 128, 0.5); }

    100% { box-shadow: 0 0 4px rgba(74, 222, 128, 0.2); }

}



.enchant-banner-info {

    display: flex;

    flex-direction: column;

    gap: 1px;

}



.enchant-title {

    font-size: 15px;

    font-weight: bold;

    color: #f8fafc;

}



.enchant-desc {

    font-size: 13px;

    color: #94a3b8;

}



.enchant-cancel-btn {

    background: #334155;

    border: 1px solid #64748b;

    color: #f1f5f9;

    padding: 4px 10px;

    border-radius: 6px;

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    transition: background 0.15s;

}



.enchant-cancel-btn:hover {

    background: #ef4444;

    border-color: #f87171;

}



/* Enchant Active States on Slots */

.enchant-valid-target {

    cursor: crosshair !important;

    animation: target-glow 1.5s infinite;

}



@keyframes target-glow {

    0% { transform: scale(1); }

    50% { transform: scale(1.05); filter: brightness(1.25); }

    100% { transform: scale(1); }

}



.enchant-active-source {

    outline: 2px solid #fde047;

    outline-offset: 1px;

    box-shadow: 0 0 12px rgba(253, 224, 71, 0.7);

}



/* Floating Game Notice */

#floating-game-notice {

    position: fixed;

    top: 14px;

    left: 50%;

    transform: translateX(-50%);

    background: rgba(15, 23, 42, 0.96);

    border: 2px solid #fde047;

    border-radius: 8px;

    padding: 8px 20px;

    font-size: 17px;

    font-weight: bold;

    z-index: 99999;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);

    pointer-events: none;

    transition: opacity 0.25s ease, transform 0.25s ease;

    opacity: 0;

}



#floating-game-notice.visible {

    opacity: 1;

    transform: translateX(-50%) translateY(0);

}



#floating-game-notice.hidden {

    opacity: 0;

    transform: translateX(-50%) translateY(-10px);

}



/* Modal Overlay & Retro Panel */

.modal-overlay {

    position: fixed;

    top: 0;

    left: 0;

    width: 100vw;

    height: 100vh;

    background: rgba(0, 0, 0, 0.75);

    backdrop-filter: blur(4px);

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 10000;

    transition: opacity 0.2s ease;

}



.modal-overlay.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@keyframes modalPopIn {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-overlay:not(.hidden) > .modal-content,
.modal-overlay:not(.hidden) > .retro-panel,
.modal-overlay:not(.hidden) > .dialog-box {
    animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}



.retro-panel {

    background: #111827;

    border: 3px solid #f97316;

    border-radius: 12px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(249, 115, 22, 0.2);

    width: 720px;

    max-width: 95vw;

    max-height: 90vh;

    overflow: hidden;

    display: flex;

    flex-direction: column;

}



/* ==========================================================================

   DEMİRCİ ATÖLYESİ (+ BASMA) - AAA DARK FANTASY MEDIEVAL FORGE THEME

   ========================================================================== */



.blacksmith-modal-content {

    max-width: 900px;

    width: 95%;

    max-height: 94vh;

    background: linear-gradient(180deg, #2b1810 0%, #170d08 100%);

    border: 3px solid #ea580c;

    border-radius: 12px;

    box-shadow: 0 0 35px rgba(234, 88, 12, 0.45), 0 25px 60px rgba(0, 0, 0, 0.95);

    display: flex;

    flex-direction: column;

    overflow: hidden;

    color: #e2e8f0;

}



.blacksmith-modal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 20px;

    background: linear-gradient(180deg, #3d2317 0%, #22120b 100%);

    border-bottom: 2px solid #5a321f;

    position: relative;

}



.blacksmith-header-left {

    display: flex;

    align-items: center;

    gap: 10px;

}



.blacksmith-emblem {

    font-size: 20px;

    color: #f97316;

    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.8));

}



.blacksmith-title {

    font-family: 'Cinzel', 'MedievalSharp', Georgia, serif;

    font-size: 20px;

    font-weight: bold;

    color: #fed7aa;

    margin: 0;

    text-shadow: 0 2px 4px #000, 0 0 10px rgba(234, 88, 12, 0.5);

}



.blacksmith-header-hinge {

    width: 32px;

    height: 18px;

    background: linear-gradient(90deg, #3d363b 0%, #5a5056 50%, #2b262a 100%);

    border: 1px solid #1a171a;

    border-radius: 2px;

    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.8);

    margin-left: auto;

    margin-right: 12px;

}



.blacksmith-close-btn {

    width: 32px;

    height: 32px;

    background: #272224;

    border: 2px solid #524741;

    border-radius: 6px;

    color: #94a3b8;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.2s;

    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);

}



.blacksmith-close-btn:hover {

    color: #ef4444;

    border-color: #ef4444;

    background: #3d1b1b;

    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);

}



.blacksmith-body {

    display: flex;

    gap: 16px;

    padding: 16px 20px;

    overflow-y: auto;

    flex: 1;

}



/* Sol Kolon: Forge & Details */

.blacksmith-forge-col {

    flex: 1.25;

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.forge-item-banner {

    background: linear-gradient(180deg, #272224 0%, #151318 100%);

    border: 2px solid #524741;

    border-radius: 8px;

    padding: 10px 14px;

    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.5);

    display: flex;

    align-items: center;

    gap: 12px;

}



.anvil-pedestal-slot.empty {

    width: 100%;

    min-height: 56px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #94a3b8;

    font-size: 14px;

    text-align: center;

}



.banner-inner-box {

    display: flex;

    align-items: center;

    gap: 14px;

    width: 100%;

}



.banner-icon-slot {

    width: 54px;

    height: 54px;

    background: #131116;

    border: 2px solid #786b63;

    border-radius: 6px;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: inset 0 2px 6px #000;

    flex-shrink: 0;

}



.banner-item-img {

    width: 42px;

    height: 42px;

    image-rendering: pixelated;

}



.banner-info-box {

    text-align: left;

    flex: 1;

}



.banner-item-title {

    font-size: 17px;

    font-weight: bold;

    color: #f8fafc;

}



.banner-item-sub {

    font-size: 11px;

    color: #94a3b8;

    margin-top: 2px;

}



.upgrade-details {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.forge-item-meta-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 2px;

}



.forge-item-title {

    font-size: 15px;

    font-weight: bold;

    color: #f8fafc;

}



.forge-item-meta {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 11px;

}



.tradable-badge {

    background: #14532d;

    color: #86efac;

    border: 1px solid #22c55e;

    padding: 1px 6px;

    border-radius: 4px;

    font-weight: bold;

}



.meta-uuid {

    color: #64748b;

    font-family: monospace;

}



/* +0 ➔ +1 Molten Arrow Progression */

.forge-progression-widget {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin: 4px 0;

}



.filigree-scroll {

    width: 24px;

    height: 12px;

    background: radial-gradient(circle, #524741 20%, transparent 70%);

    border-top: 2px solid #786b63;

    border-bottom: 2px solid #786b63;

    border-radius: 6px;

}



.level-box {

    background: #1c1920;

    border: 1.5px solid #4a4352;

    border-radius: 4px;

    padding: 4px 14px;

    font-size: 16px;

    font-weight: bold;

    color: #cbd5e1;

    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);

}



.level-box.next-box {

    color: #4ade80;

    border-color: #22c55e;

    box-shadow: 0 0 10px rgba(34, 197, 94, 0.25), inset 0 2px 5px rgba(0, 0, 0, 0.7);

}



.molten-flame-arrow {

    display: flex;

    align-items: center;

    gap: 4px;

    font-size: 20px;

    font-weight: bold;

    color: #fbbf24;

    text-shadow: 0 0 8px #f59e0b, 0 0 16px #ea580c;

    animation: flameFlicker 1.5s infinite alternate;

}



@keyframes flameFlicker {

    0% { transform: scale(1); filter: drop-shadow(0 0 3px #ea580c); }

    100% { transform: scale(1.08); filter: drop-shadow(0 0 8px #f59e0b); }

}



.forge-stats-diff {

    background: #19161d;

    border: 1px solid #38313e;

    border-radius: 6px;

    padding: 8px 12px;

    font-size: 13px;

    color: #e2e8f0;

}



.diff-line {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.diff-gain {

    color: #4ade80;

    font-weight: bold;

}



.forge-cost-box {

    background: #19161d;

    border: 1px solid #38313e;

    border-radius: 6px;

    padding: 8px 12px;

    display: flex;

    flex-direction: column;

    gap: 6px;

    font-size: 13px;

}



.cost-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.cost-label {

    color: #cbd5e1;

}



.cost-val {

    font-weight: bold;

    display: flex;

    align-items: center;

    gap: 6px;

}



.cost-val.affordable {

    color: #4ade80;

}



.cost-val.expensive {

    color: #ef4444;

}



/* Success Chance Gothic Meter */

.forge-success-chance-container {

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.success-chance-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 12px;

    font-weight: bold;

    color: #cbd5e1;

}



.sc-val {

    color: #4ade80;

    font-size: 15px;

    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);

}



.gothic-progress-track {

    display: flex;

    align-items: center;

    gap: 4px;

}



.gothic-pointer {

    color: #d97706;

    font-size: 12px;

    filter: drop-shadow(0 0 3px #d97706);

}



.gothic-track-slot {

    flex: 1;

    height: 12px;

    background: #0f0d12;

    border: 1px solid #5a4f47;

    border-radius: 6px;

    overflow: hidden;

    position: relative;

    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9);

}



.gothic-bar-fill {

    height: 100%;

    background: linear-gradient(90deg, #dc2626 0%, #ea580c 45%, #facc15 85%, #fef08a 100%);

    box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);

    border-radius: 6px;

    transition: width 0.3s ease;

}



/* Protection Checkbox Row */

.forge-protection-container {

    background: #19161d;

    border: 1px solid #38313e;

    border-radius: 6px;

    padding: 8px 12px;

}



.protection-checkbox-label {

    display: flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    font-size: 13px;

    color: #e2e8f0;

}



.custom-forge-checkbox {

    width: 18px;

    height: 18px;

    accent-color: #f59e0b;

    cursor: pointer;

}



.protection-text {

    display: flex;

    align-items: center;

    gap: 6px;

    flex: 1;

}



.protection-count {

    color: #cbd5e1;

    font-size: 12px;

}



.protection-hint {

    font-size: 11px;

    color: #38bdf8;

    margin-top: 4px;

    padding-left: 26px;

}



/* Main Action Button (Heavy Iron Slab / Locked Chains) */

.forge-action-btn {

    width: 100%;

    padding: 12px 16px;

    border-radius: 8px;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    transition: all 0.2s;

}



.forge-action-btn.locked {

    background: linear-gradient(180deg, #272229 0%, #17151a 100%);

    border: 2px solid #524741;

    color: #ef4444;

    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);

    cursor: not-allowed;

}



.forge-action-btn.ready {

    background: linear-gradient(180deg, #ea580c 0%, #9a3412 100%);

    border: 2px solid #f97316;

    color: #fef08a;

    box-shadow: 0 0 20px rgba(234, 88, 12, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3);

}



.forge-action-btn.ready:hover:not(:disabled) {

    background: linear-gradient(180deg, #f97316 0%, #c2410c 100%);

    box-shadow: 0 0 30px rgba(249, 115, 22, 0.8);

    transform: translateY(-1px);

}



/* Sağ Kolon: Eşya Listesi ve Altta Parlayan Ocak/Örs */

.blacksmith-sidebar-col {

    flex: 0.95;

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.blacksmith-items-container {

    background: #1a120c;

    border: 2px dashed rgba(245, 158, 11, 0.4);

    border-radius: 8px;

    padding: 10px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.sidebar-heading {

    font-size: 13px;

    font-weight: bold;

    color: #fed7aa;

}



.blacksmith-items-grid {

    display: flex;

    flex-direction: column;

    gap: 6px;

    overflow-y: auto;

    max-height: 140px;

}



.blacksmith-item-entry {

    background: #271c14;

    border: 1px solid #4a3325;

    border-radius: 6px;

    padding: 6px 10px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    cursor: pointer;

    transition: all 0.15s;

}



.blacksmith-item-entry:hover {

    background: #3d2b1f;

    border-color: #f59e0b;

}



.blacksmith-item-entry.selected {

    border-color: #f59e0b;

    background: rgba(245, 158, 11, 0.2);

    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);

}



.entry-left {

    display: flex;

    align-items: center;

    gap: 8px;

}



.entry-icon-box {

    width: 28px;

    height: 28px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #140d07;

    border: 1px solid #5a3e2b;

    border-radius: 4px;

}



.entry-icon {

    width: 22px;

    height: 22px;

    image-rendering: pixelated;

}



.entry-info {

    display: flex;

    flex-direction: column;

}



.entry-name {

    font-size: 13px;

    font-weight: bold;

    color: #f1f5f9;

}



.entry-sub {

    font-size: 10px;

    color: #d97706;

}



.entry-lvl {

    font-size: 14px;

    font-weight: bold;

    color: #cbd5e1;

}



.blacksmith-scene-card {

    border-radius: 8px;

    overflow: hidden;

    border: 2px solid #5a321f;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);

    position: relative;

    background: #120b07;

}



.forge-scene-img {

    width: 100%;

    height: auto;

    display: block;

    object-fit: cover;

}



.forge-scene-glow {

    position: absolute;

    inset: 0;

    pointer-events: none;

    background: radial-gradient(circle at 25% 65%, rgba(245, 158, 11, 0.15) 0%, transparent 60%);

}





.entry-left {

    display: flex;

    align-items: center;

    gap: 8px;

}



.entry-name {

    font-size: 16px;

    font-weight: bold;

}



.entry-lvl {

    font-size: 14px;

    color: #fde047;

    font-weight: bold;

}



/* ==========================================================================

   Full-Screen Visual RPG Town Scene & Mode Switching

   ========================================================================== */



/* Mode: Town Hub (Full screen visual RPG village in Phaser) */

#game-container.mode-town #left-panel,

#game-container.mode-town #right-panel,

#game-container.mode-town #bottom-inventory-panel {

    display: none !important;

}



/* Clean Header in Town Mode: Hide HP, EXP bars and wave progress; show only zone title and resources */

#game-container.mode-town .wave-progress-container {

    display: none !important;

}



#game-container.mode-town #header-bar {

    justify-content: space-between;

}



#game-container.mode-town .stage-badge {

    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);

    border: 1px solid #475569;

    color: #f8fafc;

    font-size: 20px;

    letter-spacing: 0.5px;

    padding: 6px 18px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

}



#game-container.mode-town #main-content {

    display: flex;

    flex: 1;

    width: 100%;

    height: 100%;

    overflow: hidden;

}



#game-container.mode-town #center-panel {

    display: flex;

    flex: 1;

    width: 100%;

    height: 100%;

    overflow: hidden;

}



#game-container.mode-town #town-hub-container {

    display: none !important;

}



#game-container.mode-town #phaser-canvas-container {

    display: flex !important;

    width: 100%;

    height: 100%;

    flex: 1;

}



#game-container.mode-town #btn-battle-return-town {

    display: none !important;

}



/* Mode: Battle Arena (Tactical 3-column combat layout) */

#game-container.mode-battle #left-panel,

#game-container.mode-battle #right-panel,

#game-container.mode-battle #bottom-inventory-panel {

    display: flex !important;

}



#game-container.mode-battle #main-content {

    display: grid;

    grid-template-columns: 280px 1fr 310px;

}



#game-container.mode-battle #town-hub-container {

    display: none !important;

}



#game-container.mode-battle #phaser-canvas-container {

    display: flex !important;

}



#game-container.mode-battle #town-nameplate,

#game-container.mode-battle #town-hud-dock {

    display: none !important;

}



/* Visual Town Hub Viewport */

.town-hub-view {

    position: relative;

    width: 100%;

    height: 100%;

    flex: 1;

    background-image: url('assets/town/town_sample.png?v=9');

    background-size: 100% 100%;

    background-position: center;

    background-repeat: no-repeat;

    image-rendering: pixelated;

    overflow: hidden;

}



/* Point-and-Click Animated Character Canvas */

.town-character-canvas {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    pointer-events: none;

    image-rendering: pixelated;

    z-index: 5;

}



/* Obsolete Village Nameplate (Removed for clean UI) */

.town-nameplate,

#town-nameplate {

    display: none !important;

}



/* Interactive Direct Map Layer */

.town-interactive-map {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    pointer-events: none;

}



/* Direct Building Hotspot Overlays (Clean, borderless click areas) */

.town-building-hotspot {

    pointer-events: auto;

    position: absolute;

    cursor: pointer;

    border: none !important;

    outline: none !important;

    background: transparent !important;

    box-shadow: none !important;

    transition: all 0.2s ease-in-out;

    user-select: none;

    -webkit-tap-highlight-color: transparent;

}



/* Specific Building Overlay Positions on 918x435 Landscape */

/* 1. Üst Kısım: Kasaba Pazarı / Ticaret (Hedef tahtaları & yol alanı) */

.hotspot-market {

    top: 2%;

    left: 32%;

    width: 34%;

    height: 42%;

}



/* 2. Sol Alttaki Ev: Demirci Atölyesi (+ Basma) */

.hotspot-blacksmith {

    top: 36%;

    left: 3%;

    width: 31%;

    height: 62%;

}



/* 3. Sağ Alttaki Taş Yapı / Kale Kapısı: Sefere Çık (Bölge Seçimi) */

.hotspot-gate {

    top: 52%;

    left: 63%;

    width: 35%;

    height: 46%;

}



/* Building Hover & Click Interactive Effects (Zero stroke/rectangles, soft ambient glow & lift) */

.town-building-hotspot:hover {

    border: none !important;

    outline: none !important;

    background: transparent !important;

    box-shadow: none !important;

    transform: translateY(-4px) scale(1.02);

    filter: brightness(1.15) drop-shadow(0 0 16px rgba(245, 158, 11, 0.55));

}



.town-building-hotspot:active {

    transform: translateY(1px) scale(0.98);

    filter: brightness(0.95);

}



/* Kalıcı, Minik ve Şık Piksel Tabelalar (Permanent Retro RPG Nameplates) */

.town-building-tag {

    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    background: rgba(13, 19, 31, 0.94);

    border: 2px solid #f59e0b;

    border-radius: 4px;

    padding: 3px 8px;

    color: #f8fafc;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 0.5px;

    text-shadow: 1px 1px 2px #000;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 8px rgba(245, 158, 11, 0.4);

    display: flex;

    align-items: center;

    gap: 5px;

    white-space: nowrap;

    opacity: 1 !important;

    pointer-events: none;

    z-index: 20;

    animation: townPlaqueFloat 2.4s infinite ease-in-out;

    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;

}



/* Downward pointer arrow connecting the tag to the building below */

.town-building-tag::after {

    content: '';

    position: absolute;

    bottom: -5px;

    left: 50%;

    transform: translateX(-50%);

    border-width: 5px 5px 0 5px;

    border-style: solid;

    border-color: #f59e0b transparent transparent transparent;

}



/* Mini indicator arrow above tag */

.town-tag-indicator {

    font-size: 8px;

    color: #fbbf24;

    line-height: 1;

    animation: indicatorPulse 1.2s infinite ease-in-out;

}



@keyframes indicatorPulse {

    0%, 100% { transform: translateY(0); opacity: 0.8; }

    50% { transform: translateY(-2px); opacity: 1; color: #fef08a; }

}



@keyframes townPlaqueFloat {

    0%, 100% {

        transform: translateX(-50%) translateY(0);

    }

    50% {

        transform: translateX(-50%) translateY(-3px);

    }

}



/* Individual Building Tag Colors & Placements */

.hotspot-market .town-building-tag {

    top: 14px;

    border-color: #22c55e;

}

.hotspot-market .town-building-tag::after {

    border-color: #22c55e transparent transparent transparent;

}

.hotspot-market .town-tag-indicator {

    color: #4ade80;

}



.hotspot-blacksmith .town-building-tag {

    top: 6px;

    border-color: #f97316;

}

.hotspot-blacksmith .town-building-tag::after {

    border-color: #f97316 transparent transparent transparent;

}

.hotspot-blacksmith .town-tag-indicator {

    color: #fb923c;

}



.hotspot-gate .town-building-tag {

    top: 10px;

    border-color: #ef4444;

}

.hotspot-gate .town-building-tag::after {

    border-color: #ef4444 transparent transparent transparent;

}

.hotspot-gate .town-tag-indicator {

    color: #f87171;

}



/* Hover Enhancements on Tag */

.town-building-hotspot:hover .town-building-tag {

    animation-play-state: paused;

    transform: translateX(-50%) translateY(-5px) scale(1.06);

    border-color: #fbbf24 !important;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.9), 0 0 16px rgba(245, 158, 11, 0.85);

}

.town-building-hotspot:hover .town-building-tag::after {

    border-color: #fbbf24 transparent transparent transparent !important;

}



.town-tag-icon {

    width: 15px;

    height: 15px;

    image-rendering: pixelated;

}



/* Bottom Action Dock: Fixed Mini Pixel Icons */

.town-hud-dock {

    position: absolute;

    bottom: 16px;

    right: 20px;

    display: flex;

    gap: 12px;

    align-items: center;

    z-index: 25;

    pointer-events: auto;

}



.town-dock-btn {

    position: relative;

    width: 48px;

    height: 48px;

    background: rgba(15, 23, 42, 0.92);

    border: 2px solid #475569;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);

    padding: 0;

    outline: none;

}



.town-dock-btn:hover {

    border-color: #f59e0b;

    transform: translateY(-3px) scale(1.08);

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 10px rgba(245, 158, 11, 0.4);

}



.town-dock-btn:active {

    transform: translateY(0) scale(0.96);

}



.town-dock-icon {

    width: 26px;

    height: 26px;

    image-rendering: pixelated;

}



.town-dock-hotkey {

    position: absolute;

    bottom: -4px;

    right: -4px;

    background: #1e293b;

    color: #f59e0b;

    border: 1px solid #475569;

    border-radius: 4px;

    font-size: 10px;

    font-weight: bold;

    padding: 0 4px;

    line-height: 14px;

}



.town-dock-tooltip {

    position: absolute;

    bottom: 58px;

    left: 50%;

    transform: translateX(-50%) translateY(4px);

    background: rgba(15, 23, 42, 0.96);

    border: 1px solid #f59e0b;

    color: #f8fafc;

    font-size: 12px;

    font-weight: bold;

    white-space: nowrap;

    padding: 4px 8px;

    border-radius: 4px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.2s, transform 0.2s;

}



.town-dock-btn:hover .town-dock-tooltip {

    opacity: 1;

    transform: translateX(-50%) translateY(0);

}



/* Character & Inventory Modal in Town */

.character-modal-content {

    width: 1100px;

    max-width: 96vw;

    height: 680px;

    max-height: 92vh;

    display: flex;

    flex-direction: column;

    overflow: hidden;

}



.character-modal-body {

    display: grid;

    grid-template-columns: 290px 1fr 310px;

    gap: 12px;

    padding: 14px;

    flex: 1;

    min-height: 0;

    overflow: hidden;

    background: #0c1017;

}



.character-modal-body #left-panel,

.character-modal-body #right-panel,

.character-modal-body #bottom-inventory-panel {

    display: flex !important;

    border: 1px solid #232d3f;

    border-radius: 8px;

    height: 100%;

    max-height: 100%;

    overflow-y: auto;

    background: #131924;

}



.character-modal-body #bottom-inventory-panel {

    height: 100% !important;

    background: #111722;

}



/* Battle Arena Container & Return Button */

.battle-arena-container {

    position: relative;

    flex: 1;

    width: 100%;

    height: 100%;

    min-height: 0;

    background: #0f172a;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

}



.battle-return-town-btn {

    position: absolute;

    top: 12px;

    left: 12px;

    z-index: 100;

    background: rgba(15, 23, 42, 0.85);

    border: 2px solid #475569;

    color: #f1f5f9;

    font-family: 'VT323', monospace;

    font-size: 18px;

    padding: 6px 14px;

    border-radius: 6px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 8px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);

    backdrop-filter: blur(4px);

    transition: all 0.2s ease;

}



.battle-return-town-btn:hover {

    background: #1e293b;

    border-color: #38bdf8;

    color: #38bdf8;

    transform: translateY(-1px);

    box-shadow: 0 6px 14px rgba(56, 189, 248, 0.3);

}



/* Zone Selection Modal */

.zone-modal-content {

    width: 1360px;

    max-width: 96vw;

    max-height: 92vh;

    overflow-y: auto;

    background: #0f172a;

    border: 4px solid #854d0e;

    outline: 2px solid #1c1917;

    box-shadow: inset 0 0 0 2px #451a03, 0 24px 60px rgba(0, 0, 0, 0.95);

    border-radius: 12px;

}



.zone-modal-content .modal-close-btn {

    width: 32px;

    height: 32px;

    background: linear-gradient(180deg, #dc2626, #991b1b);

    border: 2px solid #f87171;

    border-radius: 4px;

    color: #ffffff;

    font-size: 22px;

    font-weight: bold;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    line-height: 1;

    text-shadow: 1px 1px 0 #450a0a;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.6);

    transition: all 0.15s ease;

}



.zone-modal-content .modal-close-btn:hover {

    background: linear-gradient(180deg, #ef4444, #b91c1c);

    border-color: #fca5a5;

    transform: scale(1.08);

}



.zone-modal-desc {

    color: #94a3b8;

    font-size: 15px;

    margin-bottom: 14px;

    text-align: center;

}



.zone-cards-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

    gap: 10px;

}



.zone-card {

    display: flex;

    flex-direction: column;

    background: #131b29;

    border: 2px solid #2d3b50;

    border-radius: 8px;

    overflow: hidden;

    position: relative;

    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;

}



.zone-card.zone-card-unlocked {

    cursor: pointer;

}



.zone-card.zone-card-unlocked:hover {

    transform: translateY(-6px);

    border-color: #f59e0b;

    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.75), 0 0 18px rgba(245, 158, 11, 0.35);

}



.zone-card.zone-card-unlocked:hover .zone-card-banner {

    transform: scale(1.04);

}



.zone-card.zone-card-locked {

    opacity: 0.75;

    border-color: #1e2530;

    background: #0d121c;

    cursor: not-allowed;

}



.zone-card-banner-wrapper {

    position: relative;

    width: 100%;

    height: 125px;

    overflow: hidden;

    background: #090d16;

    border-bottom: 2px solid #1e293b;

}



.zone-card-banner {

    width: 100%;

    height: 100%;

    object-fit: cover;

    image-rendering: pixelated;

    display: block;

    transition: transform 0.3s ease;

}



.zone-card.zone-card-locked .zone-card-banner {

    filter: grayscale(0.85) contrast(0.85) brightness(0.55);

}



.zone-card .zone-badge-lvl {

    position: absolute;

    top: 8px;

    right: 8px;

    font-family: 'VT323', monospace;

    font-size: 15px;

    font-weight: bold;

    padding: 2px 8px;

    border-radius: 4px;

    border: 1px solid rgba(255, 255, 255, 0.3);

    color: #ffffff;

    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);

    z-index: 2;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);

}



.zone-lock-overlay {

    position: absolute;

    inset: 0;

    background: rgba(9, 13, 20, 0.75);

    backdrop-filter: blur(2px);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 6px;

    z-index: 3;

}



.zone-lock-icon {

    width: 28px;

    height: 28px;

    image-rendering: pixelated;

    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));

}



.zone-lock-text {

    font-family: 'VT323', monospace;

    font-size: 16px;

    font-weight: bold;

    color: #fca5a5;

    background: rgba(220, 38, 38, 0.3);

    border: 1px solid #ef4444;

    padding: 2px 10px;

    border-radius: 4px;

    text-shadow: 1px 1px 0 #000;

}



.zone-card-body {

    padding: 12px 14px;

    display: flex;

    flex-direction: column;

    flex: 1;

    gap: 8px;

}



.zone-header-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

}



.zone-card-title {

    font-family: 'VT323', monospace;

    font-size: 21px;

    font-weight: bold;

    color: #f8fafc;

    margin: 0;

    text-shadow: 1px 1px 0 #000;

    line-height: 1.2;

}



.zone-card-desc {

    font-size: 13px;

    color: #94a3b8;

    line-height: 1.4;

    margin: 0;

    min-height: 48px;

}



.zone-loot-section {

    margin-top: 4px;

    display: flex;

    flex-direction: column;

    gap: 4px;

}



.zone-section-title {

    font-size: 12px;

    font-weight: bold;

    color: #cbd5e1;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.zone-loot-pills {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

}



.zone-loot-pill {

    display: flex;

    align-items: center;

    gap: 5px;

    background: #0b111e;

    border: 1px solid #293548;

    padding: 2px 7px;

    border-radius: 4px;

    font-size: 13px;

    font-family: 'VT323', monospace;

    color: #e2e8f0;

}



.zone-boss-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(0, 0, 0, 0.3);

    border: 1px solid #1e293b;

    padding: 5px 8px;

    border-radius: 4px;

    font-size: 14px;

    font-family: 'VT323', monospace;

    margin-top: auto;

}



.zone-boss-tag {

    display: flex;

    align-items: center;

    gap: 4px;

    color: #f87171;

    font-weight: bold;

}



.zone-boss-name {

    color: #fed7aa;

    font-weight: bold;

}



.zone-card-action {

    padding: 10px 14px 14px;

}



.zone-start-btn {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 9px 12px;

    border-radius: 6px;

    font-family: 'VT323', monospace;

    font-size: 20px;

    font-weight: bold;

    cursor: pointer;

    transition: all 0.2s ease;

}



.zone-start-btn.btn-zone-active {

    background: linear-gradient(180deg, #22c55e, #15803d);

    border: 2px solid #4ade80;

    color: #ffffff;

    text-shadow: 1px 1px 0 #14532d;

    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);

}



.zone-card.zone-card-unlocked:hover .zone-start-btn.btn-zone-active,

.zone-start-btn.btn-zone-active:hover {

    background: linear-gradient(180deg, #16a34a, #166534);

    border-color: #86efac;

    transform: translateY(-1px);

    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.6);

}



.zone-start-btn.btn-zone-disabled {

    background: #1e293b !important;

    border: 2px solid #334155 !important;

    color: #64748b !important;

    cursor: not-allowed !important;

    box-shadow: none !important;

    transform: none !important;

    text-shadow: none !important;

}



/* Shop Modal */

.shop-modal-content {

    width: 740px;

}



.shop-gold-status {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 8px;

    font-size: 18px;

    padding-bottom: 10px;

    border-bottom: 1px solid #334155;

    margin-bottom: 14px;

}



.shop-gold-val {

    color: var(--gold);

    font-weight: bold;

    display: flex;

    align-items: center;

    gap: 5px;

}



.shop-items-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));

    gap: 12px;

    max-height: 440px;

    overflow-y: auto;

    padding-right: 4px;

}



.shop-item-card {

    background: #182030;

    border: 1px solid #334155;

    border-radius: 8px;

    padding: 12px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    transition: all 0.15s ease;

}



.shop-item-card:hover {

    border-color: #f59e0b;

    background: #1e293b;

}



.shop-card-top {

    display: flex;

    align-items: center;

    gap: 10px;

}



.shop-item-icon-wrap {

    width: 40px;

    height: 40px;

    background: #0f172a;

    border: 1px solid #475569;

    border-radius: 6px;

    display: flex;

    justify-content: center;

    align-items: center;

    flex-shrink: 0;

}



.shop-card-info {

    flex: 1;

    overflow: hidden;

}



.shop-item-name {

    font-size: 16px;

    font-weight: bold;

    color: #f8fafc;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.shop-item-type {

    font-size: 12px;

    color: #94a3b8;

}



.shop-item-desc {

    font-size: 13px;

    color: #94a3b8;

    min-height: 34px;

    line-height: 1.3;

}



.shop-card-bottom {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: auto;

    padding-top: 6px;

    border-top: 1px solid #243044;

}



.shop-item-price {

    font-size: 16px;

    font-weight: bold;

    color: var(--gold);

    display: flex;

    align-items: center;

    gap: 4px;

}



.shop-buy-btn {

    background: #1e293b;

    border: 1px solid #f59e0b;

    color: #f59e0b;

    font-family: 'VT323', monospace;

    font-size: 16px;

    font-weight: bold;

    padding: 4px 12px;

    border-radius: 5px;

    cursor: pointer;

    transition: all 0.15s ease;

}



.shop-buy-btn:hover:not(:disabled) {

    background: #f59e0b;

    color: #0f172a;

}



.shop-buy-btn:disabled {

    opacity: 0.4;

    cursor: not-allowed;

    border-color: #475569;

    color: #94a3b8;

}



/* ==========================================================================

   Notice Board (Lonca İlan Panosu) Modal Styles

   ========================================================================== */

.notice-modal-content {

    width: 780px;

    max-width: 95vw;

    background: #0f172a;

    border: 3px solid #f59e0b;

    border-radius: 12px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), inset 0 0 20px rgba(245, 158, 11, 0.2);

}



.notice-modal-body {

    padding: 16px 20px;

    overflow-y: auto;

    max-height: 75vh;

    display: flex;

    flex-direction: column;

    gap: 16px;

}



.notice-section-title {

    font-size: 18px;

    color: #fbbf24;

    margin: 0 0 10px 0;

    display: flex;

    align-items: center;

    gap: 8px;

    border-bottom: 1px solid #334155;

    padding-bottom: 4px;

}



.notice-cards-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

    gap: 12px;

}



.notice-card {

    background: #1e293b;

    border: 2px solid #475569;

    border-radius: 8px;

    padding: 12px;

    position: relative;

    transition: all 0.2s ease;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}



.notice-card:hover {

    border-color: #f59e0b;

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);

}



.notice-card.pinned::before {

    content: '📌';

    position: absolute;

    top: -8px;

    left: calc(50% - 8px);

    font-size: 16px;

}



.notice-card-header {

    margin-bottom: 8px;

}



.notice-tier-badge {

    font-size: 11px;

    font-weight: bold;

    padding: 2px 6px;

    border-radius: 4px;

    text-transform: uppercase;

    display: inline-block;

    margin-bottom: 4px;

}



.badge-boss {

    background: #dc2626;

    color: #fff;

}



.badge-elite {

    background: #d97706;

    color: #fff;

}



.badge-rumor {

    background: #7c3aed;

    color: #fff;

}



.notice-card-title {

    font-size: 16px;

    font-weight: bold;

    color: #f8fafc;

    margin: 4px 0;

}



.notice-card-desc {

    font-size: 13px;

    color: #94a3b8;

    line-height: 1.4;

    margin-bottom: 10px;

}



.notice-reward-pill {

    background: #0f172a;

    border: 1px solid #334155;

    border-radius: 6px;

    padding: 4px 8px;

    font-size: 12px;

    color: #38bdf8;

    display: flex;

    align-items: center;

    gap: 6px;

}



.notice-action-row {

    display: flex;

    justify-content: flex-end;

    gap: 12px;

    padding-top: 8px;

    border-top: 1px solid #334155;

    margin-top: 8px;

}



.btn-notice-expedition {

    background: #f59e0b;

    border: none;

    color: #0f172a;

    font-family: 'VT323', monospace;

    font-size: 18px;

    font-weight: bold;

    padding: 6px 16px;

    border-radius: 6px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 6px;

    transition: all 0.15s ease;

}



.btn-notice-expedition:hover {

    background: #fbbf24;

    transform: scale(1.03);

}



/* ==========================================================================

   Character Class Selection (Kozmetik Karakter Seçimi) Modal Styles

   ========================================================================== */

.char-select-modal-content {

    width: 960px;

    max-width: 96vw;

    background: #0b0f19;

    border: 3px solid #f59e0b;

    border-radius: 14px;

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), inset 0 0 25px rgba(245, 158, 11, 0.15);

}



.char-select-body {

    padding: 16px 20px 20px 20px;

    display: flex;

    flex-direction: column;

    gap: 12px;

    max-height: 88vh;

    overflow-y: auto;

}



/* Top Hero Live Animated Preview Showcase Stage */

.char-showcase-stage {

    display: flex;

    align-items: center;

    gap: 20px;

    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));

    border: 2px solid #334155;

    border-radius: 12px;

    padding: 14px 18px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.6);

}



.char-showcase-canvas-wrap {

    position: relative;

    width: 140px;

    height: 110px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #070a12;

    border: 2px solid #1e293b;

    border-radius: 10px;

    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.85);

}



.char-showcase-pedestal {

    position: absolute;

    bottom: 8px;

    width: 96px;

    height: 16px;

    border-radius: 50%;

    background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.5) 0%, rgba(245, 158, 11, 0) 70%);

    filter: blur(1px);

}



.char-showcase-canvas {

    width: 140px;

    height: 110px;

    image-rendering: pixelated;

    position: relative;

    z-index: 2;

}



.char-showcase-details {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 5px;

}



.char-showcase-header {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

}



.char-showcase-name {

    font-size: 20px;

    font-weight: 800;

    color: #f8fafc;

    margin: 0;

    letter-spacing: 0.5px;

}



.char-showcase-badge {

    font-size: 11px;

    font-weight: 700;

    padding: 3px 10px;

    border-radius: 6px;

    text-transform: uppercase;

    border: 1px solid #38bdf866;

    background: #38bdf822;

    color: #38bdf8;

}



.char-showcase-desc {

    font-size: 13px;

    color: #cbd5e1;

    margin: 0;

    line-height: 1.4;

}



.char-showcase-fairness {

    font-size: 11px;

    color: #94a3b8;

    background: rgba(0, 0, 0, 0.35);

    padding: 5px 10px;

    border-radius: 6px;

    border-left: 3px solid #38bdf8;

    margin-top: 2px;

}



.char-fairness-tag {

    color: #38bdf8;

    font-weight: 700;

}



/* 2-Row / Multi-Row Grid Layout */

.char-select-grid-heading {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 13px;

    font-weight: 700;

    color: #e2e8f0;

    border-bottom: 1px solid #1e293b;

    padding-bottom: 4px;

    margin-top: 4px;

}



.char-select-hint-text {

    font-size: 11px;

    color: #64748b;

    font-weight: normal;

}



.char-select-cards-grid {

    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 8px;

    max-height: 275px;

    overflow-y: auto;

    padding: 4px 4px 6px 2px;

}



.char-select-cards-grid::-webkit-scrollbar {

    width: 6px;

}



.char-select-cards-grid::-webkit-scrollbar-track {

    background: #090d16;

    border-radius: 4px;

}



.char-select-cards-grid::-webkit-scrollbar-thumb {

    background: #334155;

    border-radius: 4px;

}



.char-select-cards-grid::-webkit-scrollbar-thumb:hover {

    background: #f59e0b;

}



@media (max-width: 860px) {

    .char-select-cards-grid {

        grid-template-columns: repeat(4, 1fr);

    }

}



@media (max-width: 620px) {

    .char-select-cards-grid {

        grid-template-columns: repeat(3, 1fr);

    }

}



.char-class-card {

    background: #111827;

    border: 2px solid #1f2937;

    border-radius: 8px;

    padding: 8px 6px;

    display: flex;

    flex-direction: column;

    align-items: center;

    cursor: pointer;

    position: relative;

    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);

    text-align: center;

}



.char-class-card:hover {

    border-color: #38bdf8;

    transform: translateY(-3px);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);

}



.char-class-card.selected {

    border-color: #f59e0b;

    background: rgba(245, 158, 11, 0.12);

    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), inset 0 0 8px rgba(245, 158, 11, 0.1);

}



.char-class-card.selected::after {

    content: '✓';

    position: absolute;

    top: -6px;

    right: -4px;

    background: #f59e0b;

    color: #090d16;

    font-size: 10px;

    font-weight: 900;

    width: 16px;

    height: 16px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);

}



.char-card-avatar-wrap {

    width: 56px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #090d16;

    border: 1px solid #1e293b;

    border-radius: 6px;

    margin-bottom: 6px;

    overflow: hidden;

}



.char-card-avatar {

    width: 48px;

    height: 48px;

    image-rendering: pixelated;

    object-fit: contain;

    transition: transform 0.18s ease;

}



.char-class-card:hover .char-card-avatar {

    transform: scale(1.12);

}



.char-class-info-wrap {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 2px;

    width: 100%;

}



.char-class-icon-tag {

    display: flex;

    align-items: center;

    gap: 4px;

    max-width: 100%;

}



.char-class-title {

    font-size: 12px;

    font-weight: 700;

    color: #f8fafc;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    max-width: 90px;

}



.char-class-badge {

    font-size: 10px;

    font-weight: 700;

    padding: 1px 6px;

    border-radius: 4px;

    white-space: nowrap;

}



.char-select-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 10px;

    border-top: 1px solid #1e293b;

}



.char-selected-summary {

    font-size: 16px;

    color: #f8fafc;

}



.btn-char-confirm {

    background: #f59e0b;

    border: none;

    color: #0f172a;

    font-family: 'VT323', monospace;

    font-size: 20px;

    font-weight: bold;

    padding: 8px 24px;

    border-radius: 6px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 8px;

    transition: all 0.15s ease;

}



.btn-char-confirm:hover {

    background: #fbbf24;

    transform: scale(1.04);

}



.header-btn-skin {

    background: #1e293b;

    border: 1px solid #3b82f6;

    color: #f8fafc;

    border-radius: 6px;

    padding: 3px 8px;

    font-family: 'VT323', monospace;

    font-size: 15px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 6px;

    margin-left: 8px;

    transition: all 0.15s ease;

}



.header-btn-skin:hover {

    background: #3b82f6;

    color: #0f172a;

}







/* ==========================================================================

   Header Time of Day (TOD) Toggle Button

   ========================================================================== */

.header-btn-tod {

    background: #1e293b;

    border: 1px solid #f59e0b;

    color: #fef08a;

    border-radius: 6px;

    padding: 3px 8px;

    font-family: 'VT323', monospace;

    font-size: 15px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 6px;

    margin-left: 6px;

    transition: all 0.15s ease;

    user-select: none;

}



.header-btn-tod:hover {

    background: #f59e0b;

    color: #0f172a;

    transform: translateY(-1px);

}



/* ==========================================================================

   GRAND MEDIEVAL TAVERN & SOCIAL HALL MODAL STYLES (BÜYÜK MEYHANE SİSTEMİ)

   ========================================================================== */



.grand-tavern-modal-content {

    width: 1060px !important;

    max-width: 96vw !important;

    height: 88vh !important;

    max-height: 88vh !important;

    background: #140c07 radial-gradient(circle at 50% 15%, #2a160d 0%, #140c07 80%) !important;

    border: 3px solid #b45309 !important;

    border-radius: 14px !important;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), inset 0 0 45px rgba(180, 83, 9, 0.28) !important;

    display: flex !important;

    flex-direction: column !important;

    overflow: hidden !important;

    padding: 0 !important;

}



/* 1. Tavern Grand Header */

.tavern-grand-header {

    background: #231208 linear-gradient(180deg, #381a0b 0%, #1f0f06 100%);

    border-bottom: 2px solid #78350f;

    padding: 12px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);

    position: relative;

    z-index: 10;

}



.tavern-header-left {

    display: flex;

    align-items: center;

    gap: 16px;

}



.tavern-crest-frame {

    position: relative;

    width: 54px;

    height: 54px;

    background: #451a03;

    border: 2px solid #f59e0b;

    border-radius: 10px;

    padding: 2px;

    box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);

    display: flex;

    align-items: center;

    justify-content: center;

}



.tavern-master-portrait {

    width: 100%;

    height: 100%;

    object-fit: cover;

    image-rendering: pixelated;

    border-radius: 6px;

}



.tavern-status-indicator {

    position: absolute;

    bottom: -3px;

    right: -3px;

    width: 14px;

    height: 14px;

    border-radius: 50%;

    background: #22c55e;

    border: 2px solid #140c07;

}



.pulse-glow {

    animation: pulseGlowAnim 2s infinite ease-in-out;

}



@keyframes pulseGlowAnim {

    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }

    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }

}



.tavern-header-info {

    display: flex;

    flex-direction: column;

    gap: 4px;

}



.tavern-title-row {

    display: flex;

    align-items: center;

    gap: 12px;

}



.grand-tavern-title {

    margin: 0;

    font-size: 22px;

    font-weight: 800;

    color: #fef08a;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(245, 158, 11, 0.5);

    letter-spacing: 0.5px;

}



.tavern-level-badge {

    background: #451a03;

    color: #fde68a;

    border: 1px solid #b45309;

    border-radius: 12px;

    padding: 2px 10px;

    font-size: 12px;

    font-weight: 600;

}



.tavern-mood-badge {

    background: #78350f;

    color: #fed7aa;

    border: 1px solid #f97316;

    border-radius: 12px;

    padding: 2px 10px;

    font-size: 12px;

    font-weight: 600;

}



.tavern-sub-info {

    display: flex;

    align-items: center;

    gap: 14px;

    font-size: 13px;

    color: #d1d5db;

}



.tavern-innkeeper-pill strong {

    color: #facc15;

}



.tavern-appointed-pill span {

    color: #93c5fd;

    font-style: italic;

}



.tavern-revenue-pill {

    background: rgba(245, 158, 11, 0.15);

    border: 1px solid #d97706;

    border-radius: 6px;

    padding: 1px 8px;

    color: #fde047;

}



/* 2. Tavern Navigation Tab Bar */

.tavern-tab-bar {

    display: flex;

    background: #190e07;

    border-bottom: 2px solid #5c2709;

    padding: 0 16px;

    gap: 4px;

    overflow-x: auto;

}



.tavern-tab-btn {

    background: #26140b;

    border: 1px solid #5c2709;

    border-bottom: none;

    border-radius: 8px 8px 0 0;

    color: #cbd5e1;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    padding: 10px 18px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 8px;

    transition: all 0.2s ease;

    margin-top: 6px;

}



.tavern-tab-btn:hover {

    background: #3b1d0e;

    color: #fef08a;

}



.tavern-tab-btn.active {

    background: #451a03;

    border-color: #b45309;

    color: #fbbf24;

    box-shadow: inset 0 3px 0 #f59e0b;

    transform: translateY(-2px);

}



.tavern-tab-btn.highlight-gold {

    color: #fef08a;

    border-color: #92400e;

}



.tavern-tab-btn.highlight-gold.active {

    background: #542207;

    border-color: #f59e0b;

    box-shadow: inset 0 3px 0 #fbbf24;

}



.tavern-seated-count-badge {

    background: #166534;

    color: #bbf7d0;

    font-size: 11px;

    padding: 1px 6px;

    border-radius: 10px;

}



.tavern-supplies-health-badge {

    background: #854d0e;

    color: #fef08a;

    font-size: 11px;

    padding: 1px 6px;

    border-radius: 10px;

}



/* 3. Grand Tavern Body & Panes */

.grand-tavern-body {

    flex: 1;

    overflow-y: auto;

    position: relative;

    padding: 16px;

    background: #120904;

}



.tavern-tab-pane {

    display: none;

    height: 100%;

}



.tavern-tab-pane.active {

    display: flex;

    flex-direction: column;

    animation: fadeInPane 0.25s ease;

}



@keyframes fadeInPane {

    from { opacity: 0; transform: translateY(4px); }

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

}



/* ==========================================================================

   TAB 1: TAVERN HALL FLOOR & SOCIAL TABLES

   ========================================================================== */

.tavern-hall-container {

    display: flex;

    gap: 16px;

    height: 100%;

    min-height: 480px;

}



.tavern-tables-area {

    flex: 1.35;

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.tavern-hall-banner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #221208;

    border: 1px solid #78350f;

    border-radius: 8px;

    padding: 8px 14px;

}



.fireplace-glow-box {

    display: flex;

    align-items: center;

    gap: 10px;

}



.fireplace-flame {

    font-size: 26px;

    animation: flameFlicker 1.5s infinite alternate ease-in-out;

}



@keyframes flameFlicker {

    0% { transform: scale(1) rotate(-2deg); filter: drop-shadow(0 0 6px #f97316); }

    100% { transform: scale(1.18) rotate(3deg); filter: drop-shadow(0 0 14px #ef4444); }

}



.fireplace-text strong {

    display: block;

    font-size: 14px;

    color: #fed7aa;

}



.fireplace-text small {

    font-size: 12px;

    color: #d97706;

}



.tavern-my-seat-status {

    background: #180d07;

    border: 1px solid #5c2709;

    border-radius: 6px;

    padding: 4px 10px;

    font-size: 13px;

    color: #e2e8f0;

}



.tavern-my-seat-status.seated {

    border-color: #22c55e;

    background: #052e16;

    color: #86efac;

}



.tavern-tables-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    flex: 1;

}



.tavern-table-card {

    background: #1d1009;

    border: 2px solid #5c2709;

    border-radius: 10px;

    padding: 10px 12px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    position: relative;

    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);

    transition: all 0.2s ease;

}



.tavern-table-card:hover {

    border-color: #b45309;

    background: #23140c;

}



.table-header-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid #3d1b09;

    padding-bottom: 6px;

}



.table-title {

    display: flex;

    align-items: center;

    gap: 6px;

}



.table-name {

    font-size: 14px;

    font-weight: bold;

    color: #fde68a;

}



.table-occupancy {

    background: #3b1b0a;

    color: #fbbf24;

    font-size: 11px;

    padding: 2px 7px;

    border-radius: 8px;

    border: 1px solid #78350f;

}



.table-visual-stage {

    position: relative;

    height: 120px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 8px 0;

}



.table-center-disc {

    width: 72px;

    height: 72px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    z-index: 2;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);

}



.wood-table {

    background: radial-gradient(circle, #78350f 30%, #451a03 90%);

    border: 3px solid #b45309;

}



.iron-table {

    background: radial-gradient(circle, #475569 30%, #1e293b 90%);

    border: 3px solid #94a3b8;

}



.candle-table {

    background: radial-gradient(circle, #854d0e 30%, #451a03 90%);

    border: 3px solid #f59e0b;

}



.gold-table {

    background: radial-gradient(circle, #a16207 30%, #713f12 90%);

    border: 3px solid #fbbf24;

}



.table-centerpiece {

    font-size: 18px;

}



.table-seats-container {

    position: absolute;

    width: 100%;

    height: 100%;

    top: 0;

    left: 0;

    pointer-events: none;

}



.tavern-seat-btn {

    pointer-events: auto;

    position: absolute;

    width: 58px;

    height: 34px;

    background: #2b170c;

    border: 1.5px solid #78350f;

    border-radius: 6px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    color: #e2e8f0;

    font-size: 11px;

    cursor: pointer;

    transition: all 0.2s ease;

    padding: 2px 4px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);

}



.tavern-seat-btn:hover {

    border-color: #f59e0b;

    background: #451a03;

    transform: scale(1.06);

}



.tavern-seat-btn.occupied {

    background: #14532d;

    border-color: #22c55e;

    color: #dcfce7;

    font-weight: bold;

}



.tavern-seat-btn.occupied.me {

    background: #047857;

    border-color: #facc15;

    box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);

}



.tavern-seat-btn[data-seat="1"] { top: 0; left: calc(50% - 29px); }

.tavern-seat-btn[data-seat="2"] { bottom: 0; left: calc(50% - 29px); }

.tavern-seat-btn[data-seat="3"] { top: calc(50% - 17px); left: 6px; }

.tavern-seat-btn[data-seat="4"] { top: calc(50% - 17px); right: 6px; }



.table-actions-row {

    display: flex;

    justify-content: center;

}



.btn-sit-table {

    background: #78350f;

    border: 1px solid #d97706;

    color: #fef08a;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    padding: 5px 14px;

    border-radius: 6px;

    cursor: pointer;

    transition: all 0.15s ease;

}



.btn-sit-table:hover {

    background: #b45309;

    border-color: #f59e0b;

    transform: scale(1.04);

}



.btn-sit-table.leave {

    background: #7f1d1d;

    border-color: #ef4444;

    color: #fee2e2;

}



/* Dedicated Tavern Social Sidepanel */

.tavern-social-sidepanel {

    flex: 1;

    background: #190e07;

    border: 2px solid #5c2709;

    border-radius: 10px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

}



.social-sidepanel-header {

    background: #26130a;

    border-bottom: 1px solid #5c2709;

    padding: 10px 14px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.sidepanel-title {

    font-size: 14px;

    font-weight: bold;

    color: #fde68a;

    display: flex;

    align-items: center;

    gap: 6px;

}



.social-actions-strip {

    display: flex;

    gap: 6px;

    flex-wrap: wrap;

}



.tavern-quick-cheer-btn {

    background: #38190c;

    border: 1px solid #78350f;

    border-radius: 6px;

    color: #fde68a;

    font-family: inherit;

    font-size: 12px;

    font-weight: bold;

    padding: 4px 8px;

    cursor: pointer;

    transition: all 0.15s ease;

}



.tavern-quick-cheer-btn:hover {

    background: #78350f;

    border-color: #f59e0b;

    transform: translateY(-1px);

}



.tavern-activity-feed {

    flex: 1;

    padding: 12px;

    overflow-y: auto;

    display: flex;

    flex-direction: column;

    gap: 8px;

    background: #140b05;

}



.tavern-feed-entry {

    background: #221208;

    border-left: 3px solid #78350f;

    border-radius: 4px;

    padding: 6px 10px;

    font-size: 13px;

    line-height: 1.35;

    color: #e2e8f0;

}



.tavern-feed-entry .feed-time {

    display: block;

    font-size: 10px;

    color: #78716c;

    margin-bottom: 2px;

}



.tavern-feed-entry.system-welcome {

    border-left-color: #f59e0b;

    background: #2b170c;

}



.tavern-feed-entry.cheer-toast {

    border-left-color: #eab308;

    background: #2c1a05;

    color: #fef08a;

}



.tavern-feed-entry.player-sit {

    border-left-color: #22c55e;

    background: #0f291e;

    color: #bbf7d0;

}



.tavern-feed-entry.chat-bubble {

    border-left-color: #38bdf8;

    background: #13222e;

}



.tavern-chat-input-bar {

    display: flex;

    padding: 10px;

    background: #211108;

    border-top: 1px solid #5c2709;

    gap: 8px;

}



.tavern-chat-input-bar input {

    flex: 1;

    background: #120904;

    border: 1px solid #78350f;

    border-radius: 6px;

    color: #fef08a;

    padding: 6px 10px;

    font-size: 13px;

}



.tavern-chat-input-bar input:focus {

    outline: none;

    border-color: #f59e0b;

}



.tavern-chat-input-bar button {

    background: #d97706;

    border: 1px solid #fbbf24;

    color: #1e1b4b;

    font-weight: bold;

    font-size: 13px;

    padding: 6px 14px;

    border-radius: 6px;

    cursor: pointer;

}



.tavern-chat-input-bar button:hover {

    background: #f59e0b;

}



/* ==========================================================================

   TAB 2: HANCI ZİYAFETLERİ & İKRAMLAR

   ========================================================================== */

.tavern-treats-hero {

    background: #26130a;

    border: 1.5px solid #78350f;

    border-radius: 8px;

    padding: 12px 18px;

    margin-bottom: 14px;

}



.treats-hero-text h3 {

    margin: 0 0 4px 0;

    font-size: 17px;

    color: #fef08a;

}



.treats-hero-text p {

    margin: 0;

    font-size: 13px;

    color: #d1d5db;

    line-height: 1.4;

}



.grand-tavern-treats-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));

    gap: 12px;

}



.grand-treat-card {

    background: #1c0f08;

    border: 2px solid #5c2709;

    border-radius: 10px;

    padding: 12px 14px;

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    transition: all 0.2s ease;

}



.grand-treat-card:hover {

    border-color: #f59e0b;

    background: #26140b;

    transform: translateY(-2px);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);

}



.treat-card-badge {

    position: absolute;

    top: 8px;

    right: 10px;

    background: #451a03;

    border: 1px solid #b45309;

    color: #fed7aa;

    font-size: 11px;

    padding: 1px 7px;

    border-radius: 10px;

}



.treat-card-icon {

    font-size: 32px;

    margin-bottom: 8px;

}



.treat-title {

    margin: 0 0 4px 0;

    font-size: 16px;

    font-weight: bold;

    color: #fde68a;

}



.treat-desc {

    margin: 0 0 8px 0;

    font-size: 12px;

    color: #94a3b8;

    line-height: 1.35;

}



.treat-buff-tag {

    background: rgba(245, 158, 11, 0.12);

    border: 1px dashed #d97706;

    border-radius: 6px;

    padding: 5px 8px;

    font-size: 12px;

    color: #facc15;

    font-weight: 600;

    margin-bottom: 10px;

}



.treat-card-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top: 1px solid #3d1b09;

    padding-top: 8px;

}



.treat-price {

    font-size: 14px;

    font-weight: bold;

    color: #fef08a;

    display: flex;

    align-items: center;

    gap: 4px;

}



.btn-grand-buy {

    background: #b45309;

    border: 1px solid #f59e0b;

    color: #ffffff;

    font-weight: bold;

    font-size: 13px;

    padding: 5px 12px;

    border-radius: 6px;

    cursor: pointer;

    transition: all 0.15s ease;

}



.btn-grand-buy:hover {

    background: #d97706;

    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);

}



/* ==========================================================================

   TAB 3: MEYHANE İHTİYAÇLARI & STOK

   ========================================================================== */

.supplies-dashboard-container {

    display: flex;

    flex-direction: column;

    gap: 16px;

}



.supplies-intro-card {

    background: #241208;

    border: 2px solid #78350f;

    border-radius: 10px;

    padding: 14px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}



.supplies-intro-info h3 {

    margin: 0 0 4px 0;

    font-size: 18px;

    color: #fef08a;

}



.supplies-intro-info p {

    margin: 0;

    font-size: 13px;

    color: #cbd5e1;

    max-width: 680px;

    line-height: 1.4;

}



.supplies-mood-meter {

    background: #140b05;

    border: 2px solid #b45309;

    border-radius: 10px;

    padding: 10px 16px;

    text-align: center;

}



.meter-label {

    font-size: 11px;

    color: #94a3b8;

}



.meter-number {

    font-size: 26px;

    font-weight: 800;

    color: #22c55e;

}



.meter-status {

    font-size: 12px;

    color: #fde047;

    font-weight: 600;

}



.supplies-gauges-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;

}



.supply-card {

    background: #1a0e08;

    border: 2px solid #5c2709;

    border-radius: 10px;

    padding: 14px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}



.supply-card-header {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 12px;

}



.supply-icon {

    font-size: 30px;

}



.supply-title {

    margin: 0;

    font-size: 15px;

    color: #fde68a;

    font-weight: bold;

}



.supply-subtitle {

    font-size: 11px;

    color: #94a3b8;

}



.supply-gauge-container {

    margin-bottom: 14px;

}



.supply-progress-bar {

    height: 14px;

    background: #100804;

    border-radius: 7px;

    overflow: hidden;

    border: 1px solid #451a03;

    margin-bottom: 4px;

}



.supply-fill {

    height: 100%;

    transition: width 0.4s ease;

}



.wood-fill { background: linear-gradient(90deg, #d97706, #f59e0b); }

.ale-fill { background: linear-gradient(90deg, #ca8a04, #facc15); }

.meat-fill { background: linear-gradient(90deg, #dc2626, #f87171); }



.supply-pct-row {

    display: flex;

    justify-content: space-between;

    font-size: 12px;

    color: #e2e8f0;

}



.supply-grade.good { color: #4ade80; font-weight: bold; }

.supply-grade.normal { color: #facc15; }

.supply-grade.low { color: #f87171; font-weight: bold; }



.supply-action-box {

    background: #241208;

    border-radius: 6px;

    padding: 10px;

    border: 1px solid #451a03;

    display: flex;

    flex-direction: column;

    gap: 4px;

}



.supply-cost-label, .supply-reward-label {

    font-size: 12px;

    color: #cbd5e1;

}



.supply-cost-label strong { color: #fde68a; }

.supply-reward-label strong { color: #4ade80; }



.btn-restock-supply {

    margin-top: 8px;

    background: #78350f;

    border: 1px solid #f59e0b;

    color: #fef08a;

    font-weight: bold;

    font-size: 13px;

    padding: 6px;

    border-radius: 6px;

    cursor: pointer;

    transition: all 0.15s ease;

}



.btn-restock-supply:hover {

    background: #b45309;

    transform: translateY(-1px);

}



/* ==========================================================================

   TAB 4: AVCI LONCASI

   ========================================================================== */

.tavern-bounties-hero {

    background: #26130a;

    border: 1.5px solid #78350f;

    border-radius: 8px;

    padding: 12px 18px;

    margin-bottom: 14px;

}



.tavern-bounties-hero h3 {

    margin: 0 0 4px 0;

    font-size: 17px;

    color: #fef08a;

}



.tavern-bounties-hero p {

    margin: 0;

    font-size: 13px;

    color: #cbd5e1;

}



.grand-bounties-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.grand-bounty-card {

    background: #1c0f08;

    border: 2px solid #5c2709;

    border-radius: 10px;

    padding: 12px 16px;

    display: flex;

    align-items: center;

    gap: 16px;

}



.bounty-left-badge {

    padding: 6px 12px;

    border-radius: 6px;

    font-size: 12px;

    font-weight: bold;

    white-space: nowrap;

}



.badge-slime { background: #166534; color: #dcfce7; border: 1px solid #22c55e; }

.badge-boss { background: #7f1d1d; color: #fee2e2; border: 1px solid #ef4444; }



.bounty-body {

    flex: 1;

}



.bounty-body h4 {

    margin: 0 0 2px 0;

    font-size: 15px;

    color: #fde68a;

}



.bounty-body p {

    margin: 0 0 6px 0;

    font-size: 12px;

    color: #94a3b8;

}



.bounty-reward-tags {

    display: flex;

    gap: 8px;

}



.btn-bounty-action {

    background: #15803d;

    border: 1px solid #4ade80;

    color: #f0fdf4;

    font-family: inherit;

    font-size: 13px;

    font-weight: bold;

    padding: 6px 16px;

    border-radius: 6px;

    cursor: pointer;

    white-space: nowrap;

}



.btn-bounty-action:hover {

    background: #16a34a;

    box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);

}



/* ==========================================================================

   TAB 5: KASABA BAŞKANI & HANCI ATAMA (MAYOR & INNKEEPER APPOINTMENT)

   ========================================================================== */

.management-grid {

    display: grid;

    grid-template-columns: 1.1fr 1fr;

    gap: 16px;

}



.mgmt-panel-card {

    background: #1b0e08;

    border: 2px solid #78350f;

    border-radius: 12px;

    padding: 16px;

    display: flex;

    flex-direction: column;

    gap: 14px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);

}



.governor-authority-card {

    border-color: #b45309;

    background: #201109;

}



.mgmt-card-header {

    display: flex;

    align-items: center;

    gap: 12px;

    border-bottom: 1px solid #451a03;

    padding-bottom: 10px;

}



.mgmt-badge-icon {

    font-size: 28px;

}



.mgmt-card-title {

    margin: 0;

    font-size: 16px;

    font-weight: bold;

    color: #fef08a;

}



.mgmt-card-desc {

    font-size: 12px;

    color: #94a3b8;

    margin-top: 2px;

}



.current-innkeeper-display {

    display: flex;

    align-items: center;

    gap: 14px;

    background: #2a150a;

    border: 1.5px solid #b45309;

    border-radius: 8px;

    padding: 10px 14px;

}



.innkeeper-big-avatar {

    width: 52px;

    height: 52px;

    border-radius: 8px;

    border: 2px solid #f59e0b;

    image-rendering: pixelated;

    background: #451a03;

}



.display-label {

    font-size: 11px;

    color: #cbd5e1;

    text-transform: uppercase;

}



.display-name {

    font-size: 17px;

    font-weight: 800;

    color: #facc15;

}



.display-meta {

    font-size: 12px;

    color: #94a3b8;

}



.display-meta .highlight-text {

    color: #93c5fd;

    font-weight: 600;

}



.appointment-form-box {

    background: #140b05;

    border: 1px solid #451a03;

    border-radius: 8px;

    padding: 12px;

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.form-title {

    margin: 0;

    font-size: 14px;

    color: #fed7aa;

}



.form-subtitle {

    margin: 0;

    font-size: 12px;

    color: #94a3b8;

    line-height: 1.35;

}



.form-row {

    display: flex;

    flex-direction: column;

    gap: 4px;

}



.form-row label {

    font-size: 12px;

    color: #cbd5e1;

    font-weight: 600;

}



.form-select, .form-input {

    background: #221208;

    border: 1px solid #78350f;

    border-radius: 6px;

    color: #fef08a;

    padding: 7px 10px;

    font-size: 13px;

    font-family: inherit;

}



.form-select:focus, .form-input:focus {

    outline: none;

    border-color: #f59e0b;

}



.btn-royal-decree {

    background: linear-gradient(180deg, #d97706 0%, #b45309 100%);

    border: 1.5px solid #fbbf24;

    border-radius: 8px;

    color: #1e1b4b;

    font-weight: 800;

    font-size: 14px;

    padding: 9px 14px;

    cursor: pointer;

    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);

    transition: all 0.2s ease;

    margin-top: 4px;

}



.btn-royal-decree:hover {

    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);

    box-shadow: 0 0 16px rgba(251, 191, 36, 0.6);

    transform: translateY(-1px);

}



.appointment-notice {

    font-size: 11px;

    color: #94a3b8;

    font-style: italic;

}



/* Revenue Vault Box */

.revenue-vault-box {

    background: #26150a;

    border: 2px solid #ca8a04;

    border-radius: 10px;

    padding: 14px;

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.vault-icon-wrap {

    font-size: 32px;

}



.vault-label {

    font-size: 12px;

    color: #cbd5e1;

}



.vault-amount {

    font-size: 26px;

    font-weight: 800;

    color: #fde047;

    text-shadow: 0 0 10px rgba(253, 224, 71, 0.4);

}



.vault-sub {

    font-size: 12px;

    color: #a8a29e;

    line-height: 1.35;

}



.btn-claim-revenue {

    background: #ca8a04;

    border: 1.5px solid #fde047;

    border-radius: 8px;

    color: #1c1917;

    font-weight: 800;

    font-size: 14px;

    padding: 8px;

    cursor: pointer;

    transition: all 0.15s ease;

}



.btn-claim-revenue:hover {

    background: #eab308;

    box-shadow: 0 0 14px rgba(253, 224, 71, 0.5);

    transform: translateY(-1px);

}



.innkeeper-duties-list {

    background: #140b05;

    border: 1px solid #451a03;

    border-radius: 8px;

    padding: 12px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.duties-title {

    margin: 0;

    font-size: 13px;

    color: #fde68a;

}



.duty-item {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    font-size: 12px;

    color: #cbd5e1;

    line-height: 1.3;

}



.duty-check {

    color: #4ade80;

}



/* ==========================================================================

   5-Class Grid & Unlimited Hue/Tone Customizer Styles

   ========================================================================== */

.char-select-cards-grid-5 {

    display: grid !important;

    grid-template-columns: repeat(7, 1fr) !important;

    gap: 8px !important;

    max-height: none !important;

    padding: 6px 4px !important;

}



@media (max-width: 900px) {

    .char-select-cards-grid-5 {

        grid-template-columns: repeat(4, 1fr) !important;

    }

}



@media (max-width: 640px) {

    .char-select-cards-grid-5 {

        grid-template-columns: repeat(3, 1fr) !important;

    }

}



@media (max-width: 480px) {

    .char-select-cards-grid-5 {

        grid-template-columns: repeat(2, 1fr) !important;

    }

}



/* Sınırsız Renk / Ton Özel Paneli */

.char-color-customizer {

    background: #0d1322;

    border: 2px solid #1e293b;

    border-radius: 12px;

    padding: 14px 18px;

    display: flex;

    flex-direction: column;

    gap: 10px;

    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);

}



.color-customizer-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px;

}



.color-customizer-title-wrap {

    display: flex;

    flex-direction: column;

    gap: 2px;

}



.color-customizer-title {

    font-size: 14px;

    font-weight: 700;

    color: #f8fafc;

    letter-spacing: 0.3px;

}



.color-customizer-sub {

    font-size: 11px;

    color: #94a3b8;

}



.color-indicator-wrap {

    display: flex;

    align-items: center;

    gap: 8px;

}



.color-hue-dot {

    width: 16px;

    height: 16px;

    border-radius: 50%;

    background: #ffffff;

    border: 2px solid #0f172a;

    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);

    display: inline-block;

    transition: background 0.08s ease, box-shadow 0.08s ease;

}



.color-hue-badge {

    font-family: 'VT323', monospace;

    font-size: 16px;

    color: #f8fafc;

    background: #1e293b;

    border: 1px solid #475569;

    padding: 2px 10px;

    border-radius: 6px;

    min-width: 90px;

    text-align: center;

}



.color-slider-track-wrap {

    width: 100%;

    padding: 6px 0;

}



.char-hue-slider {

    -webkit-appearance: none;

    appearance: none;

    width: 100%;

    height: 16px;

    border-radius: 8px;

    background: linear-gradient(to right, 

        hsl(0, 100%, 50%) 0%, 

        hsl(30, 100%, 50%) 8.3%,

        hsl(60, 100%, 50%) 16.7%, 

        hsl(90, 100%, 50%) 25%,

        hsl(120, 100%, 50%) 33.3%, 

        hsl(150, 100%, 50%) 41.7%,

        hsl(180, 100%, 50%) 50%, 

        hsl(210, 100%, 50%) 58.3%,

        hsl(240, 100%, 50%) 66.7%, 

        hsl(270, 100%, 50%) 75%,

        hsl(300, 100%, 50%) 83.3%, 

        hsl(330, 100%, 50%) 91.7%,

        hsl(360, 100%, 50%) 100%

    );

    outline: none;

    border: 1px solid #475569;

    cursor: pointer;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);

}



.char-hue-slider::-webkit-slider-thumb {

    -webkit-appearance: none;

    appearance: none;

    width: 24px;

    height: 24px;

    border-radius: 50%;

    background: #ffffff;

    border: 3px solid #0f172a;

    cursor: pointer;

    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 2px 5px rgba(0, 0, 0, 0.8);

    transition: transform 0.1s ease;

}



.char-hue-slider::-webkit-slider-thumb:hover {

    transform: scale(1.2);

}



.char-hue-slider::-moz-range-thumb {

    width: 24px;

    height: 24px;

    border-radius: 50%;

    background: #ffffff;

    border: 3px solid #0f172a;

    cursor: pointer;

    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 2px 5px rgba(0, 0, 0, 0.8);

}



.color-presets-row {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    align-items: center;

    padding-top: 4px;

}



.color-preset-pill {

    background: #1e293b;

    border: 1px solid #334155;

    color: #cbd5e1;

    font-family: 'VT323', monospace;

    font-size: 15px;

    padding: 3px 10px;

    border-radius: 6px;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    transition: all 0.15s ease;

    user-select: none;

}



.color-preset-pill::before {

    content: '';

    display: inline-block;

    width: 9px;

    height: 9px;

    border-radius: 50%;

    background: var(--p-color, #ffffff);

    box-shadow: 0 0 6px var(--p-color, #ffffff);

}



.color-preset-pill:hover {

    background: #334155;

    border-color: var(--p-color, #ffffff);

    color: #f8fafc;

    transform: translateY(-1px);

}



.color-preset-pill.active {

    background: #0284c733;

    border-color: #38bdf8;

    color: #38bdf8;

    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);

}





/* ==========================================================================

   Multiplayer Online & Chat Styles

   ========================================================================== */

.header-btn-profile,

.header-btn-leaderboard {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    background: #1e293b;

    border: 1px solid #334155;

    color: #f1f5f9;

    font-family: 'VT323', monospace;

    font-size: 16px;

    padding: 3px 10px;

    border-radius: 6px;

    cursor: pointer;

    transition: all 0.15s ease;

    user-select: none;

}



.header-btn-profile:hover,

.header-btn-leaderboard:hover {

    background: #334155;

    border-color: #38bdf8;

    color: #38bdf8;

    transform: translateY(-1px);

}



.header-online-pill {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    background: #0f172a;

    border: 1px solid #1e293b;

    padding: 3px 10px;

    border-radius: 6px;

    font-family: 'VT323', monospace;

    font-size: 15px;

    color: #4ade80;

}



.online-indicator-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow: 0 0 8px #22c55e;

    display: inline-block;

    animation: pulseDot 2s infinite ease-in-out;

}



@keyframes pulseDot {

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

    50% { opacity: 0.5; transform: scale(0.85); }

}



/* Floating Town & Global Chat Overlay */

.town-chat-overlay {

    position: fixed;

    bottom: 14px;

    left: 14px;

    width: 350px;

    max-width: calc(100vw - 28px);

    background: rgba(13, 19, 34, 0.94);

    border: 2px solid #1e293b;

    border-radius: 10px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);

    display: flex;

    flex-direction: column;

    z-index: 1000;

    backdrop-filter: blur(8px);

    transition: all 0.2s ease;

}



.town-chat-overlay.minimized .chat-body {

    display: none;

}



.chat-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 5px 8px;

    background: #090e17;

    border-bottom: 1px solid #1e293b;

    border-radius: 8px 8px 0 0;

}



/* Chat Tabs (Kasaba vs Genel) */

.chat-tabs-bar {

    display: flex;

    align-items: center;

    gap: 4px;

}



.chat-tab-btn {

    background: rgba(15, 23, 42, 0.75);

    border: 1px solid #1e293b;

    color: #94a3b8;

    padding: 3px 8px;

    border-radius: 4px;

    font-family: 'VT323', monospace;

    font-size: 14px;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 4px;

    transition: all 0.15s ease;

    user-select: none;

    position: relative;

}



.chat-tab-btn:hover {

    background: #1e293b;

    color: #f8fafc;

    border-color: #38bdf8;

}



.chat-tab-btn.active {

    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);

    color: #ffffff;

    border-color: #38bdf8;

    font-weight: bold;

    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);

}



.chat-tab-btn[data-channel="town"].active {

    background: linear-gradient(135deg, #047857 0%, #10b981 100%);

    border-color: #34d399;

    box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);

}



.chat-tab-icon {

    font-size: 12px;

    line-height: 1;

}



.chat-unread-badge {

    background: #ef4444;

    color: #ffffff;

    font-size: 10px;

    line-height: 1;

    padding: 1px 4px;

    border-radius: 8px;

    font-weight: bold;

    margin-left: 2px;

    box-shadow: 0 0 5px rgba(239, 68, 68, 0.8);

    animation: pulseDot 1.2s infinite;

}



.chat-header-actions {

    display: flex;

    align-items: center;

}



.chat-toggle-btn {

    background: none;

    border: none;

    color: #94a3b8;

    font-size: 16px;

    cursor: pointer;

    line-height: 1;

    padding: 2px 6px;

    border-radius: 4px;

}



.chat-toggle-btn:hover {

    background: #1e293b;

    color: #f8fafc;

}



.chat-messages-box {

    max-height: 150px;

    min-height: 85px;

    overflow-y: auto;

    padding: 8px 10px;

    display: flex;

    flex-direction: column;

    gap: 4px;

    font-family: 'VT323', monospace;

    font-size: 15px;

}



.chat-messages-box.hidden {

    display: none !important;

}



.chat-msg {

    line-height: 1.25;

    word-break: break-word;

    transition: background 0.2s ease;

}



.chat-msg.system {

    color: #fbbf24;

    font-style: italic;

}



.chat-msg.mention-me {

    background: rgba(234, 179, 8, 0.14);

    border-left: 2.5px solid #facc15;

    padding-left: 5px;

    margin-left: -3px;

    border-radius: 0 4px 4px 0;

}

/* Global / Trade Yellow Announcement Styling */
.chat-msg.chat-announcement-msg {
    display: block !important;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.22), rgba(15, 23, 42, 0.65)) !important;
    border-left: 3px solid #facc15 !important;
    border-right: 1px solid rgba(250, 204, 21, 0.3) !important;
    border-top: 1px solid rgba(250, 204, 21, 0.15) !important;
    border-bottom: 1px solid rgba(250, 204, 21, 0.15) !important;
    border-radius: 4px !important;
    padding: 5px 8px !important;
    margin: 4px 0 !important;
    color: #fde047 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.25) !important;
    animation: announcementGlow 1.4s ease-out;
}

@keyframes announcementGlow {
    0% { background: rgba(250, 204, 21, 0.45); box-shadow: 0 0 18px rgba(250, 204, 21, 0.7); }
    100% { background: linear-gradient(90deg, rgba(234, 179, 8, 0.22), rgba(15, 23, 42, 0.65)); }
}

.chat-announcement-tag {
    font-size: 10px !important;
    background: #eab308 !important;
    color: #020617 !important;
    font-weight: 800 !important;
    padding: 1px 5px !important;
    border-radius: 3px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-right: 4px !important;
    display: inline-block !important;
    vertical-align: middle;
}

.chat-announcement-player {
    color: #fef08a !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

.chat-announcement-player:hover {
    text-decoration: underline !important;
    color: #ffffff !important;
}

.chat-announcement-verb {
    color: #fef9c3 !important;
    font-style: italic !important;
    font-size: 12px !important;
    margin: 0 3px !important;
}

.chat-announcement-item {
    font-weight: 800 !important;
    text-shadow: 0 0 8px currentColor !important;
    padding: 0 3px !important;
    letter-spacing: 0.3px !important;
}

.chat-announcement-action {
    color: #facc15 !important;
    font-weight: 800 !important;
    margin-left: 3px !important;
}



.chat-timestamp {

    color: #64748b;

    font-size: 12px;

    margin-right: 3px;

}



.chat-chan-pill {

    font-size: 11px;

    padding: 1px 4px;

    border-radius: 3px;

    margin-right: 4px;

    font-weight: bold;

}

.chat-chan-pill.global {

    background: rgba(56, 189, 248, 0.2);

    color: #38bdf8;

    border: 1px solid rgba(56, 189, 248, 0.4);

}



/* Clickable User Tagging in Chat */

.clickable-user {

    color: #38bdf8;

    font-weight: 700;

    margin-right: 4px;

    cursor: pointer;

    transition: all 0.15s ease;

    padding: 1px 3px;

    border-radius: 3px;

    display: inline-block;

}



.clickable-user:hover {

    color: #fde047 !important;

    background: rgba(253, 224, 71, 0.2);

    text-shadow: 0 0 6px rgba(253, 224, 71, 0.7);

    text-decoration: underline;

}



/* Mention highlight */

.chat-mention {

    color: #38bdf8;

    font-weight: bold;

    background: rgba(56, 189, 248, 0.15);

    padding: 0 3px;

    border-radius: 3px;

    border: 1px solid rgba(56, 189, 248, 0.3);

    display: inline-block;

}



.chat-mention.mention-self {

    color: #fef08a;

    background: rgba(234, 179, 8, 0.25);

    border-color: #facc15;

    box-shadow: 0 0 6px rgba(250, 204, 21, 0.4);

}



.chat-text {

    color: #f1f5f9;

}



.chat-form {

    display: flex;

    padding: 6px 8px;

    border-top: 1px solid #1e293b;

    gap: 6px;

    background: #090e17;

    border-radius: 0 0 8px 8px;

}



.chat-input {

    flex: 1;

    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 4px;

    padding: 4px 8px;

    color: #f8fafc;

    font-family: 'VT323', monospace;

    font-size: 15px;

    outline: none;

}



.chat-input:focus {

    border-color: #38bdf8;

}



.chat-send-btn {

    background: #0284c7;

    border: none;

    border-radius: 4px;

    color: #ffffff;

    font-family: 'VT323', monospace;

    font-size: 15px;

    padding: 4px 10px;

    cursor: pointer;

    transition: background 0.15s ease;

}



.chat-send-btn:hover {

    background: #0369a1;

}



/* Profile & Leaderboard Modals */

.profile-modal-content,

.leaderboard-modal-content {

    max-width: 480px;

    width: 90%;

    padding: 18px 22px;

}



.profile-modal-body {

    display: flex;

    flex-direction: column;

    gap: 14px;

    margin-top: 12px;

}



.profile-status-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: #0f172a;

    border: 1px solid #1e293b;

    padding: 6px 12px;

    border-radius: 8px;

    font-size: 14px;

    color: #4ade80;

}



.profile-form-group {

    display: flex;

    flex-direction: column;

    gap: 4px;

}



.profile-form-group label {

    font-size: 13px;

    color: #94a3b8;

    font-weight: 600;

}



.retro-input {

    background: #0f172a;

    border: 1px solid #334155;

    border-radius: 6px;

    padding: 8px 12px;

    color: #f8fafc;

    font-family: 'VT323', monospace;

    font-size: 18px;

    outline: none;

}



.retro-input:focus {

    border-color: #38bdf8;

    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);

}



.profile-hint {

    font-size: 11px;

    color: #64748b;

    line-height: 1.3;

}



.leaderboard-modal-body {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 10px;

}



.leaderboard-header-row,

.lb-row {

    display: grid;

    grid-template-columns: 32px 1fr 90px 60px 60px 70px;

    align-items: center;

    padding: 6px 8px;

    font-family: 'VT323', monospace;

    font-size: 16px;

}



.leaderboard-header-row {

    background: #0f172a;

    border-radius: 6px;

    color: #94a3b8;

    font-weight: 700;

    border: 1px solid #1e293b;

}



.leaderboard-list {

    max-height: 280px;

    overflow-y: auto;

    display: flex;

    flex-direction: column;

    gap: 4px;

}



.lb-row {

    background: #1e293b44;

    border-radius: 4px;

    border: 1px solid #33415533;

    transition: background 0.1s ease;

}



.lb-row:hover {

    background: #33415566;

}



.lb-row.top-1 { color: #facc15; font-weight: 700; }

.lb-row.top-2 { color: #cbd5e1; font-weight: 700; }

.lb-row.top-3 { color: #d97706; font-weight: 700; }



.lb-col-rank { text-align: center; }

.lb-col-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lb-col-class { color: #38bdf8; }

.lb-col-lvl { color: #f59e0b; text-align: center; }

.lb-col-stage { color: #10b981; text-align: center; }

.lb-col-gold { color: #eab308; text-align: right; }



.leaderboard-footer {

    display: flex;

    justify-content: flex-end;

    padding-top: 6px;

}





/* ==========================================================================

   5 Towns Travel & Faction War Arena Styles

   ========================================================================== */

.header-war-pill {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    background: #450a0a;

    border: 1px solid #dc2626;

    padding: 3px 10px;

    border-radius: 6px;

    font-family: 'VT323', monospace;

    font-size: 15px;

    color: #fca5a5;

    cursor: pointer;

    transition: all 0.15s ease;

    user-select: none;

}



.header-war-pill:hover {

    background: #7f1d1d;

    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);

    transform: translateY(-1px);

}



.war-swords-icon {

    animation: warSwordsPulse 1.5s infinite ease-in-out;

}



@keyframes warSwordsPulse {

    0%, 100% { transform: scale(1) rotate(0deg); }

    50% { transform: scale(1.18) rotate(10deg); }

}



/* Town Travel Modal */

.travel-modal-content {

    max-width: 680px;

    width: 95%;

}



.travel-subtitle {

    font-size: 13px;

    color: #94a3b8;

    margin-bottom: 12px;

}



.towns-cards-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 12px;

    margin-bottom: 14px;

}



.town-card {

    background: #0d1322;

    border: 2px solid #1e293b;

    border-radius: 10px;

    padding: 12px;

    display: flex;

    flex-direction: column;

    gap: 6px;

    cursor: pointer;

    transition: all 0.2s ease;

    position: relative;

    overflow: hidden;

}



.town-card:hover {

    border-color: var(--t-color, #38bdf8);

    transform: translateY(-2px);

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);

}



.town-card.active-here {

    border-color: var(--t-color, #38bdf8);

    background: #0f1f38;

}



.town-card.active-here::after {

    content: 'Mevcut Kasaba';

    position: absolute;

    top: 6px;

    right: 6px;

    font-size: 10px;

    background: var(--t-color, #38bdf8);

    color: #000;

    padding: 1px 6px;

    border-radius: 4px;

    font-weight: 700;

}



.town-card-header {

    display: flex;

    align-items: center;

    gap: 8px;

}



.town-card-title {

    font-family: 'VT323', monospace;

    font-size: 18px;

    font-weight: 700;

    color: var(--t-color, #f8fafc);

}



.town-card-desc {

    font-size: 12px;

    color: #cbd5e1;

    line-height: 1.3;

}



.town-card-bonus {

    font-family: 'VT323', monospace;

    font-size: 14px;

    color: #facc15;

    background: #1e293b;

    padding: 2px 8px;

    border-radius: 4px;

    margin-top: 4px;

}



.travel-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    padding-top: 10px;

    border-top: 1px solid #1e293b;

}



.current-town-badge {

    font-family: 'VT323', monospace;

    font-size: 16px;

    color: #38bdf8;

}



/* Faction War Modal & Gauntlet Arena */

.war-modal-content {

    max-width: 640px;

    width: 95%;

}



.war-match-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: #090e17;

    border: 2px solid #1e293b;

    border-radius: 10px;

    padding: 12px 18px;

    margin-bottom: 12px;

}



.war-team-badge {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 2px;

    min-width: 130px;

}



.war-town-name {

    font-family: 'VT323', monospace;

    font-size: 20px;

    font-weight: 700;

    color: #f8fafc;

}



.team-a .war-town-name { color: #ef4444; }

.team-b .war-town-name { color: #10b981; }



.war-fighter-count {

    font-family: 'VT323', monospace;

    font-size: 14px;

    color: #94a3b8;

    background: #1e293b;

    padding: 2px 8px;

    border-radius: 4px;

}



.war-vs-badge {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 2px;

}



.vs-text {

    font-family: 'VT323', monospace;

    font-size: 26px;

    font-weight: 700;

    color: #f59e0b;

}



.war-timer {

    font-family: 'VT323', monospace;

    font-size: 16px;

    color: #e2e8f0;

    background: #1e293b;

    padding: 2px 8px;

    border-radius: 4px;

}



.war-registration-pane {

    background: #0f172a;

    border: 1px solid #1e293b;

    border-radius: 8px;

    padding: 12px 16px;

    margin-bottom: 12px;

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.war-desc-text {

    font-size: 13px;

    color: #cbd5e1;

    line-height: 1.4;

    margin: 0;

}



.war-actions-row {

    display: flex;

    gap: 10px;

    align-items: center;

}



/* Live 1v1 Arena Display */

.war-arena-display {

    background: linear-gradient(180deg, #0b1120 0%, #030712 100%);

    border: 2px solid #334155;

    border-radius: 10px;

    padding: 14px;

    display: flex;

    flex-direction: column;

    gap: 12px;

    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);

}



.arena-round-indicator {

    display: flex;

    justify-content: center;

}



.round-badge {

    font-family: 'VT323', monospace;

    font-size: 18px;

    background: #1e293b;

    border: 1px solid #f59e0b;

    color: #f59e0b;

    padding: 2px 14px;

    border-radius: 12px;

}



.arena-fighters-stage {

    display: flex;

    justify-content: space-around;

    align-items: center;

    min-height: 140px;

}



.arena-fighter-col {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    width: 170px;

}



.fighter-info-bar {

    display: flex;

    justify-content: space-between;

    width: 100%;

    font-family: 'VT323', monospace;

    font-size: 16px;

}



.fighter-name { font-weight: 700; color: #f8fafc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }

.fighter-lvl { color: #facc15; }



.fighter-hp-wrap {

    width: 100%;

    height: 16px;

    background: #0f172a;

    border: 1px solid #334155;

    border-radius: 8px;

    position: relative;

    overflow: hidden;

}



.fighter-hp-fill {

    height: 100%;

    background: linear-gradient(90deg, #ef4444 0%, #22c55e 100%);

    width: 100%;

    transition: width 0.3s ease;

}



.fighter-hp-text {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: 'VT323', monospace;

    font-size: 13px;

    color: #ffffff;

    text-shadow: 0 1px 2px #000;

}



.fighter-avatar-box {

    width: 80px;

    height: 80px;

    background: #0f172a88;

    border: 2px solid #1e293b;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

}



.fighter-sprite {

    width: 64px;

    height: 64px;

    object-fit: contain;

    image-rendering: pixelated;

}



.fighter-sprite.flip {

    transform: scaleX(-1);

}



.clash-icon {

    font-size: 32px;

    animation: clashPulse 0.8s infinite alternate ease-in-out;

}



@keyframes clashPulse {

    0% { transform: scale(0.9); }

    100% { transform: scale(1.25); }

}



.floating-dmg-number {

    position: absolute;

    top: -12px;

    font-family: 'VT323', monospace;

    font-size: 22px;

    color: #ef4444;

    font-weight: 700;

    text-shadow: 0 0 6px #000;

    opacity: 0;

    pointer-events: none;

    transition: all 0.5s ease;

}



.floating-dmg-number.show {

    opacity: 1;

    transform: translateY(-20px) scale(1.2);

}



.war-combat-log {

    background: #090e17;

    border: 1px solid #1e293b;

    border-radius: 6px;

    padding: 6px 12px;

    font-family: 'VT323', monospace;

    font-size: 15px;

    color: #94a3b8;

    text-align: center;

}



.war-victory-banner {

    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);

    border: 2px solid #facc15;

    border-radius: 10px;

    padding: 16px;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    margin-top: 10px;

    box-shadow: 0 0 24px rgba(250, 204, 21, 0.4);

}



.victory-trophy { font-size: 40px; }

.war-victory-banner h3 {

    margin: 0;

    font-family: 'VT323', monospace;

    font-size: 26px;

    color: #facc15;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);

}



.war-victory-banner p {

    margin: 0;

    font-size: 13px;

    color: #e0e7ff;

}



/* ==========================================================================

   High-Tier Equipment Aura & Glow Enhancements (+7 Cyan, +8 Mystic, +9 Godly)

   ========================================================================== */

.slot-lvl-badge.glow-cyan {

    color: #38bdf8 !important;

    text-shadow: 0 0 6px #0284c7, 0 0 2px #38bdf8, 1px 1px 1px #000 !important;

}



.slot-lvl-badge.glow-purple {

    color: #f0abfc !important;

    text-shadow: 0 0 8px #c084fc, 0 0 3px #a855f7, 1px 1px 1px #000 !important;

}



.slot-lvl-badge.glow-gold {

    color: #fef08a !important;

    text-shadow: 0 0 10px #f59e0b, 0 0 4px #fbbf24, 1px 1px 2px #000 !important;

    animation: pulse-gold-badge 1.8s ease-in-out infinite alternate;

}



.item-glow-cyan {

    border-color: #38bdf8 !important;

    box-shadow: inset 0 0 8px rgba(56, 189, 248, 0.4), 0 0 8px rgba(56, 189, 248, 0.5) !important;

}



.item-glow-purple {

    border-color: #c084fc !important;

    box-shadow: inset 0 0 10px rgba(192, 132, 252, 0.5), 0 0 10px rgba(192, 132, 252, 0.6) !important;

}



.item-glow-gold {

    border-color: #fde047 !important;

    box-shadow: inset 0 0 14px rgba(253, 224, 71, 0.6), 0 0 12px rgba(250, 204, 21, 0.75) !important;

    animation: pulse-gold-slot 2.2s infinite ease-in-out;

}



@keyframes pulse-gold-badge {

    0% { transform: scale(1); filter: brightness(1); }

    100% { transform: scale(1.15); filter: brightness(1.35); text-shadow: 0 0 14px #eab308, 0 0 6px #facc15; }

}



@keyframes pulse-gold-slot {

    0% { box-shadow: inset 0 0 12px rgba(253, 224, 71, 0.5), 0 0 10px rgba(250, 204, 21, 0.6); }

    50% { box-shadow: inset 0 0 18px rgba(253, 224, 71, 0.8), 0 0 16px rgba(250, 204, 21, 0.95); }

    100% { box-shadow: inset 0 0 12px rgba(253, 224, 71, 0.5), 0 0 10px rgba(250, 204, 21, 0.6); }

}



/* =========================================================================

   ENHANCED 48-SLOT INVENTORY & QUICK ACTIONS

   ========================================================================= */

#bottom-inventory-panel {

    height: 275px;

    background: #111722;

    border-top: 2px solid var(--panel-border);

    padding: 10px 16px;

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.inventory-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

}



.inventory-title-group {

    display: flex;

    align-items: center;

    gap: 12px;

}



.inv-cap-badge {

    font-size: 13px;

    font-weight: bold;

    color: #94a3b8;

    background: #1e293b;

    border: 1px solid #334155;

    padding: 2px 8px;

    border-radius: 10px;

    letter-spacing: 0.5px;

}



.inv-cap-badge.warn {

    color: #fbbf24;

    border-color: #f59e0b;

    background: rgba(245, 158, 11, 0.15);

}



.inv-cap-badge.full {

    color: #f87171;

    border-color: #ef4444;

    background: rgba(239, 68, 68, 0.2);

    animation: pulse-cap 1.5s infinite alternate;

}



@keyframes pulse-cap {

    0% { transform: scale(1); }

    100% { transform: scale(1.08); }

}



.inventory-filter-tabs {

    display: flex;

    gap: 4px;

    margin-left: 6px;

}



.inv-filter-btn {

    background: #1e293b;

    border: 1px solid #334155;

    color: #94a3b8;

    font-size: 11px;

    padding: 3px 8px;

    border-radius: 4px;

    cursor: pointer;

    transition: all 0.15s ease;

}



.inv-filter-btn:hover {

    background: #334155;

    color: #f1f5f9;

}



.inv-filter-btn.active {

    background: linear-gradient(180deg, #0284c7, #0369a1);

    border-color: #38bdf8;

    color: #ffffff;

    font-weight: bold;

    box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);

}



.inventory-actions-group {

    display: flex;

    gap: 6px;

    align-items: center;

}



.inv-action-btn {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    font-size: 11px;

    font-weight: bold;

    padding: 4px 9px;

    border-radius: 4px;

    cursor: pointer;

    transition: all 0.15s ease;

    border: 1px solid transparent;

}



.inv-action-btn.sort-btn {

    background: linear-gradient(180deg, #334155, #1e293b);

    border-color: #475569;

    color: #cbd5e1;

}



.inv-action-btn.sort-btn:hover {

    border-color: #94a3b8;

    background: linear-gradient(180deg, #475569, #334155);

    color: #fff;

    transform: translateY(-1px);

}



.inv-action-btn.sell-trash-btn {

    background: linear-gradient(180deg, #991b1b, #7f1d1d);

    border-color: #ef4444;

    color: #fee2e2;

}



.inv-action-btn.sell-trash-btn:hover {

    background: linear-gradient(180deg, #b91c1c, #991b1b);

    border-color: #f87171;

    transform: translateY(-1px);

    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);

}



.inv-action-btn.market-btn {

    background: linear-gradient(180deg, #d97706, #b45309);

    border-color: #f59e0b;

    color: #ffffff;

    text-shadow: 1px 1px 1px #000;

}



.inv-action-btn.market-btn:hover {

    background: linear-gradient(180deg, #f59e0b, #d97706);

    border-color: #fbbf24;

    transform: translateY(-1px);

    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);

}



.inventory-subbar {

    font-size: 11px;

    color: #64748b;

    display: flex;

    justify-content: space-between;

    padding: 0 2px;

}



#inventory-grid {

    display: grid;

    grid-template-columns: repeat(8, 52px);

    grid-gap: 6px;

    max-height: 195px;

    overflow-y: auto;

    padding-right: 4px;

}



#inventory-grid .inv-slot {

    width: 52px;

    height: 52px;

}



/* Custom retro slim scrollbar for inventory */

#inventory-grid::-webkit-scrollbar {

    width: 6px;

}

#inventory-grid::-webkit-scrollbar-track {

    background: #0d131f;

    border-radius: 3px;

}

#inventory-grid::-webkit-scrollbar-thumb {

    background: #334155;

    border-radius: 3px;

}

#inventory-grid::-webkit-scrollbar-thumb:hover {

    background: #0284c7;

}



/* =========================================================================

   OYUNCU PAZARYERI (PLAYER MARKETPLACE) MODAL

   ========================================================================= */

.market-modal-content {

    width: 980px;

    max-width: 96vw;

    max-height: 94vh;

    background: #0f172a;

    border: 3px solid #b45309;

    outline: 2px solid #1c1917;

    border-radius: 12px;

    box-shadow: inset 0 0 0 2px #78350f, 0 24px 60px rgba(0, 0, 0, 0.95);

    display: flex;

    flex-direction: column;

    overflow: hidden;

}



.market-header-actions {

    display: flex;

    align-items: center;

    gap: 16px;

}



.market-user-gold-badge {

    background: rgba(245, 158, 11, 0.12);

    border: 1.5px solid #f59e0b;

    border-radius: 6px;

    padding: 4px 12px;

    font-size: 14px;

    color: #cbd5e1;

    display: flex;

    align-items: center;

    gap: 8px;

}



.market-user-gold-badge .gold-val {

    color: #facc15;

    font-weight: bold;

    display: flex;

    align-items: center;

    gap: 4px;

}



.market-nav-tabs {

    display: flex;

    gap: 6px;

    background: #0b0f19;

    border-bottom: 2px solid #1e293b;

    padding: 10px 18px 0 18px;

}



.market-tab-btn {

    background: #182030;

    border: 1px solid #334155;

    border-bottom: none;

    color: #94a3b8;

    padding: 8px 16px;

    font-size: 13px;

    font-weight: bold;

    border-radius: 6px 6px 0 0;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 6px;

    transition: all 0.15s ease;

}



.market-tab-btn:hover {

    color: #ffffff;

    background: #1e293b;

}



.market-tab-btn.active {

    background: #1e293b;

    border-color: #f59e0b;

    color: #fde047;

    border-top: 3px solid #f59e0b;

    box-shadow: 0 -2px 10px rgba(245, 158, 11, 0.2);

}



.market-tab-pane {

    padding: 16px 20px;

    display: flex;

    flex-direction: column;

    gap: 12px;

    flex: 1;

    overflow-y: auto;

    max-height: calc(94vh - 120px);

}



.market-filters-bar {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    background: #182030;

    border: 1px solid #334155;

    border-radius: 8px;

    padding: 10px 14px;

}



.filter-group {

    display: flex;

    align-items: center;

    gap: 6px;

}



.filter-group label {

    font-size: 12px;

    color: #94a3b8;

    font-weight: bold;

}



.filter-group.flex-grow {

    flex: 1;

    min-width: 180px;

}



.market-select, .market-input {

    background: #0b0f17;

    border: 1px solid #3b4252;

    color: #f1f5f9;

    border-radius: 6px;

    padding: 6px 10px;

    font-size: 12px;

}



.market-select:focus, .market-input:focus {

    border-color: #f59e0b;

    outline: none;

}



.market-input {

    width: 100%;

}



.market-btn-refresh {

    background: linear-gradient(180deg, #0284c7, #0369a1);

    border: 1px solid #38bdf8;

    color: #ffffff;

    padding: 6px 12px;

    border-radius: 6px;

    font-size: 12px;

    font-weight: bold;

    cursor: pointer;

    transition: all 0.15s ease;

}



.market-btn-refresh:hover {

    background: linear-gradient(180deg, #0369a1, #075985);

    transform: scale(1.04);

}



/* Listings Grid */

.market-listings-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));

    gap: 12px;

    overflow-y: auto;

    padding: 4px 2px 14px 2px;

}



.market-empty-notice {

    grid-column: 1 / -1;

    text-align: center;

    padding: 40px 20px;

    color: #64748b;

    font-size: 15px;

    background: #131924;

    border: 1px dashed #334155;

    border-radius: 8px;

}



.market-listing-card {

    background: #182030;

    border: 1.5px solid #334155;

    border-radius: 8px;

    padding: 12px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    transition: all 0.18s ease;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

}



.market-listing-card:hover {

    border-color: #f59e0b;

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);

}



.market-card-top {

    display: flex;

    align-items: center;

    gap: 10px;

}



.market-card-icon-wrap {

    width: 48px;

    height: 48px;

    border-radius: 6px;

    border: 2px solid #475569;

    background: #0f172a;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    flex-shrink: 0;

}



.market-card-icon-wrap img {

    width: 36px;

    height: 36px;

    image-rendering: pixelated;

}



.market-card-lvl-badge {

    position: absolute;

    bottom: -4px;

    right: -4px;

    background: #1e293b;

    border: 1px solid #475569;

    border-radius: 4px;

    font-size: 10px;

    font-weight: bold;

    padding: 0 4px;

}



.market-card-details {

    flex: 1;

    overflow: hidden;

}



.market-card-name {

    font-weight: bold;

    font-size: 14px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.market-card-meta {

    font-size: 11px;

    color: #94a3b8;

    margin-top: 2px;

    display: flex;

    gap: 6px;

    align-items: center;

}



.market-seller-tag {

    color: #38bdf8;

    font-weight: 500;

}



.market-card-stats {

    font-size: 11px;

    color: #cbd5e1;

    background: #111722;

    border-radius: 4px;

    padding: 6px 8px;

    line-height: 1.4;

}



.market-card-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: auto;

    padding-top: 6px;

    border-top: 1px solid #283347;

}



.market-price-tag {

    display: flex;

    align-items: center;

    gap: 4px;

    font-weight: bold;

    font-size: 15px;

    color: #facc15;

}



.market-btn-buy {

    background: linear-gradient(180deg, #16a34a, #15803d);

    border: 1px solid #4ade80;

    color: #ffffff;

    font-size: 12px;

    font-weight: bold;

    padding: 6px 14px;

    border-radius: 6px;

    cursor: pointer;

    transition: all 0.15s ease;

}



.market-btn-buy:hover {

    background: linear-gradient(180deg, #22c55e, #16a34a);

    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);

    transform: scale(1.05);

}



.market-btn-buy.disabled {

    background: #334155;

    border-color: #475569;

    color: #94a3b8;

    cursor: not-allowed;

    box-shadow: none;

    transform: none;

}



/* Sell Tab Layout */

.market-sell-layout {

    display: grid;

    grid-template-columns: 1.2fr 1fr;

    gap: 16px;

    height: 100%;

}



.sell-pane-title {

    font-size: 14px;

    font-weight: bold;

    color: #f1f5f9;

    margin-bottom: 10px;

    padding-bottom: 6px;

    border-bottom: 1px solid #334155;

}



.market-inventory-grid {

    display: grid;

    grid-template-columns: repeat(6, 52px);

    gap: 6px;

    max-height: 380px;

    overflow-y: auto;

    padding-right: 4px;

}



.market-inventory-grid .inv-slot {

    width: 52px;

    height: 52px;

    cursor: pointer;

}



.market-inventory-grid .inv-slot.selected {

    border-color: #f59e0b !important;

    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;

    transform: scale(1.06);

}



.market-sell-right {

    background: #182030;

    border: 1px solid #334155;

    border-radius: 8px;

    padding: 14px;

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.market-selected-item-box {

    background: #111722;

    border: 1.5px dashed #475569;

    border-radius: 8px;

    padding: 14px;

    min-height: 120px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

}



.market-selected-item-box.empty {

    color: #64748b;

    font-size: 13px;

}



.market-selected-item-box.filled {

    border-style: solid;

    align-items: stretch;

    text-align: left;

}



.market-sell-form {

    display: flex;

    flex-direction: column;

    gap: 14px;

}



.sell-price-row {

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.sell-price-row label {

    font-size: 13px;

    color: #cbd5e1;

    font-weight: bold;

}



.price-input-wrapper {

    display: flex;

    align-items: center;

    gap: 8px;

    background: #0b0f17;

    border: 1.5px solid #3b4252;

    border-radius: 6px;

    padding: 6px 12px;

}



.price-input-wrapper input {

    background: transparent;

    border: none;

    color: #facc15;

    font-size: 18px;

    font-weight: bold;

    width: 100%;

    outline: none;

}



.sell-fee-note {

    font-size: 12px;

    color: #94a3b8;

    background: #111722;

    border-left: 3px solid #38bdf8;

    padding: 8px 12px;

    border-radius: 0 6px 6px 0;

    line-height: 1.4;

}



.market-action-btn {

    background: linear-gradient(180deg, #d97706, #b45309);

    border: 1.5px solid #f59e0b;

    color: #ffffff;

    font-size: 15px;

    font-weight: bold;

    padding: 10px;

    border-radius: 6px;

    cursor: pointer;

    transition: all 0.15s ease;

    text-shadow: 1px 1px 1px #000;

}



.market-action-btn:hover {

    background: linear-gradient(180deg, #f59e0b, #d97706);

    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);

    transform: translateY(-1px);

}



/* My Listings Tab */

.my-listings-container {

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.my-listings-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-bottom: 8px;

    border-bottom: 1px solid #334155;

}



.my-listings-header h4 {

    font-size: 15px;

    color: #f1f5f9;

}



.my-listings-header .badge {

    background: #1e293b;

    border: 1px solid #475569;

    padding: 2px 10px;

    border-radius: 12px;

    font-size: 12px;

    color: #94a3b8;

}



.my-listings-list {

    display: flex;

    flex-direction: column;

    gap: 8px;

    overflow-y: auto;

    max-height: 420px;

}



.my-listing-row {

    background: #182030;

    border: 1px solid #334155;

    border-radius: 6px;

    padding: 10px 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    transition: all 0.15s ease;

}



.my-listing-row:hover {

    border-color: #475569;

    background: #1c263a;

}



.my-listing-left {

    display: flex;

    align-items: center;

    gap: 12px;

}



.my-listing-info {

    display: flex;

    flex-direction: column;

    gap: 2px;

}



.my-listing-title {

    font-size: 13px;

    font-weight: bold;

}



.my-listing-date {

    font-size: 11px;

    color: #64748b;

}



.my-listing-right {

    display: flex;

    align-items: center;

    gap: 14px;

}



.btn-cancel-listing {

    background: linear-gradient(180deg, #dc2626, #b91c1c);

    border: 1px solid #f87171;

    color: #ffffff;

    font-size: 11px;

    font-weight: bold;

    padding: 5px 10px;

    border-radius: 4px;

    cursor: pointer;

    transition: all 0.15s ease;

}



.btn-cancel-listing:hover {

    background: linear-gradient(180deg, #ef4444, #dc2626);

    transform: scale(1.04);

}



.listing-status-tag {

    font-size: 11px;

    font-weight: bold;

    padding: 2px 8px;

    border-radius: 4px;

}



.listing-status-tag.active {

    background: rgba(34, 197, 94, 0.15);

    border: 1px solid #22c55e;

    color: #4ade80;

}



.listing-status-tag.sold {

    background: rgba(245, 158, 11, 0.15);

    border: 1px solid #f59e0b;

    color: #facc15;

}



/* =========================================================================

   KRALLIK DİVANI, KASABA GÖREVLİLERİ & DİPLOMASİ SİSTEMİ

   ========================================================================= */



.header-btn-diplomacy {

    background: linear-gradient(180deg, #7e22ce, #6b21a8);

    border: 1.5px solid #c084fc;

    color: #f5f3ff;

    padding: 4px 10px;

    border-radius: 6px;

    font-size: 12px;

    font-weight: bold;

    display: inline-flex;

    align-items: center;

    gap: 4px;

    cursor: pointer;

    transition: all 0.15s ease;

    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);

}



.header-btn-diplomacy:hover {

    background: linear-gradient(180deg, #9333ea, #7e22ce);

    border-color: #e9d5ff;

    transform: translateY(-1px);

    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);

}



.diplomacy-modal-content {

    width: 1020px;

    max-width: 96vw;

    max-height: 94vh;

    background: #0f172a;

    border: 3px solid #7e22ce;

    outline: 2px solid #1e1b4b;

    border-radius: 12px;

    box-shadow: inset 0 0 0 2px #581c87, 0 24px 60px rgba(0, 0, 0, 0.95);

    display: flex;

    flex-direction: column;

    overflow: hidden;

}



.diplomacy-title-box {

    display: flex;

    flex-direction: column;

    gap: 2px;

}



.diplomacy-town-badge {

    font-size: 11px;

    color: #a855f7;

    font-weight: bold;

    letter-spacing: 0.5px;

}



.diplomacy-nav-tabs {

    display: flex;

    gap: 6px;

    background: #0b0f19;

    border-bottom: 2px solid #1e293b;

    padding: 10px 18px 0 18px;

    overflow-x: auto;

}



.diplomacy-tab-btn {

    background: #182030;

    border: 1px solid #334155;

    border-bottom: none;

    color: #94a3b8;

    padding: 8px 16px;

    font-size: 13px;

    font-weight: bold;

    border-radius: 6px 6px 0 0;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 6px;

    transition: all 0.15s ease;

    white-space: nowrap;

}



.diplomacy-tab-btn:hover {

    color: #ffffff;

    background: #1e293b;

}



.diplomacy-tab-btn.active {

    background: #1e293b;

    border-color: #a855f7;

    color: #d8b4fe;

    border-top: 3px solid #a855f7;

    box-shadow: 0 -2px 10px rgba(168, 85, 247, 0.25);

}



.diplomacy-tab-pane {

    padding: 16px 20px;

    display: flex;

    flex-direction: column;

    gap: 14px;

    flex: 1;

    overflow-y: auto;

    max-height: calc(94vh - 120px);

}



.relations-summary-header h4, .council-header h4, .candidates-list-header h4 {

    font-size: 15px;

    color: #f1f5f9;

    font-weight: bold;

}



.relations-desc, .council-desc, .form-desc {

    font-size: 12px;

    color: #94a3b8;

    margin-top: 2px;

}



/* 5 Krallık Kartları */

.diplomacy-towns-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 10px;

}



.diplomacy-town-card {

    background: #182030;

    border: 1.5px solid #334155;

    border-radius: 8px;

    padding: 12px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    transition: all 0.18s ease;

    position: relative;

    overflow: hidden;

}



.diplomacy-town-card:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);

}



.diplomacy-town-card.is-home {

    border-color: #10b981;

    background: #12242b;

}



.diplomacy-town-header {

    display: flex;

    align-items: center;

    gap: 8px;

}



.town-banner-indicator {

    width: 12px;

    height: 12px;

    border-radius: 3px;

    flex-shrink: 0;

}



.town-name-wrap {

    flex: 1;

    overflow: hidden;

}



.town-name-wrap .name {

    font-weight: bold;

    font-size: 14px;

    color: #f1f5f9;

    white-space: nowrap;

}



.town-name-wrap .title {

    font-size: 11px;

    color: #94a3b8;

}



.relation-status-pill {

    padding: 4px 8px;

    border-radius: 4px;

    font-size: 11px;

    font-weight: bold;

    display: inline-flex;

    align-items: center;

    gap: 4px;

    align-self: flex-start;

}



.relation-status-pill.allied {

    background: rgba(34, 197, 94, 0.18);

    border: 1px solid #22c55e;

    color: #4ade80;

}



.relation-status-pill.war {

    background: rgba(239, 68, 68, 0.22);

    border: 1px solid #ef4444;

    color: #f87171;

    animation: pulse-war 1.5s infinite alternate;

}



@keyframes pulse-war {

    0% { transform: scale(1); }

    100% { transform: scale(1.05); }

}



.relation-status-pill.trade_pact {

    background: rgba(245, 158, 11, 0.18);

    border: 1px solid #f59e0b;

    color: #facc15;

}



.relation-status-pill.neutral {

    background: rgba(148, 163, 184, 0.15);

    border: 1px solid #64748b;

    color: #cbd5e1;

}



.relation-status-pill.home {

    background: rgba(16, 185, 129, 0.2);

    border: 1px solid #10b981;

    color: #34d399;

}



.town-perk-snippet {

    font-size: 11px;

    color: #94a3b8;

    background: #0f172a;

    padding: 6px;

    border-radius: 4px;

    line-height: 1.3;

}



.town-leader-snippet {

    font-size: 11px;

    color: #e2e8f0;

    margin-top: auto;

    padding-top: 4px;

    border-top: 1px solid #273549;

}



/* 5x5 Diplomatic Matrix Table */

.diplomacy-matrix-box {

    background: #182030;

    border: 1px solid #334155;

    border-radius: 8px;

    padding: 12px;

}



.diplomacy-matrix-box h4 {

    font-size: 13px;

    color: #cbd5e1;

    margin-bottom: 8px;

}



.diplomacy-matrix-table {

    display: grid;

    grid-template-columns: 140px repeat(5, 1fr);

    gap: 4px;

    font-size: 11px;

    overflow-x: auto;

}



.matrix-cell {

    padding: 6px;

    text-align: center;

    border-radius: 4px;

    background: #0f172a;

    display: flex;

    align-items: center;

    justify-content: center;

}



.matrix-cell.header {

    background: #1e293b;

    font-weight: bold;

    color: #94a3b8;

}



.matrix-cell.town-col {

    font-weight: bold;

    justify-content: flex-start;

    padding-left: 8px;

    color: #e2e8f0;

}



/* Sekme 2: Kasaba Divanı & Görevliler */

.diplomacy-officials-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 14px;

}



.official-card {

    background: #182030;

    border: 2px solid #334155;

    border-radius: 10px;

    padding: 16px;

    display: flex;

    flex-direction: column;

    gap: 12px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

}



.official-card.governor {

    border-color: #f59e0b;

}



.official-card.marshal {

    border-color: #ef4444;

}



.official-card.treasurer {

    border-color: #10b981;

}



.official-card-top {

    display: flex;

    align-items: center;

    gap: 12px;

}



.official-icon-box {

    width: 48px;

    height: 48px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

    background: #0f172a;

    border: 1.5px solid #475569;

}



.official-info h5 {

    font-size: 15px;

    color: #f1f5f9;

    font-weight: bold;

}



.official-holder {

    font-size: 13px;

    color: #38bdf8;

    font-weight: bold;

    margin-top: 2px;

}



.official-type-tag {

    font-size: 11px;

    color: #94a3b8;

}



.official-powers-list {

    background: #0f172a;

    border-radius: 6px;

    padding: 10px 12px;

    font-size: 12px;

    line-height: 1.5;

    color: #cbd5e1;

    display: flex;

    flex-direction: column;

    gap: 4px;

}



.official-powers-list strong {

    color: #facc15;

}



.official-status-row {

    margin-top: auto;

    font-size: 11px;

    color: #94a3b8;

    display: flex;

    justify-content: space-between;

    padding-top: 8px;

    border-top: 1px solid #273549;

}



/* Sekme 3: Seçimler & Adaylar */

.elections-layout {

    display: grid;

    grid-template-columns: 1fr 1.3fr;

    gap: 16px;

}



.candidacy-form-box, .candidates-list-box {

    background: #182030;

    border: 1px solid #334155;

    border-radius: 8px;

    padding: 14px;

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.form-field {

    display: flex;

    flex-direction: column;

    gap: 4px;

}



.form-field label {

    font-size: 12px;

    font-weight: bold;

    color: #cbd5e1;

}



.diplomacy-btn {

    border: none;

    border-radius: 6px;

    padding: 8px 14px;

    font-size: 12px;

    font-weight: bold;

    cursor: pointer;

    transition: all 0.15s ease;

    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);

}



.diplomacy-btn.primary {

    background: linear-gradient(180deg, #7e22ce, #6b21a8);

    border: 1.5px solid #a855f7;

    color: #ffffff;

}



.diplomacy-btn.primary:hover {

    background: linear-gradient(180deg, #9333ea, #7e22ce);

    transform: translateY(-1px);

}



.diplomacy-btn.danger {

    background: linear-gradient(180deg, #dc2626, #b91c1c);

    border: 1.5px solid #ef4444;

    color: #ffffff;

}



.diplomacy-btn.danger:hover {

    background: linear-gradient(180deg, #ef4444, #dc2626);

    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);

}



.diplomacy-btn.success {

    background: linear-gradient(180deg, #16a34a, #15803d);

    border: 1.5px solid #22c55e;

    color: #ffffff;

}



.diplomacy-btn.success:hover {

    background: linear-gradient(180deg, #22c55e, #16a34a);

    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);

}



.diplomacy-btn.golden {

    background: linear-gradient(180deg, #d97706, #b45309);

    border: 1.5px solid #f59e0b;

    color: #ffffff;

}



.diplomacy-btn.golden:hover {

    background: linear-gradient(180deg, #f59e0b, #d97706);

    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);

}



.candidates-list-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 1px solid #334155;

    padding-bottom: 8px;

}



.vote-status-badge {

    font-size: 11px;

    color: #94a3b8;

    background: #0f172a;

    padding: 2px 8px;

    border-radius: 4px;

}



.diplomacy-candidates-list {

    display: flex;

    flex-direction: column;

    gap: 8px;

    max-height: 380px;

    overflow-y: auto;

}



.candidate-card-row {

    background: #0f172a;

    border: 1.5px solid #334155;

    border-radius: 6px;

    padding: 10px 12px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    transition: all 0.15s ease;

}



.candidate-card-row:hover {

    border-color: #a855f7;

    background: #141c2c;

}



.candidate-card-row.leading {

    border-color: #f59e0b;

    background: rgba(245, 158, 11, 0.08);

}



.candidate-left {

    display: flex;

    flex-direction: column;

    gap: 2px;

}



.candidate-name-row {

    display: flex;

    align-items: center;

    gap: 6px;

}



.candidate-name {

    font-size: 13px;

    font-weight: bold;

    color: #f1f5f9;

}



.candidate-role-pill {

    font-size: 10px;

    font-weight: bold;

    padding: 1px 6px;

    border-radius: 4px;

    background: #1e293b;

    border: 1px solid #475569;

    color: #cbd5e1;

}



.candidate-slogan {

    font-size: 11px;

    color: #94a3b8;

    font-style: italic;

}



.candidate-right {

    display: flex;

    align-items: center;

    gap: 10px;

}



.votes-counter {

    font-size: 13px;

    font-weight: bold;

    color: #facc15;

    white-space: nowrap;

}



.btn-vote-candidate {

    background: linear-gradient(180deg, #0284c7, #0369a1);

    border: 1px solid #38bdf8;

    color: #ffffff;

    font-size: 11px;

    font-weight: bold;

    padding: 5px 10px;

    border-radius: 4px;

    cursor: pointer;

    transition: all 0.15s ease;

}



.btn-vote-candidate:hover {

    background: linear-gradient(180deg, #0369a1, #075985);

    transform: scale(1.05);

}



.btn-vote-candidate.voted {

    background: #334155;

    border-color: #475569;

    color: #94a3b8;

    cursor: not-allowed;

    transform: none;

}



/* Sekme 4: Fermanlar & Karar Masası */

.decrees-layout {

    display: flex;

    flex-direction: column;

    gap: 14px;

}



.town-decree-status-card {

    background: #182030;

    border: 1.5px solid #334155;

    border-radius: 8px;

    padding: 14px 18px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 16px;

    flex-wrap: wrap;

}



.decree-status-left {

    display: flex;

    flex-direction: column;

    gap: 3px;

}



.decree-badge-title {

    font-size: 11px;

    color: #94a3b8;

    font-weight: bold;

}



.current-decree-title {

    font-size: 16px;

    font-weight: bold;

    color: #fde047;

}



.current-decree-timer {

    font-size: 11px;

    color: #38bdf8;

}



.decree-status-right {

    display: flex;

    gap: 16px;

    align-items: center;

}



.treasury-gold-box, .tax-rate-box {

    background: #0f172a;

    border: 1px solid #334155;

    border-radius: 6px;

    padding: 6px 12px;

    display: flex;

    flex-direction: column;

    gap: 2px;

    font-size: 11px;

    color: #94a3b8;

}



.treasury-gold-box strong {

    font-size: 14px;

    color: #facc15;

    display: flex;

    align-items: center;

    gap: 4px;

}



.tax-rate-box strong {

    font-size: 14px;

    color: #38bdf8;

}



.decree-actions-container {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 12px;

}



.decree-action-card {

    background: #182030;

    border: 1.5px solid #334155;

    border-radius: 8px;

    padding: 14px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.decree-action-card.war-card {

    border-color: #ef4444;

}



.decree-action-card.alliance-card {

    border-color: #22c55e;

}



.decree-action-card.blessing-card {

    border-color: #f59e0b;

}



.decree-action-card h4 {

    font-size: 14px;

    color: #f1f5f9;

    font-weight: bold;

}



.decree-action-card p {

    font-size: 11px;

    color: #94a3b8;

    line-height: 1.4;

}



.action-inline-row {

    display: flex;

    flex-direction: column;

    gap: 6px;

    margin-top: auto;

    padding-top: 6px;

}



.action-inline-row select {

    width: 100%;

}



.action-inline-row button {

    width: 100%;

    padding: 8px;

}



/* ==========================================================================

   Kadim Efsun Sunağı (Enchantment Altar) & Online Affix Visuals

   ========================================================================== */



.inv-action-btn.enchant-altar-btn {

    background: linear-gradient(135deg, #7c3aed, #9333ea);

    border: 1px solid #c084fc;

    color: #fff;

    font-weight: bold;

    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);

}



.inv-action-btn.enchant-altar-btn:hover {

    background: linear-gradient(135deg, #8b5cf6, #a855f7);

    box-shadow: 0 0 12px rgba(168, 85, 247, 0.7);

    transform: translateY(-1px);

}



.enchant-modal-content {

    max-width: 820px;

    width: 95%;

    background: #090d16;

    border: 2px solid #7c3aed;

    box-shadow: 0 0 25px rgba(124, 58, 237, 0.5), inset 0 0 15px rgba(124, 58, 237, 0.2);

}



.enchant-modal-body {

    display: flex;

    gap: 16px;

    padding: 12px;

    max-height: 80vh;

    overflow-y: auto;

}



@media (max-width: 768px) {

    .enchant-modal-body {

        flex-direction: column;

    }

}



.enchant-altar-main {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 12px;

}



/* Altar Pedestal */

.enchant-pedestal-card {

    background: #0f172a;

    border: 1px solid #334155;

    border-radius: 8px;

    padding: 12px;

    display: flex;

    align-items: center;

    gap: 16px;

    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);

}



.enchant-altar-slot {

    width: 64px;

    height: 64px;

    background: #020617;

    border: 2px dashed #64748b;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    cursor: pointer;

    flex-shrink: 0;

    transition: all 0.2s ease;

}



.enchant-altar-slot.empty {

    border-color: #64748b;

}



.enchant-altar-slot.filled {

    border-style: solid;

    border-color: #c084fc;

    box-shadow: 0 0 14px rgba(192, 132, 252, 0.5);

}



.enchant-altar-slot img {

    width: 48px;

    height: 48px;

    image-rendering: pixelated;

}



.altar-placeholder {

    font-size: 11px;

    color: #64748b;

    text-align: center;

    padding: 4px;

}



.enchant-item-header {

    display: flex;

    flex-direction: column;

    gap: 4px;

    overflow: hidden;

}



.enchant-item-title {

    font-size: 16px;

    font-weight: bold;

    color: #f8fafc;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.enchant-item-meta {

    display: flex;

    gap: 6px;

    flex-wrap: wrap;

}



/* 4 Affix Slots */

.enchant-slots-container {

    background: #0f172a;

    border: 1px solid #1e293b;

    border-radius: 8px;

    padding: 12px;

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.enchant-slots-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 13px;

    font-weight: bold;

    color: #e2e8f0;

    border-bottom: 1px solid #1e293b;

    padding-bottom: 6px;

}



.enchant-tier-legend {

    display: flex;

    gap: 8px;

    font-size: 11px;

    font-weight: normal;

}



.enchant-affix-grid {

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.enchant-affix-card {

    background: #020617;

    border: 1px solid #334155;

    border-radius: 6px;

    padding: 8px 12px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    transition: all 0.25s ease;

}



.enchant-affix-card.empty-slot {

    border-style: dashed;

    border-color: #334155;

    opacity: 0.65;

}



.enchant-affix-card.empty-slot:hover {

    opacity: 1;

    border-color: #64748b;

}



.enchant-affix-card.tier-low {

    border-color: #38bdf8;

    box-shadow: 0 0 6px rgba(56, 189, 248, 0.2);

}



.enchant-affix-card.tier-mid {

    border-color: #a855f7;

    box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);

}



.enchant-affix-card.tier-epic {

    border-color: #f97316;

    box-shadow: 0 0 10px rgba(249, 115, 22, 0.35);

}



.enchant-affix-card.tier-god {

    border-color: #facc15;

    background: linear-gradient(90deg, #020617, #241400);

    box-shadow: 0 0 14px rgba(250, 204, 21, 0.5);

    animation: godRollPulse 2.4s infinite alternate;

}



@keyframes godRollPulse {

    0% {

        box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);

        border-color: #facc15;

    }

    100% {

        box-shadow: 0 0 20px rgba(250, 204, 21, 0.8), inset 0 0 8px rgba(250, 204, 21, 0.25);

        border-color: #fef08a;

    }

}



.enchant-affix-left {

    display: flex;

    flex-direction: column;

    gap: 2px;

    flex: 1;

}



.enchant-affix-top-row {

    display: flex;

    align-items: center;

    gap: 8px;

}



.enchant-slot-num {

    font-size: 11px;

    color: #64748b;

    font-weight: bold;

}



.enchant-affix-name {

    font-size: 13px;

    font-weight: bold;

}



.enchant-tier-pill {

    font-size: 10px;

    padding: 1px 5px;

    border-radius: 4px;

    font-weight: bold;

    text-transform: uppercase;

}



.enchant-affix-desc {

    font-size: 11px;

    color: #cbd5e1;

    line-height: 1.3;

}



.enchant-lock-btn {

    background: #1e293b;

    border: 1px solid #475569;

    color: #94a3b8;

    border-radius: 4px;

    padding: 4px 8px;

    font-size: 11px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 4px;

    white-space: nowrap;

    transition: all 0.2s ease;

}



.enchant-lock-btn:hover {

    border-color: #c084fc;

    color: #f8fafc;

}



.enchant-lock-btn.locked {

    background: #6b21a8;

    border-color: #c084fc;

    color: #fff;

    box-shadow: 0 0 8px rgba(192, 132, 252, 0.4);

}



/* Action Controls */

.enchant-actions-panel {

    background: #0f172a;

    border: 1px solid #1e293b;

    border-radius: 8px;

    padding: 12px;

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.enchant-materials-bar {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 6px;

}



@media (max-width: 600px) {

    .enchant-materials-bar {

        grid-template-columns: repeat(2, 1fr);

    }

}



.enchant-mat-pill {

    background: #020617;

    border: 1px solid #334155;

    border-radius: 6px;

    padding: 4px 8px;

    font-size: 11px;

    display: flex;

    align-items: center;

    gap: 6px;

    color: #cbd5e1;

}



.enchant-mat-pill strong {

    color: #facc15;

}



.enchant-buttons-row {

    display: flex;

    gap: 8px;

}



@media (max-width: 600px) {

    .enchant-buttons-row {

        flex-direction: column;

    }

}



.enchant-action-btn {

    flex: 1;

    padding: 10px 12px;

    font-size: 12px;

    font-weight: bold;

    border-radius: 6px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    transition: all 0.2s ease;

}



.enchant-action-btn.btn-add {

    background: linear-gradient(135deg, #059669, #10b981);

    border: 1px solid #34d399;

    color: #fff;

    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);

}



.enchant-action-btn.btn-add:hover:not(:disabled) {

    box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);

    transform: translateY(-1px);

}



.enchant-action-btn.btn-reroll {

    background: linear-gradient(135deg, #7c3aed, #9333ea);

    border: 1px solid #c084fc;

    color: #fff;

    box-shadow: 0 0 8px rgba(147, 51, 234, 0.3);

}



.enchant-action-btn.btn-reroll:hover:not(:disabled) {

    box-shadow: 0 0 14px rgba(147, 51, 234, 0.6);

    transform: translateY(-1px);

}



.enchant-action-btn.btn-blessed {

    background: linear-gradient(135deg, #d97706, #f59e0b);

    border: 1px solid #fde047;

    color: #1e1b4b;

    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);

}



.enchant-action-btn.btn-blessed:hover:not(:disabled) {

    box-shadow: 0 0 14px rgba(245, 158, 11, 0.7);

    transform: translateY(-1px);

}



.enchant-action-btn:disabled {

    opacity: 0.45;

    cursor: not-allowed;

    box-shadow: none;

    transform: none;

}



/* Sidebar Item Selector */

.enchant-inventory-sidebar {

    width: 260px;

    flex-shrink: 0;

    background: #0f172a;

    border: 1px solid #1e293b;

    border-radius: 8px;

    padding: 10px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.enchant-items-grid {

    display: flex;

    flex-direction: column;

    gap: 6px;

    max-height: 480px;

    overflow-y: auto;

}



.enchant-picker-card {

    background: #020617;

    border: 1px solid #334155;

    border-radius: 6px;

    padding: 6px 8px;

    display: flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    transition: all 0.2s ease;

}



.enchant-picker-card:hover {

    border-color: #c084fc;

    background: #1e1b4b;

}



.enchant-picker-card.selected {

    border-color: #facc15;

    background: #241400;

    box-shadow: 0 0 8px rgba(250, 204, 21, 0.3);

}



.enchant-picker-card img {

    width: 28px;

    height: 28px;

    image-rendering: pixelated;

    flex-shrink: 0;

}



.enchant-picker-info {

    display: flex;

    flex-direction: column;

    overflow: hidden;

    flex: 1;

}



.enchant-picker-name {

    font-size: 12px;

    font-weight: bold;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.enchant-picker-sub {

    font-size: 10px;

    color: #64748b;

    display: flex;

    align-items: center;

    gap: 4px;

}



/* Rolling visual effect */

.enchant-affix-card.rolling {

    animation: affixRollShimmer 0.35s ease-in-out infinite alternate;

}



@keyframes affixRollShimmer {

    0% {

        border-color: #38bdf8;

        background: #0f172a;

    }

    50% {

        border-color: #a855f7;

        background: #2e1065;

    }

    100% {

        border-color: #facc15;

        background: #422006;

    }

}



/* Marketplace Card Affix Tags */

.market-affix-tags {

    display: flex;

    gap: 4px;

    flex-wrap: wrap;

    margin-top: 4px;

}



.market-affix-badge {

    font-size: 10px;

    padding: 1px 5px;

    border-radius: 3px;

    background: #1e1b4b;

    border: 1px solid #7c3aed;

    color: #c084fc;

    white-space: nowrap;

}



.market-affix-badge.tier-god {

    background: #422006;

    border-color: #facc15;

    color: #fde047;

}



.market-affix-badge.tier-epic {

    background: #431407;

    border-color: #f97316;

    color: #fdba74;

}



/* Player Inspect Affix Indicator Dots */

.inspect-affix-dots {

    display: flex;

    gap: 3px;

    margin-top: 3px;

}



.inspect-dot {

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: #334155;

}



.inspect-dot.filled {

    background: #38bdf8;

    box-shadow: 0 0 3px #38bdf8;

}



.inspect-dot.tier-mid {

    background: #a855f7;

    box-shadow: 0 0 3px #a855f7;

}



.inspect-dot.tier-epic {

    background: #f97316;

    box-shadow: 0 0 4px #f97316;

}



.inspect-dot.tier-god {

    background: #facc15;

    box-shadow: 0 0 5px #facc15;

}





/* ==========================================================================

   Modern Game Analytics & Real-Time Telemetry Styles

   ========================================================================== */



/* Header DPS / Analytics Quick Pill */

.header-btn-analytics {

    background: rgba(15, 23, 42, 0.7);

    border: 1px solid rgba(56, 189, 248, 0.4);

    color: #e2e8f0;

    padding: 3px 8px;

    border-radius: 6px;

    font-size: 12px;

    font-weight: 600;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    cursor: pointer;

    transition: all 0.2s ease;

}



.header-btn-analytics:hover {

    background: rgba(56, 189, 248, 0.15);

    border-color: #38bdf8;

    color: #38bdf8;

    transform: translateY(-1px);

    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);

}



/* Mini HUD Bar Floating Above Phaser Canvas */

.live-analytics-hud {

    position: absolute;

    top: 8px;

    right: 8px;

    left: auto;

    transform: none;

    z-index: 60;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 4px 10px;

    background: rgba(15, 23, 42, 0.92);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    border: 1.5px solid rgba(56, 189, 248, 0.4);

    border-radius: 8px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);

    pointer-events: auto;

    user-select: none;

}



/* Redundant CP chip hidden on canvas overlay to ensure wide 180px clearance */

#live-analytics-hud #hud-chip-cp {

    display: none !important;

}



/* Strictly hide combat telemetry when walking in town */

.mode-town .live-analytics-hud,

.mode-town #live-analytics-hud {

    display: none !important;

}



/* Modern Battle Return Button Positioning (Zero HUD overlap) */

.battle-return-town-btn {

    position: absolute;

    top: 8px;

    left: 8px;

    z-index: 65;

    background: rgba(15, 23, 42, 0.92);

    border: 1.5px solid #475569;

    border-radius: 8px;

    color: #f1f5f9;

    font-family: 'VT323', monospace;

    font-size: 16px;

    padding: 4px 10px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 5px;

    transition: all 0.2s ease;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);

}



.battle-return-town-btn:hover {

    background: #1e293b;

    border-color: #38bdf8;

    color: #38bdf8;

    transform: translateY(-1px);

    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35);

}



/* =========================================================================

   Battle Hero Combat HUD (Live HP Bar & Interactive Ultimate Ability)

   ========================================================================= */

.battle-hero-hud {

    position: absolute;

    bottom: 12px;

    left: 14px;

    right: 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    z-index: 70;

    pointer-events: none;

}



.mode-town .battle-hero-hud,

.mode-town #battle-hero-hud {

    display: none !important;

}



.hero-hp-container {

    pointer-events: auto;

    flex: 1;

    max-width: 280px;

    background: rgba(15, 23, 42, 0.92);

    border: 2px solid #334155;

    border-radius: 8px;

    padding: 6px 12px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);

    backdrop-filter: blur(8px);

}



.hero-hp-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 11px;

    font-weight: 700;

    margin-bottom: 4px;

}



.hero-hp-label {

    color: #f87171;

    font-family: monospace;

    font-size: 11px;

    letter-spacing: 0.5px;

}



.hero-hp-val {

    color: #f8fafc;

    font-family: monospace;

    font-size: 12px;

    font-weight: 700;

}



.hero-hp-track {

    width: 100%;

    height: 10px;

    background: #0f172a;

    border-radius: 4px;

    overflow: hidden;

    border: 1px solid #1e293b;

}



.hero-hp-fill {

    height: 100%;

    background: linear-gradient(90deg, #ef4444 0%, #22c55e 100%);

    border-radius: 3px;

    transition: width 0.25s ease-out;

}



.hero-hp-fill.danger {

    background: #ef4444;

    animation: hpFlash 0.8s infinite alternate;

}



@keyframes hpFlash {

    0% { opacity: 1; }

    100% { opacity: 0.5; }

}



.hero-ultimate-container {

    pointer-events: auto;

}



.btn-hero-ultimate {

    position: relative;

    display: flex;

    align-items: center;

    gap: 8px;

    background: rgba(15, 23, 42, 0.92);

    border: 2px solid #475569;

    border-radius: 8px;

    color: #94a3b8;

    padding: 6px 16px;

    font-family: 'VT323', monospace;

    font-size: 17px;

    cursor: not-allowed;

    overflow: hidden;

    transition: all 0.2s ease;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);

}



.btn-hero-ultimate .ultimate-icon {

    font-size: 18px;

}



.btn-hero-ultimate .ultimate-title {

    font-weight: 700;

    letter-spacing: 0.5px;

}



.btn-hero-ultimate .ultimate-hotkey {

    font-size: 12px;

    color: #64748b;

    font-family: monospace;

}



.btn-hero-ultimate:not([disabled]) {

    border-color: #f59e0b;

    color: #fef08a;

    cursor: pointer;

    box-shadow: 0 0 16px rgba(245, 158, 11, 0.6), inset 0 0 8px rgba(245, 158, 11, 0.3);

    animation: ultimatePulse 1s infinite alternate;

}



.btn-hero-ultimate:not([disabled]) .ultimate-hotkey {

    color: #fde047;

}



@keyframes ultimatePulse {

    0% { transform: scale(1); box-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }

    100% { transform: scale(1.05); box-shadow: 0 0 24px rgba(245, 158, 11, 0.95); }

}



.ultimate-charge-fill {

    position: absolute;

    bottom: 0;

    left: 0;

    height: 4px;

    background: linear-gradient(90deg, #38bdf8, #f59e0b);

    transition: width 0.2s ease;

}



.live-analytics-hud .hud-chip {

    display: flex;

    align-items: center;

    gap: 4px;

    font-size: 11px;

    color: #cbd5e1;

    cursor: default;

}



.live-analytics-hud .hud-chip-icon {

    font-size: 12px;

}



.live-analytics-hud .hud-chip-label {

    font-size: 10px;

    color: #94a3b8;

    text-transform: uppercase;

    font-weight: 600;

    letter-spacing: 0.5px;

}



.live-analytics-hud .hud-chip-val {

    font-size: 12px;

    font-family: monospace;

    font-weight: 700;

    color: #f8fafc;

}



#hud-dps-val {

    color: #38bdf8;

}



#hud-kill-val {

    color: #f87171;

}



#hud-gold-val {

    color: #fbbf24;

}



#hud-exp-val {

    color: #a78bfa;

}



#hud-cp-val {

    color: #4ade80;

}



.hud-grade-badge {

    font-size: 9px;

    font-weight: 900;

    padding: 1px 5px;

    border-radius: 4px;

    background: #38bdf8;

    color: #020617;

    margin-left: 2px;

    box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);

}



.hud-expand-pill {

    background: linear-gradient(135deg, #0284c7, #0369a1);

    border: 1px solid #38bdf8;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    padding: 3px 10px;

    border-radius: 12px;

    cursor: pointer;

    transition: all 0.2s ease;

    display: flex;

    align-items: center;

    gap: 4px;

}



.hud-expand-pill:hover {

    filter: brightness(1.2);

    transform: scale(1.04);

    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);

}



/* Analytics Modal Styles */

.analytics-modal-content {

    width: 720px;

    max-width: 95vw;

    background: #0f172a;

    border: 2px solid #38bdf8;

    border-radius: 12px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.25);

    overflow: hidden;

    padding: 0;

}



.analytics-header-title-box {

    display: flex;

    align-items: center;

    gap: 12px;

}



.analytics-session-timer-badge {

    background: #1e293b;

    border: 1px solid #334155;

    padding: 3px 8px;

    border-radius: 5px;

    font-size: 12px;

    color: #cbd5e1;

    font-family: monospace;

    display: inline-flex;

    align-items: center;

    gap: 5px;

}



.analytics-header-ctrls {

    display: flex;

    align-items: center;

    gap: 8px;

}



.analytics-header-pill {

    background: #1e293b;

    border: 1px solid #475569;

    color: #f1f5f9;

    padding: 4px 10px;

    border-radius: 6px;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 4px;

    transition: all 0.15s ease;

}



.analytics-header-pill:hover {

    background: #334155;

    border-color: #38bdf8;

    color: #38bdf8;

}



.analytics-header-pill.reset-pill:hover {

    border-color: #f87171;

    color: #f87171;

}



/* Tab Navigation */

.analytics-tabs-nav {

    display: flex;

    background: #090e17;

    border-bottom: 1px solid #1e293b;

    padding: 0 12px;

    gap: 6px;

}



.analytics-tab-btn {

    background: transparent;

    border: none;

    border-bottom: 3px solid transparent;

    color: #94a3b8;

    padding: 10px 14px;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 6px;

    transition: all 0.2s ease;

}



.analytics-tab-btn:hover {

    color: #f1f5f9;

    background: rgba(56, 189, 248, 0.05);

}



.analytics-tab-btn.active {

    color: #38bdf8;

    border-bottom-color: #38bdf8;

    background: rgba(56, 189, 248, 0.1);

}



.analytics-modal-body {

    padding: 18px;

    max-height: 520px;

    overflow-y: auto;

}



/* Tab 1: KPI Cards */

.analytics-kpi-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

    margin-bottom: 16px;

}



.analytics-kpi-card {

    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 8px;

    padding: 12px;

    display: flex;

    align-items: center;

    gap: 12px;

    transition: transform 0.2s ease, border-color 0.2s ease;

}



.analytics-kpi-card:hover {

    transform: translateY(-2px);

    border-color: #475569;

}



.kpi-icon {

    font-size: 26px;

}



.kpi-body {

    display: flex;

    flex-direction: column;

    gap: 2px;

}



.kpi-lbl {

    font-size: 11px;

    color: #94a3b8;

    font-weight: 500;

}



.kpi-num {

    font-size: 17px;

    font-weight: 800;

    font-family: monospace;

    color: #f8fafc;

}



.kpi-detail {

    font-size: 10px;

    color: #64748b;

}



.analytics-kpi-card.gold-card .kpi-num { color: #fbbf24; }

.analytics-kpi-card.exp-card .kpi-num { color: #a78bfa; }

.analytics-kpi-card.gem-card .kpi-num { color: #38bdf8; }

.analytics-kpi-card.kill-card .kpi-num { color: #f87171; }



.analytics-level-card {

    background: #131d31;

    border: 1px solid #1e293b;

    border-radius: 8px;

    padding: 14px;

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.level-card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 12px;

    font-weight: 600;

    color: #cbd5e1;

}



.analytics-progress-bar-wrap {

    width: 100%;

    height: 14px;

    background: #0f172a;

    border-radius: 7px;

    overflow: hidden;

    border: 1px solid #334155;

    position: relative;

}



.analytics-progress-bar-fill {

    height: 100%;

    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);

    transition: width 0.4s ease;

}



.level-card-footer {

    display: flex;

    justify-content: space-between;

    font-size: 11px;

    color: #94a3b8;

}



/* Tab 2: Combat & Damage */

.combat-metrics-row {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    margin-bottom: 16px;

}



.combat-metric-box {

    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 8px;

    padding: 10px;

    text-align: center;

}



.combat-metric-box .c-lbl {

    display: block;

    font-size: 11px;

    color: #94a3b8;

    margin-bottom: 4px;

}



.combat-metric-box .c-val {

    font-size: 18px;

    font-weight: 800;

    font-family: monospace;

    color: #f8fafc;

}



.combat-metric-box .c-val.live-cyan {

    color: #38bdf8;

    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);

}



.combat-metric-box .c-val.crit-gold {

    color: #fbbf24;

    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);

}



.damage-breakdown-box {

    background: #131d31;

    border: 1px solid #1e293b;

    border-radius: 8px;

    padding: 14px;

    margin-bottom: 16px;

}



.box-title {

    font-size: 12px;

    font-weight: 600;

    color: #cbd5e1;

    margin-bottom: 8px;

}



.stacked-damage-bar {

    display: flex;

    width: 100%;

    height: 16px;

    border-radius: 8px;

    overflow: hidden;

    background: #0f172a;

    border: 1px solid #334155;

    margin-bottom: 10px;

}



.stacked-damage-bar .bar-seg {

    height: 100%;

    transition: width 0.3s ease;

}



.bar-seg.seg-phys { background: #94a3b8; }

.bar-seg.seg-light { background: #facc15; }

.bar-seg.seg-pois { background: #22c55e; }

.bar-seg.seg-wind { background: #38bdf8; }

.bar-seg.seg-burn { background: #ef4444; }



.damage-legend-row {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    font-size: 11px;

}



.damage-legend-row .legend-item {

    display: flex;

    align-items: center;

    gap: 6px;

    color: #cbd5e1;

}



.damage-legend-row .legend-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

}



.accuracy-stats-grid {

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 8px;

}



.acc-pill {

    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 6px;

    padding: 8px 10px;

    font-size: 11px;

    display: flex;

    flex-direction: column;

    gap: 2px;

}



.acc-pill span {

    color: #94a3b8;

}



.acc-pill strong {

    font-size: 14px;

    font-family: monospace;

    color: #f8fafc;

}



/* Tab 3: Combat Power (Gear Score) */

.cp-hero-banner {

    display: flex;

    align-items: center;

    gap: 20px;

    background: radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.18), transparent 70%), #131d31;

    border: 1px solid #38bdf8;

    border-radius: 10px;

    padding: 18px 24px;

    margin-bottom: 16px;

}



.cp-emblem-badge {

    width: 66px;

    height: 66px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 26px;

    font-weight: 900;

    background: linear-gradient(135deg, #fbbf24, #d97706);

    color: #020617;

    box-shadow: 0 0 20px rgba(251, 191, 36, 0.45);

    border: 3px solid #fef08a;

    flex-shrink: 0;

}



.cp-info-box {

    display: flex;

    flex-direction: column;

    gap: 2px;

}



.cp-caption {

    font-size: 11px;

    letter-spacing: 1px;

    color: #94a3b8;

    font-weight: 700;

}



.cp-big-score {

    font-size: 30px;

    font-weight: 900;

    font-family: monospace;

    color: #38bdf8;

    margin: 0;

    line-height: 1.1;

    text-shadow: 0 0 14px rgba(56, 189, 248, 0.4);

}



.cp-grade-title {

    font-size: 13px;

    font-weight: 700;

    color: #facc15;

}



.gear-slot-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

}



.gear-slot-cp-card {

    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 8px;

    padding: 10px 12px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.gear-slot-cp-card .gear-card-left {

    display: flex;

    flex-direction: column;

    gap: 2px;

}



.gear-slot-cp-card .gear-slot-type {

    font-size: 10px;

    color: #64748b;

    text-transform: uppercase;

    font-weight: 600;

}



.gear-slot-cp-card .gear-slot-item-name {

    font-size: 12px;

    font-weight: 700;

}



.gear-slot-cp-card .gear-card-right {

    text-align: right;

}



.gear-slot-cp-card .gear-slot-cp-val {

    font-size: 14px;

    font-weight: 800;

    font-family: monospace;

    color: #38bdf8;

}



/* Tab 4: Av & Ganimet Günlüğü */

.loot-counter-bar {

    display: flex;

    gap: 8px;

    margin-bottom: 14px;

}



.loot-tag {

    flex: 1;

    text-align: center;

    background: #1e293b;

    border: 1px solid #334155;

    border-radius: 6px;

    padding: 8px 6px;

    display: flex;

    flex-direction: column;

    gap: 3px;

}



.loot-tag span {

    color: #94a3b8;

    font-size: 10px;

    font-weight: 600;

}



.loot-tag strong {

    font-size: 15px;

    font-family: monospace;

}



.loot-tag.r-common strong { color: #94a3b8; }

.loot-tag.r-uncommon strong { color: #4ade80; }

.loot-tag.r-rare strong { color: #38bdf8; }

.loot-tag.r-epic strong { color: #c084fc; }

.loot-tag.r-legendary strong { color: #fbbf24; }



.loot-stream-card {

    background: #131d31;

    border: 1px solid #1e293b;

    border-radius: 8px;

    padding: 12px;

}



.loot-stream-hdr {

    font-size: 12px;

    font-weight: 600;

    color: #cbd5e1;

    margin-bottom: 8px;

}



.loot-stream-list {

    display: flex;

    flex-direction: column;

    gap: 6px;

    max-height: 220px;

    overflow-y: auto;

}



.loot-log-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: #1e293b;

    border-left: 3px solid;

    padding: 6px 12px;

    border-radius: 4px;

    font-size: 11px;

}



.loot-log-row .item-left {

    display: flex;

    align-items: center;

    gap: 8px;

}



.loot-log-row .item-time {

    color: #64748b;

    font-family: monospace;

    font-size: 10px;

}



.empty-loot-notice {

    text-align: center;

    padding: 24px;

    color: #64748b;

    font-size: 12px;

}





/* ==========================================================================

   Inter-Town Trade Taxes & Administrator Management Styles

   ========================================================================== */



.tariff-rate-box {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    background: rgba(15, 23, 42, 0.6);

    padding: 6px 12px;

    border-radius: 6px;

    border: 1px solid #1e293b;

}



.tariff-rate-box span {

    font-size: 10px;

    color: #94a3b8;

    text-transform: uppercase;

    font-weight: 600;

}



.tariff-rate-box strong {

    font-size: 15px;

    font-family: monospace;

    color: #38bdf8;

}



/* Tax Card */

.decree-action-card.tax-card {

    background: linear-gradient(135deg, rgba(30, 27, 75, 0.4), rgba(15, 23, 42, 0.9));

    border-color: #f59e0b;

    grid-column: span 2;

}



.tax-card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 8px;

}



.tax-card-header h4 {

    color: #facc15;

    margin: 0;

    font-size: 15px;

}



.tax-authority-pill {

    font-size: 11px;

    font-weight: 700;

    padding: 3px 8px;

    border-radius: 12px;

    display: inline-flex;

    align-items: center;

    gap: 4px;

}



.tax-authority-pill.official {

    background: rgba(16, 185, 129, 0.2);

    border: 1px solid #10b981;

    color: #4ade80;

    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);

}



.tax-authority-pill.citizen {

    background: rgba(148, 163, 184, 0.15);

    border: 1px solid #64748b;

    color: #94a3b8;

}



.tax-controls-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;

    margin: 14px 0;

    background: rgba(15, 23, 42, 0.7);

    padding: 14px;

    border-radius: 8px;

    border: 1px solid #334155;

}



.tax-control-item {

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.tax-label-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 12px;

    color: #e2e8f0;

}



.tax-label-row strong {

    font-family: monospace;

    font-size: 14px;

    color: #fbbf24;

}



.tax-slider {

    width: 100%;

    height: 6px;

    border-radius: 3px;

    background: #1e293b;

    outline: none;

    cursor: pointer;

    accent-color: #f59e0b;

}



.tax-slider:disabled {

    cursor: not-allowed;

    opacity: 0.5;

}



.tax-control-item small {

    font-size: 10px;

    color: #94a3b8;

    line-height: 1.3;

}



.tax-summary-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    flex-wrap: wrap;

    border-top: 1px solid #1e293b;

    padding-top: 12px;

    margin-top: 6px;

}



.tax-stat-pill {

    background: #1e293b;

    border: 1px solid #334155;

    padding: 5px 10px;

    border-radius: 6px;

    font-size: 11px;

    display: flex;

    align-items: center;

    gap: 6px;

}



.tax-stat-pill span {

    color: #94a3b8;

}



.tax-stat-pill strong {

    font-family: monospace;

}



/* Marketplace Cross-Town Badges */

.town-origin-badge {

    font-size: 10px;

    font-weight: 700;

    padding: 1px 6px;

    border-radius: 4px;

    color: #ffffff;

    display: inline-flex;

    align-items: center;

    gap: 3px;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);

    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);

}



.trade-mode-badge {

    font-size: 10px;

    font-weight: 600;

    padding: 1px 6px;

    border-radius: 4px;

    display: inline-flex;

    align-items: center;

    gap: 3px;

}



.trade-mode-badge.domestic {

    background: rgba(16, 185, 129, 0.15);

    border: 1px solid rgba(16, 185, 129, 0.4);

    color: #4ade80;

}



.trade-mode-badge.inter-town {

    background: rgba(56, 189, 248, 0.15);

    border: 1px solid rgba(56, 189, 248, 0.4);

    color: #38bdf8;

}



.trade-mode-badge.trade-pact {

    background: rgba(250, 204, 21, 0.18);

    border: 1px solid #facc15;

    color: #fde047;

    box-shadow: 0 0 6px rgba(250, 204, 21, 0.35);

}



.trade-mode-badge.war-embargo {

    background: rgba(239, 68, 68, 0.2);

    border: 1px solid #ef4444;

    color: #fca5a5;

    box-shadow: 0 0 6px rgba(239, 68, 68, 0.35);

}



.market-price-tariff-note {

    font-size: 10px;

    color: #94a3b8;

    margin-top: 2px;

}



/* ==========================================================================

   TOWN ROYAL BANK & GOLD SAVINGS (Kasaba Kraliyet Bankası & Vadeli Mevduat)

   ========================================================================== */



.bank-modal-content {

    max-width: 820px;

    width: 95%;

    max-height: 90vh;

    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));

    border: 2px solid rgba(234, 179, 8, 0.45);

    border-radius: 12px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(234, 179, 8, 0.15);

    display: flex;

    flex-direction: column;

    overflow: hidden;

}



.bank-modal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 14px 20px;

    background: rgba(15, 23, 42, 0.95);

    border-bottom: 1px solid rgba(234, 179, 8, 0.3);

}



.bank-emblem {

    font-size: 28px;

    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.6));

    margin-right: 12px;

}



.bank-subtitle {

    display: block;

    font-size: 11px;

    color: #94a3b8;

    margin-top: 2px;

}



.bank-wallet-pill {

    display: flex;

    align-items: center;

    gap: 6px;

    background: rgba(234, 179, 8, 0.12);

    border: 1px solid rgba(234, 179, 8, 0.35);

    border-radius: 20px;

    padding: 5px 14px;

    font-size: 13px;

    color: #fef08a;

}



.bank-wallet-pill .val {

    font-weight: bold;

    color: #facc15;

}



.bank-tabs-nav {

    display: flex;

    gap: 8px;

    padding: 10px 20px;

    background: rgba(15, 23, 42, 0.6);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}



.bank-tab-btn {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 14px;

    background: rgba(30, 41, 59, 0.6);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 8px;

    color: #94a3b8;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;

}



.bank-tab-btn:hover {

    background: rgba(51, 65, 85, 0.8);

    color: #f1f5f9;

}



.bank-tab-btn.active {

    background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), rgba(202, 138, 4, 0.1));

    border-color: #facc15;

    color: #fef08a;

    box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);

}



.bank-tab-pane {

    padding: 18px 20px;

    overflow-y: auto;

    flex: 1;

}



/* Tab 1: Vadeli Mevduat Active Status Card */

.bank-active-deposit-card {

    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.9));

    border: 1px solid rgba(16, 185, 129, 0.35);

    border-radius: 10px;

    padding: 16px;

    margin-bottom: 20px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

}



.active-dep-header {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 14px;

}



.dep-badge-status {

    font-size: 11px;

    font-weight: bold;

    padding: 4px 10px;

    border-radius: 14px;

    background: rgba(56, 189, 248, 0.2);

    border: 1px solid #38bdf8;

    color: #7dd3fc;

}



.dep-badge-status.matured {

    background: rgba(34, 197, 94, 0.25);

    border-color: #22c55e;

    color: #86efac;

    animation: statusPulse 1.5s infinite alternate;

}



@keyframes statusPulse {

    0% { transform: scale(1); filter: drop-shadow(0 0 2px #22c55e); }

    100% { transform: scale(1.04); filter: drop-shadow(0 0 8px #22c55e); }

}



.active-dep-title {

    font-size: 16px;

    color: #f8fafc;

    margin: 0;

}



.active-dep-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

    gap: 12px;

    margin-bottom: 14px;

}



.dep-stat-box {

    background: rgba(15, 23, 42, 0.6);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 8px;

    padding: 10px;

}



.dep-stat-box .lbl {

    font-size: 11px;

    color: #94a3b8;

    display: block;

    margin-bottom: 4px;

}



.dep-stat-box .val {

    font-size: 14px;

    font-weight: bold;

    color: #f1f5f9;

}



.profit-green { color: #4ade80 !important; }

.gold-glow { color: #facc15 !important; text-shadow: 0 0 6px rgba(250, 204, 21, 0.4); }

.timer-cyan { color: #38bdf8 !important; font-family: monospace; font-size: 15px !important; }

.debt-red { color: #ef4444 !important; }

.limit-green { color: #22c55e !important; }



.dep-progress-bar-bg {

    width: 100%;

    height: 8px;

    background: rgba(0, 0, 0, 0.5);

    border-radius: 4px;

    overflow: hidden;

    margin-bottom: 14px;

}



.dep-progress-bar-fill {

    height: 100%;

    background: linear-gradient(90deg, #38bdf8, #22c55e);

    border-radius: 4px;

    transition: width 0.3s ease;

}



.active-dep-actions {

    display: flex;

    gap: 12px;

}



/* Plans Grid */

.plans-intro-box {

    background: rgba(30, 41, 59, 0.4);

    border-left: 3px solid #facc15;

    padding: 10px 14px;

    font-size: 12px;

    color: #cbd5e1;

    border-radius: 4px;

    margin-bottom: 16px;

}



.bank-plans-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 14px;

    margin-bottom: 16px;

}



.bank-plan-card {

    position: relative;

    background: rgba(30, 41, 59, 0.5);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 10px;

    padding: 16px 14px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    transition: all 0.25s ease;

}



.bank-plan-card:hover {

    transform: translateY(-2px);

    border-color: rgba(250, 204, 21, 0.5);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);

}



.bank-plan-card.featured {

    border-color: rgba(234, 179, 8, 0.6);

    background: linear-gradient(145deg, rgba(40, 50, 75, 0.6), rgba(30, 41, 59, 0.8));

}



.bank-plan-card.mythic {

    border-color: rgba(239, 68, 68, 0.6);

    background: linear-gradient(145deg, rgba(60, 20, 30, 0.5), rgba(30, 41, 59, 0.8));

}



.plan-ribbon {

    position: absolute;

    top: -9px;

    font-size: 10px;

    font-weight: bold;

    padding: 2px 8px;

    border-radius: 10px;

    text-transform: uppercase;

}



.ribbon-blue { background: #0284c7; color: #fff; }

.ribbon-gold { background: #d97706; color: #fff; box-shadow: 0 0 6px rgba(217, 119, 6, 0.5); }

.ribbon-purple { background: #7c3aed; color: #fff; }

.ribbon-red { background: #dc2626; color: #fff; animation: statusPulse 1.5s infinite alternate; }



.plan-card-title {

    font-size: 14px;

    color: #f8fafc;

    margin: 10px 0 6px 0;

}



.plan-card-rate {

    font-size: 18px;

    font-weight: 800;

    color: #4ade80;

    margin-bottom: 4px;

}



.plan-card-duration {

    font-size: 11px;

    color: #94a3b8;

    margin-bottom: 10px;

}



.plan-card-limits {

    display: flex;

    flex-direction: column;

    gap: 2px;

    font-size: 11px;

    color: #cbd5e1;

    margin-bottom: 14px;

}



.btn-plan-select {

    width: 100%;

    padding: 8px 12px;

    background: rgba(234, 179, 8, 0.15);

    border: 1px solid rgba(234, 179, 8, 0.4);

    border-radius: 6px;

    color: #fef08a;

    font-size: 12px;

    font-weight: bold;

    cursor: pointer;

    transition: all 0.2s ease;

}



.btn-plan-select:hover {

    background: #eab308;

    color: #0f172a;

}



/* Investment Form */

.bank-deposit-form {

    background: rgba(15, 23, 42, 0.8);

    border: 1px solid rgba(234, 179, 8, 0.4);

    border-radius: 10px;

    padding: 16px;

    margin-top: 14px;

}



.form-title-row {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 14px;

}



.plan-badge {

    background: #eab308;

    color: #0f172a;

    font-size: 10px;

    font-weight: bold;

    padding: 2px 8px;

    border-radius: 4px;

}



.form-inputs-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;

    margin-bottom: 16px;

}



@media (max-width: 600px) {

    .form-inputs-row {

        grid-template-columns: 1fr;

    }

}



.input-with-label label {

    font-size: 12px;

    color: #cbd5e1;

    display: block;

    margin-bottom: 6px;

}



.input-actions-group {

    display: flex;

    gap: 6px;

}



.input-actions-group input {

    flex: 1;

    padding: 8px 12px;

    background: rgba(0, 0, 0, 0.4);

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 6px;

    color: #f8fafc;

    font-size: 13px;

}



.btn-quick-amt, .btn-v-quick {

    padding: 6px 10px;

    background: rgba(51, 65, 85, 0.6);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 6px;

    color: #cbd5e1;

    font-size: 11px;

    cursor: pointer;

    transition: background 0.2s;

}



.btn-quick-amt:hover, .btn-v-quick:hover {

    background: rgba(100, 116, 139, 0.8);

    color: #fff;

}



.yield-preview-card {

    background: rgba(30, 41, 59, 0.5);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 8px;

    padding: 10px 14px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 6px;

    font-size: 12px;

    color: #cbd5e1;

}



.form-buttons-row {

    display: flex;

    gap: 12px;

}



/* Button Variants */

.btn-bank-primary {

    padding: 10px 18px;

    background: linear-gradient(135deg, #eab308, #ca8a04);

    border: none;

    border-radius: 6px;

    color: #0f172a;

    font-size: 13px;

    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);

    transition: all 0.2s ease;

}



.btn-bank-primary:hover:not(:disabled) {

    background: linear-gradient(135deg, #facc15, #eab308);

    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.5);

    transform: translateY(-1px);

}



.btn-bank-primary:disabled {

    opacity: 0.5;

    cursor: not-allowed;

    box-shadow: none;

}



.btn-bank-secondary {

    padding: 10px 18px;

    background: rgba(51, 65, 85, 0.8);

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 6px;

    color: #e2e8f0;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s;

}



.btn-bank-secondary:hover {

    background: rgba(71, 85, 105, 0.9);

}



/* Tab 2: Vault */

.vault-hero-card {

    display: flex;

    align-items: center;

    gap: 20px;

    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));

    border: 1px solid rgba(234, 179, 8, 0.3);

    border-radius: 12px;

    padding: 20px;

    margin-bottom: 20px;

}



.vault-lock-icon {

    font-size: 42px;

    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.5));

}



.vault-caption {

    font-size: 11px;

    color: #94a3b8;

    letter-spacing: 0.5px;

    display: block;

}



.vault-gold-amount {

    font-size: 26px;

    color: #facc15;

    margin: 4px 0 6px 0;

    text-shadow: 0 0 8px rgba(250, 204, 21, 0.4);

}



.vault-desc {

    font-size: 12px;

    color: #94a3b8;

    margin: 0;

    line-height: 1.4;

}



.vault-transfer-container {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;

}



@media (max-width: 600px) {

    .vault-transfer-container {

        grid-template-columns: 1fr;

    }

}



.transfer-box {

    background: rgba(30, 41, 59, 0.5);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    padding: 16px;

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.transfer-title {

    font-size: 14px;

    color: #f8fafc;

    margin: 0;

}



.transfer-input-row {

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.transfer-input-row input {

    padding: 8px 12px;

    background: rgba(0, 0, 0, 0.4);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 6px;

    color: #f8fafc;

    font-size: 13px;

}



.quick-btns-row {

    display: flex;

    gap: 6px;

}



/* Tab 3: Loan */

.loan-hero-card {

    background: rgba(30, 41, 59, 0.6);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 10px;

    padding: 16px;

    margin-bottom: 20px;

}



.loan-stats-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 12px;

    margin-bottom: 12px;

}



.loan-stat-box {

    background: rgba(15, 23, 42, 0.6);

    border-radius: 8px;

    padding: 10px 12px;

    border: 1px solid rgba(255, 255, 255, 0.05);

}



.loan-stat-box .lbl {

    font-size: 11px;

    color: #94a3b8;

    display: block;

    margin-bottom: 4px;

}



.loan-stat-box .val {

    font-size: 14px;

    font-weight: bold;

}



.loan-desc {

    font-size: 12px;

    color: #94a3b8;

    margin: 0;

    line-height: 1.4;

}



.loan-actions-container {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;

}



@media (max-width: 600px) {

    .loan-actions-container {

        grid-template-columns: 1fr;

    }

}



.loan-action-box {

    background: rgba(30, 41, 59, 0.5);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    padding: 16px;

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.loan-action-box h4 {

    margin: 0;

    font-size: 14px;

    color: #f8fafc;

}



.loan-input-row {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.loan-input-row input {

    padding: 8px 12px;

    background: rgba(0, 0, 0, 0.4);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 6px;

    color: #f8fafc;

    font-size: 13px;

}



/* Modal Footer */

.bank-modal-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 20px;

    background: rgba(15, 23, 42, 0.95);

    border-top: 1px solid rgba(255, 255, 255, 0.08);

}



.bank-footer-stat {

    font-size: 12px;

    color: #94a3b8;

    display: flex;

    align-items: center;

    gap: 6px;

}



.btn-bank-close {

    padding: 6px 16px;

    background: rgba(51, 65, 85, 0.7);

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 6px;

    color: #cbd5e1;

    font-size: 12px;

    cursor: pointer;

    transition: background 0.2s;

}



.btn-bank-close:hover {

    background: rgba(71, 85, 105, 0.9);

    color: #fff;

}



/* ==========================================================================

   LUMBERJACK FOREST & AFK WOODCUTTING (Kasaba Oduncu Korusu & Kereste Satışı)

   ========================================================================== */



.forest-modal-content {

    max-width: 760px;

    width: 95%;

    max-height: 90vh;

    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(20, 35, 30, 0.98));

    border: 2px solid rgba(22, 163, 74, 0.5);

    border-radius: 12px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(34, 197, 94, 0.2);

    display: flex;

    flex-direction: column;

    overflow: hidden;

}



.forest-modal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 14px 20px;

    background: rgba(15, 23, 42, 0.95);

    border-bottom: 1px solid rgba(22, 163, 74, 0.3);

}



.forest-emblem {

    font-size: 28px;

    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));

    margin-right: 12px;

}



.forest-subtitle {

    display: block;

    font-size: 11px;

    color: #94a3b8;

    margin-top: 2px;

}



.forest-header-pills {

    display: flex;

    align-items: center;

    gap: 10px;

}



.forest-res-pill {

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 5px 12px;

    border-radius: 20px;

    font-size: 13px;

    background: rgba(15, 23, 42, 0.7);

}



.wood-pill {

    border: 1px solid rgba(74, 222, 128, 0.4);

    color: #86efac;

}



.wood-pill .val {

    font-weight: bold;

    color: #4ade80;

}



.gold-pill {

    border: 1px solid rgba(250, 204, 21, 0.4);

    color: #fef08a;

}



.gold-pill .val {

    font-weight: bold;

    color: #facc15;

}



.forest-modal-body {

    padding: 18px 20px;

    overflow-y: auto;

    display: flex;

    flex-direction: column;

    gap: 16px;

    flex: 1;

}



.forest-card {

    background: rgba(30, 41, 59, 0.5);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 10px;

    padding: 16px;

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.woodcutting-card {

    background: linear-gradient(135deg, rgba(22, 101, 52, 0.2), rgba(15, 23, 42, 0.85));

    border-color: rgba(34, 197, 94, 0.4);

}



.card-hero-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

}



.forest-badge-pill {

    font-size: 12px;

    font-weight: bold;

    padding: 4px 12px;

    border-radius: 14px;

    background: rgba(100, 116, 139, 0.3);

    border: 1px solid #64748b;

    color: #cbd5e1;

}



.forest-badge-pill.active {

    background: rgba(34, 197, 94, 0.25);

    border-color: #22c55e;

    color: #86efac;

    animation: woodchopPulse 1.2s infinite alternate;

}



@keyframes woodchopPulse {

    0% { transform: scale(1); filter: drop-shadow(0 0 2px #22c55e); }

    100% { transform: scale(1.03); filter: drop-shadow(0 0 8px #22c55e); }

}



.forest-rate-tag {

    font-size: 11px;

    color: #94a3b8;

    background: rgba(15, 23, 42, 0.6);

    padding: 4px 10px;

    border-radius: 6px;

    border: 1px solid rgba(255, 255, 255, 0.08);

}



.forest-progress-container {

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.forest-progress-label {

    display: flex;

    justify-content: space-between;

    font-size: 11px;

    color: #cbd5e1;

}



.forest-progress-track {

    width: 100%;

    height: 10px;

    background: rgba(0, 0, 0, 0.5);

    border-radius: 5px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.08);

}



.forest-progress-bar {

    height: 100%;

    background: linear-gradient(90deg, #16a34a, #4ade80);

    border-radius: 5px;

    transition: width 0.1s linear;

}



.forest-stats-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));

    gap: 10px;

}



.f-stat-box {

    background: rgba(15, 23, 42, 0.6);

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 8px;

    padding: 8px 12px;

}



.f-stat-box .lbl {

    font-size: 11px;

    color: #94a3b8;

    display: block;

    margin-bottom: 2px;

}



.f-stat-box .val {

    font-size: 14px;

    font-weight: bold;

    color: #f1f5f9;

}



.wood-green { color: #4ade80 !important; }



.forest-action-row {

    display: flex;

}



.btn-forest-toggle {

    width: 100%;

    padding: 12px 18px;

    background: linear-gradient(135deg, #16a34a, #15803d);

    border: 1px solid #22c55e;

    border-radius: 8px;

    color: #f0fdf4;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);

    transition: all 0.2s ease;

}



.btn-forest-toggle:hover {

    background: linear-gradient(135deg, #22c55e, #16a34a);

    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.5);

    transform: translateY(-1px);

}



.btn-forest-toggle.active {

    background: linear-gradient(135deg, #d97706, #b45309);

    border-color: #f59e0b;

    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);

}



.forest-card-tip {

    font-size: 11px;

    color: #94a3b8;

    margin: 0;

    line-height: 1.4;

}



/* Lumberjack NPC & Selling Station */

.lumberjack-npc-card {

    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));

    border-color: rgba(234, 179, 8, 0.3);

}



.npc-profile-header {

    display: flex;

    gap: 14px;

    align-items: center;

}



.npc-avatar-box {

    font-size: 32px;

    width: 50px;

    height: 50px;

    background: rgba(15, 23, 42, 0.7);

    border: 2px solid rgba(22, 163, 74, 0.5);

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}



.npc-dialogue-box .npc-name {

    font-size: 14px;

    color: #f8fafc;

    margin: 0 0 4px 0;

}



.npc-dialogue-box .npc-speech {

    font-size: 12px;

    color: #cbd5e1;

    margin: 0;

    line-height: 1.4;

}



.wood-sell-actions-grid {

    display: grid;

    grid-template-columns: 1.2fr 1fr 1fr 1fr;

    gap: 10px;

}



@media (max-width: 650px) {

    .wood-sell-actions-grid {

        grid-template-columns: 1fr 1fr;

    }

}



.btn-sell-action {

    padding: 10px 12px;

    border-radius: 6px;

    font-size: 12px;

    font-weight: bold;

    cursor: pointer;

    transition: all 0.2s ease;

    border: 1px solid rgba(255, 255, 255, 0.15);

}



.btn-sell-primary {

    background: linear-gradient(135deg, #eab308, #ca8a04);

    color: #0f172a;

    border: none;

    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);

}



.btn-sell-primary:hover:not(:disabled) {

    background: linear-gradient(135deg, #facc15, #eab308);

    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.5);

    transform: translateY(-1px);

}



.btn-sell-secondary {

    background: rgba(51, 65, 85, 0.7);

    color: #e2e8f0;

}



.btn-sell-secondary:hover:not(:disabled) {

    background: rgba(71, 85, 105, 0.9);

}



.btn-sell-action:disabled {

    opacity: 0.4;

    cursor: not-allowed;

    box-shadow: none;

}



.forest-modal-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 20px;

    background: rgba(15, 23, 42, 0.95);

    border-top: 1px solid rgba(255, 255, 255, 0.08);

}



.footer-note {

    font-size: 11px;

    color: #64748b;

}



.btn-forest-close {

    padding: 6px 16px;

    background: rgba(51, 65, 85, 0.7);

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 6px;

    color: #cbd5e1;

    font-size: 12px;

    cursor: pointer;

    transition: background 0.2s;

}



.btn-forest-close:hover {

    background: rgba(71, 85, 105, 0.9);

    color: #fff;

}





/* ==========================================================================

   KADİM DAĞ MADEN OCAĞI & AFK KAZI MODALI (MOUNTAIN MINE & ORE TRADING)

   ========================================================================== */



.mine-modal-content {

    max-width: 680px;

    width: 95%;

    max-height: 90vh;

    background: linear-gradient(180deg, #181d28 0%, #0f131a 100%);

    border: 2px solid #b45309;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(217, 119, 6, 0.25);

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    color: #e2e8f0;

}



.mine-modal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px 20px;

    background: linear-gradient(90deg, rgba(180, 83, 9, 0.3) 0%, rgba(30, 41, 59, 0.8) 100%);

    border-bottom: 1px solid rgba(245, 158, 11, 0.3);

}



.mine-emblem {

    font-size: 28px;

    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));

}



.mine-subtitle {

    font-size: 11px;

    color: #cbd5e1;

}



.mine-header-pills {

    display: flex;

    gap: 10px;

    align-items: center;

}



.mine-res-pill {

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 5px 12px;

    border-radius: 20px;

    font-size: 13px;

    background: rgba(15, 23, 42, 0.7);

}



.ore-pill {

    border: 1px solid rgba(245, 158, 11, 0.5);

    color: #fde68a;

}



.ore-pill .val {

    font-weight: bold;

    color: #fbbf24;

}



.mine-modal-body {

    padding: 18px 20px;

    overflow-y: auto;

    display: flex;

    flex-direction: column;

    gap: 16px;

    flex: 1;

}



.mine-card {

    background: rgba(30, 41, 59, 0.5);

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 10px;

    padding: 16px;

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.mining-card {

    background: linear-gradient(135deg, rgba(180, 83, 9, 0.22), rgba(15, 23, 42, 0.9));

    border-color: rgba(245, 158, 11, 0.4);

}



.mine-badge-pill {

    font-size: 12px;

    font-weight: bold;

    padding: 4px 12px;

    border-radius: 14px;

    background: rgba(100, 116, 139, 0.3);

    border: 1px solid #64748b;

    color: #cbd5e1;

}



.mine-badge-pill.active {

    background: rgba(217, 119, 6, 0.28);

    border-color: #f59e0b;

    color: #fde68a;

    animation: mineStrikePulse 1.2s infinite alternate;

}



@keyframes mineStrikePulse {

    0% { transform: scale(1); filter: drop-shadow(0 0 2px #f59e0b); }

    100% { transform: scale(1.03); filter: drop-shadow(0 0 10px #f59e0b); }

}



.mine-rate-tag {

    font-size: 11px;

    color: #fcd34d;

    background: rgba(15, 23, 42, 0.7);

    padding: 4px 10px;

    border-radius: 6px;

    border: 1px solid rgba(245, 158, 11, 0.25);

}



.mine-progress-container {

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.mine-progress-label {

    display: flex;

    justify-content: space-between;

    font-size: 12px;

    color: #cbd5e1;

}



.mine-progress-track {

    width: 100%;

    height: 14px;

    background: rgba(15, 23, 42, 0.8);

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 8px;

    overflow: hidden;

    position: relative;

}



.mine-progress-bar {

    height: 100%;

    width: 0%;

    background: linear-gradient(90deg, #d97706, #fbbf24, #fef08a);

    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);

    border-radius: 8px;

    transition: width 0.1s linear;

}



.mine-stats-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

}



.m-stat-box {

    background: rgba(15, 23, 42, 0.75);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 8px;

    padding: 10px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 4px;

}



.m-stat-box .lbl {

    font-size: 11px;

    color: #94a3b8;

}



.m-stat-box .val {

    font-size: 14px;

    font-weight: bold;

}



.ore-amber {

    color: #fbbf24;

}



.mine-action-row {

    display: flex;

    justify-content: center;

    margin-top: 4px;

}



.btn-mine-toggle {

    width: 100%;

    padding: 12px 20px;

    font-size: 14px;

    font-weight: bold;

    border-radius: 8px;

    border: 1px solid #d97706;

    background: linear-gradient(180deg, #b45309 0%, #78350f 100%);

    color: #fff;

    cursor: pointer;

    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.4);

    transition: all 0.2s;

}



.btn-mine-toggle:hover {

    background: linear-gradient(180deg, #d97706 0%, #92400e 100%);

    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.5);

    transform: translateY(-1px);

}



.btn-mine-toggle.active {

    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);

    border-color: #ef4444;

    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);

}



.btn-mine-toggle.active:hover {

    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);

}



.mine-card-tip {

    font-size: 11px;

    color: #94a3b8;

    line-height: 1.4;

    margin: 0;

    padding: 8px 12px;

    background: rgba(15, 23, 42, 0.5);

    border-radius: 6px;

    border-left: 3px solid #f59e0b;

}



.miner-npc-card {

    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.9));

    border-color: rgba(245, 158, 11, 0.25);

}



.ore-sell-actions-grid {

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 8px;

}



.btn-mine-sell-primary {

    background: linear-gradient(180deg, #d97706 0%, #92400e 100%);

    color: #fff;

    border: 1px solid #f59e0b;

    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);

}



.btn-mine-sell-primary:hover:not(:disabled) {

    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);

    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);

}



.btn-mine-sell-secondary {

    background: rgba(51, 65, 85, 0.7);

    color: #e2e8f0;

    border: 1px solid rgba(255, 255, 255, 0.12);

}



.btn-mine-sell-secondary:hover:not(:disabled) {

    background: rgba(71, 85, 105, 0.9);

}



.mine-modal-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 20px;

    background: rgba(15, 23, 42, 0.95);

    border-top: 1px solid rgba(245, 158, 11, 0.2);

}



.btn-mine-close {

    padding: 6px 16px;

    background: rgba(51, 65, 85, 0.7);

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 6px;

    color: #cbd5e1;

    font-size: 12px;

    cursor: pointer;

    transition: background 0.2s;

}



.btn-mine-close:hover {

    background: rgba(71, 85, 105, 0.9);

    color: #fff;

}





/* ==========================================================================

   CRAFTING WORKSHOPS: MINE PROTECTION SCROLL & FOREST UPGRADE STONES

   ========================================================================== */



.mine-craft-card {

    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(30, 41, 59, 0.7) 60%, rgba(15, 23, 42, 0.95));

    border: 1px solid rgba(239, 68, 68, 0.35);

    box-shadow: inset 0 0 20px rgba(185, 28, 28, 0.1);

}



.forest-craft-card {

    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(30, 41, 59, 0.7) 60%, rgba(15, 23, 42, 0.95));

    border: 1px solid rgba(56, 189, 248, 0.35);

    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.1);

}



.mine-craft-title-row,

.forest-craft-title-row {

    display: flex;

    align-items: center;

    gap: 10px;

}



.craft-icon {

    font-size: 22px;

    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));

}



.mine-craft-title {

    margin: 0;

    font-size: 14px;

    font-weight: bold;

    color: #fca5a5;

}



.forest-craft-title {

    margin: 0;

    font-size: 14px;

    font-weight: bold;

    color: #7dd3fc;

}



.mine-craft-sub,

.forest-craft-sub {

    font-size: 11px;

    color: #94a3b8;

}



.mine-craft-badge-hard {

    font-size: 11px;

    font-weight: bold;

    padding: 3px 10px;

    border-radius: 12px;

    background: rgba(220, 38, 38, 0.25);

    border: 1px solid #ef4444;

    color: #fca5a5;

    text-shadow: 0 0 4px rgba(239, 68, 68, 0.5);

}



.forest-craft-badge-guaranteed {

    font-size: 11px;

    font-weight: bold;

    padding: 3px 10px;

    border-radius: 12px;

    background: rgba(34, 197, 94, 0.25);

    border: 1px solid #22c55e;

    color: #86efac;

    text-shadow: 0 0 4px rgba(34, 197, 94, 0.5);

}



.craft-info-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 8px;

    margin: 4px 0;

}



.c-info-box {

    background: rgba(15, 23, 42, 0.8);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 8px;

    padding: 8px 10px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 3px;

}



.c-info-box .lbl {

    font-size: 10px;

    color: #94a3b8;

}



.c-info-box .val {

    font-size: 13px;

    font-weight: bold;

}



.protection-gold {

    color: #fbbf24;

    text-shadow: 0 0 6px rgba(245, 158, 11, 0.4);

}



.stone-cyan {

    color: #38bdf8;

    text-shadow: 0 0 6px rgba(56, 189, 248, 0.4);

}



.mine-craft-actions-grid,

.forest-craft-actions-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 8px;

}



.btn-craft-action {

    padding: 10px 8px;

    font-size: 12px;

    font-weight: bold;

    border-radius: 6px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    cursor: pointer;

    transition: all 0.2s;

    text-align: center;

}



.btn-craft-single {

    background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);

    color: #fee2e2;

    border-color: #ef4444;

}



.btn-craft-single:hover:not(:disabled) {

    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);

    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);

    transform: translateY(-1px);

}



.btn-craft-multi {

    background: linear-gradient(180deg, #991b1b 0%, #450a0a 100%);

    color: #fecaca;

    border-color: #dc2626;

}



.btn-craft-multi:hover:not(:disabled) {

    background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);

    box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);

    transform: translateY(-1px);

}



.btn-stone-single {

    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);

    color: #e0f2fe;

    border-color: #38bdf8;

}



.btn-stone-single:hover:not(:disabled) {

    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);

    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);

    transform: translateY(-1px);

}



.btn-stone-multi {

    background: linear-gradient(180deg, #0369a1 0%, #075985 100%);

    color: #bae6fd;

    border-color: #0284c7;

}



.btn-stone-multi:hover:not(:disabled) {

    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);

    box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);

    transform: translateY(-1px);

}



.btn-stone-all {

    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);

    color: #dcfce7;

    border-color: #22c55e;

}



.btn-stone-all:hover:not(:disabled) {

    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);

    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);

    transform: translateY(-1px);

}



.btn-craft-action:disabled {

    opacity: 0.4;

    cursor: not-allowed;

    box-shadow: none;

    transform: none;

}



.mine-craft-banner,

.forest-craft-banner {

    padding: 8px 12px;

    border-radius: 6px;

    font-size: 12px;

    font-weight: bold;

    text-align: center;

    animation: bannerPop 0.3s ease;

}



.mine-craft-banner.success {

    background: rgba(22, 163, 74, 0.25);

    border: 1px solid #22c55e;

    color: #86efac;

}



.mine-craft-banner.fail {

    background: rgba(220, 38, 38, 0.25);

    border: 1px solid #ef4444;

    color: #fca5a5;

}



.forest-craft-banner.success {

    background: rgba(14, 165, 233, 0.25);

    border: 1px solid #38bdf8;

    color: #bae6fd;

}



@keyframes bannerPop {

    0% { transform: scale(0.95); opacity: 0; }

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

}



/* ==========================================================================

   AAA MEDIEVAL DARK FANTASY NPC MODALS (Forest, Mine, Bank, Market)

   Unified Gothic Theme, Ambient Glows, Ornate Portals & Scene Cards

   ========================================================================== */



.medieval-npc-frame {

    width: 920px;

    max-width: 95vw;

    max-height: 94vh;

    background: linear-gradient(135deg, #18120c 0%, #0d0a07 100%);

    border-radius: 8px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    position: relative;

    padding: 0;

    box-sizing: border-box;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

}



.medieval-npc-frame::before,

.medieval-npc-frame::after {

    content: "";

    position: absolute;

    width: 14px;

    height: 14px;

    background: radial-gradient(circle, #ca8a04 20%, #713f12 70%, #1e1b18 100%);

    border: 1px solid #451a03;

    border-radius: 50%;

    z-index: 10;

    pointer-events: none;

    box-shadow: 0 0 5px rgba(0,0,0,0.8);

}

.medieval-npc-frame::before { top: 6px; left: 6px; }

.medieval-npc-frame::after { top: 6px; right: 6px; }



/* Thematic Glowing Borders */

.medieval-npc-frame.forest-theme {

    border: 3px solid #16a34a;

    box-shadow: 0 0 35px rgba(22, 163, 74, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.95);

}

.medieval-npc-frame.mine-theme {

    border: 3px solid #d97706;

    box-shadow: 0 0 35px rgba(217, 119, 6, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.95);

}

.medieval-npc-frame.bank-theme {

    border: 3px solid #eab308;

    box-shadow: 0 0 35px rgba(234, 179, 8, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.95);

}

.medieval-npc-frame.market-theme {

    border: 3px solid #0284c7;

    box-shadow: 0 0 35px rgba(2, 132, 199, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.95);

}



/* Header Theming */

.forest-header-theme {

    border-bottom: 2px solid #16a34a !important;

    background: linear-gradient(180deg, #092014 0%, #05140d 100%) !important;

}

.mine-header-theme {

    border-bottom: 2px solid #d97706 !important;

    background: linear-gradient(180deg, #241608 0%, #140c04 100%) !important;

}

.bank-header-theme {

    border-bottom: 2px solid #eab308 !important;

    background: linear-gradient(180deg, #241b06 0%, #140f03 100%) !important;

}

.market-header-theme {

    border-bottom: 2px solid #0284c7 !important;

    background: linear-gradient(180deg, #071728 0%, #030c14 100%) !important;

}



.forest-header-badge, .mine-header-badge, .bank-header-badge, .market-header-badge {

    font-size: 11px;

    font-weight: 700;

    padding: 3px 10px;

    border-radius: 4px;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}

.forest-header-badge { background: rgba(22, 163, 74, 0.2); border: 1px solid #16a34a; color: #86efac; }

.mine-header-badge { background: rgba(217, 119, 6, 0.2); border: 1px solid #d97706; color: #fde68a; }

.bank-header-badge { background: rgba(234, 179, 8, 0.2); border: 1px solid #eab308; color: #fef08a; }

.market-header-badge { background: rgba(2, 132, 199, 0.2); border: 1px solid #0284c7; color: #7dd3fc; }



/* NPC Profile Banner */

.npc-profile-banner {

    display: flex;

    align-items: center;

    gap: 16px;

    padding: 12px 20px;

    margin: 12px 16px 0 16px;

    background: #0b0c10;

    border-radius: 8px;

    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.85);

}

.npc-profile-banner.forest-border { border: 1px dashed #15803d; }

.npc-profile-banner.mine-border { border: 1px dashed #b45309; }

.npc-profile-banner.bank-border { border: 1px dashed #ca8a04; }

.npc-profile-banner.market-border { border: 1px dashed #0369a1; }



.npc-avatar-frame {

    position: relative;

    width: 64px;

    height: 64px;

    border-radius: 50%;

    background: #020408;

    border: 2px solid #ca8a04;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    overflow: hidden;

    box-shadow: 0 0 12px rgba(0, 0, 0, 0.9);

}

.forest-border .npc-avatar-frame { border-color: #22c55e; }

.mine-border .npc-avatar-frame { border-color: #f59e0b; }

.bank-border .npc-avatar-frame { border-color: #eab308; }

.market-border .npc-avatar-frame { border-color: #38bdf8; }



.npc-portrait-img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    image-rendering: pixelated;

}



.npc-status-dot.online {

    position: absolute;

    bottom: 3px;

    right: 3px;

    width: 10px;

    height: 10px;

    background: #22c55e;

    border: 2px solid #090a0f;

    border-radius: 50%;

    box-shadow: 0 0 6px #22c55e;

}



.npc-profile-meta {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 4px;

}

.npc-profile-title-row {

    display: flex;

    align-items: center;

    gap: 10px;

}

.npc-profile-name {

    margin: 0;

    font-size: 16px;

    font-weight: 700;

    color: #fef08a;

    font-family: Georgia, serif;

    letter-spacing: 0.5px;

}

.npc-profile-badge {

    font-size: 11px;

    color: #94a3b8;

    background: rgba(255, 255, 255, 0.06);

    padding: 2px 8px;

    border-radius: 4px;

    border: 1px solid rgba(255, 255, 255, 0.1);

}

.npc-profile-quote {

    margin: 0;

    font-size: 12.5px;

    line-height: 1.45;

    color: #cbd5e1;

    font-style: italic;

}



/* 2-Column Body Layout */

.two-col-layout {

    display: flex;

    gap: 16px;

    padding: 14px 16px !important;

    overflow-y: auto;

    flex: 1;

}

.modal-col-left {

    flex: 1.25;

    display: flex;

    flex-direction: column;

    gap: 12px;

}

.modal-col-right {

    flex: 0.95;

    display: flex;

    flex-direction: column;

    gap: 12px;

}



/* NPC Scene Card in Modals */

.npc-scene-card {

    position: relative;

    width: 100%;

    height: 200px;

    border-radius: 6px;

    overflow: hidden;

    border: 2px solid #451a03;

    background: #000;

    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.95);

}

.forest-theme .npc-scene-card { border-color: #14532d; }

.mine-theme .npc-scene-card { border-color: #78350f; }

.bank-theme .npc-scene-card { border-color: #713f12; }

.market-theme .npc-scene-card { border-color: #0c4a6e; }



.npc-scene-img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    image-rendering: pixelated;

    transition: transform 0.4s ease;

}

.npc-scene-card:hover .npc-scene-img {

    transform: scale(1.03);

}



.scene-overlay-glow {

    position: absolute;

    inset: 0;

    pointer-events: none;

}

.scene-overlay-glow.forest-glow {

    background: radial-gradient(circle at 50% 80%, rgba(34, 197, 94, 0.25) 0%, transparent 70%);

}

.scene-overlay-glow.mine-glow {

    background: radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.25) 0%, transparent 70%);

}



.scene-caption-pill {

    position: absolute;

    bottom: 8px;

    left: 50%;

    transform: translateX(-50%);

    background: rgba(9, 14, 23, 0.88);

    border: 1px solid rgba(254, 240, 138, 0.3);

    color: #fef08a;

    font-size: 11px;

    padding: 3px 12px;

    border-radius: 12px;

    white-space: nowrap;

    pointer-events: none;

}



/* Station Headings */

.station-heading {

    margin: 0 0 10px 0;

    font-size: 13.5px;

    font-weight: 700;

    color: #fde68a;

    letter-spacing: 0.5px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    padding-bottom: 6px;

}



/* Restyled Cards */

.forest-card, .mine-card {

    background: #0d0f14;

    border: 1px solid #1e293b;

    border-radius: 6px;

    padding: 12px;

    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);

}



/* Metal Slab Action Buttons */

.btn-forest-toggle, .btn-mine-toggle {

    width: 100%;

    padding: 11px 16px;

    font-size: 13.5px;

    font-weight: 700;

    border-radius: 6px;

    cursor: pointer;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    transition: all 0.2s ease;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);

}

.btn-forest-toggle {

    background: linear-gradient(180deg, #16a34a 0%, #14532d 100%);

    border: 2px solid #22c55e;

    color: #ffffff;

}

.btn-forest-toggle:hover {

    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);

    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);

    transform: translateY(-1px);

}

.btn-forest-toggle.active {

    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);

    border-color: #ef4444;

}



.btn-mine-toggle {

    background: linear-gradient(180deg, #d97706 0%, #78350f 100%);

    border: 2px solid #f59e0b;

    color: #ffffff;

}

.btn-mine-toggle:hover {

    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);

    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);

    transform: translateY(-1px);

}

.btn-mine-toggle.active {

    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);

    border-color: #ef4444;

}



/* Sell and Craft Action Grids */

.wood-sell-actions-grid, .ore-sell-actions-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

}

.btn-sell-primary, .btn-mine-sell-primary {

    grid-column: span 2;

    background: linear-gradient(180deg, #ca8a04 0%, #713f12 100%) !important;

    border: 1px solid #eab308 !important;

    color: #ffffff !important;

    font-weight: 700 !important;

}

.btn-sell-primary:hover, .btn-mine-sell-primary:hover {

    box-shadow: 0 0 12px rgba(234, 179, 8, 0.45);

}

.btn-sell-action {

    padding: 9px 8px;

    font-size: 11.5px;

    font-weight: 600;

    border-radius: 5px;

    cursor: pointer;

    background: #1e222d;

    border: 1px solid #334155;

    color: #e2e8f0;

    transition: all 0.2s ease;

}

.btn-sell-action:hover {

    background: #2d3345;

    border-color: #64748b;

    transform: translateY(-1px);

}



.forest-craft-actions-grid, .mine-craft-actions-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-top: 10px;

}

.btn-stone-all, .btn-craft-actions-grid .btn-craft-multi:last-child {

    grid-column: span 2;

}

.btn-craft-action {

    padding: 9px 10px;

    font-size: 11.5px;

    font-weight: 600;

    border-radius: 5px;

    cursor: pointer;

    background: #181d28;

    border: 1px solid #3b82f6;

    color: #bae6fd;

    transition: all 0.2s ease;

}

.btn-craft-action:hover {

    background: #1e293b;

    border-color: #60a5fa;

    box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);

    transform: translateY(-1px);

}

.btn-craft-single { border-color: #f59e0b; color: #fde68a; }

.btn-craft-multi { border-color: #ef4444; color: #fca5a5; }



/* In-World Floating Speech Bubble (Phaser Canvas Overlay) */

@keyframes bubbleFloat {

    0% { transform: translateY(0); }

    50% { transform: translateY(-3px); }

    100% { transform: translateY(0); }

}



/* NPC Profiles: Blacksmith, Portal & Tavern */

.npc-profile-banner.blacksmith-border { border: 1px dashed #d97706; }

.blacksmith-border .npc-avatar-frame { border-color: #f59e0b; }

.npc-profile-banner.portal-border { border: 1px dashed #0284c7; }

.portal-border .npc-avatar-frame { border-color: #38bdf8; }



.tavern-host-portrait {

    width: 68px !important;

    height: 68px !important;

    border-radius: 50% !important;

    border: 2px solid #ca8a04 !important;

    object-fit: cover !important;

    image-rendering: pixelated !important;

    box-shadow: 0 0 12px rgba(202, 138, 4, 0.45) !important;

    flex-shrink: 0;

}



/* ==========================================================================

   TOWN MINIMAP (4800x3200 World Radar HUD)

   ========================================================================== */

/* ==========================================================================
   TOWN PLAYER PROFILE WIDGET (Top-Left HUD above Minimap)
   ========================================================================== */
.town-player-profile {
    position: absolute;
    top: 12px;
    left: 14px;
    width: 240px;
    background: rgba(15, 23, 42, 0.94);
    border: 2px solid #b45309;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75), inset 0 0 10px rgba(180, 83, 9, 0.2);
    backdrop-filter: blur(8px);
    z-index: 55;
    user-select: none;
    padding: 7px 9px;
    font-family: 'VT323', monospace;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-sizing: border-box;
    pointer-events: auto;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.town-player-profile:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.85), 0 0 14px rgba(245, 158, 11, 0.35);
}

#game-container.mode-battle .town-player-profile,
#game-container.mode-war .town-player-profile {
    display: none !important;
}

.town-profile-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.town-profile-avatar-frame {
    position: relative;
    width: 44px;
    height: 44px;
    border: 2px solid #facc15;
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.95);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.town-profile-avatar-frame:hover {
    transform: scale(1.06);
    border-color: #fef08a;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
}

.town-profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    transform: scale(1.15);
}

.town-profile-lvl-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 0 3px;
    border-top-left-radius: 4px;
    border: 1px solid #fef08a;
    text-shadow: 0 1px 2px #000;
    line-height: 1.1;
    font-family: 'VT323', monospace;
}

.town-profile-info-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.town-profile-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
}

.town-profile-name {
    font-size: 16px;
    font-weight: bold;
    color: #38bdf8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    line-height: 1.1;
}

.town-profile-class-pill {
    font-size: 11px;
    font-weight: bold;
    background: rgba(51, 65, 85, 0.9);
    color: #cbd5e1;
    border: 1px solid #64748b;
    border-radius: 3px;
    padding: 1px 5px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.1;
}

.town-profile-title {
    font-size: 13px;
    font-weight: bold;
    color: #f59e0b;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.town-profile-title:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.town-profile-exp-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.town-profile-exp-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1;
}

.town-profile-exp-tag {
    color: #38bdf8;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.town-profile-exp-values {
    color: #cbd5e1;
    font-size: 12px;
}

.town-profile-exp-pct {
    color: #4ade80;
    font-weight: bold;
    font-size: 12px;
}

.town-profile-exp-bar-track {
    width: 100%;
    height: 7px;
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid #475569;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.town-profile-exp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #22c55e);
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
    transition: width 0.35s ease;
}


.town-minimap-container {

    position: absolute;

    top: 96px;

    left: 14px;

    right: auto;

    width: 240px;

    background: rgba(15, 23, 42, 0.92);

    border: 2px solid #b45309;

    border-radius: 8px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), inset 0 0 12px rgba(180, 83, 9, 0.25);

    backdrop-filter: blur(6px);

    z-index: 50;

    user-select: none;

    overflow: hidden;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    transition: width 0.22s ease, opacity 0.2s ease, transform 0.2s ease;

    display: flex;

    flex-direction: column;

    pointer-events: auto;

}



#game-container.mode-battle .town-minimap-container,

#game-container.mode-war .town-minimap-container {

    display: none !important;

}



.town-minimap-container.collapsed {

    width: 185px;

}



.town-minimap-container.collapsed .minimap-canvas-wrapper,

.town-minimap-container.collapsed .minimap-footer {

    display: none !important;

}



.minimap-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 6px 10px;

    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);

    border-bottom: 1px solid rgba(180, 83, 9, 0.4);

    cursor: pointer;

}



.minimap-header:hover {

    background: linear-gradient(180deg, rgba(40, 54, 76, 0.98) 0%, rgba(20, 30, 50, 0.98) 100%);

}



.minimap-title-wrap {

    display: flex;

    align-items: center;

    gap: 6px;

    min-width: 0;

}



.minimap-compass-icon {

    font-size: 13px;

    flex-shrink: 0;

}



.minimap-zone-title {

    font-size: 11px;

    font-weight: 700;

    color: #fde047;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    letter-spacing: 0.3px;

    text-shadow: 0 1px 2px rgba(0,0,0,0.8);

}



.minimap-header-ctrls {

    display: flex;

    align-items: center;

    gap: 6px;

    flex-shrink: 0;

}



.minimap-hotkey-badge {

    font-size: 9px;

    font-weight: 700;

    color: #94a3b8;

    background: rgba(30, 41, 59, 0.8);

    border: 1px solid #475569;

    border-radius: 3px;

    padding: 1px 4px;

    line-height: 1.1;

    font-family: monospace;

}



.minimap-toggle-btn {

    width: 18px;

    height: 18px;

    background: rgba(180, 83, 9, 0.25);

    border: 1px solid rgba(245, 158, 11, 0.5);

    border-radius: 4px;

    color: #fde047;

    font-size: 13px;

    line-height: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: all 0.15s ease;

    padding: 0;

}



.minimap-toggle-btn:hover {

    background: rgba(245, 158, 11, 0.4);

    border-color: #facc15;

    transform: scale(1.1);

}



.minimap-canvas-wrapper {

    position: relative;

    width: 240px;

    height: 160px;

    background: #091209;

    cursor: crosshair;

}



.town-minimap-canvas {

    display: block;

    width: 240px;

    height: 160px;

    image-rendering: auto;

}



.minimap-tooltip {

    position: absolute;

    pointer-events: none;

    background: rgba(10, 15, 30, 0.95);

    border: 1px solid #f59e0b;

    border-radius: 4px;

    color: #f8fafc;

    font-size: 10px;

    font-weight: 600;

    padding: 3px 7px;

    white-space: nowrap;

    box-shadow: 0 4px 12px rgba(0,0,0,0.85);

    z-index: 60;

    transform: translate(-50%, -125%);

    transition: opacity 0.1s ease;

}



.minimap-tooltip.hidden {

    display: none !important;

}



.minimap-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 3px 8px;

    background: rgba(15, 23, 42, 0.95);

    border-top: 1px solid rgba(180, 83, 9, 0.3);

    font-size: 10px;

}



.minimap-coords-text {

    font-family: monospace;

    color: #94a3b8;

    font-weight: 600;

    letter-spacing: 0.3px;

}



.minimap-action-hint {

    color: #38bdf8;

    font-weight: 700;

    font-size: 9px;

    letter-spacing: 0.3px;

}



@media (max-width: 600px) {

    .town-minimap-container {

        width: 190px;

        top: 8px;

        left: 8px;

        right: auto;

    }

    .minimap-canvas-wrapper,

    .town-minimap-canvas {

        width: 190px;

        height: 126px;

    }

}



/* Header Music Toggle Button */

.header-btn-music {

    background: #1e293b;

    border: 1px solid #38bdf8;

    color: #38bdf8;

    border-radius: 6px;

    padding: 3px 8px;

    font-family: 'VT323', monospace;

    font-size: 15px;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 4px;

    transition: all 0.15s ease;

}



.header-btn-music:hover {

    background: #0284c7;

    color: #ffffff;

    transform: translateY(-1px);

}



.header-btn-music.muted {

    border-color: #64748b;

    color: #94a3b8;

    background: #0f172a;

}



/* Auto-Sell Inventory Button */

.auto-sell-btn {

    background: #1e293b;

    border: 1px solid #475569;

    color: #94a3b8;

    padding: 4px 10px;

    font-size: 13px;

    font-weight: 600;

    border-radius: 6px;

    cursor: pointer;

    transition: all 0.2s ease;

}



.auto-sell-btn:hover {

    border-color: #94a3b8;

    color: #f1f5f9;

}



.auto-sell-btn.active {

    background: rgba(34, 197, 94, 0.2);

    border-color: #22c55e;

    color: #4ade80;

    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);

}



/* =========================================================================

   AFK Offline Expedition Report Modal

   ========================================================================= */

.afk-modal-content {

    width: 640px;

    max-width: 95vw;

    background: #0f172a;

    border: 3px solid #f59e0b;

    border-radius: 12px;

    box-shadow: 0 0 35px rgba(245, 158, 11, 0.4), 0 20px 60px rgba(0, 0, 0, 0.95);

    padding: 22px;

}



.afk-modal-header {

    border-bottom: 2px solid #334155;

    padding-bottom: 12px;

    margin-bottom: 14px;

}



.afk-summary-desc {

    color: #94a3b8;

    font-size: 16px;

    margin-bottom: 18px;

    text-align: center;

}



.afk-stats-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-bottom: 22px;

}



.afk-stat-card {

    background: #182234;

    border: 1.5px solid #334155;

    border-radius: 8px;

    padding: 10px 14px;

    display: flex;

    align-items: center;

    gap: 12px;

}



.afk-stat-icon {

    font-size: 26px;

}



.afk-stat-info {

    display: flex;

    flex-direction: column;

}



.afk-stat-label {

    font-size: 11px;

    color: #94a3b8;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.afk-stat-val {

    font-size: 18px;

    color: #f1f5f9;

    font-family: monospace;

    font-weight: 700;

}



.afk-stat-val.gold { color: #fde047; }

.afk-stat-val.exp { color: #c084fc; }

.afk-stat-val.loot { color: #38bdf8; }



.afk-stat-sub {

    font-size: 12px;

    color: #64748b;

}



.afk-actions-row {

    display: flex;

    gap: 14px;

    justify-content: center;

}



.afk-btn-continue {

    background: linear-gradient(180deg, #f59e0b, #d97706);

    border: 1.5px solid #fef08a;

    color: #0f172a;

    font-family: 'VT323', monospace;

    font-size: 21px;

    font-weight: bold;

    padding: 8px 24px;

    border-radius: 8px;

    cursor: pointer;

    transition: all 0.2s ease;

    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);

}



.afk-btn-continue:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.6);

}



.afk-btn-town {

    background: #1e293b;

    border: 1.5px solid #475569;

    color: #f1f5f9;

    font-family: 'VT323', monospace;

    font-size: 21px;

    font-weight: bold;

    padding: 8px 24px;

    border-radius: 8px;

    cursor: pointer;

    transition: all 0.2s ease;

}



.afk-btn-town:hover {

    background: #334155;

    border-color: #38bdf8;

    color: #38bdf8;

    transform: translateY(-2px);

}



/* =========================================================================
   EQUIPMENT COMPARISON, UPGRADE BADGES & STAT ALLOCATION UX OVERHAUL
   ========================================================================= */

#item-tooltip {
    min-width: 290px !important;
    max-width: 360px !important;
    width: auto !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(56, 189, 248, 0.3) !important;
}

/* Pulsating Inventory Upgrade Indicator Badge (▲) */
.slot-upgrade-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 5;
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #86efac;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid #22c55e;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
    animation: pulse-upgrade 1.5s infinite ease-in-out;
    pointer-events: none;
    letter-spacing: -0.5px;
}

@keyframes pulse-upgrade {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    }
    50% {
        transform: scale(1.18);
        filter: brightness(1.3);
        box-shadow: 0 0 12px rgba(74, 222, 128, 0.95);
    }
}

/* Tooltip Comparison Badges */
.tooltip-comparison-badge {
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: bold;
    margin: 6px 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.3px;
}

.tooltip-comparison-badge .power-sub {
    font-size: 10px;
    font-weight: normal;
    opacity: 0.85;
}

.tooltip-comparison-badge.upgrade {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.25) 0%, rgba(21, 128, 61, 0.15) 100%);
    border: 1px solid #22c55e;
    color: #4ade80;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.tooltip-comparison-badge.downgrade {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.1) 100%);
    border: 1px solid #ef4444;
    color: #f87171;
}

.tooltip-comparison-badge.equal {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid #64748b;
    color: #94a3b8;
}

.tooltip-comparison-badge.equipped {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.2) 0%, rgba(2, 132, 199, 0.1) 100%);
    border: 1px solid #0284c7;
    color: #38bdf8;
}

.tooltip-comparison-badge.empty-slot {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.2) 0%, rgba(202, 138, 4, 0.1) 100%);
    border: 1px solid #eab308;
    color: #facc15;
}

/* Tooltip Comparison Stat Rows */
.tooltip-comparison-stats-header {
    font-size: 11px;
    font-weight: bold;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 6px 0 4px 0;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 3px;
}

.tooltip-stat-diff-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 12px;
}

.tooltip-stat-diff-row .stat-name {
    color: #cbd5e1;
}

.tooltip-stat-diff-row .stat-vals {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tooltip-stat-diff-row .stat-new-val {
    color: #f8fafc;
    font-weight: 700;
}

.tooltip-stat-diff-row .stat-eq-val {
    color: #64748b;
    font-size: 11px;
}

.stat-diff-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.stat-diff-badge.positive {
    background: #14532d;
    color: #4ade80;
    border: 1px solid #22c55e;
    box-shadow: 0 0 5px rgba(74, 222, 128, 0.4);
}

.stat-diff-badge.negative {
    background: #7f1d1d;
    color: #f87171;
    border: 1px solid #ef4444;
}

.stat-diff-badge.neutral {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
}

/* Equipped Summary Preview Card inside Tooltip */
.tooltip-equipped-preview {
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid #1e293b;
    border-radius: 5px;
}

.equipped-preview-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.equipped-preview-header .equipped-label {
    color: #64748b;
    font-weight: bold;
}

/* Multi-Point Stat Allocation Buttons */
.attr-btn-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.attr-btn-group .attr-btn {
    padding: 4px 7px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #f8fafc;
    transition: all 0.15s ease;
}

.attr-btn-group .attr-btn.can-spend:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.attr-btn-group .attr-btn-add1.can-spend:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
}

.attr-btn-group .attr-btn-add5.can-spend {
    background: rgba(37, 99, 235, 0.25);
    border-color: #2563eb;
    color: #60a5fa;
}

.attr-btn-group .attr-btn-add5.can-spend:hover {
    background: #2563eb;
    border-color: #93c5fd;
    color: #ffffff;
}

.attr-btn-group .attr-btn-addall.can-spend {
    background: rgba(124, 58, 237, 0.25);
    border-color: #7c3aed;
    color: #c084fc;
}

.attr-btn-group .attr-btn-addall.can-spend:hover {
    background: #7c3aed;
    border-color: #e9d5ff;
    color: #ffffff;
}

/* Stat Respec Button */
.respec-row {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #334155;
    text-align: center;
}

.btn-respec-stats {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #f59e0b;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(180, 83, 9, 0.15) 100%);
    border: 1px solid #b45309;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-respec-stats:hover {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.28) 0%, rgba(180, 83, 9, 0.32) 100%);
    border-color: #f59e0b;
    color: #fde047;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Right panel & Attribute buttons polish */
#right-panel {
    overflow-x: hidden !important;
}

.attr-btn-group {
    flex-shrink: 0;
    gap: 3px !important;
}

.attr-btn-group .attr-btn {
    padding: 3px 6px !important;
    font-size: 10.5px !important;
}


/* =========================================================================
   AUTO-EQUIP, COMBAT SPEED, BOSS BANNERS & NEXT ZONE RECOMMENDATION
   ========================================================================= */

/* Auto-Equip Best Gear Buttons */
.auto-equip-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.28) 0%, rgba(21, 128, 61, 0.22) 100%) !important;
    border: 1px solid #22c55e !important;
    color: #4ade80 !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.35) !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
}

.auto-equip-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    border-color: #4ade80 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.6) !important;
}

.afk-btn-equip {
    background: linear-gradient(180deg, #15803d 0%, #166534 100%) !important;
    border: 1px solid #22c55e !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4) !important;
    transition: all 0.2s ease !important;
}

.afk-btn-equip:hover {
    background: #16a34a !important;
    border-color: #86efac !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.65) !important;
}

/* Combat Game Speed Multiplier Button in Telemetry HUD */
.hud-chip-speed-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hud-chip-speed-btn:hover {
    background: #334155;
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateY(-1px);
}

.hud-chip-speed-btn.speed-1_5 {
    background: rgba(14, 165, 233, 0.25);
    border-color: #0284c7;
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.hud-chip-speed-btn.speed-2 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.25) 100%);
    border-color: #f59e0b;
    color: #fde047;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.7);
    animation: speed-glow 1.5s infinite ease-in-out;
}

@keyframes speed-glow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    }
    50% {
        box-shadow: 0 0 18px rgba(245, 158, 11, 0.95);
    }
}

/* Boss Event Screen Banner (Alert & Defeat) */
.boss-event-banner {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 120;
    padding: 9px 26px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    animation: boss-banner-in 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes boss-banner-in {
    from {
        opacity: 0;
        transform: translate(-50%, -24px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.boss-event-banner.alert {
    background: linear-gradient(180deg, #991b1b 0%, #450a0a 100%);
    border: 2px solid #ef4444;
    color: #fef08a;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.7);
}

.boss-event-banner.victory {
    background: linear-gradient(180deg, #92400e 0%, #451a03 100%);
    border: 2px solid #f59e0b;
    color: #fef08a;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.7);
}

/* Next Zone Unlock Recommendation Chip in Header */
.btn-next-zone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(126, 34, 206, 0.18) 100%);
    border: 1px solid #a855f7;
    color: #d8b4fe;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: next-zone-pulse 2s infinite ease-in-out;
}

.btn-next-zone-chip:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    border-color: #c084fc;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
}

@keyframes next-zone-pulse {
    0%, 100% {
        box-shadow: 0 0 6px rgba(168, 85, 247, 0.4);
    }
    50% {
        box-shadow: 0 0 14px rgba(168, 85, 247, 0.85);
    }
}

/* ==========================================================================
   ITEM LOCKING (🔒) AND OVERFLOW STASH (📬) SYSTEM
   ========================================================================== */

/* Locked Item Badge in Inventory Slots */
.slot-lock-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 11px;
    line-height: 1;
    z-index: 5;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
    pointer-events: none;
    animation: lock-subtle-pulse 2.5s infinite ease-in-out;
}

@keyframes lock-subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.18);
    }
}

.inv-slot.item-locked {
    box-shadow: inset 0 0 0 1.5px rgba(239, 68, 68, 0.55), 0 0 6px rgba(239, 68, 68, 0.25) !important;
}

/* Stash Action Button in Inventory */
.inv-action-btn.stash-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #4338ca 100%) !important;
    border-color: #818cf8 !important;
    color: #e0e7ff !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.45);
    font-weight: 800;
    animation: stash-pulse 2.2s infinite ease-in-out;
}

.inv-action-btn.stash-btn:hover {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #4f46e5 100%) !important;
    border-color: #a5b4fc !important;
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(129, 140, 248, 0.75);
}

@keyframes stash-pulse {
    0%, 100% {
        box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 14px rgba(129, 140, 248, 0.85);
    }
}

/* Stash Modal Styles */
.stash-modal-content {
    max-width: 640px;
    width: 92%;
    background: #0f172a;
    border: 2px solid #6366f1;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 18px;
    color: #f8fafc;
}

.stash-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.stash-modal-header .modal-title {
    color: #818cf8;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.stash-info-box {
    background: rgba(30, 41, 59, 0.75);
    border-left: 4px solid #6366f1;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #cbd5e1;
}

.stash-info-box p {
    margin: 0 0 4px 0;
}

.stash-info-box strong {
    color: #a5b4fc;
}

.stash-info-box small {
    display: block;
    color: #94a3b8;
    font-size: 11.5px;
}

.stash-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 4px 6px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 6px;
    border: 1px solid #1e293b;
}

.stash-status-text {
    font-size: 13px;
    color: #94a3b8;
}

.stash-status-text strong {
    color: #818cf8;
    font-size: 15px;
}

.stash-claim-all-btn {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    color: #ffffff;
    border: 1px solid #818cf8;
    border-radius: 5px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stash-claim-all-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}

.stash-items-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.stash-empty-msg {
    text-align: center;
    color: #64748b;
    padding: 36px 16px;
    font-style: italic;
    font-size: 13px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 6px;
    border: 1px dashed #334155;
}

.stash-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 8px 12px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.stash-item-card:hover {
    transform: translateX(3px);
    background: #273549;
}

.stash-item-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stash-item-info {
    flex: 1;
}

.stash-item-name {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 2px;
}

.stash-item-desc {
    font-size: 11px;
    color: #94a3b8;
}

.stash-claim-btn {
    background: #10b981;
    color: #ffffff;
    border: 1px solid #34d399;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.stash-claim-btn:hover {
    background: #059669;
}

/* ==========================================================================
   MODERN DARK-FANTASY UI & AESTHETIC POLISH
   ========================================================================== */

/* 1. Header Bar Glassmorphism & Layout */
#header-bar {
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1.5px solid rgba(71, 85, 105, 0.35) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55) !important;
    height: 52px !important;
    padding: 0 16px !important;
}

/* Hide redundant analytics DPS chip in header during battle (already in #live-analytics-hud) */
#game-container.mode-battle #btn-header-analytics {
    display: none !important;
}

/* Unified Header Button Styling */
.header-left button,
.header-right button,
.header-center button {
    height: 32px !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(71, 85, 105, 0.45) !important;
    color: #cbd5e1 !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(8px);
}

.header-left button:hover,
.header-right button:hover,
.header-center button:hover {
    background: rgba(51, 65, 85, 0.85) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* 2. Top-Left Stage Badge (Anti-Clipping & Sleek Layout) */
.stage-badge {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98)) !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    height: 34px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.stage-info-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.stage-zone-tag {
    color: #38bdf8;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.stage-wave-divider {
    color: #475569;
    font-size: 11px;
}

.stage-wave-tag {
    color: #cbd5e1;
    font-size: 12.5px;
}

.stage-wave-tag strong {
    color: #fbbf24;
    font-size: 13.5px;
}

.wave-record-chip {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.town-title-icon {
    font-size: 15px;
}

.town-title-text {
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: 0.3px;
    color: #f1f5f9;
}

/* 3. Paperdoll Equipment Slots Polish */
.equip-slot {
    width: 62px;
    height: 62px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border: 1.5px solid rgba(71, 85, 105, 0.5) !important;
    border-radius: 8px !important;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(255, 255, 255, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.equip-slot:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35), inset 0 0 6px rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
}

.equip-slot.filled {
    border-width: 2px !important;
}

.equip-slot:not(.filled) .slot-placeholder {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 4. Stat Rows Modernization */
.stat-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    padding: 4px 8px !important;
    margin-bottom: 4px !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    transition: all 0.15s ease;
}

.stat-row:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateX(2px);
}

.stat-row strong {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
}

/* 5. Core Attribute Cards Theming (Right Panel) */
.attribute-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    margin-bottom: 7px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.attribute-card:hover {
    transform: translateX(3px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

.attribute-card[data-attr="str"], .attribute-card.attr-str {
    border-left: 3px solid #ef4444 !important;
}
.attribute-card[data-attr="str"]:hover, .attribute-card.attr-str:hover {
    border-color: #f87171 !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.22) !important;
}

.attribute-card[data-attr="agi"], .attribute-card.attr-agi {
    border-left: 3px solid #10b981 !important;
}
.attribute-card[data-attr="agi"]:hover, .attribute-card.attr-agi:hover {
    border-color: #34d399 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.22) !important;
}

.attribute-card[data-attr="int"], .attribute-card.attr-int {
    border-left: 3px solid #3b82f6 !important;
}
.attribute-card[data-attr="int"]:hover, .attribute-card.attr-int:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.22) !important;
}

.attribute-card[data-attr="vit"], .attribute-card.attr-vit {
    border-left: 3px solid #f59e0b !important;
}
.attribute-card[data-attr="vit"]:hover, .attribute-card.attr-vit:hover {
    border-color: #fbbf24 !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22) !important;
}

.attr-btn {
    border-radius: 4px !important;
    font-weight: 800 !important;
    font-size: 11.5px !important;
    padding: 3px 8px !important;
    cursor: pointer;
    transition: all 0.15s ease !important;
}

.attr-btn.can-spend {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    border: 1px solid #60a5fa !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.4);
}

.attr-btn.can-spend:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    transform: scale(1.08);
}

/* 6. Inventory Slots Polish */
.inv-slot {
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.88) 100%) !important;
    border: 1.5px solid rgba(51, 65, 85, 0.6) !important;
    border-radius: 6px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.inv-slot.empty:hover {
    border-color: rgba(148, 163, 184, 0.4) !important;
    background: rgba(30, 41, 59, 0.7) !important;
}

.inv-slot.filled:hover {
    transform: translateY(-2px) scale(1.03);
    z-index: 10;
}

/* 7. Primary Action Button Shimmer: En İyileri Kuşan */
.inv-action-btn.auto-equip-btn {
    background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%) !important;
    border: 1px solid #34d399 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
    font-weight: 800 !important;
}

.inv-action-btn.auto-equip-btn:hover {
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.65) !important;
}

.btn-next-zone-chip {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    height: 32px !important;
}

.header-war-pill {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
}

#game-container.mode-battle #header-war-pill,
#game-container.mode-battle #btn-header-diplomacy {
    display: none !important;
}

/* Ultra-Clean Responsive Header Fit (1200px container) */
.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.header-left button,
.header-right button,
.header-center button {
    padding: 0 7px !important;
    font-size: 11px !important;
    gap: 4px !important;
    height: 30px !important;
}

.stage-badge {
    height: 32px !important;
    padding: 3px 9px !important;
}

.stage-zone-tag {
    font-size: 12px !important;
}

.stage-wave-tag {
    font-size: 11.5px !important;
}

.header-war-pill {
    padding: 2px 7px !important;
    font-size: 12px !important;
    height: 30px !important;
}

.header-online-pill {
    padding: 2px 7px !important;
    font-size: 11.5px !important;
    height: 30px !important;
}

.gem-pill, .gold-pill {
    padding: 2px 8px !important;
    height: 30px !important;
    font-size: 12px !important;
}

/* Quick Expedition Button in Town Header */
.btn-quick-expedition {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #ef4444 100%) !important;
    border: 1px solid #f87171 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    height: 32px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
    cursor: pointer;
    animation: expedition-pulse 2.2s infinite ease-in-out;
}

.btn-quick-expedition:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 50%, #f87171 100%) !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.85);
    transform: translateY(-1px);
}

@keyframes expedition-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 14px rgba(248, 113, 113, 0.85); }
}

#game-container.mode-battle #btn-quick-expedition {
    display: none !important;
}

/* Inventory Search Input */
.inv-search-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.inv-search-input {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 3px 8px;
    color: #f1f5f9;
    font-size: 11px;
    width: 110px;
    transition: all 0.2s ease;
}

.inv-search-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
    width: 135px;
    background: rgba(15, 23, 42, 0.98);
}

.inv-search-input::placeholder {
    color: #64748b;
}

/* Keyboard Shortcut Pill Indicator */
.kbd-pill {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 4px;
    margin-left: 3px;
    color: #cbd5e1;
}

/* Shortcuts Button */
.inv-action-btn.shortcuts-btn {
    background: rgba(30, 41, 59, 0.6) !important;
    border-color: #475569 !important;
    color: #94a3b8 !important;
}

.inv-action-btn.shortcuts-btn:hover {
    background: rgba(51, 65, 85, 0.8) !important;
    color: #f1f5f9 !important;
    border-color: #38bdf8 !important;
}

/* Shortcuts Modal Dialog */
.shortcuts-modal-content {
    max-width: 580px;
    width: 90%;
    background: #0f172a;
    border: 2px solid #38bdf8;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    padding: 18px;
    color: #f8fafc;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.shortcut-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 12px;
}

.shortcut-key {
    background: #1e293b;
    border: 1.5px solid #475569;
    border-bottom: 3px solid #334155;
    border-radius: 4px;
    padding: 2px 7px;
    font-family: monospace;
    font-weight: 800;
    font-size: 11.5px;
    color: #38bdf8;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.shortcut-desc {
    font-size: 11.5px;
    color: #cbd5e1;
    font-weight: 600;
}

/* ========================================================================= */
/* 🌟 PROFESSIONAL SUITE: LEVEL-UP CELEBRATION, LOOT TOASTS & BESTIARY      */
/* ========================================================================= */

/* Header Bestiary Button */
.header-btn-bestiary {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border: 1px solid #475569 !important;
    color: #e2e8f0 !important;
    border-radius: 6px;
    padding: 0 10px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn-bestiary:hover {
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

/* 1. Cinematic Golden Level Up Banner */
.level-up-banner {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(30, 20, 5, 0.95) 0%, rgba(60, 40, 10, 0.95) 50%, rgba(30, 20, 5, 0.95) 100%);
    border: 2px solid #fbbf24;
    border-radius: 10px;
    padding: 12px 28px;
    text-align: center;
    z-index: 1200;
    pointer-events: none;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.75), inset 0 0 20px rgba(251, 191, 36, 0.35);
    animation: level-up-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes level-up-bounce {
    0% { transform: translateX(-50%) scale(0.6); opacity: 0; }
    60% { transform: translateX(-50%) scale(1.08); opacity: 1; }
    100% { transform: translateX(-50%) scale(1.0); opacity: 1; }
}

.level-up-sparkle {
    font-size: 22px;
    animation: spin-pulse 1.8s infinite linear;
}

.level-up-title {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fef08a;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.level-up-sub {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 2px;
}

.level-up-reward {
    font-size: 12px;
    font-weight: 700;
    color: #4ade80;
    margin-top: 4px;
}

/* 2. Rare & Legendary Loot Drop Toasts */
.loot-toast-container {
    position: absolute;
    top: 50px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1100;
    pointer-events: none;
}

.loot-toast-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.94);
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: loot-toast-slide 0.35s ease-out forwards;
}

.loot-toast-card:hover {
    transform: translateX(-4px);
}

@keyframes loot-toast-slide {
    0% { transform: translateX(60px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.loot-toast-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.loot-toast-content {
    display: flex;
    flex-direction: column;
}

.loot-toast-tag {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.loot-toast-name {
    font-size: 12px;
    font-weight: 800;
    color: #f8fafc;
}

/* 3. Live Combat Event Feed */
.combat-live-feed {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 6px;
    margin: 6px 0;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #94a3b8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.feed-pulse {
    font-size: 9px;
    animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1.0; }
}

.feed-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #e2e8f0;
}

/* 4. Discreet Auto-Save Toast */
.autosave-indicator {
    position: fixed;
    bottom: 14px;
    right: 18px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid #22c55e;
    color: #4ade80;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* 5. Bestiary Modal */
.bestiary-modal-content {
    max-width: 820px;
    width: 92%;
    background: #090d16;
    border: 2px solid #38bdf8;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 24px rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 20px;
    color: #f1f5f9;
}

.bestiary-summary-bar {
    display: flex;
    justify-content: space-around;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 12px;
}

.bestiary-summary-stat strong {
    font-size: 13px;
    margin-left: 4px;
}

.text-cyan { color: #38bdf8; }
.text-amber { color: #f59e0b; }
.text-green { color: #22c55e; }
.text-gold { color: #fbbf24; }

.bestiary-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.bestiary-tab-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #475569;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.bestiary-tab-btn:hover {
    color: #f1f5f9;
    border-color: #38bdf8;
}

.bestiary-tab-btn.active {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.bestiary-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin-top: 14px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.bestiary-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

.bestiary-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.bestiary-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bestiary-card-avatar {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.bestiary-card-name {
    font-size: 12.5px;
    font-weight: 800;
    color: #f8fafc;
}

.bestiary-card-zone {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}

.bestiary-rank-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.rank-badge-0 { background: #334155; color: #94a3b8; }
.rank-badge-1 { background: #78350f; color: #fde68a; border: 1px solid #d97706; }
.rank-badge-2 { background: #374151; color: #f3f4f6; border: 1px solid #9ca3af; }
.rank-badge-3 { background: #854d0e; color: #fef08a; border: 1px solid #eab308; box-shadow: 0 0 6px rgba(234, 179, 8, 0.4); }
.rank-badge-4 { background: #4c1d95; color: #e9d5ff; border: 1px solid #a855f7; box-shadow: 0 0 8px rgba(168, 85, 247, 0.6); }

.bestiary-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bestiary-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
}

.bestiary-progress-track {
    width: 100%;
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
}

.bestiary-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.bestiary-buff-text {
    font-size: 11px;
    color: #22c55e;
    font-weight: 700;
    margin-top: 2px;
}

/* 6. Dynamic Notice Board & Bounty Cards */
.bounties-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.bounties-subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.bounties-status-badge {
    background: #1e293b;
    border: 1px solid #38bdf8;
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.bounty-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.bounty-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

.bounty-card.ready {
    border-color: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.bounty-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
}

.bounty-card-desc {
    font-size: 11px;
    color: #94a3b8;
}

.bounty-progress-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 800;
    color: #cbd5e1;
}

.bounty-progress-track {
    width: 100%;
    height: 7px;
    background: #1e293b;
    border-radius: 4px;
    overflow: hidden;
}

.bounty-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bounty-reward-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #475569;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
}

.btn-claim-bounty {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%) !important;
    border: 1px solid #4ade80 !important;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
    animation: pulse-dot 1.5s infinite ease-in-out;
}

.btn-claim-bounty:hover {
    background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%) !important;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.8);
    transform: translateY(-1px);
}

/* ========================================================================= */
/* 🧪 AUTO-POTION BELT, BUILD PRESETS & VOLUME SLIDER ERGONOMICS             */
/* ========================================================================= */

/* Header Volume Slider */
.header-volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 0 8px;
    height: 32px;
}

.volume-icon {
    font-size: 13px;
}

.header-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 65px;
    height: 4px;
    background: #334155;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.header-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
    cursor: pointer;
}

.header-volume-label {
    font-size: 10.5px;
    font-weight: 800;
    color: #94a3b8;
    min-width: 26px;
}

/* Auto-Potion Belt Widget in Hero Combat HUD */
.hero-potion-container {
    display: flex;
    align-items: center;
    margin: 0 8px;
}

.btn-hero-potion {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
    border: 1.5px solid #10b981;
    border-radius: 6px;
    padding: 4px 10px;
    color: #f1f5f9;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-hero-potion:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.45) 100%);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    transform: translateY(-1px);
}

.potion-icon {
    font-size: 15px;
}

.potion-count {
    font-size: 12px;
    font-weight: 900;
    color: #34d399;
}

.potion-toggle {
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    background: #064e3b;
    color: #6ee7b7;
    border: 1px solid #059669;
}

.potion-toggle.off {
    background: #451a03;
    color: #fca5a5;
    border-color: #dc2626;
}

/* Build Presets Bar in Left Panel */
.stat-presets-bar {
    margin-top: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px 10px;
}

.stat-presets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.stat-presets-title {
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
}

.stat-presets-hint {
    font-size: 9.5px;
    color: #64748b;
}

.stat-presets-btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.btn-preset-stat {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    color: #cbd5e1;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-preset-stat:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
}

/* Interactive Tooltip Quick Action Buttons */
.tooltip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tooltip-action-pill {
    background: #1e293b;
    border: 1px solid #475569;
    color: #cbd5e1;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}


/* ========================================================================= */
/* 🌟 HEADER OVERCROWDING & COLLISION FIX (THREE-ZONE BALANCED LAYOUT)       */
/* ========================================================================= */

#game-container {
    min-width: 1200px !important;
    min-height: 820px !important;
    flex-shrink: 0 !important;
}

#header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 14px !important;
    overflow: hidden !important;
    position: relative !important;
    gap: 8px !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
}

.header-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 6px !important;
}

.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    min-width: 0 !important;
}

/* Audio Pill: Merged Music and Volume Control */
.header-audio-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    border-radius: 6px !important;
    padding: 0 8px !important;
    height: 30px !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.header-audio-pill:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.25) !important;
}

.header-audio-pill .header-btn-music-mini {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    transform: none !important;
}

.header-audio-pill .header-btn-music-mini:hover {
    color: #38bdf8 !important;
    transform: none !important;
}

.header-audio-pill .header-btn-music-mini.muted {
    opacity: 0.55 !important;
}

.header-audio-pill .header-volume-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 44px !important;
    height: 4px !important;
    background: #334155 !important;
    border-radius: 2px !important;
    outline: none !important;
    cursor: pointer !important;
}

.header-audio-pill .header-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #38bdf8 !important;
    cursor: pointer !important;
    box-shadow: 0 0 5px rgba(56, 189, 248, 0.7) !important;
}

.header-audio-pill .header-volume-label {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    min-width: 25px !important;
    text-align: right !important;
}

/* Modals Navigation Buttons in Header Center */
.header-center .header-btn-profile,
.header-center .header-btn-leaderboard,
.header-center .header-btn-diplomacy,
.header-center .header-btn-bestiary {
    height: 30px !important;
    border-radius: 6px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.header-center .header-btn-diplomacy {
    background: linear-gradient(135deg, #6b21a8, #7e22ce) !important;
    border-color: #a855f7 !important;
    color: #f3e8ff !important;
}

.header-center .header-btn-diplomacy:hover {
    background: linear-gradient(135deg, #7e22ce, #9333ea) !important;
    border-color: #c084fc !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4) !important;
}

.header-center .header-btn-bestiary {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

.header-center .header-btn-bestiary:hover {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4) !important;
}


/* ========================================================================= */
/* 🌟 CRITICAL UI STABILITY: HEADER BUTTON HIDDEN FIX & ZERO-COLLISION       */
/* ========================================================================= */

#header-bar .hidden,
.header-left .hidden,
.header-center .hidden,
.header-right .hidden,
button.hidden {
    display: none !important;
}

#header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
}

.header-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
    margin: 0 auto !important;
}

.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

/* Audio Pill Compact Ergonomics */
.header-audio-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    border-radius: 6px !important;
    padding: 0 6px !important;
    height: 30px !important;
    box-sizing: border-box !important;
}

.header-audio-pill #music-label {
    display: none !important;
}

.header-audio-pill .header-btn-music-mini {
    background: transparent !important;
    border: none !important;
    padding: 0 2px !important;
    height: auto !important;
    min-width: 0 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.header-audio-pill .header-volume-slider {
    width: 40px !important;
    height: 4px !important;
    cursor: pointer !important;
}

.header-audio-pill .header-volume-label {
    font-size: 10px !important;
    color: #94a3b8 !important;
    min-width: 22px !important;
    text-align: right !important;
}

/* Compact Modal Navigation Buttons */
.header-center .header-btn-profile,
.header-center .header-btn-leaderboard,
.header-center .header-btn-diplomacy,
.header-center .header-btn-bestiary {
    height: 30px !important;
    padding: 0 7px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.header-center .header-btn-diplomacy {
    background: linear-gradient(135deg, #6b21a8, #7e22ce) !important;
    border: 1px solid #a855f7 !important;
    color: #f3e8ff !important;
}

.header-center .header-btn-bestiary {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    border: 1px solid #3b82f6 !important;
    color: #93c5fd !important;
}


/* ========================================================================= */
/* 🌟 ULTRA-PRECISE THREE-ZONE HEADER LAYOUT (ZERO OVERFLOW / 100% VISIBLE)  */
/* ========================================================================= */

#header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 8px !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
}

.header-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
}

.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

/* Header Left items */
.stage-badge {
    height: 30px !important;
    padding: 2px 5px !important;
    font-size: 11.5px !important;
    gap: 3px !important;
}

.stage-badge .town-title-text {
    font-size: 11.5px !important;
}

.btn-quick-expedition {
    height: 30px !important;
    padding: 0 4px !important;
    font-size: 10.5px !important;
}

.header-btn-skin {
    height: 30px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
}

.header-btn-tod {
    height: 30px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
}

/* Header Center items */
.header-audio-pill {
    height: 30px !important;
    padding: 0 4px !important;
    gap: 3px !important;
}

.header-audio-pill #music-label {
    display: none !important;
}

.header-audio-pill .header-volume-slider {
    width: 26px !important;
}

.header-audio-pill .header-volume-label {
    font-size: 9.5px !important;
}

.header-center .header-btn-profile,
.header-center .header-btn-leaderboard,
.header-center .header-btn-diplomacy,
.header-center .header-btn-bestiary,
.header-center .header-btn-shrine,
.header-center .header-btn-relics {
    height: 30px !important;
    padding: 0 5px !important;
    font-size: 10.5px !important;
    letter-spacing: -0.2px !important;
    gap: 2.5px !important;
}

/* Header Right items */
.header-online-pill {
    height: 30px !important;
    padding: 0 5px !important;
    font-size: 10.5px !important;
    letter-spacing: -0.2px !important;
}

.header-war-pill {
    height: 30px !important;
    padding: 0 5px !important;
    font-size: 10.5px !important;
    letter-spacing: -0.2px !important;
}

.gem-pill,
.gold-pill {
    height: 30px !important;
    padding: 0 5px !important;
    font-size: 11px !important;
    gap: 2px !important;
}


/* ========================================================================= */
/* 🌟 ADVANCED ERGONOMICS: INVENTORY EXPANSION & PANEL BALANCE FIX           */
/* ========================================================================= */

/* Strictly hide town chat in battle mode */
#game-container.mode-battle ~ #town-chat-overlay,
#game-container.mode-battle + #town-chat-overlay {
    display: none !important;
}

/* Left Panel: No Scrollbar, Clean Compact Stat Rows */
#left-panel {
    overflow-y: hidden !important;
    padding: 8px 12px !important;
}

#left-panel .panel-title {
    font-size: 15px !important;
    margin-bottom: 6px !important;
}

#left-panel .equipment-grid {
    margin-bottom: 8px !important;
}

#player-stats-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

#player-stats-list .stat-row {
    padding: 3px 8px !important;
    font-size: 13px !important;
    margin-bottom: 0 !important;
    border-radius: 4px !important;
}

/* Right Panel: Clean Grouping of Attributes & Presets */
#right-panel {
    padding: 8px 12px !important;
    overflow-y: auto !important;
}

#right-panel .panel-title {
    font-size: 15px !important;
    margin-bottom: 6px !important;
}

#right-panel .stat-presets-bar {
    margin-top: 10px !important;
    padding: 8px !important;
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
    border-radius: 8px !important;
}

#right-panel .stat-presets-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #fde047 !important;
}

#right-panel .stat-presets-hint {
    font-size: 10.5px !important;
    color: #94a3b8 !important;
}

#right-panel .stat-presets-btns {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px !important;
    margin-top: 6px !important;
}

#right-panel .btn-preset-stat {
    height: 26px !important;
    font-size: 11px !important;
    padding: 0 4px !important;
    border-radius: 4px !important;
}

/* Center Panel: Battle Arena + Expanded Inventory */
#game-container.mode-battle #center-panel {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#game-container.mode-battle #phaser-canvas-container {
    height: 435px !important;
    flex: 0 0 435px !important;
    min-height: 435px !important;
    max-height: 435px !important;
}

#game-container.mode-battle #combat-live-feed {
    height: 27px !important;
    flex: 0 0 27px !important;
    min-height: 27px !important;
}

#game-container.mode-battle #bottom-inventory-panel {
    height: 298px !important;
    flex: 1 1 298px !important;
    padding: 6px 12px 8px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    box-sizing: border-box !important;
}

/* Inventory Header Clean 2-Row Ergonomics */
.inventory-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-bottom: 2px !important;
}

.inventory-title-group {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 6px !important;
}

.inventory-title-group .panel-title {
    font-size: 14.5px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.inventory-filter-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    flex-wrap: nowrap !important;
}

.inventory-filter-tabs .inv-filter-btn {
    height: 22px !important;
    padding: 0 6px !important;
    font-size: 10.5px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
}

.inv-search-wrap .inv-search-input {
    height: 22px !important;
    width: 85px !important;
    font-size: 10.5px !important;
    padding: 0 6px !important;
}

.inventory-actions-group {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    width: 100% !important;
}

.inventory-actions-group::-webkit-scrollbar {
    display: none !important;
}

.inventory-actions-group .inv-action-btn {
    height: 23px !important;
    padding: 0 6px !important;
    font-size: 10.5px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.inventory-subbar {
    font-size: 10.5px !important;
    color: #64748b !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
}

/* Expanded Inventory Grid (Fits 3.5 Rows Immediately) */
#inventory-grid {
    flex: 1 1 auto !important;
    min-height: 185px !important;
    max-height: 195px !important;
    display: grid !important;
    grid-template-columns: repeat(8, 52px) !important;
    gap: 4px !important;
    overflow-y: auto !important;
    justify-content: center !important;
}


/* ========================================================================= */
/* ⛩️ GÜNLÜK SEFER KUTSAMASI, YADİGARLAR & BOSS ENCOUNTER HUD STYLES         */
/* ========================================================================= */

/* Header Shrine & Relics Buttons */
.header-btn-shrine,
.header-btn-relics {
    height: 30px !important;
    padding: 0 7px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.header-btn-shrine {
    background: linear-gradient(135deg, rgba(30, 20, 10, 0.9), rgba(60, 40, 10, 0.95)) !important;
    border: 1px solid #f59e0b !important;
    color: #fde047 !important;
}

.header-btn-shrine:hover {
    background: linear-gradient(135deg, #78350f, #d97706) !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5) !important;
    transform: translateY(-1px);
}

.header-btn-shrine.shrine-ready-pulse {
    animation: shrine-glow-pulse 1.8s infinite ease-in-out;
}

@keyframes shrine-glow-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.4); border-color: #f59e0b; }
    50% { box-shadow: 0 0 14px rgba(251, 191, 36, 0.85); border-color: #fef08a; }
}

.header-btn-relics {
    background: linear-gradient(135deg, rgba(20, 10, 35, 0.9), rgba(45, 20, 75, 0.95)) !important;
    border: 1px solid #a855f7 !important;
    color: #e9d5ff !important;
}

.header-btn-relics:hover {
    background: linear-gradient(135deg, #581c87, #7e22ce) !important;
    border-color: #c084fc !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5) !important;
    transform: translateY(-1px);
}

/* 1. Daily Shrine Modal Layout */
.daily-shrine-content {
    max-width: 780px !important;
    width: 90% !important;
    padding: 18px 24px !important;
    background: #111722 !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.35), inset 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.shrine-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.shrine-desc {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
    max-width: 80%;
    line-height: 1.35;
}

.shrine-streak-badge {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    white-space: nowrap;
}

.shrine-cards-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.shrine-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.shrine-card-day {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
}

.shrine-card-icon {
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.shrine-card-title {
    font-size: 11px;
    font-weight: 700;
    color: #f1f5f9;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
}

.shrine-card-desc {
    font-size: 9.5px;
    color: #64748b;
    display: none;
}

.shrine-card-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    width: 100%;
    box-sizing: border-box;
}

.shrine-card.claimed {
    opacity: 0.6;
    border-color: #10b981;
}

.shrine-card.claimed .shrine-card-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid #059669;
}

.shrine-card.active {
    border-color: #fbbf24;
    background: linear-gradient(180deg, rgba(40, 25, 10, 0.95), rgba(20, 15, 5, 0.95));
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
}

.shrine-card.active .shrine-card-badge {
    background: #f59e0b;
    color: #0f172a;
    font-weight: 900;
}

.shrine-card.locked {
    opacity: 0.5;
}

.shrine-card.locked .shrine-card-badge {
    background: rgba(51, 65, 85, 0.4);
    color: #64748b;
}

.shrine-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #334155;
}

.btn-claim-shrine {
    height: 36px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 6px;
    background: linear-gradient(135deg, #d97706, #b45309);
    border: 1px solid #fbbf24;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-claim-shrine.ready {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    animation: btn-claim-pulse 1.5s infinite;
}

@keyframes btn-claim-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.btn-claim-shrine:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #334155;
    border-color: #475569;
    box-shadow: none;
    animation: none;
}

.shrine-countdown {
    font-size: 12px;
    color: #94a3b8;
}

/* 2. Ancient Relics Modal Layout */
.relics-modal-content {
    max-width: 820px !important;
    width: 90% !important;
    padding: 18px 24px !important;
    background: #111722 !important;
    border: 2px solid #8b5cf6 !important;
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.35), inset 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.relics-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.relics-summary-text {
    font-size: 14px;
    font-weight: 700;
}

.relics-summary-sub {
    font-size: 12px;
    color: #94a3b8;
}

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

.relic-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

.relic-card.unlocked {
    border-color: #a855f7;
    background: linear-gradient(135deg, rgba(30, 15, 45, 0.9), rgba(15, 10, 25, 0.95));
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.relic-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.relic-icon {
    font-size: 28px;
}

.relic-name {
    font-size: 14px;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0;
}

.relic-status {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
}

.relic-card.unlocked .relic-status {
    color: #c084fc;
}

.relic-desc {
    font-size: 12px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.3;
}

.relic-progress-track {
    width: 100%;
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.relic-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #c084fc);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 3. Cinematic Boss Encounter HUD Bar */
.boss-encounter-hud {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 520px;
    background: linear-gradient(180deg, rgba(30, 10, 10, 0.95), rgba(15, 5, 5, 0.95));
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 6px 12px;
    z-index: 95;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.7);
    animation: boss-hud-slide-down 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes boss-hud-slide-down {
    0% { transform: translate(-50%, -30px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

.boss-encounter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.boss-skull-icon {
    font-size: 16px;
    animation: skull-glow 1.5s infinite alternate;
}

@keyframes skull-glow {
    0% { filter: drop-shadow(0 0 2px #ef4444); }
    100% { filter: drop-shadow(0 0 8px #f87171); }
}

.boss-hud-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #fca5a5;
    letter-spacing: 0.5px;
}

.boss-hud-pct {
    font-size: 12px;
    font-weight: 800;
    color: #ef4444;
}

.boss-hp-track {
    width: 100%;
    height: 10px;
    background: #200505;
    border-radius: 5px;
    border: 1px solid #7f1d1d;
    overflow: hidden;
}

.boss-hp-bar {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
    transition: width 0.15s ease-out;
}

/* ========================================================================= */
/* 🌟 MODERN IDLE FEATURES: CONSTELLATIONS, AUTO-SALVAGE & TURBO SPEED      */
/* ========================================================================= */

/* 1. Sanctuary Nav Tabs */
.sanctuary-nav-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sanctuary-tab-btn {
    background: #0f172a;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sanctuary-tab-btn:hover {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #64748b;
}

.sanctuary-tab-btn.active {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-color: #818cf8;
    color: #e0e7ff;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.4);
}

.sanctuary-tab-content.hidden {
    display: none !important;
}

/* 2. Constellation Tab Content */
.constellation-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #312e81;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 14px;
    gap: 12px;
}

.dust-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(49, 46, 129, 0.4);
    border: 1px solid #6366f1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 800;
    color: #fde047;
}

.constellation-desc {
    font-size: 11px;
    color: #cbd5e1;
    flex: 1;
}

.btn-reset-constellation {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset-constellation:hover {
    background: rgba(220, 38, 38, 0.4);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.constellations-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.constellation-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.9));
    border: 1px solid #4338ca;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

.constellation-card:hover {
    border-color: #818cf8;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

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

.constellation-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.constellation-icon {
    font-size: 20px;
}

.constellation-name {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #e0e7ff;
}

.constellation-level-badge {
    font-size: 11px;
    font-weight: 800;
    color: #fde047;
    background: rgba(253, 224, 71, 0.15);
    border: 1px solid rgba(253, 224, 71, 0.35);
    padding: 2px 7px;
    border-radius: 4px;
}

.constellation-card-desc {
    margin: 0;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.4;
}

.constellation-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.constellation-bonus-text {
    font-size: 11.5px;
    font-weight: 700;
    color: #38bdf8;
}

.btn-upgrade-constellation {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: 1px solid #a5b4fc;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-upgrade-constellation:hover:not(:disabled) {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
}

.btn-upgrade-constellation:disabled {
    background: #334155;
    border-color: #475569;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

/* 3. Auto-Salvage Modal & Actions */
.salvage-modal-content {
    max-width: 500px !important;
}

.salvage-intro-text {
    font-size: 12px;
    color: #cbd5e1;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.salvage-rules-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.salvage-rule-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.salvage-rule-card:hover:not(.disabled) {
    background: rgba(30, 41, 59, 0.85);
    border-color: #38bdf8;
}

.salvage-rule-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rule-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rule-title {
    font-size: 12px;
    font-weight: 700;
}

.text-common { color: #f1f5f9; }
.text-uncommon { color: #4ade80; }
.text-rare { color: #38bdf8; }

.rule-return {
    font-size: 11px;
    color: #94a3b8;
}

.salvage-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-dismantle-now {
    background: linear-gradient(135deg, #b45309, #d97706);
    border: 1px solid #fde047;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-dismantle-now:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
}

.btn-save-salvage {
    background: linear-gradient(135deg, #059669, #10b981);
    border: 1px solid #6ee7b7;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save-salvage:hover {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.inv-action-btn.salvage-btn {
    background: linear-gradient(135deg, #064e3b, #047857) !important;
    border: 1px solid #10b981 !important;
    color: #a7f3d0 !important;
}

.inv-action-btn.salvage-btn:hover {
    background: linear-gradient(135deg, #047857, #059669) !important;
    border-color: #34d399 !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4) !important;
}

/* 4. Turbo Combat Speed Button */
.hud-chip-speed-btn {
    height: 28px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.hud-chip-speed-btn.speed-1x {
    background: #1e293b;
    border: 1px solid #475569;
    color: #cbd5e1;
}

.hud-chip-speed-btn.speed-1_5x {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border: 1px solid #60a5fa;
    color: #eff6ff;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

.hud-chip-speed-btn.speed-2x {
    background: linear-gradient(135deg, #78350f, #d97706);
    border: 1px solid #fbbf24;
    color: #fef08a;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
    animation: turbo-glow-pulse 1.6s infinite ease-in-out;
}

@keyframes turbo-glow-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 16px rgba(251, 191, 36, 0.9); }
}

/* ==========================================================================
   🚨 CRITICAL HEALTH (LOW HP) COMBAT VIGNETTE & DANGER PULSE
   ========================================================================== */
.critical-hp-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 850;
    border-radius: inherit;
    box-shadow: inset 0 0 60px rgba(220, 38, 38, 0.7), inset 0 0 120px rgba(185, 28, 28, 0.45);
    background: radial-gradient(ellipse at center, transparent 40%, rgba(220, 38, 38, 0.28) 100%);
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.critical-hp-vignette.danger-warning {
    opacity: 0.75;
    animation: vignette-pulse 1.3s infinite ease-in-out;
}

.critical-hp-vignette.danger-critical {
    opacity: 1;
    box-shadow: inset 0 0 90px rgba(239, 68, 68, 0.95), inset 0 0 160px rgba(185, 28, 28, 0.75);
    background: radial-gradient(ellipse at center, transparent 35%, rgba(239, 68, 68, 0.42) 100%);
    animation: vignette-pulse 0.7s infinite ease-in-out;
}

@keyframes vignette-pulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.008); }
}

/* --- AFK CLAIM ALL BUTTON & COMBAT LOG STYLES --- */
.afk-btn-claim-all {
    background: linear-gradient(180deg, #10b981, #059669);
    border: 1.5px solid #a7f3d0;
    color: #ffffff;
    font-family: 'VT323', monospace;
    font-size: 22px;
    font-weight: bold;
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
    display: flex;
    align-items: center;
    gap: 6px;
}

.afk-btn-claim-all:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #34d399, #059669);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.7);
}

.chat-tab-btn[data-channel="combat"].active {
    background: #450a0a !important;
    border-color: #ef4444 !important;
    color: #fca5a5 !important;
}

.chat-msg.combat-log {
    font-size: 13px;
    line-height: 1.4;
    padding: 2px 4px;
    border-left: 2px solid transparent;
}

.chat-msg.combat-log.attack {
    color: #cbd5e1;
    border-left-color: #38bdf8;
}

.chat-msg.combat-log.crit {
    color: #fef08a;
    font-weight: bold;
    border-left-color: #f59e0b;
}

.chat-msg.combat-log.damage {
    color: #fca5a5;
    border-left-color: #ef4444;
}

.chat-msg.combat-log.potion {
    color: #86efac;
    font-weight: bold;
    border-left-color: #22c55e;
}

.chat-msg.combat-log.victory {
    color: #fde047;
    font-weight: bold;
    border-left-color: #eab308;
}

.chat-msg.combat-log.loot {
    color: #c084fc;
    font-weight: bold;
    border-left-color: #a855f7;
}

.chat-msg.combat-log.defeat {
    color: #f87171;
    font-weight: bold;
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #dc2626;
}

/* ==========================================================================
   ACHIEVEMENT SYSTEM & PRESTIGE TITLE SHOWCASE (HARDCORE ARPG)
   ========================================================================== */

.header-btn-achievements {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #d97706;
    color: #facc15;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'VT323', monospace;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(217, 119, 6, 0.35);
    transition: all 0.15s ease;
}

.header-btn-achievements:hover {
    background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
    color: #fff;
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
    transform: translateY(-1px);
}

.achievements-modal-content {
    max-width: 820px !important;
    width: 95% !important;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #090e17 !important;
    border: 2px solid #b45309 !important;
    box-shadow: 0 0 25px rgba(180, 83, 9, 0.35) !important;
}

.achievements-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 10px 14px 6px 14px;
}

.ach-summary-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 240px;
}

.ach-summary-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: bold;
}

.ach-summary-count {
    color: #facc15;
    font-family: 'VT323', monospace;
    font-size: 17px;
    font-weight: bold;
}

.ach-progress-bar-bg {
    flex: 1;
    height: 10px;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.ach-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #b45309, #f59e0b, #fbbf24);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    transition: width 0.3s ease;
}

.ach-summary-pct {
    color: #38bdf8;
    font-family: 'VT323', monospace;
    font-size: 14px;
    font-weight: bold;
}

.ach-summary-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ach-showcase-label {
    color: #94a3b8;
    font-size: 12px;
}

.ach-active-title {
    font-family: 'VT323', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #f59e0b;
    background: rgba(2, 6, 23, 0.7);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid #78350f;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.achievements-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 0 14px;
    margin-bottom: 8px;
    overflow-x: auto;
}

.ach-tab-btn {
    background: #0f172a;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 5px 12px;
    border-radius: 4px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ach-tab-btn:hover {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #475569;
}

.ach-tab-btn.active {
    background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
    border-color: #f59e0b;
    color: #fff;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.achievements-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 14px 14px 14px;
    overflow-y: auto;
    max-height: 58vh;
}

@media (max-width: 720px) {
    .achievements-grid-container {
        grid-template-columns: 1fr;
    }
}

.achievement-card {
    display: flex;
    gap: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px 12px;
    position: relative;
    transition: all 0.2s ease;
}

.achievement-card.rarity-common {
    border-color: #475569;
}
.achievement-card.rarity-rare {
    border-color: #059669;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(15, 23, 42, 0.95));
}
.achievement-card.rarity-epic {
    border-color: #7c3aed;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(15, 23, 42, 0.95));
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.15);
}
.achievement-card.rarity-legendary {
    border-color: #d97706;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(15, 23, 42, 0.95));
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.achievement-card.locked {
    opacity: 0.65;
    filter: grayscale(0.5);
}

.achievement-card.is-showcased {
    border-color: #facc15 !important;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.4) !important;
}

.ach-card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #020617;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
}

.ach-card-icon-box .ach-lock-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 12px;
    background: #020617;
    border-radius: 50%;
    padding: 1px;
}

.ach-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ach-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.ach-card-title {
    font-size: 14px;
    font-weight: bold;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ach-card-rarity-badge {
    font-size: 10px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}
.ach-card-rarity-badge.badge-common { background: #334155; color: #cbd5e1; }
.ach-card-rarity-badge.badge-rare { background: #065f46; color: #34d399; }
.ach-card-rarity-badge.badge-epic { background: #5b21b6; color: #c084fc; }
.ach-card-rarity-badge.badge-legendary { background: #78350f; color: #facc15; border: 1px solid #d97706; }

.ach-card-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.3;
}

.ach-card-title-preview {
    font-family: 'VT323', monospace;
    font-size: 13px;
    font-weight: bold;
    color: #f59e0b;
}

.ach-card-progress-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.ach-card-progress-bar {
    flex: 1;
    height: 7px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 4px;
    overflow: hidden;
}

.ach-card-progress-fill {
    height: 100%;
    background: #38bdf8;
    transition: width 0.2s ease;
}

.achievement-card.rarity-legendary .ach-card-progress-fill {
    background: #f59e0b;
}

.ach-card-progress-text {
    font-family: 'VT323', monospace;
    font-size: 12px;
    color: #cbd5e1;
    white-space: nowrap;
}

.ach-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.btn-ach-showcase {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid #f59e0b;
    color: #facc15;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'VT323', monospace;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-ach-showcase:hover {
    background: #b45309;
    color: #fff;
}

.btn-ach-showcase.active {
    background: #059669;
    border-color: #34d399;
    color: #fff;
    cursor: default;
}

.btn-ach-claim {
    background: linear-gradient(180deg, #059669, #047857);
    border: 1px solid #34d399;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'VT323', monospace;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
    animation: achPulse 1.5s infinite;
}

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

/* Player Inspection Showcase Card */
.inspect-achievement-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid #d97706 !important;
    border-radius: 6px;
    padding: 10px 14px;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.25);
}


/* =========================================================================
   QUEST & MILESTONE TRACKER WIDGET (Hedef ve Kılavuz Sistemi)
   ========================================================================= */

.quest-tracker-widget {
    position: fixed;
    top: 74px;
    right: 18px;
    width: 295px;
    z-index: 95;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(9, 13, 24, 0.97) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 12px rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(8px);
    color: #f8fafc;
    font-family: inherit;
    transition: all 0.25s ease;
    user-select: none;
    box-sizing: border-box;
}

.quest-tracker-widget:hover {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75), 0 0 16px rgba(56, 189, 248, 0.25);
}

.quest-tracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px 7px 0 0;
}

.quest-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quest-icon {
    font-size: 14px;
    filter: drop-shadow(0 0 4px #38bdf8);
}

.quest-header-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #38bdf8;
    text-transform: uppercase;
}

.quest-step-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 10px;
    color: #7dd3fc;
}

.quest-step-badge.completed {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #4ade80;
}

.quest-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #94a3b8;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.quest-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #38bdf8;
}

.quest-tracker-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quest-title {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
}

.quest-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
}

.quest-progress-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.quest-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    border-radius: 3px;
    transition: width 0.35s ease;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.quest-progress-text {
    font-size: 10px;
    color: #94a3b8;
    text-align: right;
    font-family: monospace;
}

.quest-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.quest-reward-preview {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
}

.quest-reward-label {
    color: #94a3b8;
    font-size: 10px;
}

.quest-reward-item {
    color: #fde047;
}

.quest-action-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-quest-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

.btn-quest-action.btn-guide {
    background: linear-gradient(180deg, #0284c7, #0369a1);
    border: 1px solid #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.3);
}

.btn-quest-action.btn-guide:hover {
    background: linear-gradient(180deg, #0369a1, #075985);
    border-color: #7dd3fc;
    transform: translateY(-1px);
}

.btn-quest-action.btn-claim {
    background: linear-gradient(180deg, #059669, #047857);
    border: 1px solid #34d399;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
    animation: questPulse 1.5s infinite;
}

.btn-quest-action.btn-claim:hover {
    background: linear-gradient(180deg, #10b981, #059669);
    transform: scale(1.04);
}

@keyframes questPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 14px rgba(52, 211, 153, 0.8);
    }
}

/* Minimized Mode */
.quest-tracker-widget.minimized {
    width: 180px;
}

.quest-tracker-widget.minimized .quest-tracker-body {
    display: none !important;
}

.quest-tracker-widget.minimized .quest-tracker-header {
    border-radius: 7px;
    border-bottom: none;
}

/* ==========================================================================
   Progressive Quality of Life (QoL) & Automation Unlocks (Lv.5, 10, 15)
   ========================================================================== */

/* Level 5: Potion Belt & Auto-Potion */
.potion-toggle.locked {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #475569 !important;
    cursor: pointer;
    box-shadow: none;
}

.potion-toggle.locked:hover {
    border-color: #f59e0b !important;
    color: #fbbf24 !important;
}

/* Level 10: Auto Scrap/Trash Sell Button */
.auto-sell-btn.locked {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
    cursor: pointer;
    opacity: 0.85;
}

.auto-sell-btn.locked:hover {
    border-color: #f59e0b !important;
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.1) !important;
}

/* Level 15: Notice Board Bounty Auto-Repeat Card */
.bounty-automation-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px dashed #475569;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 6px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.bounty-automation-card.unlocked {
    border: 1px solid #c084fc;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.25) 0%, rgba(30, 41, 59, 0.9) 100%);
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.2);
}

.bounty-automation-card.locked {
    border: 1px dashed #475569;
    background: rgba(15, 23, 42, 0.7);
}

.bounty-automation-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bounty-automation-title {
    font-size: 13px;
    font-weight: 800;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bounty-automation-desc {
    font-size: 11px;
    color: #94a3b8;
}

.btn-bounty-auto-toggle {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    border: 1px solid #475569;
    background: #1e293b;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-bounty-auto-toggle:hover {
    border-color: #c084fc;
    color: #f3e8ff;
}

.btn-bounty-auto-toggle.active {
    background: rgba(192, 132, 252, 0.25);
    border-color: #c084fc;
    color: #e9d5ff;
    box-shadow: 0 0 8px rgba(192, 132, 252, 0.4);
}

.btn-bounty-auto-toggle.locked {
    opacity: 0.75;
    cursor: pointer;
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

.btn-bounty-auto-toggle.locked:hover {
    border-color: #f59e0b;
    color: #fbbf24;
}

/* ==========================================================================
   🏛️ Günlük Döngü ve FOMO: Günlük Giriş, Zindan (3/3 Hak) & Günün Avı
   ========================================================================== */

/* Header Daily Buttons */
.header-btn-dungeon {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.4) 0%, rgba(30, 27, 75, 0.6) 100%);
    border: 1px solid #c084fc;
    color: #e9d5ff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.2);
}

.header-btn-dungeon:hover {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.6) 0%, rgba(30, 27, 75, 0.8) 100%);
    border-color: #e9d5ff;
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.4);
    transform: translateY(-1px);
}

.header-btn-dungeon.depleted {
    background: rgba(30, 41, 59, 0.6);
    border-color: #475569;
    color: #94a3b8;
    box-shadow: none;
}

/* Daily Dungeon Modal */
.daily-dungeon-content {
    max-width: 840px;
    width: 95%;
    background: #0f172a;
    border: 2px solid #8b5cf6;
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.35);
}

/* Dual-Loop Concept Comparison Strip */
.dual-loop-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.loop-strip-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid #334155;
}

.loop-card-overworld {
    border-left: 3px solid #10b981;
}

.loop-card-dungeon {
    border-left: 3px solid #f59e0b;
}

.loop-strip-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.loop-strip-title {
    font-size: 12px;
    font-weight: 800;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-loop {
    font-size: 9px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.badge-green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.loop-strip-desc {
    font-size: 10.5px;
    color: #94a3b8;
    margin: 3px 0 0 0;
    line-height: 1.35;
}

.dungeon-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.dungeon-entries-badge {
    font-size: 14px;
    font-weight: 800;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tickets-visual-icons {
    font-size: 14px;
    letter-spacing: 2px;
}

.dungeon-desc {
    font-size: 11px;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

.dungeon-countdown-box {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
}

.dungeon-countdown-lbl {
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
}

.dungeon-chambers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .dungeon-chambers-grid {
        grid-template-columns: 1fr;
    }
    .dual-loop-strip {
        grid-template-columns: 1fr;
    }
}

.dungeon-chamber-card {
    position: relative;
    background: #1e293b;
    border: 1.5px solid #334155;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
}

.dungeon-chamber-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dungeon-chamber-card.chamber-gold {
    border-color: #eab308;
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.1) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.dungeon-chamber-card.chamber-gold:hover {
    border-color: #fde047;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.3);
}

.dungeon-chamber-card.chamber-gem {
    border-color: #38bdf8;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.1) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.dungeon-chamber-card.chamber-gem:hover {
    border-color: #7dd3fc;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.dungeon-chamber-card.chamber-boss {
    border-color: #c084fc;
    background: linear-gradient(180deg, rgba(192, 132, 252, 0.12) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.dungeon-chamber-card.chamber-boss:hover {
    border-color: #e879f9;
    box-shadow: 0 0 22px rgba(192, 132, 252, 0.35);
}

.badge-boss {
    background: rgba(192, 132, 252, 0.2);
    color: #e879f9;
    border: 1px solid #c084fc;
}

.btn-enter-boss {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    border-color: #c084fc;
    color: #ffffff;
}

.btn-enter-boss:hover:not(:disabled) {
    background: linear-gradient(135deg, #6d28d9, #7e22ce);
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.5);
}

.afk-dual-loop-tip {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    color: #fef3c7;
    margin-top: 12px;
    line-height: 1.45;
}

.chamber-badge {
    font-size: 9.5px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.badge-gold {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid #eab308;
}

.badge-gem {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid #38bdf8;
}

.chamber-icon {
    font-size: 38px;
    margin-bottom: 6px;
}

.chamber-name {
    font-size: 15px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 6px 0;
}

.chamber-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0 0 12px 0;
    min-height: 44px;
}

.chamber-loot-pill {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px dashed #475569;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    color: #cbd5e1;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.btn-enter-chamber {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-enter-gold {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: #0f172a;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
}

.btn-enter-gold:hover:not(:disabled) {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    box-shadow: 0 0 18px rgba(234, 179, 8, 0.7);
    transform: translateY(-1px);
}

.btn-enter-gem {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #f8fafc;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

.btn-enter-gem:hover:not(:disabled) {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 0 18px rgba(2, 132, 199, 0.7);
    transform: translateY(-1px);
}

.btn-enter-chamber:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #334155 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* 🎯 Günün Avı (Hunt of the Day) Card */
.daily-hunt-section {
    margin-bottom: 12px;
}

.daily-hunt-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1.5px solid #ef4444;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.daily-hunt-card.completed {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}

.daily-hunt-card.claimed {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: none;
    opacity: 0.85;
}

.daily-hunt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.daily-hunt-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.daily-hunt-badge {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    background: #dc2626;
    color: #fef2f2;
    letter-spacing: 0.5px;
}

.daily-hunt-badge.ready {
    background: #16a34a;
}

.daily-hunt-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #f8fafc;
}

.daily-hunt-timer {
    font-size: 11px;
    font-weight: 700;
    color: #fca5a5;
}

.daily-hunt-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
}

.daily-hunt-progress-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
}

.daily-hunt-track {
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #334155;
}

.daily-hunt-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.daily-hunt-card.completed .daily-hunt-fill {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
}

.daily-hunt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.daily-hunt-rewards {
    font-size: 11.5px;
    font-weight: 700;
    color: #fde047;
    background: rgba(15, 23, 42, 0.7);
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px dashed #475569;
}

.btn-claim-hunt {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-claim-hunt.ready {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
    animation: claimPulse 1.5s infinite;
}

.btn-claim-hunt:disabled {
    background: #334155;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

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

/* ==========================================================================
   Guest Mode & Account Securing Styles
   ========================================================================== */

.header-guest-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
    border: 1px solid #f59e0b;
    color: #fef08a;
    font-family: 'VT323', monospace;
    font-size: 15px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.header-guest-badge:hover {
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
    border-color: #fde047;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.7);
}

.header-guest-badge.secured-badge {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    border-color: #22c55e;
    color: #86efac;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.header-guest-badge.secured-badge:hover {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
    border-color: #4ade80;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

.pulsing-pill {
    animation: guestPulse 2s infinite ease-in-out;
}

@keyframes guestPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 16px rgba(245, 158, 11, 0.85);
    }
}

.secure-modal-content {
    max-width: 500px;
    width: 92%;
    padding: 20px 24px;
    background: #0f172a;
    border: 2px solid #f59e0b;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
}

.secure-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.secure-info-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fef08a;
    font-size: 13px;
    line-height: 1.45;
}

.secure-banner-icon {
    font-size: 20px;
    line-height: 1;
}

.secure-progress-summary {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.sec-stat-pill {
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 4px 10px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #e2e8f0;
}

.sec-stat-pill strong {
    color: #38bdf8;
}

.sec-summary-note {
    width: 100%;
    font-size: 12px;
    color: #4ade80;
    margin-top: 2px;
}

.secure-error-banner {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.btn-secure-submit {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border: 1px solid #fde047;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
    width: 100%;
}

.btn-secure-submit:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.8);
    transform: translateY(-1px);
}

/* Profile modal guest warning box */
.profile-guest-warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed #f59e0b;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guest-warning-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    color: #facc15;
    font-size: 14px;
}

.guest-warning-desc {
    margin: 0;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

.btn-tiny-secure {
    align-self: flex-start;
    background: #d97706;
    border: 1px solid #fde047;
    color: #ffffff;
    font-family: 'VT323', monospace;
    font-size: 15px;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-tiny-secure:hover {
    background: #f59e0b;
    transform: translateY(-1px);
}

/* ==========================================================================
   Multi-Tab Exploit Protection & Lockout Modal Styles
   ========================================================================== */

.lockout-modal-overlay {
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(8px);
}

.lockout-modal-content {
    max-width: 480px;
    width: 90%;
    padding: 24px 28px;
    background: #090b10;
    border: 2px solid #ef4444;
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.45);
    text-align: center;
}

.lockout-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lockout-warning-icon {
    font-size: 42px;
    animation: lockoutPulse 1.5s infinite;
}

@keyframes lockoutPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 12px #ef4444); }
}

.lockout-badge-box {
    margin: 12px 0;
}

.lockout-badge-label {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: 'VT323', monospace;
    font-size: 15px;
    letter-spacing: 1px;
}

.lockout-reason-text {
    font-size: 15px;
    color: #f1f5f9;
    line-height: 1.5;
    margin: 10px 0;
}

.lockout-notice-info {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 16px;
    text-align: left;
}

.btn-reclaim-session {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-reclaim-session:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.8);
    transform: translateY(-1px);
}

.online-indicator-dot.connecting {
    background: #facc15 !important;
    box-shadow: 0 0 8px #facc15 !important;
    animation: pulseConnecting 1s infinite ease-in-out !important;
}

@keyframes pulseConnecting {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

.online-indicator-dot.offline {
    background: #ef4444 !important;
    box-shadow: 0 0 8px #ef4444 !important;
    animation: none !important;
}

/* ==========================================================================
   Gold Sink & Market Tax Styles
   ========================================================================== */

.market-tax-note {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.market-tax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #cbd5e1;
}

.market-tax-row.net-revenue-row {
    border-top: 1px dashed #334155;
    padding-top: 6px;
    font-weight: bold;
    font-size: 14px;
}

.market-sink-explanation {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
    margin-top: 4px;
}

.gold-sink-badge {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 6px;
    animation: sinkPulse 2s infinite ease-in-out;
}

@keyframes sinkPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ==========================================================================
   Guild (Lonca) System Styles
   ========================================================================== */

.header-btn-guild {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #38bdf8;
    color: #e0f2fe;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.2);
}

.header-btn-guild:hover {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    border-color: #7dd3fc;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
}

.guild-modal-content {
    max-width: 860px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #090d16;
    border: 2px solid #38bdf8;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.25);
    border-radius: 12px;
}

.guild-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 2px solid #1e293b;
}

.guild-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guild-header-icon {
    font-size: 26px;
    filter: drop-shadow(0 0 8px #38bdf8);
}

.guild-title {
    margin: 0;
    font-size: 19px;
    color: #f8fafc;
    letter-spacing: 0.5px;
}

.guild-subtitle {
    font-size: 12px;
    color: #94a3b8;
}

.guild-view-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.guild-tabs-bar {
    display: flex;
    background: #090e17;
    border-bottom: 1px solid #1e293b;
    padding: 0 10px;
    gap: 6px;
}

.guild-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #94a3b8;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.guild-tab-btn:hover {
    color: #e2e8f0;
}

.guild-tab-btn.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
}

.guild-subpanel {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Create & Browse Panels */
.guild-create-hero-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 14px 18px;
}

.guild-requirement-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #f59e0b;
    color: #fde68a;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.guild-create-desc {
    margin: 0;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}

.guild-create-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 18px;
}

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

.guild-form-row label {
    font-size: 13px;
    font-weight: bold;
    color: #e2e8f0;
}

.guild-form-tip {
    font-size: 11px;
    color: #94a3b8;
}

.guild-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Browse List */
.guild-browse-search-bar {
    display: flex;
    gap: 8px;
}

.guild-browse-search-bar input {
    flex: 1;
}

.guild-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guild-browse-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.2s;
}

.guild-browse-card:hover {
    border-color: #38bdf8;
    background: rgba(30, 41, 59, 0.9);
}

.browse-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.browse-tag {
    background: #0284c7;
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.browse-name {
    font-size: 15px;
    font-weight: bold;
    color: #f8fafc;
}

.browse-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.browse-card-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.browse-member-count {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: bold;
}

/* Active Guild Overview */
.guild-overview-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid #38bdf8;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.guild-crest-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 2px solid #7dd3fc;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.crest-icon {
    font-size: 26px;
}

.crest-tag {
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.guild-hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guild-hero-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guild-hero-title {
    margin: 0;
    font-size: 20px;
    color: #f8fafc;
}

.guild-role-pill {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.guild-role-pill.leader {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #fde68a;
}

.guild-role-pill.officer {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid #a855f7;
    color: #e9d5ff;
}

.guild-role-pill.member {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid #38bdf8;
    color: #bae6fd;
}

.guild-hero-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #cbd5e1;
}

.guild-exp-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.guild-exp-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

.guild-exp-bar-bg {
    height: 8px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 4px;
    overflow: hidden;
}

.guild-exp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 100%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
    transition: width 0.3s ease;
}

/* Notice Board */
.guild-notice-board-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px 16px;
}

.notice-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.notice-title {
    font-size: 13px;
    font-weight: bold;
    color: #facc15;
}

.notice-content {
    margin: 0;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.5;
}

.notice-edit-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.notice-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Buffs Grid */
.guild-buffs-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.guild-buff-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 14px;
}

.buff-icon {
    font-size: 22px;
}

.buff-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.buff-meta strong {
    font-size: 13px;
    color: #f8fafc;
}

.buff-val {
    font-size: 12px;
    color: #4ade80;
    font-weight: bold;
}

.guild-overview-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #1e293b;
}

/* Members Table */
.guild-members-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
    font-size: 14px;
    font-weight: bold;
    color: #f8fafc;
}

.guild-members-header-bar small {
    font-size: 11px;
    color: #94a3b8;
    font-weight: normal;
}

.guild-members-table-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guild-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 14px;
    transition: all 0.2s;
}

.guild-member-row:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #475569;
}

.member-left-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.member-online-dot.online {
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
}

.member-online-dot.offline {
    background: #64748b;
}

.member-name {
    font-size: 14px;
    font-weight: bold;
    color: #f8fafc;
}

.member-stats {
    font-size: 12px;
    color: #94a3b8;
}

.member-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Skills Tree Cards */
.guild-skills-intro {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guild-skills-intro span {
    font-size: 15px;
    font-weight: bold;
    color: #f8fafc;
}

.guild-skills-intro small {
    font-size: 12px;
    color: #94a3b8;
}

.guild-skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 14px;
}

.guild-skill-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guild-skill-card.unlocked {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.skill-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-icon-wrap {
    font-size: 28px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 8px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card-titles {
    flex: 1;
}

.skill-card-titles h4 {
    margin: 0;
    font-size: 15px;
    color: #f8fafc;
}

.skill-tier-badge {
    font-size: 11px;
    color: #38bdf8;
    font-weight: bold;
}

.skill-card-desc {
    margin: 0;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

.skill-tiers-row {
    display: flex;
    gap: 6px;
}

.skill-tier-step {
    flex: 1;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 6px;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
}

.skill-tier-step.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
    font-weight: bold;
}

.skill-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid #1e293b;
}

.skill-cost-label {
    font-size: 12px;
    color: #facc15;
    font-weight: bold;
}

/* Donation & Shop */
.guild-donation-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.donation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donation-header h4 {
    margin: 0;
    font-size: 16px;
    color: #f8fafc;
}

.donation-header small {
    font-size: 12px;
    color: #94a3b8;
}

.guild-player-coins-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.donation-buttons-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.btn-donation-quick {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 10px 8px;
    color: #f8fafc;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-donation-quick:hover {
    background: #0284c7;
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.btn-donation-quick.highlight {
    border-color: #f59e0b;
}

.btn-donation-quick small {
    font-size: 11px;
    color: #facc15;
    font-weight: normal;
}

.donation-custom-row {
    display: flex;
    gap: 10px;
}

.donation-custom-row input {
    flex: 1;
}

.donation-hint {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Guild Shop Grid */
.guild-shop-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guild-shop-title {
    margin: 0;
    font-size: 16px;
    color: #f8fafc;
}

.guild-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.guild-shop-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.2s;
}

.guild-shop-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.shop-card-icon-wrap {
    width: 48px;
    height: 48px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.shop-card-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-card-details h5 {
    margin: 0;
    font-size: 13px;
    color: #f8fafc;
}

.shop-card-details p {
    margin: 0;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.3;
}

.shop-card-cost {
    font-size: 12px;
    font-weight: bold;
    color: #facc15;
    margin-top: 2px;
}


/* ==========================================================================
   Kasaba Tasarım & Canlı Düzenleme Modu (Town Layout Editor)
   ========================================================================== */
#btn-header-town-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    border: 1px solid #475569;
    color: #f8fafc;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 18px;
    transition: all 0.2s ease;
}

#btn-header-town-edit:hover {
    background: #334155;
    border-color: #facc15;
    color: #facc15;
}

#btn-header-town-edit.active-mode {
    background: #ca8a04 !important;
    border-color: #fef08a !important;
    color: #000 !important;
    font-weight: bold;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
    animation: editorPulse 1.4s infinite alternate;
}

@keyframes editorPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.04); }
}

.town-editor-floating-bar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: rgba(15, 23, 42, 0.97);
    border: 2px solid #facc15;
    border-radius: 10px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 95vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: #f8fafc;
    animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.town-editor-persistent-save {
    position: fixed;
    top: 10px;
    right: 18px;
    z-index: 10005;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.95);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1.5px solid #22c55e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.town-editor-persistent-save.hidden {
    display: none !important;
}

.btn-persistent-save {
    background: linear-gradient(135deg, #15803d, #22c55e);
    color: #ffffff;
    font-weight: bold;
    font-size: 19px;
    font-family: 'VT323', monospace;
    padding: 6px 16px;
    border: 2px solid #86efac;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-persistent-save:hover {
    background: linear-gradient(135deg, #16a34a, #4ade80);
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.8);
    border-color: #ffffff;
}

.btn-persistent-download {
    background: #1e293b;
    color: #38bdf8;
    border: 1px solid #38bdf8;
    font-family: 'VT323', monospace;
    font-size: 17px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-persistent-download:hover {
    background: #0284c7;
    color: #ffffff;
}

.town-autosave-indicator {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #4ade80;
    transition: opacity 0.4s ease;
    white-space: nowrap;
}

.town-editor-zoom-cluster {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(30, 41, 59, 0.8);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #475569;
}

.town-zoom-badge {
    color: #38bdf8;
    font-weight: bold;
    min-width: 44px;
    text-align: center;
    font-size: 17px;
}

.town-editor-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.town-editor-floating-bar.hidden {
    display: none !important;
}

.town-editor-badge {
    background: #eab308;
    color: #0f172a;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.town-editor-info {
    color: #cbd5e1;
    font-size: 17px;
    min-width: 220px;
}

.town-editor-btn {
    background: #1e293b;
    border: 1px solid #475569;
    color: #f1f5f9;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 18px;
    transition: all 0.15s ease;
}

.town-editor-btn:hover {
    background: #334155;
    border-color: #facc15;
    color: #facc15;
}

.town-editor-btn.btn-save {
    background: #15803d;
    border-color: #22c55e;
    color: #fff;
    font-weight: bold;
}

.town-editor-btn.btn-save:hover {
    background: #16a34a;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.town-editor-btn.btn-reset {
    background: #991b1b;
    border-color: #ef4444;
    color: #fff;
}

.town-editor-btn.btn-reset:hover {
    background: #dc2626;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.town-editor-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.7);
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid #334155;
}

.town-editor-tool-btn {
    background: #1e293b;
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 17px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}

.town-editor-tool-btn:hover {
    background: #334155;
    color: #f1f5f9;
    border-color: #94a3b8;
}

.town-editor-tool-btn.active {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.town-editor-tool-btn.active[data-tool="erase"] {
    background: #dc2626;
    border-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.town-editor-tool-btn.active[data-tool="tree"] {
    background: #16a34a;
    border-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.town-editor-tool-btn.active[data-tool="road"] {
    background: #d97706;
    border-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Bottom Town Builder Palette */
.town-editor-bottom-palette {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(94vw, 1140px);
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid #38bdf8;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.25);
    z-index: 10000;
    padding: 8px 14px 10px;
    font-family: 'VT323', monospace;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    backdrop-filter: blur(8px);
    user-select: none;
}

.town-editor-bottom-palette.collapsed {
    transform: translateX(-50%) translateY(calc(100% - 38px));
}

.town-editor-bottom-palette.hidden {
    display: none !important;
}

.palette-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #334155;
    padding-bottom: 6px;
}

.palette-title {
    font-size: 18px;
    color: #facc15;
    font-weight: bold;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.palette-category-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
}

.palette-tab-btn {
    background: #1e293b;
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 3px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 16px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.palette-tab-btn:hover {
    background: #334155;
    color: #f8fafc;
    border-color: #38bdf8;
}

.palette-tab-btn.active {
    background: #0284c7;
    border-color: #38bdf8;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.palette-toggle-btn {
    background: #1e293b;
    border: 1px solid #475569;
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s ease;
}

.palette-toggle-btn:hover {
    background: #334155;
    color: #facc15;
    border-color: #facc15;
}

.palette-items-tray {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 6px;
    scrollbar-width: thin;
    scrollbar-color: #38bdf8 #1e293b;
}

.palette-items-tray::-webkit-scrollbar {
    height: 6px;
}

.palette-items-tray::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 3px;
}

.palette-items-tray::-webkit-scrollbar-thumb {
    background: #0284c7;
    border-radius: 3px;
}

.palette-item-card {
    flex: 0 0 auto;
    width: 90px;
    height: 105px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 4px;
    cursor: grab;
    transition: all 0.15s ease;
    position: relative;
}

.palette-item-card:hover {
    background: #1e293b;
    border-color: #facc15;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.25);
}

.palette-item-card.selected {
    border-color: #22c55e;
    background: #14532d;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.palette-item-card:active {
    cursor: grabbing;
}

.palette-item-icon-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.palette-item-thumb {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    image-rendering: pixelated;
    pointer-events: none;
}

.palette-item-name {
    font-size: 13px;
    color: #e2e8f0;
    text-align: center;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
}

.palette-item-badge {
    font-size: 11px;
    color: #38bdf8;
    background: rgba(2, 132, 199, 0.2);
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: 2px;
    letter-spacing: 0.3px;
}


/* ========================================================================== */
/* ⚔️ HOŞ GELDİNİZ & ÜYELİK MODAL (AUTH WELCOME MODAL)                       */
/* ========================================================================== */
.auth-welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(4, 7, 14, 0.94);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.auth-welcome-overlay.hidden {
    display: none !important;
}

.auth-welcome-content {
    width: 480px;
    max-width: 95vw;
    background: linear-gradient(180deg, #151d2a 0%, #0d121c 100%);
    border: 3px solid #3b82f6;
    border-radius: 8px;
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.35), 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.6);
    padding: 24px;
    color: #f8fafc;
    box-sizing: border-box;
    position: relative;
    animation: authModalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes authModalPop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.auth-welcome-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-welcome-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 3px 12px;
    border-radius: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.auth-welcome-title {
    font-size: 24px;
    font-weight: 900;
    color: #38bdf8;
    text-shadow: 2px 2px 0 #000, 0 0 12px rgba(56, 189, 248, 0.6);
    margin: 0 0 6px 0;
    letter-spacing: 1.5px;
}

.auth-welcome-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.auth-tabs-bar {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid #1e293b;
    margin-bottom: 18px;
}

.auth-tab-btn {
    flex: 1;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    user-select: none;
}

.auth-tab-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.auth-tab-btn.active {
    color: #ffffff;
    background: #2563eb;
    border-color: #60a5fa;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-alert.hidden {
    display: none !important;
}

.auth-alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.auth-alert-info {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid #0ea5e9;
    color: #7dd3fc;
}

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

.auth-tab-pane.hidden {
    display: none !important;
}

.auth-pane-desc {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

.auth-form-group {
    margin-bottom: 14px;
    text-align: left;
}

.auth-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 10px;
    font-size: 15px;
    pointer-events: none;
    opacity: 0.8;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px 10px 36px;
    background: #0b0f17;
    border: 1.5px solid #334155;
    border-radius: 5px;
    color: #f8fafc;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    background: #0f172a;
}

.auth-actions {
    margin-top: 18px;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid;
    transition: transform 0.1s ease, filter 0.15s ease, box-shadow 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    transform: translateY(1px);
}

.btn-pixel-primary {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-pixel-success {
    background: linear-gradient(180deg, #10b981 0%, #047857 100%);
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-pixel-accent {
    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
    border-color: #fbbf24;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.auth-footnote {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    margin: 12px 0 0 0;
}

.auth-footnote a {
    color: #38bdf8;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.auth-guest-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed #334155;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.auth-guest-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.auth-guest-title {
    font-size: 15px;
    font-weight: 700;
    color: #f59e0b;
    margin: 0 0 6px 0;
}

.auth-guest-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0 0 14px 0;
}

.btn-char-switch-acc {
    width: 100%;
    margin-top: 10px;
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border: 1.5px solid #ef4444;
    border-radius: 5px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-char-switch-acc:hover {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}


/* =========================================================================
   Town Editor Live Rotation Gizmo & Object Controls
   ========================================================================= */
.town-object-gizmo {
    position: fixed;
    z-index: 10002;
    transform: translate(-50%, -100%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.94);
    border: 2px solid #38bdf8;
    border-radius: 8px;
    padding: 5px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(8px);
    font-family: 'VT323', monospace;
    font-size: 17px;
    color: #f8fafc;
    pointer-events: auto;
    user-select: none;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.town-object-gizmo.hidden {
    display: none !important;
}

.town-object-gizmo::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #38bdf8;
}

.gizmo-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 15px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.gizmo-btn {
    background: #1e293b;
    border: 1px solid #475569;
    color: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.gizmo-btn:hover {
    background: #334155;
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateY(-1px);
}

.gizmo-btn.gizmo-btn-rotate {
    border-color: #eab308;
    color: #fef08a;
}

.gizmo-btn.gizmo-btn-rotate:hover {
    background: #ca8a04;
    border-color: #facc15;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}

.gizmo-btn.gizmo-btn-flip {
    border-color: #38bdf8;
    color: #bae6fd;
}

.gizmo-btn.gizmo-btn-flip:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.gizmo-btn.gizmo-btn-delete {
    border-color: #dc2626;
    color: #fca5a5;
}

.gizmo-btn.gizmo-btn-delete:hover {
    background: #dc2626;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.gizmo-btn.gizmo-btn-close {
    padding: 3px 6px;
    border-color: #64748b;
    color: #94a3b8;
}

.gizmo-btn.gizmo-btn-close:hover {
    background: #475569;
    color: #f8fafc;
}

.palette-hint-badge {
    font-size: 15px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.town-editor-tool-btn.btn-rotate-action {
    background: #854d0e;
    border-color: #eab308;
    color: #fef08a;
}

.town-editor-tool-btn.btn-rotate-action:hover {
    background: #a16207;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.5);
}

.town-editor-tool-btn.btn-flip-action {
    background: #075985;
    border-color: #38bdf8;
    color: #e0f2fe;
}

.town-editor-tool-btn.btn-flip-action:hover {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}
