:root {
            --bg-color: #0c0d12;
            --panel-bg: rgba(20, 22, 31, 0.7);
            --panel-border: rgba(255, 255, 255, 0.07);
            --text-primary: #f3f4f6;
            --text-secondary: #9ca3af;
            --text-muted: #6b7280;
            --accent: #d97706;
            --accent-glow: rgba(217, 119, 6, 0.25);
            --card-radius: 16px;
            --transition-speed: 0.3s;
        }

        /* Dynamic Class themes */
        body[data-class="bard"] {
            --accent: #ec4899;
            --accent-glow: rgba(236, 72, 153, 0.25);
        }
        body[data-class="bone whisperer"] {
            --accent: #14b8a6;
            --accent-glow: rgba(20, 184, 166, 0.25);
        }
        body[data-class="cleric"] {
            --accent: #fbbf24;
            --accent-glow: rgba(251, 191, 36, 0.25);
        }
        body[data-class="cutthroat"] {
            --accent: #dc2626;
            --accent-glow: rgba(220, 38, 38, 0.25);
        }
        body[data-class="druid"] {
            --accent: #10b981;
            --accent-glow: rgba(16, 185, 129, 0.25);
        }
        body[data-class="tinkerer"] {
            --accent: #f97316;
            --accent-glow: rgba(249, 115, 22, 0.25);
        }
        body[data-class="warrior"] {
            --accent: #ef4444;
            --accent-glow: rgba(239, 68, 68, 0.25);
        }
        body[data-class="wizard"] {
            --accent: #8b5cf6;
            --accent-glow: rgba(139, 92, 246, 0.25);
        }

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

        body {
            background-color: var(--bg-color);
            background-image: 
                radial-gradient(at 0% 0%, rgba(30, 27, 75, 0.25) 0px, transparent 50%),
                radial-gradient(at 100% 100%, var(--accent-glow) 0px, transparent 50%),
                url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3联%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
            color: var(--text-primary);
            font-family: 'Outfit', sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            transition: background var(--transition-speed) ease;
        }

        header {
            text-align: center;
            padding: 40px 20px 20px;
        }

        h1 {
            font-family: 'Cinzel', serif;
            font-size: 3rem;
            letter-spacing: 0.3em;
            color: var(--text-primary);
            text-shadow: 0 0 20px var(--accent-glow);
            text-transform: uppercase;
            font-weight: 900;
        }

        header p {
            font-family: 'Cinzel', serif;
            font-size: 1.1rem;
            letter-spacing: 0.15em;
            color: var(--accent);
            text-transform: uppercase;
            margin-top: 5px;
            transition: color var(--transition-speed);
        }

        .main-container {
            flex: 1;
            display: grid;
            grid-template-columns: 380px 1fr;
            gap: 40px;
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
            padding: 0 40px 60px;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .settings-panel {
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            opacity: 1;
            width: 380px;
            transform: translateX(0);
        }

        /* Collapsed Sidebar State */
        .main-container.settings-collapsed {
            grid-template-columns: 0px 1fr;
            gap: 0;
        }

        .main-container.settings-collapsed .settings-panel {
            opacity: 0;
            width: 0;
            padding: 0;
            border: none;
            margin: 0;
            transform: translateX(-420px);
            pointer-events: none;
            overflow: hidden;
        }

        .btn-collapse-sidebar {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-speed) ease;
            border-radius: 4px;
        }

        .btn-collapse-sidebar:hover {
            color: var(--accent);
            background: rgba(255, 255, 255, 0.05);
        }

        .settings-toggle-bar {
            margin-bottom: 20px;
            animation: fadeInUp 0.4s ease;
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .btn-toggle-settings {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
            border-radius: 6px;
            padding: 8px;
            font-family: inherit;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            overflow: hidden;
            max-width: 32px;
            height: 32px;
            box-sizing: border-box;
        }

        .btn-toggle-settings svg {
            flex-shrink: 0;
        }

        .btn-toggle-settings .btn-text {
            max-width: 0;
            opacity: 0;
            overflow: hidden;
            display: inline-block;
            transition: max-width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
        }

        .btn-toggle-settings:hover {
            border-color: var(--accent);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 10px rgba(235, 94, 85, 0.2);
            max-width: 160px;
            padding: 8px 16px;
            gap: 8px;
        }

        .btn-toggle-settings:hover .btn-text {
            max-width: 120px;
            opacity: 1;
        }

        .btn-quick-reroll {
            color: var(--accent);
        }

        .btn-quick-reroll svg {
            color: #ffffff;
            transition: color 0.25s ease;
        }

        .btn-quick-reroll:hover {
            background: var(--accent-glow);
            box-shadow: 0 0 10px var(--accent-glow);
        }

        @media (max-width: 1024px) {
            .main-container {
                grid-template-columns: 1fr;
                padding: 0 20px 40px;
            }
            .main-container.settings-collapsed {
                grid-template-columns: 1fr;
                gap: 0;
            }
            .settings-panel {
                width: 100%;
                max-width: 100%;
            }
            .main-container.settings-collapsed .settings-panel {
                display: none;
            }
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2rem;
                letter-spacing: 0.15em;
            }
            header p {
                font-size: 0.9rem;
                letter-spacing: 0.1em;
            }
            .main-container {
                padding: 0 15px 30px;
            }
        }

        /* Glass Panel Styling */
        .glass-panel {
            background: var(--panel-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--panel-border);
            border-radius: var(--card-radius);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            padding: 30px;
            height: fit-content;
        }

        /* Form styling */
        .panel-title {
            font-family: 'Cinzel', serif;
            font-size: 1.4rem;
            color: var(--text-primary);
            border-bottom: 2px solid var(--accent);
            padding-bottom: 10px;
            margin-bottom: 25px;
            letter-spacing: 0.05em;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: border-color var(--transition-speed);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-secondary);
            margin-bottom: 8px;
            font-weight: 600;
        }

        .input-control {
            width: 100%;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #fff;
            padding: 12px 16px;
            font-family: inherit;
            font-size: 0.95rem;
            outline: none;
            transition: all 0.2s ease;
        }

        .input-control:focus {
            border-color: var(--accent);
            box-shadow: 0 0 10px var(--accent-glow);
        }

        select.input-control {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 16px;
            padding-right: 40px;
        }

        /* Toggle Button */
        .toggle-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 25px 0 15px;
            cursor: pointer;
        }

        .toggle-label {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-secondary);
            font-weight: 600;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 46px;
            height: 24px;
        }

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

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: rgba(255, 255, 255, 0.1);
            transition: .3s;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 3px;
            bottom: 3px;
            background-color: #fff;
            transition: .3s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--accent);
        }

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

        /* Stats Override Panel */
        .stats-override-panel {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            padding: 0 15px;
        }

        .stats-override-panel.active {
            max-height: 350px;
            padding: 15px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            margin-bottom: 20px;
        }

        .stat-input-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .stat-input-row:last-child {
            margin-bottom: 0;
        }

        .stat-label-short {
            font-weight: 700;
            width: 50px;
            font-size: 0.9rem;
            color: var(--accent);
        }

        .stat-range {
            flex: 1;
            margin: 0 15px;
            accent-color: var(--accent);
            cursor: pointer;
        }

        .stat-val-bubble {
            width: 30px;
            text-align: right;
            font-weight: 600;
            font-size: 0.95rem;
        }

        /* Roll Button */
        .btn-roll {
            width: 100%;
            background: linear-gradient(135deg, var(--accent) 0%, #a15c00 100%);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-family: 'Cinzel', serif;
            font-size: 1.1rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            padding: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px var(--accent-glow);
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }

        .btn-roll::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: 0.5s;
        }

        .btn-roll:hover::before {
            left: 100%;
        }

        .btn-roll:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px var(--accent-glow);
            filter: brightness(1.1);
        }

        .btn-roll:active {
            transform: translateY(1px);
        }

        /* Display Sheet (Right Side) */
        .sheet-container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            min-height: 500px;
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
        }

        /* Empty/ Mystical State */
        .empty-state {
            text-align: center;
            max-width: 450px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            animation: float 6s ease-in-out infinite;
        }

        .empty-state svg {
            width: 100px;
            height: 100px;
            fill: none;
            stroke: var(--text-muted);
            stroke-width: 1;
            margin-bottom: 25px;
            filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
            transition: stroke var(--transition-speed);
        }

        .empty-state h3 {
            font-family: 'Cinzel', serif;
            font-size: 1.4rem;
            margin-bottom: 10px;
            letter-spacing: 0.05em;
        }

        .empty-state p {
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.5;
        }

        /* Dice Rolling Animation overlay */
        .dice-rolling-overlay {
            display: none;
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(12, 13, 18, 0.85);
            backdrop-filter: blur(8px);
            z-index: 10;
            border-radius: var(--card-radius);
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        /* 3D Spinning Dice */
        .scene {
            width: 100px;
            height: 100px;
            perspective: 600px;
            margin-bottom: 30px;
        }

        .cube {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            animation: spin 1.2s linear infinite;
        }

        .cube__face {
            position: absolute;
            width: 100px;
            height: 100px;
            background: rgba(20, 20, 30, 0.9);
            border: 2px solid var(--accent);
            border-radius: 12px;
            box-shadow: inset 0 0 20px var(--accent-glow), 0 0 15px var(--accent-glow);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Dice Dot layout */
        .dice-dots {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            width: 60px;
            height: 60px;
            padding: 5px;
        }

        .dot {
            background-color: var(--accent);
            border-radius: 50%;
            width: 10px;
            height: 10px;
            justify-self: center;
            align-self: center;
            box-shadow: 0 0 5px var(--accent);
        }

        /* Position cube faces */
        .cube__face--1  { transform: rotateY(  0deg) translateZ(50px); }
        .cube__face--2  { transform: rotateY( 90deg) translateZ(50px); }
        .cube__face--3  { transform: rotateY(180deg) translateZ(50px); }
        .cube__face--4  { transform: rotateY(-90deg) translateZ(50px); }
        .cube__face--5  { transform: rotateX( 90deg) translateZ(50px); }
        .cube__face--6  { transform: rotateX(-90deg) translateZ(50px); }

        /* Dot arrangements */
        .cube__face--1 .dot { grid-area: 2 / 2; }
        
        .cube__face--2 .dot:nth-child(1) { grid-area: 1 / 1; }
        .cube__face--2 .dot:nth-child(2) { grid-area: 3 / 3; }
        
        .cube__face--3 .dot:nth-child(1) { grid-area: 1 / 1; }
        .cube__face--3 .dot:nth-child(2) { grid-area: 2 / 2; }
        .cube__face--3 .dot:nth-child(3) { grid-area: 3 / 3; }
        
        .cube__face--4 .dot:nth-child(1) { grid-area: 1 / 1; }
        .cube__face--4 .dot:nth-child(2) { grid-area: 1 / 3; }
        .cube__face--4 .dot:nth-child(3) { grid-area: 3 / 1; }
        .cube__face--4 .dot:nth-child(4) { grid-area: 3 / 3; }
        
        .cube__face--5 .dot:nth-child(1) { grid-area: 1 / 1; }
        .cube__face--5 .dot:nth-child(2) { grid-area: 1 / 3; }
        .cube__face--5 .dot:nth-child(3) { grid-area: 2 / 2; }
        .cube__face--5 .dot:nth-child(4) { grid-area: 3 / 1; }
        .cube__face--5 .dot:nth-child(5) { grid-area: 3 / 3; }
        
        .cube__face--6 .dot:nth-child(1) { grid-area: 1 / 1; }
        .cube__face--6 .dot:nth-child(2) { grid-area: 1 / 3; }
        .cube__face--6 .dot:nth-child(3) { grid-area: 2 / 1; }
        .cube__face--6 .dot:nth-child(4) { grid-area: 2 / 3; }
        .cube__face--6 .dot:nth-child(5) { grid-area: 3 / 1; }
        .cube__face--6 .dot:nth-child(6) { grid-area: 3 / 3; }

        .rolling-text {
            font-family: 'Cinzel', serif;
            font-size: 1.2rem;
            color: #fff;
            letter-spacing: 0.15em;
            text-shadow: 0 0 10px var(--accent);
            animation: pulse 1.5s ease-in-out infinite;
        }

        /* Actual Character Sheet Card */
        .character-sheet {
            display: none; /* JS will toggle */
            animation: fadeInUp 0.5s ease forwards;
        }

        .sheet-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
            padding-bottom: 25px;
            margin-bottom: 25px;
        }

        .char-identity h2 {
            font-family: 'Cinzel', serif;
            font-size: 2.2rem;
            letter-spacing: 0.05em;
            color: #fff;
            text-shadow: 0 0 15px var(--accent-glow);
            margin-bottom: 5px;
        }

        .char-meta-badges {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .badge {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.08em;
            color: var(--text-secondary);
        }

        .badge.accent-badge {
            background: var(--accent-glow);
            border-color: var(--accent);
            color: #fff;
        }

        .char-vitals {
            display: flex;
            gap: 15px;
            text-align: right;
        }

        .vital-box {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 10px 16px;
            min-width: 80px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .vital-val {
            font-family: 'Cinzel', serif;
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--accent);
            transition: color var(--transition-speed);
        }

        .vital-label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* Two Column Layout inside Sheet */
        .sheet-body-grid {
            display: grid;
            grid-template-columns: 320px 1fr;
            gap: 30px;
        }

        @media (max-width: 768px) {
            .sheet-body-grid {
                grid-template-columns: 1fr;
            }
            .glass-panel {
                padding: 20px;
            }
            .sheet-header {
                flex-direction: column;
                align-items: stretch;
                gap: 15px;
            }
            .char-vitals {
                justify-content: flex-start;
                text-align: left;
            }
            .inventory-list {
                grid-template-columns: 1fr;
            }
            .tracker-inputs-grid,
            .tracker-druid-grid,
            .tracker-tinkerer-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Stats Column */
        .attributes-panel {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .attributes-title, .details-title {
            font-family: 'Cinzel', serif;
            font-size: 1rem;
            letter-spacing: 0.1em;
            color: var(--text-secondary);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding-bottom: 6px;
            margin-bottom: 10px;
        }

        .attribute-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 8px;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            transition: border-color 0.2s ease;
        }

        .attribute-card.is-primary {
            border-color: var(--accent);
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, var(--accent-glow) 100%);
        }

        .attr-name-group {
            display: flex;
            flex-direction: column;
        }

        .attr-name {
            font-family: 'Cinzel', serif;
            font-weight: 700;
            font-size: 1.1rem;
            letter-spacing: 0.05em;
        }

        .attr-label {
            font-size: 0.65rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .attr-val-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .attr-val {
            font-family: 'Cinzel', serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: #fff;
        }

        .attr-primary-badge {
            background: var(--accent);
            color: #000;
            font-size: 0.55rem;
            font-weight: 900;
            text-transform: uppercase;
            padding: 2px 6px;
            border-radius: 4px;
            letter-spacing: 0.05em;
            box-shadow: 0 0 5px var(--accent-glow);
        }

        /* Optimization Note */
        .optimization-note {
            background: rgba(0, 0, 0, 0.25);
            border-radius: 8px;
            padding: 12px 16px;
            font-size: 0.8rem;
            line-height: 1.4;
            color: var(--text-secondary);
            border-left: 3px solid var(--accent);
            margin-top: 15px;
        }

        .optimization-note .mod-item {
            display: block;
            margin-top: 6px;
            padding-top: 6px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            color: var(--accent);
        }

        /* Details Column */
        .details-panel {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .detail-section {
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.03);
            border-radius: 10px;
            padding: 20px;
        }

        .detail-title {
            font-family: 'Cinzel', serif;
            font-size: 1rem;
            letter-spacing: 0.1em;
            color: var(--accent);
            margin-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: color var(--transition-speed);
        }

        .detail-content {
            font-size: 0.95rem;
            line-height: 1.6;
            color: var(--text-secondary);
        }

        .detail-content strong {
            color: #fff;
        }

        /* Subclass formatting */
        .subclass-kv-row {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            margin-bottom: 8px;
        }
        .subclass-kv-row:last-child {
            margin-bottom: 0;
        }
        .subclass-label {
            font-weight: 700;
            color: var(--text-primary);
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 0.05em;
            flex-shrink: 0;
            width: 180px;
        }
        .subclass-kv-row > span:last-child {
            flex-grow: 1;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Inventory grid */
        .inventory-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .inventory-card {
            background: rgba(30, 30, 40, 0.45);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
        }

        .inventory-card:hover {
            transform: translateY(-4px) scale(1.02);
            border-color: var(--accent);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(235, 94, 85, 0.2);
            background: rgba(40, 40, 55, 0.55);
        }

        .inventory-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--accent);
            opacity: 0.7;
        }

        /* Category specific accent bars and glows */
        .inventory-card.category-weapon::before { background: #ff5555; }
        .inventory-card.category-weapon:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 85, 85, 0.2); border-color: rgba(255, 85, 85, 0.5); }
        
        .inventory-card.category-armor::before { background: #55ff55; }
        .inventory-card.category-armor:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(85, 255, 85, 0.2); border-color: rgba(85, 255, 85, 0.5); }
        
        .inventory-card.category-consumable::before { background: #ffaa00; }
        .inventory-card.category-consumable:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 170, 0, 0.2); border-color: rgba(255, 170, 0, 0.5); }

        .inventory-card.category-magic::before,
        .inventory-card.category-spell::before,
        .inventory-card.category-magic-ring::before,
        .inventory-card.category-magic-core::before,
        .inventory-card.category-prayer::before,
        .inventory-card.category-legendary-weapon::before { background: #aa55ff; }
        .inventory-card.category-magic:hover, 
        .inventory-card.category-spell:hover, 
        .inventory-card.category-magic-ring:hover, 
        .inventory-card.category-magic-core:hover, 
        .inventory-card.category-prayer:hover,
        .inventory-card.category-legendary-weapon:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(170, 85, 255, 0.2); border-color: rgba(170, 85, 255, 0.5); }

        .inventory-card.category-light-source::before { background: #ffff55; }
        .inventory-card.category-light-source:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 85, 0.2); border-color: rgba(255, 255, 85, 0.5); }

        .inventory-card.category-companion::before { background: #00aaff; }
        .inventory-card.category-companion:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 170, 255, 0.2); border-color: rgba(0, 170, 255, 0.5); }

        .card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }

        .item-emoji {
            font-size: 1.6rem;
            background: rgba(255, 255, 255, 0.05);
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .item-title-wrap {
            display: flex;
            flex-direction: column;
        }

        .item-name {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0;
            line-height: 1.2;
            letter-spacing: 0.02em;
        }

        .item-category {
            font-size: 0.72rem;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-top: 2px;
        }

        .card-body {
            margin-bottom: 15px;
            flex-grow: 1;
        }

        .item-desc {
            font-size: 0.82rem;
            color: rgba(255, 255, 255, 0.75);
            line-height: 1.4;
            margin: 0 0 8px 0;
        }

        .item-stats {
            font-size: 0.8rem;
            background: rgba(0, 0, 0, 0.2);
            padding: 6px 10px;
            border-radius: 5px;
            border-left: 3px solid var(--accent);
            color: var(--text-primary);
            font-family: monospace;
        }
        
        .category-weapon .item-stats { border-left-color: #ff5555; }
        .category-armor .item-stats { border-left-color: #55ff55; }

        .card-footer {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }

        .item-meta {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .meta-badge {
            font-size: 0.7rem;
            padding: 3px 6px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.7);
            display: inline-flex;
            align-items: center;
            gap: 4px;
            border: 1px solid rgba(255, 255, 255, 0.03);
        }

        .usage-dots {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .usage-label {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .dots-container {
            display: flex;
            gap: 4px;
        }

        .usage-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: 1.5px solid rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .usage-dot:hover {
            border-color: var(--accent);
            transform: scale(1.2);
        }

        .usage-dot.active {
            background: var(--accent);
            border-color: var(--accent);
            box-shadow: 0 0 6px var(--accent);
        }

        .category-weapon .usage-dot.active { background: #ff5555; border-color: #ff5555; box-shadow: 0 0 6px #ff5555; }
        .category-armor .usage-dot.active { background: #55ff55; border-color: #55ff55; box-shadow: 0 0 6px #55ff55; }

        /* Damaged and Depleted States */
        .inventory-card.damaged {
            border-color: rgba(255, 170, 0, 0.4);
            box-shadow: inset 0 0 8px rgba(255, 170, 0, 0.05);
        }
        .inventory-card.damaged::after {
            content: "DAMAGED";
            position: absolute;
            top: 8px;
            right: 8px;
            font-size: 0.6rem;
            font-weight: 800;
            background: rgba(255, 170, 0, 0.15);
            color: #ffaa00;
            padding: 2px 6px;
            border-radius: 3px;
            border: 1px solid rgba(255, 170, 0, 0.3);
            letter-spacing: 0.05em;
        }

        .inventory-card.depleted {
            border-color: rgba(255, 85, 85, 0.4);
            background: rgba(255, 85, 85, 0.03);
            opacity: 0.75;
        }
        .inventory-card.depleted::after {
            content: "DEPLETED";
            position: absolute;
            top: 8px;
            right: 8px;
            font-size: 0.6rem;
            font-weight: 800;
            background: rgba(255, 85, 85, 0.2);
            color: #ff5555;
            padding: 2px 6px;
            border-radius: 3px;
            border: 1px solid rgba(255, 85, 85, 0.4);
            letter-spacing: 0.05em;
        }
        .inventory-card.depleted .item-emoji,
        .inventory-card.depleted .item-name {
            filter: grayscale(1);
            color: rgba(255, 255, 255, 0.4);
        }

        /* Extra panel buttons */
        .sheet-footer {
            margin-top: 35px;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            justify-content: flex-end;
            gap: 15px;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
            border-radius: 6px;
            padding: 10px 20px;
            font-family: inherit;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        /* Keyframes */
        @keyframes spin {
            0% { transform: rotateX(0deg) rotateY(0deg); }
            100% { transform: rotateX(360deg) rotateY(360deg); }
        }

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

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

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

        /* Class Tracker System */
        .tracker-grid-20 {
            display: grid;
            grid-template-columns: repeat(10, 1fr);
            gap: 6px;
            margin-top: 10px;
        }
        @media (max-width: 600px) {
            .tracker-grid-20 {
                grid-template-columns: repeat(5, 1fr);
            }
        }
        .tracker-num-btn {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-secondary);
            border-radius: 4px;
            padding: 8px 0;
            font-size: 0.85rem;
            font-family: inherit;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s ease;
        }
        .tracker-num-btn:hover {
            border-color: var(--accent);
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-primary);
        }
        .tracker-num-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #ffffff;
            font-weight: bold;
            box-shadow: 0 0 10px var(--accent-glow);
        }
        .tracker-num-btn.zero-btn {
            grid-column: span 10;
            background: rgba(239, 68, 68, 0.05);
            border-color: rgba(239, 68, 68, 0.15);
            color: #ef4444;
        }
        @media (max-width: 600px) {
            .tracker-num-btn.zero-btn {
                grid-column: span 5;
            }
        }
        .tracker-num-btn.zero-btn.active {
            background: #ef4444;
            border-color: #ef4444;
            color: #ffffff;
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
        }

        /* Checklist grids (Druid Primal Gifts, Tinkerer Gadgets, Cutthroat Talents) */
        .tracker-checklist-section {
            margin-top: 15px;
        }
        .tracker-checklist-title {
            font-family: 'Cinzel', serif;
            font-size: 0.95rem;
            color: var(--text-primary);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding-bottom: 4px;
            margin-bottom: 10px;
            letter-spacing: 0.05em;
            transition: color 0.2s ease;
        }
        .tracker-checklist-title.collapsible-header:hover {
            color: var(--accent);
        }
        .tracker-checklist-section.is-collapsed .tracker-checklist-title {
            margin-bottom: 0;
            border-bottom-color: rgba(255, 255, 255, 0.03);
        }
        .tracker-checklist-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 8px;
        }
        .tracker-checkbox-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.01);
            border: 1px solid rgba(255, 255, 255, 0.03);
            transition: all 0.2s ease;
        }
        .tracker-checkbox-label:hover {
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-primary);
            border-color: rgba(255, 255, 255, 0.1);
        }
        .tracker-checkbox-input {
            accent-color: var(--accent);
            width: 14px;
            height: 14px;
            cursor: pointer;
        }
        
        /* Companion / Puppet Stat Cards */
        .tracker-companion-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 8px;
            padding: 16px;
            margin-top: 12px;
        }
        .companion-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
            padding-bottom: 8px;
            margin-bottom: 12px;
        }
        .companion-card-title {
            font-family: 'Cinzel', serif;
            font-size: 1rem;
            color: var(--text-primary);
        }
        .companion-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        .companion-stat-box {
            text-align: center;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 6px;
            padding: 6px 4px;
        }
        .companion-stat-val {
            display: block;
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--accent);
        }
        .companion-stat-label {
            display: block;
            font-size: 0.7rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .companion-input {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
            border-radius: 4px;
            padding: 4px 8px;
            font-size: 0.85rem;
            width: 100%;
            font-family: inherit;
        }
        .companion-input:focus {
            border-color: var(--accent);
            outline: none;
        }

        .tracker-inputs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 12px;
            margin-top: 10px;
        }

        .tracker-druid-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .tracker-tinkerer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        .tracker-input-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .tracker-row-label {
            font-size: 0.85rem;
            color: var(--text-muted);
            width: 80px;
            font-weight: 600;
        }
        .tracker-row-val {
            flex: 1;
        }
        .class-tracker-block {
            margin-bottom: 30px;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
            padding-bottom: 25px;
        }
        .class-tracker-block:last-child {
            margin-bottom: 0;
            border-bottom: none;
            padding-bottom: 0;
        }
        .class-tracker-header {
            font-family: 'Cinzel', serif;
            font-size: 1.1rem;
            color: var(--accent);
            letter-spacing: 0.05em;
            margin-bottom: 15px;
            text-transform: uppercase;
            border-left: 3px solid var(--accent);
            padding-left: 10px;
            line-height: 1;
        }

        /* Print Styles */
        @media print {
            :root, body {
                --text-primary: #000000 !important;
                --text-secondary: #333333 !important;
                --text-muted: #666666 !important;
                --panel-bg: #ffffff !important;
                --panel-border: #000000 !important;
                --accent: #000000 !important;
                --accent-glow: transparent !important;
            }
            body {
                background: #ffffff !important;
                color: #000000 !important;
                font-size: 11pt !important;
            }
            
            /* Global high-specificity print color overrides to ensure no text prints as white/grey */
            .character-sheet,
            .character-sheet *:not(.tracker-num-btn.active):not(.tracker-num-btn.zero-btn.active) {
                color: #000000 !important;
                text-shadow: none !important;
            }
            
            /* Hide non-printable and collapsed elements */
            header, aside, .sheet-footer, .dice-rolling-overlay, .empty-state, .toggle-container, .settings-toggle-bar,
            .is-collapsed, .no-print {
                display: none !important;
            }

            /* Hide input and textarea placeholders during print */
            input::placeholder,
            textarea::placeholder {
                color: transparent !important;
                opacity: 0 !important;
            }

            /* Adjust container to use full page width */
            .main-container {
                display: block !important;
                width: 100% !important;
                max-width: 100% !important;
                padding: 0 !important;
                margin: 0 !important;
            }

            .sheet-container {
                background: #ffffff !important;
                border: none !important;
                box-shadow: none !important;
                padding: 0 !important;
                margin: 0 !important;
                width: 100% !important;
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
            }

            .character-sheet {
                display: block !important;
                padding: 0 !important;
                margin: 0 !important;
                width: 100% !important;
                color: #000000 !important;
            }

            /* Header section styling for print */
            .sheet-header {
                display: flex !important;
                justify-content: space-between !important;
                align-items: center !important;
                border-bottom: 2px solid #000000 !important;
                padding-bottom: 10px !important;
                margin-bottom: 20px !important;
            }

            h2, h3, h4, .detail-title, .attributes-title {
                color: #000000 !important;
                border-color: #000000 !important;
            }

            .char-identity h2 {
                color: #000000 !important;
            }

            .char-meta-badges .badge {
                border: 1px solid #000000 !important;
                color: #000000 !important;
                background: #ffffff !important;
                text-shadow: none !important;
            }

            .char-vitals {
                display: flex !important;
                gap: 15px !important;
            }

            .vital-box {
                background: #ffffff !important;
                border: 1px solid #000000 !important;
                color: #000000 !important;
                padding: 5px 15px !important;
                box-shadow: none !important;
            }

            .vital-val {
                color: #000000 !important;
                text-shadow: none !important;
            }

            .vital-label {
                color: #333333 !important;
            }

            /* Body grids layout for print */
            .sheet-body-grid {
                display: grid !important;
                grid-template-columns: 240px 1fr !important;
                gap: 30px !important;
            }

            .attributes-panel {
                display: flex !important;
                flex-direction: column !important;
                gap: 8px !important;
            }

            .attribute-card {
                background: #ffffff !important;
                border: 1px solid #000000 !important;
                color: #000000 !important;
                box-shadow: none !important;
                padding: 8px 12px !important;
            }

            .attribute-card.is-primary {
                background: #f0f0f0 !important;
                border: 2px solid #000000 !important;
            }

            .attr-name, .attr-val {
                color: #000000 !important;
                text-shadow: none !important;
            }

            .attr-label {
                color: #444444 !important;
            }

            .attr-primary-badge {
                border-color: #000000 !important;
                color: #000000 !important;
                background: #ffffff !important;
            }

            .optimization-note {
                background: #f5f5f5 !important;
                border-left: 3px solid #000000 !important;
                color: #333333 !important;
                box-shadow: none !important;
                margin-top: 15px !important;
                padding: 8px !important;
            }

            .mod-item {
                border-left-color: #000000 !important;
                color: #333333 !important;
            }

            /* Details section styling */
            .detail-section {
                border: 1px solid #000000 !important;
                background: #ffffff !important;
                box-shadow: none !important;
                margin-bottom: 20px !important;
                page-break-inside: avoid !important;
            }

            .detail-title {
                border-bottom: 1.5px solid #000000 !important;
                color: #000000 !important;
            }

            .detail-title svg {
                stroke: #000000 !important;
            }

            .detail-content {
                color: #000000 !important;
            }

            .subclass-kv-row {
                display: flex !important;
                align-items: flex-start !important;
                gap: 20px !important;
                border-bottom-color: #cccccc !important;
            }

            .subclass-label {
                color: #000000 !important;
                flex-shrink: 0 !important;
                width: 180px !important;
            }

            /* Inventory section print layout */
            .inventory-list {
                display: grid !important;
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 10px !important;
                margin-top: 10px !important;
            }

            .inventory-card {
                background: #ffffff !important;
                color: #000000 !important;
                border: 1px solid #000000 !important;
                box-shadow: none !important;
                padding: 10px !important;
                page-break-inside: avoid !important;
            }

            .inventory-card::before {
                display: none !important;
            }

            .item-emoji {
                background: #f0f0f0 !important;
                border: 1px solid #000000 !important;
                color: #000000 !important;
            }

            .item-name {
                color: #000000 !important;
            }

            .item-category {
                color: #444444 !important;
            }

            .item-desc {
                color: #222222 !important;
            }

            .item-stats {
                background: #f5f5f5 !important;
                border-left: 3px solid #000000 !important;
                color: #000000 !important;
            }

            .card-footer {
                border-top-color: #dddddd !important;
            }

            .meta-badge {
                background: #f5f5f5 !important;
                color: #000000 !important;
                border: 1px solid #cccccc !important;
            }

            .usage-dot {
                border-color: #000000 !important;
            }

            .usage-dot.active {
                background: #000000 !important;
                box-shadow: none !important;
            }

            .inventory-card.damaged {
                border: 2px dashed #ffaa00 !important;
            }
            
            .inventory-card.depleted {
                border: 2px solid #ff5555 !important;
                opacity: 0.6 !important;
            }

            .inventory-card.damaged::after, .inventory-card.depleted::after {
                background: #ffffff !important;
                border-color: #000000 !important;
                color: #000000 !important;
            }

            /* Print overrides for class trackers */
            .tracker-num-btn {
                background: #ffffff !important;
                border: 1px solid #000000 !important;
                color: #000000 !important;
                box-shadow: none !important;
            }
            .tracker-num-btn.active {
                background: #e0e0e0 !important;
                border: 2px solid #000000 !important;
                color: #000000 !important;
                font-weight: bold !important;
            }
            .tracker-num-btn.zero-btn {
                background: #ffffff !important;
                border: 1px solid #000000 !important;
                color: #000000 !important;
            }
            .tracker-num-btn.zero-btn.active {
                background: #000000 !important;
                color: #ffffff !important;
            }
            .tracker-checkbox-label {
                background: #ffffff !important;
                border: 1px solid #e0e0e0 !important;
                color: #000000 !important;
            }
            .tracker-companion-card {
                background: #ffffff !important;
                border: 1px solid #000000 !important;
            }
            .tracker-companion-card,
            .tracker-companion-card *,
            .tracker-checklist-section,
            .tracker-checklist-section *,
            .tracker-input-row,
            .tracker-input-row * {
                color: #000000 !important;
                border-color: #000000 !important;
            }
            .companion-stat-box {
                background: #ffffff !important;
                border: 1px solid #000000 !important;
            }
            .companion-stat-val {
                color: #000000 !important;
            }
            .companion-input, .tracker-input-row input, .tracker-input-row select {
                background: #ffffff !important;
                border: none !important;
                border-bottom: 1px solid #000000 !important;
                color: #000000 !important;
                border-radius: 0 !important;
                padding: 2px !important;
            }
        }

        .app-footer {
            text-align: center;
            padding: 30px 20px;
            font-size: 0.85rem;
            color: var(--text-muted);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            max-width: 1400px;
            width: 100%;
            margin: 40px auto 0;
            line-height: 1.6;
        }
        .app-footer p {
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.7;
        }
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .footer-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            transition: color var(--transition-speed) ease;
        }
        .footer-link:hover {
            color: var(--accent);
        }
        @media print {
            .app-footer {
                display: none;
            }
        }

        /* About Modal Dialog Styles */
        dialog.about-modal {
            border: 1px solid var(--panel-border);
            background: rgba(15, 17, 26, 0.98);
            color: var(--text-primary);
            max-width: 500px;
            width: 90%;
            border-radius: var(--card-radius);
            padding: 30px;
            margin: auto;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        dialog.about-modal::backdrop {
            background: rgba(6, 8, 12, 0.85);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding-bottom: 12px;
        }

        .modal-header h2 {
            font-family: 'Cinzel', serif;
            font-size: 1.25rem;
            color: #fff;
            letter-spacing: 0.05em;
        }

        .btn-close-modal {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color var(--transition-speed) ease;
        }

        .btn-close-modal:hover {
            color: var(--accent);
        }

        .sinek-section {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-bottom: 20px;
        }

        .sinek-block {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .sinek-label {
            font-family: 'Cinzel', serif;
            font-weight: 700;
            font-size: 0.85rem;
            text-transform: uppercase;
            color: var(--accent);
            letter-spacing: 0.1em;
        }

        .sinek-block p {
            font-size: 0.9rem;
            line-height: 1.5;
            color: var(--text-primary);
        }

        .modal-divider {
            border: none;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            margin: 20px 0;
        }

        .modal-passion-statement {
            font-size: 0.9rem;
            line-height: 1.5;
            color: var(--text-secondary);
            margin-bottom: 20px;
        }

        .modal-legal {
            font-size: 0.75rem;
            color: var(--text-muted);
            line-height: 1.4;
        }

        .modal-legal .copyright {
            margin-top: 4px;
            opacity: 0.7;
        }

        .about-modal a {
            color: var(--accent);
            text-decoration: underline;
            transition: opacity var(--transition-speed) ease;
        }
        .about-modal a:hover {
            opacity: 0.8;
        }
        .kofi-badge-btn {
            height: 46px;
            cursor: pointer;
            transition: transform 0.2s ease, filter 0.2s ease;
        }
        .kofi-badge-btn:hover {
            transform: scale(1.05);
            filter: brightness(1.1);
        }
        .kofi-badge-btn:active {
            transform: scale(1.0);
        }