        :root {
            --gold-light: #f4d03f;
            --gold: #d4a017;
            --gold-dark: #996515;
            --bronze: #cd7f32;
            --bg-dark: #0d0d0d;
            --bg-card: #1a1510;
            --bg-card-alt: #231c14;
            --border-gold: #8b6914;
            --text-light: #e8e0d0;
            --text-muted: #9a9080;
            --accent-blue: #4a90d9;
            --accent-green: #4caf50;
            --accent-red: #c0392b;
        }

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

        body {
            font-family: 'Crimson Text', Georgia, serif;
            background: var(--bg-dark);
            color: var(--text-light);
            line-height: 1.6;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(ellipse at 20% 20%, rgba(212, 160, 23, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(212, 160, 23, 0.05) 0%, transparent 50%),
                url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a017' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
            z-index: -1;
        }

        /* Icon styles */
        .icon {
            width: 20px;
            height: 20px;
            vertical-align: middle;
            margin-right: 5px;
            display: inline-block;
        }

        .icon-medium {
            width: 24px;
            height: 24px;
            vertical-align: middle;
            margin-right: 6px;
            display: inline-block;
        }

        .icon-large {
            width: 32px;
            height: 32px;
            vertical-align: middle;
            margin-right: 8px;
            display: inline-block;
        }

        .icon-title {
            width: 40px;
            height: 40px;
            vertical-align: middle;
            margin-right: 10px;
            display: inline-block;
        }

        .checklist-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 15px;
            background: rgba(26, 21, 16, 0.5);
            border: 1px solid rgba(139, 105, 20, 0.3);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .checklist-item:hover {
            background: rgba(26, 21, 16, 0.8);
            border-color: var(--gold);
            transform: translateX(5px);
        }

        .checklist-item input[type="checkbox"] {
            width: 24px;
            height: 24px;
            cursor: pointer;
            accent-color: var(--gold);
            flex-shrink: 0;
            margin-top: 2px;
        }

        .checklist-item input[type="checkbox"]:checked + .checklist-text {
            opacity: 0.6;
            text-decoration: line-through;
        }

        .checklist-text {
            flex: 1;
            color: var(--text-light);
            transition: all 0.3s ease;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
            width: 100%;
            box-sizing: border-box;
        }

        .header {
            text-align: center;
            padding: 60px 20px 40px;
            position: relative;
            margin-bottom: 30px;
        }

        .header::before,
        .header::after {
            content: '⚔';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 3rem;
            color: var(--gold);
            opacity: 0.3;
        }

        .header::before { left: 10%; }
        .header::after { right: 10%; }

        .header h1 {
            font-family: 'Cinzel', serif;
            font-size: 3.5rem;
            font-weight: 700;
            color: var(--gold);
            text-shadow: 
                0 0 20px rgba(212, 160, 23, 0.5),
                0 0 40px rgba(212, 160, 23, 0.3),
                2px 2px 4px rgba(0, 0, 0, 0.8);
            letter-spacing: 4px;
            margin-bottom: 10px;
        }

        .subtitle {
            font-size: 1.2rem;
            color: var(--text-muted);
            font-style: italic;
        }

        .nav-tabs {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 40px;
            background: rgba(26, 21, 16, 0.5);
            padding: 20px;
            border-radius: 10px;
            border: 1px solid rgba(139, 105, 20, 0.3);
        }

        .nav-tab {
            font-family: 'Cinzel', serif;
            padding: 12px 24px;
            background: linear-gradient(135deg, var(--bg-card), var(--bg-card-alt));
            color: var(--text-light);
            border: 2px solid var(--border-gold);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            font-weight: 600;
        }

        .nav-tab:hover {
            background: linear-gradient(135deg, var(--gold-dark), var(--bronze));
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(212, 160, 23, 0.3);
        }

        .nav-tab.active {
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            border-color: var(--gold-light);
            box-shadow: 0 5px 20px rgba(212, 160, 23, 0.4);
        }

        .section {
            display: none;
            width: 100%;
        }

        .section.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }

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

        .card {
            background: linear-gradient(135deg, var(--bg-card), var(--bg-card-alt));
            border: 2px solid var(--border-gold);
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            width: 100%;
            box-sizing: border-box;
            overflow-x: hidden;
        }

        .card h2 {
            font-family: 'Cinzel', serif;
            color: var(--gold);
            font-size: 2rem;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(139, 105, 20, 0.3);
        }

        .card h3 {
            font-family: 'Cinzel', serif;
            color: var(--gold-light);
            font-size: 1.5rem;
            margin: 25px 0 15px;
        }

        .card h4 {
            font-family: 'Cinzel', serif;
            color: var(--gold);
            font-size: 1.2rem;
            margin: 20px 0 10px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            overflow: hidden;
            display: table;
        }

        @media (max-width: 768px) {
            table {
                display: block;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                white-space: nowrap;
                font-size: 0.75rem;
            }
            
            thead, tbody {
                display: table;
                width: 100%;
                table-layout: fixed;
            }

            th {
                font-size: 0.7rem;
                padding: 8px 4px;
                white-space: normal;
                word-wrap: break-word;
                line-height: 1.2;
            }

            td {
                font-size: 0.75rem;
                padding: 8px 4px;
                white-space: normal;
            }

            /* Ajuste específico para tabelas do Rank Estimator */
            #rank table th,
            #rank table td {
                font-size: 0.7rem;
                padding: 6px 3px;
            }

            #medalsBreakdown table th,
            #medalsBreakdown table td {
                font-size: 0.7rem;
                padding: 6px 4px;
            }
        }

        thead {
            background: linear-gradient(135deg, var(--gold-dark), var(--bronze));
        }

        th {
            padding: 15px;
            text-align: left;
            font-family: 'Cinzel', serif;
            font-weight: 600;
            font-size: 0.95rem;
            border-bottom: 2px solid var(--gold);
        }

        td {
            padding: 12px 15px;
            border-bottom: 1px solid rgba(139, 105, 20, 0.2);
        }

        tbody tr:hover {
            background: rgba(212, 160, 23, 0.1);
        }

        tbody tr:last-child td {
            border-bottom: none;
        }

        .highlight {
            color: var(--gold-light);
            font-weight: 600;
        }

        .reward-star {
            background: rgba(244, 208, 63, 0.1);
        }

        .info-box {
            background: rgba(74, 144, 217, 0.1);
            border-left: 4px solid var(--accent-blue);
            padding: 15px 20px;
            margin: 20px 0;
            border-radius: 6px;
        }

        .warning-box {
            background: rgba(192, 57, 43, 0.1);
            border-left: 4px solid var(--accent-red);
            padding: 15px 20px;
            margin: 20px 0;
            border-radius: 6px;
        }

        .success-box {
            background: rgba(76, 175, 80, 0.1);
            border-left: 4px solid var(--accent-green);
            padding: 15px 20px;
            margin: 20px 0;
            border-radius: 6px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .stat-card {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(139, 105, 20, 0.4);
            border-radius: 8px;
            padding: 20px;
            text-align: center;
        }

        .stat-label {
            font-family: 'Cinzel', serif;
            color: var(--gold);
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--gold-light);
        }

        .sub-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .sub-tab {
            flex: 1;
            padding: 12px;
            background: rgba(0, 0, 0, 0.3);
            border: 2px solid var(--border-gold);
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Cinzel', serif;
            color: var(--gold);
            font-weight: 600;
        }

        .sub-tab:hover {
            background: rgba(212, 160, 23, 0.2);
            color: var(--gold-light);
        }

        .sub-tab.active {
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            border-color: var(--gold-light);
            color: var(--bg-dark);
        }

        .sub-content {
            display: none;
        }

        .sub-content.active {
            display: block;
        }

        .badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-right: 5px;
        }

        .badge-rank1 { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #000; }
        .badge-rank2 { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); color: #000; }
        .badge-rank3 { background: linear-gradient(135deg, #cd7f32, #e8a87c); color: #000; }
        .badge-rank-other { background: rgba(212, 160, 23, 0.2); color: var(--gold-light); }

        .calculator {
            background: linear-gradient(135deg, rgba(212, 160, 23, 0.1), rgba(153, 101, 21, 0.1));
            padding: 30px;
            border-radius: 12px;
            border: 2px solid var(--border-gold);
            max-width: 100%;
            overflow: hidden;
        }

        .calc-input {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
            max-width: 100%;
        }

        .input-group {
            display: flex;
            flex-direction: column;
        }

        .input-group label {
            font-family: 'Cinzel', serif;
            color: var(--gold);
            margin-bottom: 8px;
            font-size: 0.95rem;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .input-group select,
        .input-group input {
            padding: 12px;
            background: rgba(0, 0, 0, 0.5);
            border: 2px solid var(--border-gold);
            border-radius: 6px;
            color: var(--text-light);
            font-size: 1rem;
            font-family: 'Crimson Text', serif;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .input-group select:focus,
        .input-group input:focus {
            outline: none;
            border-color: var(--gold);
            box-shadow: 0 0 10px rgba(212, 160, 23, 0.3);
        }

        .input-group {
            max-width: 100%;
            overflow: hidden;
        }

        .calc-results {
            background: rgba(0, 0, 0, 0.4);
            padding: 25px;
            border-radius: 10px;
            border: 1px solid rgba(139, 105, 20, 0.3);
            max-width: 100%;
            overflow: hidden;
        }

        .calc-result-item {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid rgba(139, 105, 20, 0.2);
        }

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

        .calc-result-label {
            font-family: 'Cinzel', serif;
            color: var(--text-muted);
        }

        .calc-result-value {
            font-weight: 700;
            font-size: 1.3rem;
            color: var(--gold-light);
        }

        #targetRanks table {
            background: transparent;
            margin: 0;
        }

        #targetRanks table td {
            color: var(--text-light);
            font-size: 0.95rem;
        }

        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(212, 160, 23, 0.4);
        }

        button:active {
            transform: translateY(0);
        }

        .progress-bar {
            width: 100%;
            height: 30px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 15px;
            overflow: hidden;
            margin-top: 15px;
            border: 1px solid var(--border-gold);
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-green), var(--gold));
            transition: width 0.5s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: var(--bg-dark);
        }

        /* Tabelas responsivas */
        .table-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin: 20px 0;
        }

        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }

            .header {
                padding: 30px 10px 20px;
            }

            .header h1 { 
                font-size: 1.8rem;
                letter-spacing: 2px;
            }

            .header::before, 
            .header::after { 
                display: none; 
            }

            .subtitle {
                font-size: 1rem;
            }

            .nav-tabs {
                padding: 10px;
                gap: 5px;
            }

            .nav-tab { 
                padding: 8px 12px;
                font-size: 0.75rem;
                flex: 1 1 auto;
                min-width: 0;
            }

            .card {
                padding: 15px;
                margin-bottom: 20px;
            }

            .card h2 {
                font-size: 1.4rem;
                margin-bottom: 15px;
            }

            .card h3 {
                font-size: 1.2rem;
                margin: 20px 0 10px;
            }

            .card h4 {
                font-size: 1rem;
                margin: 15px 0 8px;
            }

            .card p,
            .card li {
                font-size: 0.95rem;
            }

            .stats-grid {
                grid-template-columns: 1fr;
                gap: 15px;
                margin: 20px 0;
            }

            .stat-card {
                padding: 15px;
            }

            .stat-label {
                font-size: 0.85rem;
            }

            .stat-value { 
                font-size: 1.5rem;
            }

            .info-box,
            .warning-box,
            .success-box {
                padding: 12px 15px;
                margin: 15px 0;
                font-size: 0.9rem;
            }

            table {
                font-size: 0.75rem;
            }

            th, td {
                padding: 8px 4px;
                font-size: 0.75rem;
            }

            th {
                font-size: 0.7rem;
                padding: 8px 4px;
                white-space: normal;
                word-wrap: break-word;
                line-height: 1.2;
            }

            td {
                font-size: 0.75rem;
                padding: 8px 4px;
                white-space: normal;
            }

            /* Ajuste específico para tabelas do Rank Estimator */
            #rank table th,
            #rank table td {
                font-size: 0.7rem;
                padding: 6px 3px;
            }

            #medalsBreakdown table th,
            #medalsBreakdown table td {
                font-size: 0.7rem;
                padding: 6px 4px;
            }

            /* Forçar quebra de linha em headers longos */
            #rank table th:nth-child(2),
            #rank table th:nth-child(4) {
                max-width: 80px;
                word-wrap: break-word;
                white-space: normal;
            }

            .sub-tabs {
                flex-direction: column;
                gap: 8px;
            }

            .sub-tab {
                padding: 10px;
                font-size: 0.85rem;
            }

            .calculator {
                padding: 15px;
                margin: 15px 0;
            }

            .calc-input {
                grid-template-columns: 1fr;
                gap: 15px;
                max-width: 100%;
            }

            .input-group {
                width: 100%;
            }

            .input-group label {
                font-size: 0.9rem;
                margin-bottom: 6px;
                display: block;
            }

            .input-group select,
            .input-group input {
                padding: 10px 8px;
                font-size: 0.85rem;
                width: 100%;
                box-sizing: border-box;
            }

            .calc-results {
                padding: 15px;
            }

            .calc-result-item {
                padding: 10px 0;
                font-size: 0.9rem;
                flex-wrap: wrap;
            }

            .calc-result-label {
                font-size: 0.85rem;
            }

            .calc-result-value {
                font-size: 1.1rem;
            }

            .progress-bar {
                height: 25px;
                font-size: 0.85rem;
            }

            .badge {
                padding: 3px 8px;
                font-size: 0.75rem;
            }

            ol, ul {
                padding-left: 20px;
            }

            ol li, ul li {
                margin-bottom: 8px;
                line-height: 1.5;
            }

            .checklist-item {
                padding: 12px;
                gap: 10px;
            }

            .checklist-item input[type="checkbox"] {
                width: 20px;
                height: 20px;
            }

            .checklist-text {
                font-size: 0.9rem;
            }

            .checklist-text small {
                font-size: 0.8rem;
            }

            #eventCountdown {
                font-size: 1.1rem;
            }

            #eventStatus {
                font-size: 0.8rem;
            }

            #checklist h2 {
                flex-direction: column;
                align-items: flex-start !important;
                gap: 15px !important;
            }

            #checklist h2 button {
                margin-left: 0 !important;
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .header h1 {
                font-size: 1.5rem;
            }

            .nav-tab {
                font-size: 0.7rem;
                padding: 6px 8px;
            }

            .card {
                padding: 12px;
                margin-bottom: 15px;
                overflow-x: hidden;
            }

            .card h2 {
                font-size: 1.2rem;
            }

            table {
                font-size: 0.75rem;
            }

            th, td {
                padding: 6px 8px;
                font-size: 0.75rem;
            }

            .container {
                padding: 8px;
            }

            .calculator {
                padding: 10px;
            }

            .input-group select,
            .input-group input {
                padding: 8px 6px;
                font-size: 0.8rem;
            }
        }
    </style>

        /* ============================================
           HEADER PADRONIZADO - ROCAcademy Tools
           ============================================ */
        .medieval-header {
            background: linear-gradient(180deg, #3d2914 0%, #1a1209 100%);
            border-bottom: 3px solid #d4af37;
            padding: 0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.5);
        }
        .medieval-header .header-wrap {
            max-width: 1200px;
            margin: 0 auto;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }
        .medieval-header .logo h1 {
            font-family: 'Cinzel', serif;
            font-size: clamp(1rem, 3vw, 1.5rem);
            color: #d4af37;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            letter-spacing: 1px;
            margin: 0;
        }
        .medieval-header .logo .subtitle {
            color: #f4e4a6;
            opacity: 0.8;
            font-size: 0.75rem;
            margin: 2px 0 0;
        }
        .main-nav {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        .nav-link {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 7px 14px;
            background: rgba(212, 175, 55, 0.1);
            border: 1px solid rgba(212, 175, 55, 0.4);
            border-radius: 6px;
            color: #d4af37;
            text-decoration: none;
            font-family: 'Cinzel', serif;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            transition: all 0.2s ease;
            white-space: nowrap;
        }
        .nav-link:hover {
            background: rgba(212, 175, 55, 0.25);
            border-color: #d4af37;
            box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
            transform: translateY(-1px);
        }
        .nav-icon {
            width: 20px;
            height: 20px;
            object-fit: contain;
            border-radius: 3px;
        }

        /* ============================================
           ADS
           ============================================ */
        .ht-ad {
            display: flex;
            justify-content: center;
            width: 100%;
            padding: 10px 0;
        }
        .ht-ad ins.adsbygoogle {
            display: block;
            width: 100%;
            max-width: 728px;
            margin: 0 auto !important;
        }
        .vip-hide { display: none !important; }

        /* ============================================
           FOOTER PADRONIZADO
           ============================================ */
        .medieval-footer {
            background: linear-gradient(180deg, #1a1209 0%, #0d0b08 100%);
            border-top: 2px solid rgba(212, 175, 55, 0.3);
            padding: 24px 20px;
            margin-top: 30px;
            text-align: center;
        }
        .medieval-footer .footer-logo-img {
            height: 36px;
            opacity: 0.8;
            margin-bottom: 10px;
        }
        .medieval-footer .footer-text p {
            color: #d4c4a8;
            font-size: 0.75rem;
            opacity: 0.7;
            margin: 4px 0;
            line-height: 1.5;
        }
        .medieval-footer .footer-text strong {
            color: #d4af37;
            opacity: 1;
        }
        .medieval-footer .copyright {
            opacity: 0.5;
            font-size: 0.7rem;
        }

        /* Ocultar header original */
        .header { display: none !important; }

        @media (max-width: 480px) {
            .main-nav .nav-text { display: none; }
            .nav-link { padding: 7px 10px; }
        }

        /* ============================================
           EVENT DAY CARDS
           ============================================ */
        .event-day-card {
            background: rgba(26,21,16,0.8);
            border: 2px solid rgba(212,160,23,0.2);
            border-radius: 10px;
            padding: 12px 8px;
            text-align: center;
            transition: all 0.3s ease;
        }
        .edc-label {
            font-family: 'Cinzel', serif;
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--gold);
            margin-bottom: 4px;
        }
        .edc-date {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }
        .edc-status {
            font-size: 0.85rem;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 12px;
            background: rgba(0,0,0,0.3);
        }
        .edc-active {
            border-color: #4caf50;
            background: rgba(76,175,80,0.15);
            box-shadow: 0 0 16px rgba(76,175,80,0.3);
        }
        .edc-active .edc-label { color: #4caf50; }
        .edc-past {
            border-color: rgba(212,160,23,0.4);
            opacity: 0.6;
        }
        .edc-upcoming {
            border-color: rgba(255,255,255,0.1);
            opacity: 0.5;
        }

        /* ============================================
           IMPERIAL TRADE TRACKER
           ============================================ */
        .trade-tracker-panel {
            margin-top: 20px;
            background: rgba(0,0,0,0.2);
            border: 1px solid rgba(212,160,23,0.2);
            border-radius: 12px;
            overflow: hidden;
        }
        .ttp-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            background: rgba(212,160,23,0.08);
            border-bottom: 1px solid rgba(212,160,23,0.15);
            font-family: 'Cinzel', serif;
            font-size: 0.85rem;
            color: var(--gold);
            flex-wrap: wrap;
        }
        .ttp-stats {
            display: flex;
            gap: 16px;
            margin-left: auto;
            font-size: 0.8rem;
            color: var(--text-secondary);
            flex-wrap: wrap;
        }
        .ttp-stats strong { color: var(--gold-light); }
        .ttp-net strong { color: #f4d590; }
        .ttp-reset-btn {
            padding: 4px 10px;
            background: rgba(196,69,54,0.1);
            border: 1px solid rgba(196,69,54,0.3);
            border-radius: 6px;
            color: #c44536;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .ttp-reset-btn:hover { background: rgba(196,69,54,0.25); }
        .trade-rows-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 10px;
            padding: 14px;
        }
        .trade-row-card {
            background: rgba(26,21,16,0.6);
            border: 1px solid rgba(212,160,23,0.15);
            border-radius: 8px;
            padding: 10px 12px;
            transition: all 0.2s;
        }
        .trade-row-card.highlight-row {
            border-color: rgba(212,160,23,0.4);
            background: rgba(212,160,23,0.06);
        }
        .trade-row-card.trc-done {
            opacity: 0.55;
            border-color: rgba(76,175,80,0.5);
            background: rgba(76,175,80,0.08);
        }
        .trc-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
        }
        .trc-check-label {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }
        .trc-checkbox {
            width: 16px;
            height: 16px;
            accent-color: #4caf50;
            cursor: pointer;
        }
        .trc-row-num {
            font-family: 'Cinzel', serif;
            font-size: 0.8rem;
            color: var(--gold);
            font-weight: 600;
        }
        .trc-cost {
            font-size: 0.78rem;
            color: var(--text-secondary);
            margin-left: auto;
        }
        .trc-reward {
            font-size: 0.78rem;
            color: var(--text-secondary);
            white-space: nowrap;
        }
        .trc-reward.reward-gem {
            color: #f4d590;
            font-weight: 600;
        }
        .trc-items {
            font-size: 0.75rem;
            color: var(--text-secondary);
            opacity: 0.8;
            padding-top: 4px;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        /* ============================================
           DAILY GOAL CALCULATOR
           ============================================ */
        .daily-goal-panel {
            background: rgba(26,21,16,0.8);
            border: 2px solid rgba(212,160,23,0.3);
            border-radius: 14px;
            padding: 20px;
            margin-bottom: 28px;
        }
        .dgp-title {
            font-family: 'Cinzel', serif;
            color: var(--gold);
            font-size: 1.1rem;
            margin: 0 0 6px;
        }
        .dgp-inputs {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }
        .dgp-input-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .dgp-input-group label {
            font-size: 0.78rem;
            color: var(--text-secondary);
            font-family: 'Cinzel', serif;
        }
        .dgp-input-group select,
        .dgp-input-group input {
            background: rgba(0,0,0,0.4);
            border: 1px solid rgba(212,160,23,0.3);
            border-radius: 6px;
            color: var(--gold-light);
            padding: 8px 10px;
            font-size: 0.85rem;
        }
        .dgp-input-group select:focus,
        .dgp-input-group input:focus {
            outline: none;
            border-color: var(--gold);
        }
        .dgp-result-card {
            background: rgba(0,0,0,0.3);
            border: 1px solid rgba(212,160,23,0.25);
            border-radius: 10px;
            padding: 16px;
        }
        .dgp-result-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            text-align: center;
            margin-bottom: 12px;
        }
        .dgp-stat-value {
            font-family: 'Cinzel', serif;
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 4px;
        }
        .dgp-stat-label {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        @media (max-width: 600px) {
            .dgp-result-grid { grid-template-columns: 1fr 1fr; }
            .ttp-stats { gap: 8px; }
            .trade-rows-grid { grid-template-columns: 1fr; }
        }

        /* Day cards: 2x2 on mobile */
        @media (max-width: 480px) {
            #eventDayCards > div {
                grid-template-columns: repeat(2, 1fr) !important;
            }
        }
