/* ============================================================================
 * TimeQuest — Adventure Tome Theme
 * Global override stylesheet. Include AFTER each page's inline <style> block.
 *
 *   <style>... existing page CSS ...</style>
 *   <link rel="stylesheet" href="theme-adventure.css">
 *
 * Uses !important where needed to defeat existing inline rules.
 * ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=IM+Fell+English:ital@0;1&display=swap');

/* ---------------------------------------------------------------------------
   BODY & GLOBAL BACKGROUND
   --------------------------------------------------------------------------- */
body {
    font-family: 'IM Fell English', Georgia, serif !important;
    background:
      radial-gradient(ellipse at top, #5d3a1f 0%, #2a1a0d 50%, #1a0f08 100%) !important;
    color: #f4e8d4 !important;
    min-height: 100vh;
}

body::before {
    content: '' !important;
    position: fixed !important;
    inset: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0 0.1 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E") !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    width: auto !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
}

/* ---------------------------------------------------------------------------
   TYPOGRAPHY
   --------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif !important;
    letter-spacing: 2px !important;
}

p, span, div, li, label, td, th {
    font-family: 'IM Fell English', Georgia, serif;
}

/* Hero / page titles in dark areas */
.hero h1, .hero h2,
nav .logo, nav .nav-logo,
.header h1,
.setup-screen h2,
.section-title,
.results-content h2 {
    color: #f4d03f !important;
    text-shadow: 2px 2px 0 #1a0f08, 0 0 18px rgba(244, 208, 63, 0.4) !important;
    letter-spacing: 3px !important;
    font-weight: 900 !important;
}

/* Subtitles & italic body */
.subtitle, .lead, .hero p {
    color: #c89f3c !important;
    font-style: italic !important;
    font-family: 'IM Fell English', serif !important;
}

a {
    color: #f4d03f;
}
a:hover {
    color: #c89f3c;
}

/* ---------------------------------------------------------------------------
   BUTTONS — brass / gold embossed
   --------------------------------------------------------------------------- */
button,
.btn,
input[type="submit"],
input[type="button"],
.btn-login,
.btn-cta {
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    background: linear-gradient(180deg, #c89f3c 0%, #8b6914 100%) !important;
    color: #1a0f08 !important;
    border: 2px solid #5e4310 !important;
    border-radius: 4px !important;
    box-shadow: 0 3px 0 #4a3309, inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: all 0.15s !important;
    cursor: pointer;
}

button:hover,
.btn:hover,
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #4a3309, inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    background: linear-gradient(180deg, #d4ab48 0%, #9a7818 100%) !important;
}

button:active,
.btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #4a3309 !important;
}

button:disabled,
.btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Primary call-to-action buttons - golden shimmer */
.btn-primary,
.btn-start,
.btn-cta,
button.primary,
.btn.cta {
    background: radial-gradient(ellipse at center, #f4d03f 0%, #c89f3c 50%, #8b6914 100%) !important;
    box-shadow: 0 4px 0 #4a3309, 0 8px 20px rgba(244, 208, 63, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
    color: #1a0f08 !important;
}

.btn-primary:hover,
.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #4a3309, 0 12px 30px rgba(244, 208, 63, 0.5) !important;
}

/* Secondary buttons - dark wood */
.btn-secondary,
.btn-outline,
button.secondary {
    background: linear-gradient(180deg, #6b4423 0%, #3d2614 100%) !important;
    color: #f4e8d4 !important;
    border-color: #2a1a0d !important;
    box-shadow: 0 3px 0 #1a0f08, inset 0 1px 0 rgba(218, 165, 32, 0.2) !important;
}

.btn-secondary:hover {
    color: #f4d03f !important;
    background: linear-gradient(180deg, #7d5429 0%, #4d301a 100%) !important;
}

/* Danger / sign out */
.btn-danger,
.sign-out,
button.danger {
    background: linear-gradient(180deg, #c44a1a 0%, #8b2e10 100%) !important;
    color: #f4e8d4 !important;
    border-color: #5e1a08 !important;
}

/* ---------------------------------------------------------------------------
   INPUTS
   --------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
    font-family: 'IM Fell English', serif !important;
    font-size: 1rem !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 232, 212, 0.92)) !important;
    color: #2a1a0d !important;
    border: 2px solid #8b6914 !important;
    border-radius: 4px !important;
    padding: 10px 14px !important;
    transition: all 0.2s !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #c89f3c !important;
    box-shadow: 0 0 12px rgba(200, 159, 60, 0.4) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(60, 36, 18, 0.5) !important;
    font-style: italic;
}

label {
    color: #c89f3c !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
}

/* ---------------------------------------------------------------------------
   PANELS / CARDS / CONTAINERS
   --------------------------------------------------------------------------- */
.panel,
.card-panel,
.section,
.feature-card,
.info-card,
.stat-card,
.profile-card,
.class-card,
.child-card,
.product-card,
.package-card,
.option-card,
.upgrade-card,
.summary-card,
.detail-card {
    background: linear-gradient(180deg, #f4e8d4 0%, #e6d4b0 100%) !important;
    color: #2a1a0d !important;
    border: 3px solid #8b6914 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.panel h1, .panel h2, .panel h3, .panel h4, .panel h5,
.card-panel h1, .card-panel h2, .card-panel h3,
.section h1, .section h2, .section h3,
.feature-card h2, .feature-card h3, .feature-card h4,
.info-card h2, .info-card h3,
.stat-card h2, .stat-card h3,
.product-card h2, .product-card h3, .product-card h4,
.profile-card h2, .profile-card h3 {
    color: #5e4310 !important;
    text-shadow: none !important;
}

.panel p, .feature-card p, .info-card p, .stat-card p,
.product-card p, .profile-card p {
    color: #3d2614 !important;
    text-shadow: none !important;
}

/* Modal */
.modal-overlay {
    background: rgba(10, 1, 8, 0.92) !important;
}

.modal,
.modal-content,
.modal-body,
.dialog,
.popup-content {
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 220, 150, 0.08) 0, transparent 60%),
      linear-gradient(180deg, #f4e8d4 0%, #e6d4b0 100%) !important;
    color: #2a1a0d !important;
    border: 4px double #8b6914 !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 0 80px rgba(139, 69, 19, 0.15) !important;
    position: relative;
}

.modal h2, .modal h3, .modal h4,
.modal-content h2, .modal-content h3,
.dialog h2, .dialog h3 {
    color: #5e4310 !important;
    text-shadow: none !important;
    font-family: 'Cinzel', serif !important;
}

.modal p, .modal-content p {
    color: #3d2614 !important;
}

.modal-close {
    color: #5e4310 !important;
}

.modal-divider {
    color: #8b6914 !important;
}

/* Hero / banner */
.hero,
.hero-section,
.banner {
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 220, 150, 0.08) 0, transparent 60%),
      linear-gradient(180deg, #f4e8d4 0%, #e6d4b0 100%) !important;
    color: #2a1a0d !important;
    border: 4px double #8b6914 !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(139, 69, 19, 0.15) !important;
    position: relative;
}

.hero h1, .hero-section h1, .banner h1 {
    color: #5e4310 !important;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15) !important;
    /* Reset gradient-text trick that causes blurry shadows on transparent text */
    -webkit-text-fill-color: #5e4310 !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    background-image: none !important;
}

/* Same reset for any heading using gradient-text trick */
h1, h2, h3, h4, h5, h6 {
    -webkit-text-fill-color: currentColor !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

.hero p, .hero-section p, .banner p {
    color: #6b4423 !important;
}

/* Navigation */
nav {
    border-bottom: 3px double #8b6914 !important;
}

nav a {
    color: #c89f3c !important;
}
nav a:hover {
    color: #f4d03f !important;
}

.nav-logo, .logo {
    font-family: 'Cinzel', serif !important;
    font-weight: 900 !important;
    color: #f4d03f !important;
    letter-spacing: 3px !important;
    text-shadow: 2px 2px 0 #4a2f0e !important;
}

/* ---------------------------------------------------------------------------
   TABLES
   --------------------------------------------------------------------------- */
table {
    background: linear-gradient(180deg, #f4e8d4 0%, #e6d4b0 100%) !important;
    color: #2a1a0d !important;
    border: 3px solid #8b6914 !important;
    border-radius: 6px !important;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
}

thead, th {
    background: linear-gradient(180deg, #3d2614, #2a1a0d) !important;
    color: #f4d03f !important;
    font-family: 'Cinzel', serif !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none !important;
}

th, td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(139, 105, 20, 0.3) !important;
}

tr:hover td {
    background: rgba(244, 208, 63, 0.15);
}

/* ---------------------------------------------------------------------------
   STATS / BADGES / LEVEL
   --------------------------------------------------------------------------- */
.stat,
.stat-item,
.stat-box,
.stat-value,
.level-badge,
.streak-badge,
.coin-badge,
.gem-badge,
.xp-badge {
    font-family: 'Cinzel', serif !important;
}

.stat-value, .stat .value, .stat-number {
    color: #8b6914 !important;
    font-weight: 900 !important;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1) !important;
}

.stat-label, .stat .label {
    color: #6b4423 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-family: 'Cinzel', serif !important;
}

.level-badge {
    background: linear-gradient(180deg, #f4d03f, #c89f3c) !important;
    color: #1a0f08 !important;
    border: 2px solid #8b6914 !important;
    border-radius: 4px !important;
    padding: 6px 18px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
}

/* XP / progress bars */
.xp-bar-container,
.progress-bar,
.bar {
    background: #1a0f08 !important;
    border: 2px solid #8b6914 !important;
    border-radius: 6px !important;
}

.xp-bar-fill,
.progress-fill,
.bar-fill {
    background: linear-gradient(90deg, #c89f3c, #f4d03f, #c89f3c) !important;
}

/* ---------------------------------------------------------------------------
   COIN BALANCE / DROPDOWNS
   --------------------------------------------------------------------------- */
.dropdown,
.dropdown-menu,
.user-dropdown {
    background: linear-gradient(180deg, #f4e8d4, #e6d4b0) !important;
    color: #2a1a0d !important;
    border: 4px double #8b6914 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
}

.dropdown-header {
    background: linear-gradient(180deg, #3d2614, #2a1a0d) !important;
    color: #f4d03f !important;
    border-bottom: 2px solid #8b6914 !important;
}

.dropdown-header .user-full-name,
.dropdown-header h3,
.dropdown-header h4 {
    color: #f4d03f !important;
    font-family: 'Cinzel', serif !important;
}

.dropdown-item {
    color: #2a1a0d !important;
    font-family: 'IM Fell English', serif !important;
}

.dropdown-item:hover {
    background: rgba(244, 208, 63, 0.2) !important;
    color: #5e4310 !important;
}

.dropdown-item.sign-out {
    color: #8b1212 !important;
}

.dropdown-balance {
    background: linear-gradient(180deg, rgba(244, 208, 63, 0.2), rgba(244, 208, 63, 0.05)) !important;
    border-bottom: 2px solid #8b6914 !important;
}

.balance-value, .coin-balance {
    color: #8b6914 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 900 !important;
}

/* ---------------------------------------------------------------------------
   FEATURE GRIDS / CATEGORY CARDS
   --------------------------------------------------------------------------- */
.feature,
.feature-item,
.benefit,
.benefit-item,
.category-item,
.skill-item {
    background: linear-gradient(180deg, #f4e8d4, #d9c69a) !important;
    color: #2a1a0d !important;
    border: 2px solid #8b6914 !important;
    border-radius: 6px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s !important;
}

.feature:hover,
.feature-item:hover,
.benefit:hover,
.category-item:hover {
    transform: translateY(-3px) !important;
    border-color: #c89f3c !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6) !important;
}

.feature h3, .feature h4,
.feature-item h3, .feature-item h4,
.benefit h3, .benefit h4 {
    color: #5e4310 !important;
    font-family: 'Cinzel', serif !important;
    text-shadow: none !important;
}

.feature p, .feature-item p, .benefit p {
    color: #3d2614 !important;
}

/* ---------------------------------------------------------------------------
   TOASTS / NOTIFICATIONS
   --------------------------------------------------------------------------- */
.toast,
.notification,
.alert {
    background: linear-gradient(180deg, #3d2614, #2a1a0d) !important;
    color: #f4e8d4 !important;
    border: 2px solid #8b6914 !important;
    font-family: 'Cinzel', serif !important;
    letter-spacing: 1px !important;
}

.toast.success, .alert-success {
    background: linear-gradient(180deg, #4a6b1f, #2f4a14) !important;
    border-color: #6dd47d !important;
}

.toast.error, .alert-error, .alert-danger {
    background: linear-gradient(180deg, #8b1212, #5e0e0e) !important;
    border-color: #d12424 !important;
}

.toast.info, .alert-info {
    background: linear-gradient(180deg, #c89f3c, #8b6914) !important;
    border-color: #f4d03f !important;
    color: #1a0f08 !important;
}

/* ---------------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------------- */
footer {
    border-top: 3px double #8b6914 !important;
    color: #c89f3c !important;
    font-family: 'IM Fell English', serif !important;
    font-style: italic !important;
}

footer a {
    color: #f4d03f !important;
}

/* ---------------------------------------------------------------------------
   ICONS / SCROLLBARS / MISC
   --------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a0f08;
}

::-webkit-scrollbar-thumb {
    background: #8b6914;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c89f3c;
}

/* Selection */
::selection {
    background: rgba(244, 208, 63, 0.4);
    color: #1a0f08;
}

/* ---------------------------------------------------------------------------
   HOME.HTML - hero/landing page specifics
   --------------------------------------------------------------------------- */
.hero-badge {
    background: linear-gradient(180deg, #f4d03f, #c89f3c) !important;
    color: #1a0f08 !important;
    border: 2px solid #8b6914 !important;
    border-radius: 4px !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 6px 18px !important;
}

.hero-subtitle {
    color: #5e4310 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
}

.hero-description {
    color: #3d2614 !important;
    font-family: 'IM Fell English', serif !important;
    font-size: 1.15rem !important;
}

.hero-stat .number,
.hero-stat .value {
    color: #8b6914 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15) !important;
}

.hero-stat .label {
    color: #6b4423 !important;
    font-family: 'Cinzel', serif !important;
    letter-spacing: 2px !important;
}

/* Sections on home page */
section {
    color: #f4e8d4;
}

section h2 {
    color: #f4d03f !important;
    text-shadow: 2px 2px 0 #1a0f08 !important;
    text-align: center;
}

.section-subtitle, section > p {
    color: #c89f3c !important;
    font-style: italic !important;
    font-family: 'IM Fell English', serif !important;
    text-align: center;
}

/* Category overview pills on home.html */
.category-pill,
.category-tag {
    background: linear-gradient(180deg, #f4e8d4, #d9c69a) !important;
    color: #2a1a0d !important;
    border: 2px solid #8b6914 !important;
    border-radius: 4px !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
}

/* "What you'll learn" / skills items */
.learn-item,
.skill-item,
.outcome-item {
    background: linear-gradient(180deg, #f4e8d4, #d9c69a) !important;
    color: #2a1a0d !important;
    border: 2px solid #8b6914 !important;
    border-radius: 6px !important;
}

.learn-item h3, .learn-item h4,
.skill-item h3, .skill-item h4,
.outcome-item h3, .outcome-item h4 {
    color: #5e4310 !important;
    text-shadow: none !important;
}

.learn-item p, .skill-item p, .outcome-item p {
    color: #3d2614 !important;
}

/* ---------------------------------------------------------------------------
   PLAYER-HOME.HTML - lobby specifics
   --------------------------------------------------------------------------- */
/* Tone down the cyan/green portal animation behind the parchment theme */
.portal-bg {
    opacity: 0.15 !important;
    filter: hue-rotate(180deg) sepia(0.8) saturate(2) !important;
}

.portal-ring, .portal-center {
    border-color: rgba(244, 208, 63, 0.6) !important;
}

/* Big play button */
.play-button, .btn-play {
    background: radial-gradient(ellipse at center, #f4d03f 0%, #c89f3c 50%, #8b6914 100%) !important;
    color: #1a0f08 !important;
    border: 3px solid #5e4310 !important;
    border-radius: 6px !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 900 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    box-shadow: 0 6px 0 #4a3309, 0 12px 30px rgba(244, 208, 63, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
}

.play-button:hover, .btn-play:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 9px 0 #4a3309, 0 16px 40px rgba(244, 208, 63, 0.6) !important;
}

/* ---------------------------------------------------------------------------
   INDEX.HTML - versus mode specifics
   --------------------------------------------------------------------------- */
.player-slot, .player-card {
    background: linear-gradient(180deg, #f4e8d4, #d9c69a) !important;
    color: #2a1a0d !important;
    border: 3px solid #8b6914 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.player-slot.active, .player-card.active,
.player-slot.current-turn, .player-card.current-turn {
    border-color: #f4d03f !important;
    box-shadow: 0 0 24px rgba(244, 208, 63, 0.7) !important;
}

.connection-status {
    font-family: 'Cinzel', serif !important;
    background: linear-gradient(180deg, #3d2614, #2a1a0d) !important;
    color: #f4e8d4 !important;
    border: 2px solid #8b6914 !important;
    letter-spacing: 1px !important;
}

.connection-status.connected {
    border-color: #6dd47d !important;
    color: #6dd47d !important;
}

.connection-status.disconnected {
    border-color: #d12424 !important;
    color: #d12424 !important;
}

/* ---------------------------------------------------------------------------
   DASHBOARD.HTML - charts/tables/empty states
   --------------------------------------------------------------------------- */
.dashboard-header h1 {
    color: #f4d03f !important;
    text-shadow: 2px 2px 0 #1a0f08 !important;
    text-align: center;
}

.dashboard-header p,
.dashboard-section h2 {
    text-align: center;
}

.dashboard-section {
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 220, 150, 0.06) 0, transparent 60%),
      linear-gradient(180deg, #f4e8d4 0%, #e6d4b0 100%) !important;
    color: #2a1a0d !important;
    border: 3px solid #8b6914 !important;
    border-radius: 6px !important;
    padding: 22px !important;
    margin-bottom: 22px !important;
}

.dashboard-section h2,
.section-header h2 {
    color: #5e4310 !important;
    text-shadow: none !important;
    font-family: 'Cinzel', serif !important;
}

.entity-card, .class-card, .child-card {
    background: linear-gradient(180deg, #fdf6e3, #f4e8d4) !important;
    color: #2a1a0d !important;
    border: 2px solid #8b6914 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s !important;
}

.entity-card:hover, .class-card:hover, .child-card:hover {
    transform: translateY(-3px) !important;
    border-color: #c89f3c !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4) !important;
}

.entity-card h3, .class-card h3, .child-card h3 {
    color: #5e4310 !important;
    text-shadow: none !important;
}

.empty-state {
    background: rgba(244, 232, 212, 0.05) !important;
    border: 2px dashed #8b6914 !important;
    border-radius: 6px !important;
    color: #c89f3c !important;
}

.empty-state h3 {
    color: #f4d03f !important;
}

.empty-state p {
    color: #c89f3c !important;
    font-style: italic;
}

.students-table {
    background: linear-gradient(180deg, #f4e8d4, #e6d4b0) !important;
}

.students-table td, .students-table th {
    color: #2a1a0d !important;
}

.students-table tr:hover td {
    background: rgba(244, 208, 63, 0.2) !important;
}

.role-badge {
    background: linear-gradient(180deg, #f4d03f, #c89f3c) !important;
    color: #1a0f08 !important;
    border: 1px solid #8b6914 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
}

.accuracy-badge {
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
}

.login-screen {
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 220, 150, 0.08) 0, transparent 60%),
      linear-gradient(180deg, #f4e8d4 0%, #e6d4b0 100%) !important;
    color: #2a1a0d !important;
    border: 4px double #8b6914 !important;
    padding: 40px !important;
}

.login-screen h1 {
    color: #5e4310 !important;
    text-shadow: none !important;
}

.login-tab {
    background: linear-gradient(180deg, #3d2614, #2a1a0d) !important;
    color: #f4e8d4 !important;
    border: 2px solid #8b6914 !important;
    font-family: 'Cinzel', serif !important;
}

.login-tab.active {
    background: linear-gradient(180deg, #f4d03f, #c89f3c) !important;
    color: #1a0f08 !important;
}

/* ---------------------------------------------------------------------------
   MARKETPLACE.HTML - product cards
   --------------------------------------------------------------------------- */
.product-card,
.package-card,
.hint-package {
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 220, 150, 0.06) 0, transparent 60%),
      linear-gradient(180deg, #f4e8d4 0%, #e6d4b0 100%) !important;
    color: #2a1a0d !important;
    border: 3px solid #8b6914 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(139, 69, 19, 0.08) !important;
}

.product-card:hover,
.package-card:hover {
    transform: translateY(-4px) !important;
    border-color: #c89f3c !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6) !important;
}

.product-card h3, .product-card h4,
.package-card h3, .package-card h4 {
    color: #5e4310 !important;
    font-family: 'Cinzel', serif !important;
    text-shadow: none !important;
}

.product-price, .package-price, .coin-cost {
    color: #8b6914 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 900 !important;
}

.product-description, .package-description {
    color: #3d2614 !important;
}

/* ---------------------------------------------------------------------------
   DASHBOARD: Personal Profile Panel
   --------------------------------------------------------------------------- */
.personal-profile-panel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 220, 150, 0.1) 0, transparent 60%),
      linear-gradient(180deg, #f4e8d4 0%, #e6d4b0 100%);
    color: #2a1a0d;
    border: 4px double #8b6914;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(139, 69, 19, 0.1);
    position: relative;
}

.personal-profile-panel::before,
.personal-profile-panel::after {
    content: '❦';
    position: absolute;
    color: #8b6914;
    font-size: 1.4rem;
    top: 10px;
}
.personal-profile-panel::before { left: 14px; }
.personal-profile-panel::after { right: 14px; }

.pp-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #d12424, #8b1212);
    border: 3px solid #5e1010;
    color: #f4d03f;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    flex-shrink: 0;
}

.pp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-info {
    min-width: 0;
}

.pp-name-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.pp-name-row h2 {
    font-family: 'Cinzel', serif !important;
    font-weight: 900 !important;
    color: #5e4310 !important;
    text-shadow: none !important;
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: 1px;
}

.pp-role-badge {
    background: linear-gradient(180deg, #f4d03f, #c89f3c);
    color: #1a0f08;
    border: 2px solid #8b6914;
    border-radius: 4px;
    padding: 4px 14px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pp-email {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: #6b4423;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.pp-meta {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    color: #8b6914;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pp-stats {
    display: flex;
    gap: 18px;
    flex-shrink: 0;
}

.pp-stat {
    text-align: center;
    min-width: 90px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fdf6e3, #f4e8d4);
    border: 2px solid #8b6914;
    border-radius: 6px;
}

.pp-stat .value {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.6rem;
    color: #8b6914;
    line-height: 1;
}

.pp-stat .label {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    color: #6b4423;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

@media (max-width: 720px) {
    .personal-profile-panel {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }
    .pp-name-row {
        justify-content: center;
    }
    .pp-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
}
