/*!
 * TOP Forever - Current UI Design System for LightEngine
 * Visual layer only. Loaded last in templates/core/header.tpl.
 * Textures derived from the ProjectT "Current" client UI (texture/ui/new):
 *   ui/frame.png      <- ingamemall.png  (window frame ring, 9-slice: 6 8 5 8)
 *   ui/titlebar.png   <- ingamemall.png  (navy window title bar)
 *   ui/slot.png       <- ingamemall.png  (item slot 32x32)
 *   ui/btn*.png       <- marketplace_widgets.png (glossy button, 4 states, 9-slice: 6)
 *   ui/wood.webp      <- frmCharInfo.png (frame wood, mirrored seamless tile)
 * Palette sampled from those textures and from the in-game Inventory window.
 */

/* ==========================================================================
   0. Fonts (self-hosted, SIL OFL 1.1 - see assets/fonts/topforever/)
   ========================================================================== */
@font-face { font-family: "TF Lato"; src: url("../fonts/topforever/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TF Lato"; src: url("../fonts/topforever/lato-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "TF Lato"; src: url("../fonts/topforever/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TF Lato"; src: url("../fonts/topforever/lato-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "TF Alegreya SC"; src: url("../fonts/topforever/alegreya-sc-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TF Alegreya SC"; src: url("../fonts/topforever/alegreya-sc-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
    /* surfaces - sampled from Current UI */
    --tf-bg:            #0F0C09;   /* page */
    --tf-bg-2:          #15100C;
    --tf-frame:         #150E09;   /* window outer frame */
    --tf-wood:          #2C2017;   /* frame wood */
    --tf-wood-2:        #21150D;
    --tf-surface:       #1D1712;   /* panel body */
    --tf-surface-2:     #241C16;
    --tf-inner:         #2D2621;   /* inventory inner panel */
    --tf-slot:          #241D18;
    --tf-line:          #3A2D21;   /* dividers */
    --tf-line-soft:     rgba(148, 112, 68, .18);

    /* metal */
    --tf-bronze:        #74533A;
    --tf-bronze-2:      #947044;
    --tf-tab:           #7C5F27;   /* active tab (Equip) */
    --tf-gold:          #D4A653;
    --tf-gold-light:    #F5D58A;

    /* navy title bars / blue buttons */
    --tf-navy-0:        #0A142B;
    --tf-navy-1:        #172E48;
    --tf-navy-2:        #203D5D;
    --tf-blue:          #0A78A8;
    --tf-blue-dark:     #014163;

    /* text */
    --tf-text:          #F1E5CA;
    --tf-text-body:     #E2D5BA;
    --tf-text-muted:    #AFA28E;
    --tf-text-dim:      #85796A;
    --tf-parchment:     #CDB183;

    /* state */
    --tf-success:       #65B96F;
    --tf-danger:        #D0563F;   /* lighter than close-button red #A82A08 for text contrast */
    --tf-danger-deep:   #A82A08;
    --tf-warning:       #E0AE4A;
    --tf-info:          #5AA9D6;

    /* typography */
    --tf-font-body:     "TF Lato", "Lato", "Segoe UI", Roboto, Arial, sans-serif;
    --tf-font-display:  "TF Alegreya SC", "Alegreya SC", Georgia, "Times New Roman", serif;
    --tf-fs-xs:         .75rem;
    --tf-fs-sm:         .875rem;
    --tf-fs-md:         1rem;
    --tf-fs-lg:         1.125rem;
    --tf-fs-xl:         clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
    --tf-fs-2xl:        clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem);

    /* spacing */
    --tf-space-1: 4px;  --tf-space-2: 8px;  --tf-space-3: 12px; --tf-space-4: 16px;
    --tf-space-5: 24px; --tf-space-6: 32px; --tf-space-7: 48px; --tf-space-8: 72px;
    --tf-pad:     20px;          /* panel padding */

    /* shape & depth */
    --tf-radius-sm: 3px;
    --tf-radius:    5px;
    --tf-radius-pill: 999px;
    --tf-shadow-1: 0 2px 6px rgba(0, 0, 0, .45);
    --tf-shadow-2: 0 10px 28px rgba(0, 0, 0, .55);
    --tf-inset:    inset 0 2px 5px rgba(0, 0, 0, .65);

    /* sizes */
    --tf-header-h: 72px;
    --tf-btn-h:    44px;
    --tf-input-h:  44px;
    --tf-container: 1240px;

    /* layers */
    --tf-z-header: 100;
    --tf-z-sticky: 1000;
    --tf-z-dropdown: 1010;

    /* motion */
    --tf-ease: cubic-bezier(.2, .7, .2, 1);
    --tf-fast: .15s;
    --tf-med:  .25s;

    /* textures */
    --tf-tex-frame:    url("../img/topforever/ui/frame.png");
    --tf-tex-title:    url("../img/topforever/ui/titlebar.png");
    --tf-tex-slot:     url("../img/topforever/ui/slot.png");
    --tf-tex-btn:      url("../img/topforever/ui/btn.png");
    --tf-tex-btn-h:    url("../img/topforever/ui/btn-hover.png");
    --tf-tex-btn-a:    url("../img/topforever/ui/btn-active.png");
    --tf-tex-btn-d:    url("../img/topforever/ui/btn-disabled.png");
    --tf-tex-wood:     url("../img/topforever/ui/wood.webp");

    /* gradients */
    --tf-grad-panel:  linear-gradient(180deg, #241C16 0%, #1B1511 100%);
    --tf-grad-gold:   linear-gradient(180deg, #F2CF7E 0%, #D4A653 45%, #A37A33 100%);
    --tf-grad-tab:    linear-gradient(180deg, #A9853C 0%, #7C5F27 55%, #5E4519 100%);
    --tf-grad-navy:   linear-gradient(180deg, #203D5D 0%, #172E48 55%, #0A142B 100%);

    /* bootstrap 5 bridge */
    --bs-body-color: var(--tf-text-body);
    --bs-body-bg: var(--tf-bg);
    --bs-border-color: var(--tf-line);
    --bs-link-color: var(--tf-gold);
    --bs-link-hover-color: var(--tf-gold-light);
    --bs-link-color-rgb: 212, 166, 83;
    --bs-link-hover-color-rgb: 245, 213, 138;
    --bs-secondary-color: var(--tf-text-muted);

    /* legacy theme variables re-pointed to the Current palette */
    --body-color: var(--tf-bg);
    --core-color: var(--tf-frame);
    --title-color: var(--tf-text);
    --text-color: var(--tf-gold);
    --menu-dropdown: var(--tf-surface);
    --button-hover: var(--tf-gold);
    --theme-color: var(--tf-gold);
    --theme-color2: var(--tf-gold-light);
    --main-degrade: var(--tf-grad-navy);
    --line-degrade: linear-gradient(90deg, rgba(148,112,68,0) 0%, var(--tf-bronze-2) 50%, rgba(148,112,68,0) 100%);
    --background-degrade: transparent;
    --card-degrade: var(--tf-grad-panel);
    --title-font: var(--tf-font-body);
    --body-font: var(--tf-font-body);
}
/* breakpoints (documented; CSS vars cannot be used in media queries):
   xs < 576 | sm 576 | md 768 | lg 992 (nav switch, matches main.js) | xl 1200 | xxl 1400 */

/* ==========================================================================
   2. Base
   ========================================================================== */
html { scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body.tf-theme {
    background: var(--tf-bg);
    background-image:
        radial-gradient(1200px 520px at 50% -120px, rgba(32, 61, 93, .28), transparent 70%),
        linear-gradient(180deg, var(--tf-bg-2) 0%, var(--tf-bg) 600px);
    background-repeat: no-repeat;
    color: var(--tf-text-body);
    font-family: var(--tf-font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.tf-theme h1, .tf-theme h2, .tf-theme h3, .tf-theme h4, .tf-theme h5, .tf-theme h6 {
    color: var(--tf-text);
    font-family: var(--tf-font-body);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}
.tf-theme h1, .tf-theme h2 { font-family: var(--tf-font-display); font-weight: 800; }
.tf-theme p, .tf-theme li, .tf-theme td, .tf-theme label { font-family: var(--tf-font-body); }
.tf-theme a { color: var(--tf-gold); text-decoration: none; transition: color var(--tf-fast) ease; }
.tf-theme a:hover { color: var(--tf-gold-light); }
.tf-theme hr { border-color: var(--tf-line); opacity: 1; }
.tf-theme ::selection { background: rgba(212, 166, 83, .35); color: #fff; }
.tf-theme img { max-width: 100%; }
.tf-theme .container { max-width: var(--tf-container); }
.tf-theme .text-muted, .tf-muted { color: var(--tf-text-muted) !important; }
.tf-mono { font-variant-numeric: tabular-nums; }

/* focus - visible for keyboard users only */
.tf-theme a:focus-visible,
.tf-theme button:focus-visible,
.tf-theme [tabindex]:focus-visible,
.tf-theme input:focus-visible,
.tf-theme select:focus-visible,
.tf-theme textarea:focus-visible {
    outline: 2px solid var(--tf-gold-light);
    outline-offset: 2px;
    box-shadow: none;
}
.tf-skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    padding: 10px 16px; border-radius: var(--tf-radius);
    background: var(--tf-gold); color: #1a1208 !important; font-weight: 700;
    transition: top var(--tf-fast) ease;
}
.tf-skip-link:focus { top: 12px; }

/* scrollbar */
.tf-theme { scrollbar-color: var(--tf-bronze) var(--tf-frame); }
.tf-theme ::-webkit-scrollbar { width: 10px; height: 10px; }
.tf-theme ::-webkit-scrollbar-track { background: var(--tf-frame); }
.tf-theme ::-webkit-scrollbar-thumb { background: var(--tf-bronze); border-radius: 6px; border: 2px solid var(--tf-frame); }

/* section rhythm */
.tf-theme .padding-top { padding-top: var(--tf-space-8); }
.tf-theme .padding-bottom { padding-bottom: var(--tf-space-8); }
.tf-theme main > section:last-of-type { padding-bottom: var(--tf-space-8); }

/* ==========================================================================
   3. Legacy decoration neutralised (visual only - JS hooks remain intact)
   ========================================================================== */
.tf-theme .site-preloader { display: none !important; }   /* blocked first paint until window.load */
.tf-theme .dl-cursor { display: none !important; }        /* custom cursor follower */
.tf-theme .page-header-shape,
.tf-theme .shape-wrap,
.tf-theme .whte-shape,
.tf-theme .gradiant-border { display: none !important; }
.tf-theme .default-btn > span:empty { display: none !important; }  /* main.js hover ripple span */
.tf-theme .header:before, .tf-theme .header:after { display: none !important; }
.tf-theme .wow { visibility: visible !important; animation: none !important; opacity: 1 !important; }  /* WOW.js scroll reveals off: no hidden content / CLS */
.tf-theme .latest-matches-lists, .tf-theme .latest-matches-list { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.tf-theme .grid-post > [class*="col-"] > h3 { margin: 0; padding: 28px 20px; text-align: center; color: var(--tf-text-muted); font-size: var(--tf-fs-md); border: 1px dashed var(--tf-line); border-radius: var(--tf-radius); background: rgba(29, 23, 18, .6); }
.tf-theme .grid-post:has(> [class*="col-"] > h3:only-child) { justify-content: center; }

/* ==========================================================================
   4. Shared component primitives
   ========================================================================== */
/* 4.1 Framed window (Current UI 9-slice ring) */
.tf-panel,
.tf-theme .match-details,
.tf-theme .classic-post,
.tf-theme .blog-page .post-card,
.tf-theme .sidebar-widget,
.tf-theme .author-box,
.tf-theme .panel,
.tf-theme .card,
.tf-theme .product-description .tab-content,
.tf-theme .post-card,
.tf-theme .team-item,
.tf-theme .product-card,
.tf-theme .accordion-item {
    position: relative;
    background: var(--tf-grad-panel);
    border-style: solid;
    border-color: var(--tf-wood);
    border-width: 6px 8px 5px;
    border-image: var(--tf-tex-frame) 6 8 5 8 / 6px 8px 5px round;
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow-2), inset 0 0 0 1px rgba(148, 112, 68, .16);
    color: var(--tf-text-body);
}
.tf-theme .match-details,
.tf-theme .classic-post,
.tf-theme .sidebar-widget,
.tf-theme .author-box,
.tf-theme .panel,
.tf-theme .card,
.tf-theme .product-description .tab-content { padding: var(--tf-pad); margin-bottom: var(--tf-space-5); }

/* 4.2 Window title bar */
.tf-theme .sidebar-widget > .widget-title,
.tf-theme .panel-heading,
.tf-theme .card-header,
.tf-theme .modal-header,
.tf-theme .comment-title {
    background: var(--tf-tex-title) center / 100% 100% no-repeat, var(--tf-grad-navy);
    border: 0;
    border-radius: 0;
    color: var(--tf-text);
    font-family: var(--tf-font-body);
    font-weight: 900;
    font-size: var(--tf-fs-sm);
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #000;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: var(--tf-space-3);
    padding: 8px var(--tf-pad);
}
.tf-theme .sidebar-widget > .widget-title { margin: calc(-1 * var(--tf-pad)) calc(-1 * var(--tf-pad)) var(--tf-pad); }
.tf-theme .sidebar-widget > .widget-title h3,
.tf-theme .sidebar-widget > .widget-title h4,
.tf-theme .panel-heading .panel-title,
.tf-theme .panel-heading h3,
.tf-theme .card-header h3,
.tf-theme .card-header h4 {
    margin: 0; padding: 0; font-size: inherit; font-weight: inherit; letter-spacing: inherit;
    color: inherit; font-family: inherit; text-transform: inherit;
}
.tf-theme .sidebar-widget > .widget-title h3:before,
.tf-theme .sidebar-widget > .widget-title h3:after { display: none; }
.tf-theme .panel > .panel-heading { margin: calc(-1 * var(--tf-pad)) calc(-1 * var(--tf-pad)) var(--tf-pad); }
.tf-theme .card > .card-header { margin: calc(-1 * var(--tf-pad)) calc(-1 * var(--tf-pad)) var(--tf-pad); }
.tf-theme .panel-heading-orange, .tf-theme .panel-heading-lgreen { background: var(--tf-tex-title) center / 100% 100% no-repeat, var(--tf-grad-navy) !important; }
.tf-theme .panel-body, .tf-theme .card-body { padding: 0; color: var(--tf-text-body); }
.tf-theme .comment-title { margin: 0 0 var(--tf-space-4); border-radius: var(--tf-radius-sm); }

/* 4.3 Item slot */
.tf-slot,
.tf-theme .product-card .product-thumb,
.tf-theme .cart-item .img-bg,
.tf-theme .pagination-wrap li a {
    background: var(--tf-tex-slot) center / 100% 100% no-repeat, var(--tf-slot);
}

/* 4.4 Chips / counters */
.tf-theme .BG-SPAN,
.tf-theme .post-category,
.tf-theme .badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px !important;
    border-radius: var(--tf-radius-pill);
    background: rgba(10, 20, 43, .85);
    border: 1px solid rgba(148, 112, 68, .55);
    color: var(--tf-gold-light);
    font-family: var(--tf-font-body);
    font-weight: 700;
    font-size: var(--tf-fs-xs);
    letter-spacing: .05em;
    line-height: 1.4;
    text-transform: uppercase;
}
.tf-theme .badge.bg-success, .tf-theme .badge.in-stock { color: #CDEFD1; border-color: rgba(101, 185, 111, .6); background: rgba(22, 52, 27, .9); }
.tf-theme .badge.bg-danger, .tf-theme .badge.out-stock { color: #F6C9BF; border-color: rgba(208, 86, 63, .6); background: rgba(70, 20, 10, .9); }
.tf-theme .badge.bg-warning, .tf-theme .badge.hot { color: #2A1C06; border-color: #A37A33; background: var(--tf-grad-gold); }
.tf-theme .badge.bg-info, .tf-theme .badge.bg-primary { color: #D9EEF9; border-color: rgba(90,169,214,.6); background: rgba(1, 65, 99, .9); }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.tf-theme .default-btn,
.tf-theme .btn,
.tf-theme .search-btn,
.tf-theme .btn-prince,
.tf-theme .btn-prince-r,
.tf-theme input[type="submit"],
.tf-theme button[type="submit"]:not(.btn-close):not(#popup-search-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--tf-btn-h);
    height: auto;
    width: auto;
    padding: 6px 22px;
    border-style: solid;
    border-width: 6px;
    border-color: var(--tf-blue);
    border-image: var(--tf-tex-btn) 6 fill / 6px stretch;
    border-radius: var(--tf-radius-sm);
    background: transparent;
    background-image: none;
    clip-path: none;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .55);
    color: #F5ECD4 !important;
    font-family: var(--tf-font-body);
    font-weight: 700;
    font-size: var(--tf-fs-sm);
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 1px 1px #00253A;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: filter var(--tf-fast) ease, transform var(--tf-fast) ease;
    overflow: visible;
}
.tf-theme .default-btn:before, .tf-theme .default-btn:after,
.tf-theme .btn:before, .tf-theme .btn:after { display: none !important; }
.tf-theme .default-btn:hover, .tf-theme .btn:hover, .tf-theme .search-btn:hover,
.tf-theme input[type="submit"]:hover, .tf-theme button[type="submit"]:not(.btn-close):not(#popup-search-button):hover {
    border-image-source: var(--tf-tex-btn-h);
    filter: brightness(1.08);
    color: #fff !important;
}
.tf-theme .default-btn:active, .tf-theme .btn:active, .tf-theme .search-btn:active { border-image-source: var(--tf-tex-btn-a); transform: translateY(1px); }
.tf-theme .default-btn:disabled, .tf-theme .btn:disabled, .tf-theme .btn.disabled, .tf-theme .default-btn.disabled {
    border-image-source: var(--tf-tex-btn-d); color: #9AA3A8 !important; text-shadow: none; cursor: not-allowed; filter: none; transform: none;
}

/* Gold - primary call to action (Current "active tab" metal) */
.tf-theme .tf-btn-gold,
.tf-theme .btn-warning {
    border-image: none;
    border: 1px solid #3A2810;
    background: var(--tf-grad-gold);
    color: #22170A !important;
    text-shadow: 0 1px 0 rgba(255, 236, 190, .45);
    box-shadow: inset 0 1px 0 rgba(255, 244, 214, .7), inset 0 -2px 0 rgba(80, 50, 10, .45), 0 2px 0 rgba(0, 0, 0, .55), 0 6px 18px rgba(212, 166, 83, .18);
}
.tf-theme .tf-btn-gold:hover, .tf-theme .btn-warning:hover { border-image: none; filter: brightness(1.07); color: #120C04 !important; }

/* Semantic variants */
.tf-theme .btn-success {
    border-image: none; border: 1px solid #12301A;
    background: linear-gradient(180deg, #5CAE66 0%, #3D8A49 50%, #2A6334 100%);
    box-shadow: inset 0 1px 0 rgba(220, 255, 220, .35), 0 2px 0 rgba(0, 0, 0, .55);
    text-shadow: 0 1px 1px #0E2A14;
}
.tf-theme .btn-danger {
    border-image: none; border: 1px solid #3B0F04;
    background: linear-gradient(180deg, #C9512F 0%, #A82A08 55%, #7A1E05 100%);
    box-shadow: inset 0 1px 0 rgba(255, 210, 190, .3), 0 2px 0 rgba(0, 0, 0, .55);
    text-shadow: 0 1px 1px #3B0F04;
}
.tf-theme .btn-success:hover, .tf-theme .btn-danger:hover { border-image: none; }
.tf-theme .btn-default, .tf-theme .btn-secondary, .tf-theme .btn-light, .tf-theme .btn-dark,
.tf-theme .btn-outline-secondary, .tf-theme .btn-outline-light {
    border-image: none; border: 1px solid var(--tf-bronze);
    background: linear-gradient(180deg, #3A2E24 0%, #2A2119 100%);
    box-shadow: inset 0 1px 0 rgba(255, 230, 190, .12), 0 2px 0 rgba(0, 0, 0, .55);
    text-shadow: 0 1px 1px #000;
}
.tf-theme .btn-default:hover, .tf-theme .btn-secondary:hover, .tf-theme .btn-light:hover, .tf-theme .btn-dark:hover { border-image: none; border-color: var(--tf-gold); }
.tf-theme .btn-xs, .tf-theme .btn-sm { min-height: 32px; padding: 3px 12px; font-size: var(--tf-fs-xs); border-width: 4px; }
.tf-theme .btn-xs.btn-success, .tf-theme .btn-xs.btn-danger, .tf-theme .btn-xs.btn-warning,
.tf-theme .btn-sm.btn-success, .tf-theme .btn-sm.btn-danger, .tf-theme .btn-sm.btn-warning { border-width: 1px; }
.tf-theme .btn-lg { min-height: 52px; padding: 8px 28px; font-size: var(--tf-fs-md); }
.tf-btn-block { width: 100% !important; }

/* Ghost (video trailer) */
.tf-btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: var(--tf-btn-h); padding: 4px 16px 4px 6px;
    color: var(--tf-text) !important; font-weight: 700; font-size: var(--tf-fs-sm);
    letter-spacing: .06em; text-transform: uppercase;
    border-radius: var(--tf-radius-pill);
    background: rgba(15, 12, 9, .55);
    border: 1px solid rgba(148, 112, 68, .55);
    transition: border-color var(--tf-fast) ease, background var(--tf-fast) ease;
}
.tf-btn-ghost:hover { border-color: var(--tf-gold); background: rgba(15, 12, 9, .8); color: var(--tf-gold-light) !important; }
.tf-play-icon {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: var(--tf-grad-navy);
    border: 1px solid rgba(148, 112, 68, .7);
}
.tf-play-icon svg { width: 13px; height: 13px; fill: var(--tf-gold-light); margin-left: 2px; }

/* ==========================================================================
   6. Forms
   ========================================================================== */
.tf-theme .form-control,
.tf-theme .form-select,
.tf-theme select,
.tf-theme textarea,
.tf-theme input[type="text"],
.tf-theme input[type="email"],
.tf-theme input[type="password"],
.tf-theme input[type="number"],
.tf-theme input[type="search"],
.tf-theme input[type="tel"],
.tf-theme input[type="url"],
.tf-theme input[type="date"] {
    min-height: var(--tf-input-h);
    padding: 9px 16px;
    border: 1px solid #4C3B2A;
    border-radius: 22px;
    background-color: #1A140F;
    box-shadow: var(--tf-inset);
    color: var(--tf-text);
    font-family: var(--tf-font-body);
    font-size: var(--tf-fs-md);
    line-height: 1.4;
    transition: border-color var(--tf-fast) ease, box-shadow var(--tf-fast) ease;
}
.tf-theme textarea, .tf-theme textarea.form-control { border-radius: var(--tf-radius); min-height: 120px; }
.tf-theme .form-control::placeholder, .tf-theme input::placeholder, .tf-theme textarea::placeholder { color: #8C8070; opacity: 1; }
.tf-theme .form-control:focus,
.tf-theme .form-select:focus,
.tf-theme select:focus,
.tf-theme textarea:focus,
.tf-theme input:focus {
    background-color: #1E1712;
    border-color: var(--tf-gold);
    box-shadow: var(--tf-inset), 0 0 0 3px rgba(212, 166, 83, .22);
    color: var(--tf-text);
    outline: none;
}
.tf-theme .form-control:disabled, .tf-theme .form-control[readonly] { background-color: #15110D; color: var(--tf-text-muted); }
.tf-theme .form-control:-webkit-autofill,
.tf-theme input:-webkit-autofill {
    -webkit-text-fill-color: var(--tf-text);
    -webkit-box-shadow: 0 0 0 40px #1A140F inset;
    caret-color: var(--tf-text);
}
.tf-theme select, .tf-theme .form-select, .tf-theme select.orderby {
    appearance: none; -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23D4A653' d='M3.2 5.6h9.6L8 11z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    cursor: pointer;
}
.tf-theme select[multiple] { background-image: none; border-radius: var(--tf-radius); padding-right: 16px; }
.tf-theme select option { background: var(--tf-surface); color: var(--tf-text); }
.tf-theme .form-label, .tf-theme .db-label, .tf-theme label:not(.form-check-label) {
    color: var(--tf-text-muted);
    font-size: var(--tf-fs-xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.tf-theme .form-check-label { color: var(--tf-text-body); font-size: var(--tf-fs-sm); }
.tf-theme .form-check-input {
    width: 1.15em; height: 1.15em; margin-top: .2em;
    background-color: #1A140F; border: 1px solid var(--tf-bronze-2); box-shadow: var(--tf-inset);
}
.tf-theme .form-check-input:checked { background-color: var(--tf-tab); border-color: var(--tf-gold); }
.tf-theme .form-check-input:focus { box-shadow: 0 0 0 3px rgba(212, 166, 83, .25); border-color: var(--tf-gold); }
.tf-theme .form-floating > label { color: var(--tf-text-muted); text-transform: none; letter-spacing: 0; font-size: var(--tf-fs-sm); }
.tf-theme .form-floating > .form-control { border-radius: var(--tf-radius); }
.tf-theme .input-group-text { background: var(--tf-inner); border-color: #4C3B2A; color: var(--tf-gold); }
.tf-theme .invalid-feedback, .tf-theme .text-danger { color: var(--tf-danger) !important; }
.tf-theme .is-invalid { border-color: var(--tf-danger) !important; }
/* legacy blog.css forces these with !important - match it at higher specificity */
.tf-theme .login-form .form-control,
.tf-theme .comment-form .form-control {
    height: auto !important;
    min-height: var(--tf-input-h) !important;
    border: 1px solid #4C3B2A !important;
    border-radius: 22px !important;
    background-color: #1A140F !important;
    box-shadow: var(--tf-inset) !important;
    color: var(--tf-text) !important;
}
.tf-theme .login-form .form-control:focus,
.tf-theme .comment-form .form-control:focus {
    border-color: var(--tf-gold) !important;
    box-shadow: var(--tf-inset), 0 0 0 3px rgba(212, 166, 83, .22) !important;
}
.tf-theme .comment-form textarea.form-control { border-radius: var(--tf-radius) !important; }
.tf-form-row { display: flex; align-items: center; justify-content: space-between; gap: var(--tf-space-3); flex-wrap: wrap; margin-bottom: var(--tf-space-4); }
.tf-form-row .form-check { margin: 0; }
.tf-theme .g-recaptcha { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.tf-theme .subscribe-form, .tf-theme .search-form { position: relative; }
.tf-theme .search-form .form-control { padding-right: 56px; }
.tf-theme .search-form .search-btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    min-height: 36px; width: 44px; padding: 0; border-width: 5px; border-radius: 18px;
}

/* ==========================================================================
   7. Tables
   ========================================================================== */
.tf-theme .table,
.tf-theme table.tournament-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--tf-text-body);
    --bs-table-border-color: var(--tf-line);
    --bs-table-striped-bg: rgba(255, 240, 210, .025);
    --bs-table-striped-color: var(--tf-text-body);
    --bs-table-hover-bg: rgba(212, 166, 83, .07);
    --bs-table-hover-color: var(--tf-text);
    --bs-table-active-bg: rgba(212, 166, 83, .1);
    width: 100%;
    color: var(--tf-text-body);
    border-color: var(--tf-line);
    margin-bottom: var(--tf-space-4);
    font-size: var(--tf-fs-sm);
}
.tf-theme .table > thead > tr > th,
.tf-theme .table > thead > tr > td,
.tf-theme table.tournament-table thead th {
    background: var(--tf-grad-navy);
    color: var(--tf-gold-light);
    font-weight: 900;
    font-size: var(--tf-fs-xs);
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--tf-bronze);
    padding: 12px 14px;
    white-space: nowrap;
    vertical-align: middle;
}
.tf-theme .table > tbody > tr > td,
.tf-theme .table > tbody > tr > th,
.tf-theme table.tournament-table tbody td,
.tf-theme table.tournament-table tbody th {
    padding: 10px 14px;
    border-color: var(--tf-line);
    vertical-align: middle;
    color: var(--tf-text-body);
    font-family: var(--tf-font-body);
}
.tf-theme .table > tbody > tr:nth-child(even) > * { background-color: rgba(255, 240, 210, .025); }
.tf-theme .table > tbody > tr:hover > * { background-color: rgba(212, 166, 83, .07); }
.tf-theme .table-responsive { border-radius: var(--tf-radius); -webkit-overflow-scrolling: touch; }
.tf-theme .table.borderless td, .tf-theme .table.borderless th { border: 0; }
.tf-theme .list-group-item { background: transparent; color: var(--tf-text-body); border-color: var(--tf-line); }

/* ==========================================================================
   8. Feedback: alerts, messages, empty states
   ========================================================================== */
.tf-theme .alert,
.tf-theme blockquote {
    position: relative;
    margin: 0 0 var(--tf-space-4);
    padding: 14px 18px 14px 20px;
    border: 1px solid var(--tf-line);
    border-left: 4px solid var(--tf-info);
    border-radius: var(--tf-radius);
    background: linear-gradient(90deg, rgba(10, 20, 43, .65), rgba(29, 23, 18, .9));
    color: var(--tf-text-body);
    font-size: var(--tf-fs-sm) !important;
    font-style: normal;
    line-height: 1.6;
    box-shadow: var(--tf-shadow-1);
}
.tf-theme blockquote:before, .tf-theme blockquote:after { display: none; }
.tf-theme blockquote span { color: inherit; font-family: var(--tf-font-body); text-transform: none; font-weight: 700; }
.tf-theme blockquote i.fas, .tf-theme blockquote i.fa { font-size: 20px !important; vertical-align: -3px; margin-right: 4px; }
.tf-theme blockquote .fa-triangle-exclamation { color: var(--tf-warning) !important; }
.tf-theme blockquote .fa-square-check { color: var(--tf-success) !important; }
.tf-theme blockquote:has(.fa-triangle-exclamation) { border-left-color: var(--tf-warning); }
.tf-theme blockquote:has(.fa-square-check) { border-left-color: var(--tf-success); }
.tf-theme blockquote:has(.fa-square-check) span { color: #BFE6C3 !important; }
.tf-theme .alert-warning, .tf-theme .alert.bg-warning { border-left-color: var(--tf-warning); background: linear-gradient(90deg, rgba(94, 69, 25, .55), rgba(29, 23, 18, .92)) !important; color: #F4DFAE !important; }
.tf-theme .alert-danger, .tf-theme .alert.bg-danger { border-left-color: var(--tf-danger); background: linear-gradient(90deg, rgba(120, 30, 8, .5), rgba(29, 23, 18, .92)) !important; color: #F6CFC4 !important; }
.tf-theme .alert-success, .tf-theme .alert.bg-success { border-left-color: var(--tf-success); background: linear-gradient(90deg, rgba(30, 80, 38, .5), rgba(29, 23, 18, .92)) !important; color: #CDEBCF !important; }
.tf-theme .alert-info, .tf-theme .alert.bg-info { border-left-color: var(--tf-info); color: #D3E9F5 !important; }
.tf-theme .alert a { color: var(--tf-gold-light); text-decoration: underline; text-underline-offset: 2px; }
.tf-theme .alert .btn-close { filter: invert(1) sepia(1) saturate(.4); opacity: .7; }

/* ==========================================================================
   9. Navigation widgets: pagination, tabs, lists, accordion
   ========================================================================== */
.tf-theme .pagination-wrap {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
    padding: 0; margin: var(--tf-space-5) 0; list-style: none;
}
.tf-theme .pagination-wrap li { margin: 0; display: block; }
.tf-theme .pagination-wrap li a {
    display: grid; place-items: center;
    min-width: 40px; height: 40px; padding: 0 8px;
    border: 0; border-radius: var(--tf-radius-sm);
    color: var(--tf-text-muted); font-weight: 700; font-size: var(--tf-fs-sm);
    clip-path: none;
    transition: color var(--tf-fast) ease, filter var(--tf-fast) ease;
}
.tf-theme .pagination-wrap li a:hover { color: var(--tf-gold-light); filter: brightness(1.25); }
.tf-theme .pagination-wrap li a.active {
    background: var(--tf-grad-tab); color: #FFF4D6;
    box-shadow: inset 0 0 0 1px #A9853C, 0 0 0 1px #2A1C06;
    text-shadow: 0 1px 0 #2A1C06;
}
.tf-theme .pagination-wrap li.disabled a, .tf-theme .pagination-wrap .disabled-link { pointer-events: none; opacity: .5; }

/* Tabs - modelled on the Inventory "Equip / Apps / Temp" tabs */
.tf-theme .tab-navigation,
.tf-theme .nav-tabs {
    display: flex; flex-wrap: wrap; gap: 4px;
    border: 0; padding: 0 4px; margin: 0;
    border-bottom: 1px solid var(--tf-bronze);
}
.tf-theme .tab-navigation li { margin: 0; }
.tf-theme .tab-navigation button,
.tf-theme .nav-tabs .nav-link {
    min-height: 36px; padding: 6px 18px;
    border: 1px solid #4A3A2A; border-bottom: 0;
    border-radius: var(--tf-radius) var(--tf-radius) 0 0;
    background: linear-gradient(180deg, #3B3026 0%, #2A2119 100%);
    color: var(--tf-text-muted);
    font-family: var(--tf-font-body); font-weight: 700; font-size: var(--tf-fs-xs);
    letter-spacing: .08em; text-transform: uppercase;
    transition: color var(--tf-fast) ease;
}
.tf-theme .tab-navigation button:before, .tf-theme .tab-navigation button:after { display: none; }
.tf-theme .tab-navigation button:hover, .tf-theme .nav-tabs .nav-link:hover { color: var(--tf-gold-light); }
.tf-theme .tab-navigation button.active,
.tf-theme .nav-tabs .nav-link.active {
    background: var(--tf-grad-tab); color: #FFF4D6; border-color: #A9853C;
    text-shadow: 0 1px 0 #2A1C06;
}
.tf-theme .tab-content { color: var(--tf-text-body); }
.tf-theme .tab-content > .tab-pane { background: transparent; border: 0; margin-top: 0; }
.tf-theme .tab-content .description { padding: 0; background: none; border: 0; }
.tf-theme .product-description .tab-content { border-top-left-radius: 0; }

/* Category / link lists (sidebar & account menus) */
.tf-theme .category-list { list-style: none; margin: 0; padding: 0; }
.tf-theme .category-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; margin: 0 0 4px;
    border-radius: var(--tf-radius-sm);
    background: rgba(45, 38, 33, .55);
    border: 1px solid transparent;
    color: var(--tf-text-body);
    font-size: var(--tf-fs-sm);
    transition: background var(--tf-fast) ease, border-color var(--tf-fast) ease;
}
.tf-theme .category-list li:hover { background: rgba(45, 38, 33, .95); border-color: var(--tf-line-soft); }
.tf-theme .category-list li a { color: var(--tf-text-body); flex: 1; font-weight: 700; }
.tf-theme .category-list li a:hover, .tf-theme .category-list li a.active { color: var(--tf-gold-light); }
.tf-theme .category-list li span { color: var(--tf-gold); font-weight: 700; background: transparent; }
.tf-theme .category-list li span.active { color: var(--tf-gold-light); }
.tf-theme .category-list li:has(a.active) { background: linear-gradient(90deg, rgba(124, 95, 39, .45), rgba(45, 38, 33, .55)); border-color: rgba(169, 133, 60, .5); }
.tf-theme .category-list hr { margin: 8px 0; }

/* Accordion */
.tf-theme .accordion { --bs-accordion-bg: transparent; --bs-accordion-color: var(--tf-text-body); --bs-accordion-border-color: transparent; --bs-accordion-btn-color: var(--tf-text); --bs-accordion-active-color: var(--tf-gold-light); --bs-accordion-active-bg: rgba(10,20,43,.6); --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(212,166,83,.25); }
.tf-theme .accordion-item { margin-bottom: var(--tf-space-3); overflow: hidden; }
.tf-theme .accordion-button { background: transparent; color: var(--tf-text); font-weight: 700; }
.tf-theme .accordion-button:not(.collapsed) { background: rgba(10, 20, 43, .6); color: var(--tf-gold-light); box-shadow: none; }
.tf-theme .accordion-button::after { filter: sepia(1) saturate(3) hue-rotate(5deg) brightness(1.1); }

/* ==========================================================================
   10. Header
   ========================================================================== */
.tf-theme .header {
    position: relative;
    z-index: var(--tf-z-header);
    height: auto;
    background: none;
}
.tf-theme .primary-header {
    position: relative;
    background-color: var(--tf-frame);
    background-image:
        linear-gradient(180deg, rgba(44, 32, 23, .92) 0%, rgba(21, 14, 9, .97) 100%),
        var(--tf-tex-wood);
    background-size: auto, 600px 100%;
    border-bottom: 1px solid #000;
    box-shadow: 0 1px 0 var(--tf-bronze), 0 2px 0 rgba(0,0,0,.6), 0 8px 24px rgba(0, 0, 0, .45);
}
.tf-theme .primary-header:after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 166, 83, .55) 20%, rgba(212, 166, 83, .55) 80%, transparent);
    pointer-events: none;
}
.tf-theme .primary-header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: var(--tf-space-4);
    min-height: var(--tf-header-h);
    padding: 0;
}
.tf-theme .primary-header .header-logo { max-width: none; padding: 0; flex: 0 0 auto; align-self: stretch; display: flex; align-items: flex-start; }
.tf-theme .primary-header .header-logo a { display: block; line-height: 0; position: relative; z-index: 2; }
.tf-theme .primary-header .header-logo img.logo {
    display: block;
    height: 104px; width: auto; max-width: none;
    margin-top: 4px; margin-bottom: -36px;   /* hangs below the bar like a game emblem */
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
    position: static;
}
/* homepage: the hero already shows the emblem - avoid duplicating it in the same composition */
.tf-page-index:has(.tf-hero) .header .primary-header .header-logo img.logo { visibility: hidden; }

/* desktop nav */
.tf-theme .header-menu-wrap { flex: 1 1 auto; display: block; position: static; background: none; padding: 0; width: auto; }
.tf-theme .header-menu-wrap > ul.nav-menu { display: flex; align-items: center; justify-content: center; justify-content: safe center; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; min-width: 0; }
.tf-theme .header-menu-wrap { min-width: 0; }
.tf-theme .header-menu-wrap ul li { display: block; position: relative; margin: 0; border: 0; }
.tf-theme .header-menu-wrap ul.nav-menu > li > a {
    display: flex; align-items: center; gap: 6px;
    margin: 0; padding: 9px 14px;
    border-radius: var(--tf-radius);
    color: var(--tf-text);
    font-family: var(--tf-font-body);
    font-weight: 700;
    font-size: var(--tf-fs-sm);
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 1px 1px #000;
    transition: color var(--tf-fast) ease, background var(--tf-fast) ease;
}
.tf-theme .header-menu-wrap ul li > a:before { display: none !important; }
.tf-theme .header-menu-wrap ul.nav-menu > li > a > span:empty { display: none; }  /* main.js appended span */
.tf-theme .header-menu-wrap ul.nav-menu > li:hover > a,
.tf-theme .header-menu-wrap ul.nav-menu > li:focus-within > a { color: var(--tf-gold-light); background: rgba(255, 230, 180, .05); }
.tf-theme .header-menu-wrap ul.nav-menu > li.active > a {
    color: #FFF4D6;
    background: var(--tf-grad-tab);
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .35), inset 0 0 0 1px #A9853C, 0 0 0 1px #2A1C06;
    text-shadow: 0 1px 0 #2A1C06;
}
.tf-theme .header-menu-wrap ul.nav-menu > li.dropdown_menu > a:after {
    content: ""; width: 0; height: 0; margin-left: 2px;
    border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
    opacity: .8;
}
/* dropdown panels */
.tf-theme .header-menu-wrap li ul {
    position: absolute; left: 50%; top: calc(100% + 8px);
    width: 230px; padding: 6px;
    transform: translate(-50%, 6px);
    background: var(--tf-grad-panel);
    border-style: solid; border-width: 6px 8px 5px;
    border-image: var(--tf-tex-frame) 6 8 5 8 / 6px 8px 5px round;
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow-2);
    opacity: 0; visibility: hidden;
    z-index: var(--tf-z-dropdown);
    transition: opacity var(--tf-med) var(--tf-ease), transform var(--tf-med) var(--tf-ease), visibility var(--tf-med);
}
.tf-theme .header-menu-wrap li ul:before {   /* hover bridge */
    content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}
.tf-theme .header-menu-wrap li:hover > ul,
.tf-theme .header-menu-wrap li:focus-within > ul { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.tf-theme .header-menu-wrap li li { display: block; padding: 0; border: 0; border-radius: var(--tf-radius-sm); }
.tf-theme .header-menu-wrap li li > a {
    display: block; padding: 8px 12px; border-radius: var(--tf-radius-sm);
    color: var(--tf-text-body); font-family: var(--tf-font-body); font-weight: 700;
    font-size: var(--tf-fs-sm); letter-spacing: .02em; text-transform: none; line-height: 1.3;
}
.tf-theme .header-menu-wrap li li > a:hover,
.tf-theme .header-menu-wrap li li > a:focus-visible { color: var(--tf-gold-light); background: rgba(124, 95, 39, .35); }
.tf-theme .header-menu-wrap li li.tf-menu-sep { border-top: 1px solid var(--tf-line); margin-top: 4px; padding-top: 4px; border-radius: 0; }
.tf-theme .dropdown-plus { display: none; }

/* right cluster */
.tf-theme .primary-header-inner .header-right {
    display: flex; align-items: center; gap: var(--tf-space-3);
    margin-left: 0; line-height: 1.2; flex: 0 0 auto;
}
.tf-theme .header-right .tf-account-menu { flex: 0 0 auto; }
.tf-theme .header-right .tf-account-menu .nav-menu > li > a {
    padding: 7px 14px; border: 1px solid var(--tf-bronze); background: rgba(10, 20, 43, .55);
    text-transform: none; letter-spacing: .02em; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tf-theme .header-right .tf-account-menu li ul { left: auto; right: 0; transform: translate(0, 6px); }
.tf-theme .header-right .tf-account-menu li:hover > ul,
.tf-theme .header-right .tf-account-menu li:focus-within > ul { transform: translate(0, 0); }
.tf-theme .header-right .default-btn { width: auto; height: auto; line-height: 1.2; padding: 4px 18px; min-height: 40px; }
.tf-theme .header-right .search-icon {
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 1px solid var(--tf-bronze); border-radius: 50%;
    background: rgba(10, 20, 43, .55); color: var(--tf-gold); font-size: 20px; cursor: pointer;
}
.tf-theme .header-right .search-icon:hover { color: var(--tf-gold-light); border-color: var(--tf-gold); }

/* server status chip (modelled on the minimap clock plate) */
.tf-status-chip {
    display: inline-flex; align-items: center; gap: 8px;
    height: 34px; padding: 0 12px;
    border-radius: var(--tf-radius);
    background: linear-gradient(180deg, #1A1410, #0E0B08);
    border: 1px solid #4A3A2A;
    box-shadow: var(--tf-inset), 0 1px 0 rgba(255, 230, 180, .06);
    color: var(--tf-text-muted);
    font-size: var(--tf-fs-xs);
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.tf-status-chip #timer { color: var(--tf-gold-light); }
.tf-status-chip .las { color: var(--tf-gold); font-size: 15px; }
.tf-status-sep { width: 1px; height: 16px; background: #4A3A2A; }
.tf-status-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--tf-danger);
    box-shadow: 0 0 0 2px rgba(208, 86, 63, .2);
    flex: 0 0 auto;
}
.is-online .tf-status-dot { background: var(--tf-success); box-shadow: 0 0 0 2px rgba(101, 185, 111, .22), 0 0 8px rgba(101, 185, 111, .6); }
.tf-status-chip.is-online .tf-status-label { color: #A9DDB0; }
.tf-status-chip.is-offline .tf-status-label { color: #EFA898; }

/* burger */
.tf-theme .mobile-menu-icon { display: none; margin: 0; }
.tf-theme .burger-menu {
    width: 44px; height: 40px; padding: 11px 10px;
    display: flex; flex-direction: column; justify-content: space-between;
    border: 1px solid var(--tf-bronze); border-radius: var(--tf-radius);
    background: rgba(10, 20, 43, .55);
    margin: 0;
}
.tf-theme .burger-menu .line-menu { display: block; width: 100%; height: 2px; background: var(--tf-gold-light); border-radius: 2px; transition: transform var(--tf-med) ease, width var(--tf-med) ease; }
.tf-theme .burger-menu .line-half { width: 60%; }
.tf-theme .burger-menu .first-line { align-self: flex-start; }
.tf-theme .burger-menu .last-line { align-self: flex-end; }
.tf-theme .burger-menu.menu-open { transform: none; }
.tf-theme .burger-menu.menu-open .line-menu { width: 100%; }

/* sticky header (cloned by main.js) */
.tf-theme .sticky-header { z-index: var(--tf-z-sticky); }
.tf-theme .sticky-header .primary-header { box-shadow: 0 1px 0 var(--tf-bronze), 0 10px 26px rgba(0, 0, 0, .6); }
.tf-theme .sticky-header .primary-header-inner { min-height: 60px; }
.tf-theme .sticky-header .primary-header .header-logo { align-items: center; }
.tf-theme .sticky-header .primary-header .header-logo img.logo { height: 52px; margin: 0; visibility: visible; }
.tf-theme .sticky-header.sticky-fixed-top { transition: transform .35s var(--tf-ease); }

/* stall search popup */
.tf-theme #popup-search-box { background: rgba(10, 8, 6, .92); }
.tf-theme #popup-search-box .box-inner-wrap input {
    background: #1A140F; border: 1px solid var(--tf-bronze); border-radius: 30px; color: var(--tf-text); box-shadow: var(--tf-inset);
}
.tf-theme #popup-search-box .box-inner-wrap button { color: var(--tf-gold); background: transparent; }

/* ==========================================================================
   11. Hero (homepage)
   ========================================================================== */
.tf-hero { position: relative; isolation: isolate; background: var(--tf-bg); }
.tf-hero__art {
    position: relative;
    height: clamp(380px, 66vh, 56.25vw);
    max-height: 860px;
    overflow: hidden;
}
.tf-hero__art img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 28%;
}
.tf-hero__shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(15, 12, 9, .55) 0%, rgba(15, 12, 9, 0) 14%),
        linear-gradient(0deg, var(--tf-bg) 0%, rgba(15, 12, 9, .86) 14%, rgba(15, 12, 9, .25) 38%, rgba(15, 12, 9, 0) 55%),
        radial-gradient(120% 70% at 50% 100%, rgba(15, 12, 9, .5) 0%, transparent 60%);
}
.tf-hero__content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    margin-top: calc(-1 * clamp(110px, 15vh, 170px));
    padding-bottom: var(--tf-space-5);
}
.tf-theme .tf-hero__eyebrow {
    margin: 0 0 -6px;
    color: var(--tf-gold-light);
    font-family: var(--tf-font-display);
    font-weight: 700;
    font-size: clamp(1rem, .9rem + .4vw, 1.3rem);
    letter-spacing: .32em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .9), 0 0 2px #000;
}
.tf-hero__logo { margin: 0; line-height: 0; }
.tf-hero__logo img {
    width: auto; height: clamp(170px, 26vh, 290px); max-width: 86vw; object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .7));
}
.tf-theme .tf-hero__tagline {
    margin: 4px 0 var(--tf-space-4);
    color: var(--tf-text);
    font-family: var(--tf-font-display);
    font-weight: 700;
    font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem);
    letter-spacing: .04em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .8);
}
.tf-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--tf-space-3); }
.tf-hero__actions .default-btn { min-height: 48px; padding: 8px 26px; font-size: var(--tf-fs-sm); }

/* ==========================================================================
   12. Server status panel (homepage)
   ========================================================================== */
.tf-status-section { position: relative; z-index: 2; padding: var(--tf-space-3) 0 0; }
.tf-status-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.tf-status-cell {
    display: flex; flex-direction: column; gap: 4px;
    padding: 16px 20px;
    border-right: 1px solid var(--tf-line);
    background: linear-gradient(180deg, rgba(45, 38, 33, .35), transparent);
}
.tf-status-cell:last-child { border-right: 0; }
.tf-status-cell--wide { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--tf-line); flex-direction: row; align-items: center; gap: 12px; padding: 10px 20px; }
.tf-status-cell__label { color: var(--tf-text-dim); font-size: var(--tf-fs-xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.tf-status-cell__value {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--tf-gold-light); font-size: var(--tf-fs-lg); font-weight: 900; font-variant-numeric: tabular-nums;
}
.tf-status-cell__value.is-online { color: #A9DDB0; }
.tf-status-cell__value.is-offline { color: #EFA898; }
.tf-status-cell__text { font-size: var(--tf-fs-sm); font-weight: 700; color: var(--tf-text-body); }

/* ==========================================================================
   13. Section headings (home)
   ========================================================================== */
.tf-theme .section-heading { margin-bottom: var(--tf-space-6) !important; }
.tf-theme .section-heading h3 {
    margin: 0 0 6px;
    color: var(--tf-gold);
    font-family: var(--tf-font-body);
    font-weight: 900;
    font-size: var(--tf-fs-xs);
    letter-spacing: .22em;
    text-transform: uppercase;
}
.tf-theme .section-heading h3:before, .tf-theme .section-heading h3:after { display: none; }
.tf-theme .section-heading h2 {
    margin: 0 0 10px;
    color: var(--tf-text);
    font-size: var(--tf-fs-2xl);
    line-height: 1.1;
    text-shadow: 0 2px 0 #000;
}
.tf-theme .section-heading h2 span { color: var(--tf-gold-light); background: none; -webkit-text-fill-color: currentColor; }
.tf-theme .section-heading p { max-width: 640px; margin: 0 auto; color: var(--tf-text-muted); }
.tf-theme .section-heading.text-center:after {
    content: ""; display: block; width: 180px; height: 9px; margin: 16px auto 0;
    background:
        radial-gradient(circle at 50% 50%, var(--tf-gold) 0 3px, transparent 3.5px),
        linear-gradient(90deg, transparent, var(--tf-bronze-2) 30%, var(--tf-bronze-2) 70%, transparent) center / 100% 1px no-repeat;
}

/* ==========================================================================
   14. Inner page header (banner from the key art)
   ========================================================================== */
.tf-theme .page-header,
.tf-theme .page-header.single,
.tf-theme .page-header.error404 {
    position: relative;
    display: block;
    height: auto;
    padding: 76px 0 52px;
    min-height: 0;
    background-color: var(--tf-bg);
    background-image:
        linear-gradient(90deg, rgba(15, 12, 9, .94) 0%, rgba(15, 12, 9, .82) 38%, rgba(15, 12, 9, .35) 75%, rgba(15, 12, 9, .5) 100%),
        linear-gradient(0deg, var(--tf-bg) 0%, rgba(15, 12, 9, 0) 45%),
        url("../img/topforever/banner-1680.webp");
    background-size: auto, auto, cover;
    background-position: center, center, center 22%;
    background-repeat: no-repeat;
    border-bottom: 1px solid #000;
    box-shadow: 0 1px 0 rgba(148, 112, 68, .45);
    overflow: hidden;
    text-align: left;
}
.tf-theme .page-header:before, .tf-theme .page-header:after { display: none; }
.tf-theme .page-header-info { text-align: left; max-width: 640px; padding: 0; margin: 0; }
.tf-theme .page-header-info h4 {
    margin: 0 0 8px;
    color: var(--tf-gold);
    font-family: var(--tf-font-body); font-weight: 900; font-size: var(--tf-fs-xs);
    letter-spacing: .22em; text-transform: uppercase;
}
.tf-theme .page-header-info h2 {
    margin: 0 0 10px;
    color: var(--tf-text);
    font-size: clamp(2.1rem, 1.6rem + 2vw, 3.3rem);
    line-height: 1.05;
    text-shadow: 0 2px 0 #000, 0 6px 20px rgba(0, 0, 0, .6);
    text-transform: none;
}
.tf-theme .page-header-info p { margin: 0; color: var(--tf-text-muted); font-size: var(--tf-fs-md); max-width: 560px; }

/* ==========================================================================
   15. Content wrappers used by inner pages
   ========================================================================== */
.tf-theme .blog-section, .tf-theme .cart-section, .tf-theme .match-details-section, .tf-theme .product-description { background: transparent; }
.tf-theme .match-details, .tf-theme .classic-post { padding: var(--tf-space-5); }
.tf-theme .match-details h3, .tf-theme .classic-post h3 { color: var(--tf-text); }
.tf-theme .post-details, .tf-theme .post-details p, .tf-theme .classic-post p { color: var(--tf-text-body); }
.tf-theme .post-details img { border-radius: var(--tf-radius); }
.tf-theme .description, .tf-theme .description-meta li { color: var(--tf-text-body); }
.tf-theme .description-meta li span { color: var(--tf-gold); font-weight: 700; }
.tf-theme .description-meta p { color: var(--tf-text); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: var(--tf-fs-sm); margin-bottom: 0; }
.tf-theme .author-box { display: flex; align-items: center; gap: var(--tf-space-4); margin-top: var(--tf-space-5); }
.tf-theme .author-box .author-thumb img { max-width: 72px; border-radius: var(--tf-radius); }
.tf-theme .author-box .author-info p { margin: 0; color: var(--tf-text-muted); font-size: var(--tf-fs-sm); }
.tf-theme .author-box .author-info strong { color: var(--tf-gold-light); }
.tf-theme .footer-contact { color: var(--tf-text-body); }

/* generic list rows (downloads, ranking, characters, transactions) */
.tf-theme .cart-header {
    margin: 0 0 6px; padding: 10px 14px !important;
    background: var(--tf-grad-navy);
    border: 1px solid #0A142B; border-bottom: 2px solid var(--tf-bronze);
    border-radius: var(--tf-radius-sm);
    color: var(--tf-gold-light);
    font-weight: 900; font-size: var(--tf-fs-xs); letter-spacing: .1em; text-transform: uppercase;
}
.tf-theme .cart-header > div { margin-bottom: 0 !important; color: inherit; }
.tf-theme .cart-body {
    margin: 0 0 8px; padding: 12px 6px !important;
    align-items: center;
    background: linear-gradient(180deg, rgba(45, 38, 33, .6), rgba(29, 23, 18, .85));
    border: 1px solid var(--tf-line) !important;
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow-1);
    transition: border-color var(--tf-fast) ease, background var(--tf-fast) ease;
}
.tf-theme .cart-body:hover { border-color: rgba(148, 112, 68, .6) !important; }
.tf-theme .cart-item { display: flex; align-items: center; gap: var(--tf-space-3); margin: 0; padding: 0; background: none; border: 0; }
.tf-theme .cart-item p, .tf-theme .cart-item h4 { margin: 0; color: var(--tf-text-body); font-size: var(--tf-fs-sm); }
.tf-theme .cart-item .img-bg, .tf-theme .cart-item .img-bg2 {
    width: 64px; height: 64px; min-width: 64px !important; max-width: 64px !important;
    padding: 10px; object-fit: contain; border: 0; border-radius: var(--tf-radius-sm);
}
.tf-theme .cart-content h3 { margin: 0 0 2px; font-size: var(--tf-fs-md); font-weight: 900; color: var(--tf-text); }
.tf-theme .cart-content h3 a { color: var(--tf-text); }
.tf-theme .cart-content h3 a:hover { color: var(--tf-gold-light); }
.tf-theme .cart-content p { margin: 0; color: var(--tf-text-muted); font-size: var(--tf-fs-sm); }
.tf-theme .cart-body .default-btn { white-space: nowrap; }

/* ==========================================================================
   16. Home: news cards
   ========================================================================== */
.tf-theme .latest-matches { position: relative; }
.tf-theme .latest-matches-list:before { display: none; }
.tf-theme .row.grid-post { row-gap: var(--tf-space-5); margin: 0 calc(-.5 * var(--bs-gutter-x, 1.5rem)); }  /* legacy blog.css: margin -15px overflowed narrow containers */
.tf-theme .grid-post > [class*="col-"] { padding-top: 0; padding-bottom: 0; }
.tf-theme .post-card { height: 100%; overflow: hidden; transition: transform var(--tf-med) var(--tf-ease), box-shadow var(--tf-med) ease; }
.tf-theme .post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(212, 166, 83, .3); }
.tf-theme .post-card .post-content-wrap { display: flex; flex-direction: column; height: 100%; padding: var(--tf-pad); background: none; }
.tf-theme .post-card .post-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 0 0 12px; padding: 0 0 10px; list-style: none;
    border-bottom: 1px solid var(--tf-line);
}
.tf-theme .post-card .post-meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; float: none !important; color: var(--tf-text-muted); font-family: var(--tf-font-body); font-weight: 700; font-size: var(--tf-fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.tf-theme .post-card .post-meta li i { color: var(--tf-gold); font-size: 15px; }
.tf-theme .post-card .post-content { flex: 1; }
.tf-theme .post-card .post-content h3 { margin: 0 0 8px; font-size: var(--tf-fs-lg); font-weight: 900; line-height: 1.3; }
.tf-theme .post-card .post-content h3 a { color: var(--tf-text); }
.tf-theme .post-card .post-content h3 a:hover { color: var(--tf-gold-light); }
.tf-theme .post-card .post-content p { margin: 0; color: var(--tf-text-muted); font-size: var(--tf-fs-sm); }
.tf-theme .post-card .post-footer { margin-top: 14px; padding: 0; border: 0; background: none; }
.tf-theme .post-card .post-footer .read-more {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--tf-gold); font-family: var(--tf-font-body); font-weight: 900; font-size: var(--tf-fs-xs);
    letter-spacing: .12em; text-transform: uppercase;
}
.tf-theme .post-card .post-footer .read-more:after { content: "\2192"; transition: transform var(--tf-fast) ease; }
.tf-theme .post-card .post-footer .read-more:hover { color: var(--tf-gold-light); }
.tf-theme .post-card .post-footer .read-more:hover:after { transform: translateX(3px); }
.tf-theme .post-card .post-footer .read-more:before { display: none; }

/* ==========================================================================
   17. Home: best players & mall carousels
   ========================================================================== */
.tf-theme .outside-spacing { padding: 0 4px; }
.tf-theme .team-carousel, .tf-theme .shop-carousel { padding: 4px 4px 8px; }
.tf-theme .team-item { overflow: hidden; text-align: center; background: var(--tf-grad-panel); }
.tf-theme .team-item .team-thumb {
    position: relative; padding: 20px 12px 0; height: 250px;
    display: flex; align-items: flex-end; justify-content: center;
    background:
        radial-gradient(60% 60% at 50% 60%, rgba(32, 61, 93, .7), transparent 72%),
        linear-gradient(180deg, rgba(10, 20, 43, .9), rgba(29, 23, 18, .2));
    border-bottom: 1px solid var(--tf-line);
}
.tf-theme .team-item .team-thumb img { max-height: 228px; width: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .6)); }
.tf-theme .team-item .team-content { position: relative; padding: 14px 12px 16px; background: none; clip-path: none; }
.tf-theme .team-item .team-content:before, .tf-theme .team-item .team-content:after { display: none; }
.tf-theme .team-item .team-content h3 { margin: 0 0 2px; font-size: var(--tf-fs-lg); font-weight: 900; }
.tf-theme .team-item .team-content h3 a { color: var(--tf-text); }
.tf-theme .team-item .team-content h3 a:hover { color: var(--tf-gold-light); }
.tf-theme .team-item .team-content h4 { margin: 0; color: var(--tf-gold); font-size: var(--tf-fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.tf-theme .product-card { overflow: hidden; height: 100%; }
.tf-theme .product-card .product-thumb {
    position: relative; display: grid; place-items: center;
    height: 168px; margin: 14px 14px 0; border-radius: var(--tf-radius-sm);
    background-color: var(--tf-slot);
}
.tf-theme .product-card .product-thumb img { width: 64px; height: 64px; object-fit: contain; image-rendering: auto; transform: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.tf-theme .product-card .product-thumb .badge { position: absolute; top: 8px; left: 8px; }
.tf-theme .product-card .product-thumb .default-btn {
    position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 8px);
    opacity: 0; min-height: 34px; padding: 2px 14px; font-size: var(--tf-fs-xs); border-width: 5px;
    transition: opacity var(--tf-med) ease, transform var(--tf-med) var(--tf-ease);
}
.tf-theme .product-card:hover .product-thumb .default-btn,
.tf-theme .product-card .product-thumb .default-btn:focus-visible { opacity: 1; transform: translate(-50%, 0); }
.tf-theme .product-card .product-info { padding: 12px 16px 16px; background: none; }
.tf-theme .product-card .product-inner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tf-theme .product-card .category { list-style: none; margin: 0; padding: 0; }
.tf-theme .product-card .category li a { color: var(--tf-text-dim); font-size: var(--tf-fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.tf-theme .product-card .rating { display: none !important; }   /* decorative fixed 5-star markup, not real data */
.tf-theme .product-card h3 { margin: 0 0 6px; font-size: var(--tf-fs-md); font-weight: 900; line-height: 1.3; }
.tf-theme .product-card h3 a { color: var(--tf-text); }
.tf-theme .product-card h3 a:hover { color: var(--tf-gold-light); }
.tf-theme .product-card .price { margin: 0; color: var(--tf-gold-light); font-size: var(--tf-fs-sm); font-weight: 900; letter-spacing: .04em; }

.tf-theme .swiper-nav {
    width: 40px; height: 40px; line-height: 38px; text-align: center;
    border-radius: 50%; border: 1px solid var(--tf-bronze);
    background: rgba(21, 14, 9, .92); color: var(--tf-gold); font-size: 18px;
    box-shadow: var(--tf-shadow-1); opacity: 1; z-index: 5;
    transition: color var(--tf-fast) ease, border-color var(--tf-fast) ease;
}
.tf-theme .swiper-nav:hover { color: var(--tf-gold-light); border-color: var(--tf-gold); background: var(--tf-grad-navy); }

/* ==========================================================================
   18. Ranking
   ========================================================================== */
.tf-page-rank .sidebar-widget.text-center { padding-top: var(--tf-space-4); }
.tf-theme .header-menu-wrap-r ul.nav-menu {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 0 var(--tf-space-4); padding: 0 0 0; list-style: none;
    border-bottom: 1px solid var(--tf-bronze);
}
.tf-theme .header-menu-wrap-r ul li { display: block; margin: 0; }
.tf-theme .header-menu-wrap-r ul li > a {
    display: block; margin: 0; padding: 9px 18px;
    border: 1px solid #4A3A2A; border-bottom: 0; border-radius: var(--tf-radius) var(--tf-radius) 0 0;
    background: linear-gradient(180deg, #3B3026 0%, #2A2119 100%);
    color: var(--tf-text-muted); font-family: var(--tf-font-body); font-weight: 700; font-size: var(--tf-fs-xs);
    letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
}
.tf-theme .header-menu-wrap-r ul li > a:before { display: none !important; }
.tf-theme .header-menu-wrap-r ul li > a:hover { color: var(--tf-gold-light); }
.tf-theme .header-menu-wrap-r ul li.active > a { background: var(--tf-grad-tab); color: #FFF4D6; border-color: #A9853C; text-shadow: 0 1px 0 #2A1C06; }
.tf-theme form .comment-title {
    background: none; min-height: 0; padding: 0; margin: 0 0 10px !important; text-shadow: none;
    color: var(--tf-gold); font-size: var(--tf-fs-xs); letter-spacing: .18em;
}
.tf-theme .form-inline > .d-flex.flex-column { align-items: center !important; }
.tf-theme .characters-filter label { margin: 0; }
.tf-page-rank .characters-filter select { min-width: 200px; }
.tf-theme .characters-filter.w-100 select { min-width: 0; }
.tf-theme .header-menu-wrap-r ul li { flex: 0 1 auto; }
@media (max-width: 575.98px) {
    .tf-theme .header-menu-wrap-r ul.nav-menu { flex-wrap: nowrap; justify-content: stretch; }
    .tf-theme .header-menu-wrap-r ul li { flex: 1 1 0; min-width: 0; }
    .tf-theme .header-menu-wrap-r ul li > a { padding: 9px 6px; text-align: center; white-space: normal; font-size: 11px; letter-spacing: .04em; height: 100%; display: flex; align-items: center; justify-content: center; }
    .tf-theme .characters-filter { flex-direction: column; align-items: stretch; width: 100%; }
    .tf-theme .characters-filter select { min-width: 0; width: 100%; }
}
.tf-theme .characters-filter { display: flex; flex-wrap: wrap; gap: var(--tf-space-3); justify-content: center; align-items: center; }
.tf-page-rank .cart-body { padding: 8px 6px !important; }
.tf-page-rank .cart-item > span:first-child {
    display: inline-grid; place-items: center; flex: 0 0 auto;
    width: 36px !important; height: 36px; border-radius: 50%;
    background: var(--tf-slot); border: 1px solid #4A3A2A;
    color: var(--tf-text-muted); font-weight: 900; font-size: var(--tf-fs-sm);
}
.tf-page-rank .cart-header + .cart-body { border-color: rgba(255, 215, 0, .55) !important; background: linear-gradient(90deg, rgba(124, 95, 39, .4), rgba(29, 23, 18, .85) 60%); }
.tf-page-rank .cart-header + .cart-body + .cart-body { border-color: rgba(192, 192, 192, .45) !important; background: linear-gradient(90deg, rgba(150, 150, 160, .18), rgba(29, 23, 18, .85) 60%); }
.tf-page-rank .cart-header + .cart-body + .cart-body + .cart-body { border-color: rgba(176, 120, 72, .5) !important; background: linear-gradient(90deg, rgba(116, 83, 58, .3), rgba(29, 23, 18, .85) 60%); }
.tf-page-rank .cart-header + .cart-body .cart-item > span:first-child { border-color: #FFD700; background: rgba(124, 95, 39, .5); }
.tf-theme .portrait { position: relative; width: 52px; height: 52px; flex: 0 0 auto; border-radius: var(--tf-radius-sm); background: var(--tf-tex-slot) center / 100% 100% no-repeat; overflow: hidden; }
.tf-theme .portrait .image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   19. Database & stalls
   ========================================================================== */
.tf-theme .database-item, .tf-theme .DB-ITL { color: var(--tf-text-body); }
.tf-theme .cart-body + hr { display: none; }
.tf-theme .DB-ITL { width: 100%; min-width: 110px; padding: 0 !important; margin: 0; }
.tf-theme .DB-ITL li {
    padding: 3px 0; margin: 0; gap: 8px; background: none !important; border: 0 !important;
    border-bottom: 1px dotted var(--tf-line) !important; border-radius: 0; font-size: var(--tf-fs-xs);
}
.tf-theme .DB-ITL li:last-child { border-bottom: 0 !important; }
.tf-theme .DB-ITL li a { color: var(--tf-text-dim); font-weight: 700; flex: 0 0 auto; }
.tf-theme .DB-ITL li span { color: var(--tf-gold-light); margin-left: auto; text-align: right; }
.tf-theme .DB-ITL li:empty { display: none; }
.tf-theme .sidebar-widget .search-form .form-control {
    height: auto; min-height: var(--tf-input-h); border: 1px solid #4C3B2A; border-radius: 22px;
    background-color: #1A140F; box-shadow: var(--tf-inset); color: var(--tf-text); padding-right: 56px;
}
.tf-theme .sidebar-widget .search-form .form-control:focus { border-color: var(--tf-gold); box-shadow: var(--tf-inset), 0 0 0 3px rgba(212, 166, 83, .22); }
.tf-theme .sidebar-widget .search-form .search-btn { height: 36px; top: 50%; right: 4px; width: 44px; }
.tf-theme .db-label { display: block; }

/* ==========================================================================
   20. Modal (login)
   ========================================================================== */
.tf-theme .modal-backdrop.show { opacity: .75; }
.tf-theme .modal-content {
    background: var(--tf-grad-panel);
    border-style: solid; border-width: 6px 8px 5px;
    border-image: var(--tf-tex-frame) 6 8 5 8 / 6px 8px 5px round;
    border-radius: var(--tf-radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .8);
    color: var(--tf-text-body);
    overflow: hidden;
}
.tf-theme .modal-header { justify-content: space-between; margin: 0; }
.tf-theme .modal-header .modal-title { margin: 0; color: var(--tf-text); font-size: var(--tf-fs-sm); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-family: var(--tf-font-body); }
.tf-modal-close {
    display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
    border: 1px solid #3B0F04; border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #D0563F, var(--tf-danger-deep) 70%);
    color: #FFE6DD; font-size: 16px; line-height: 1;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.tf-modal-close:hover { filter: brightness(1.15); }
.tf-theme .modal-body { padding: var(--tf-space-5); }
.tf-divider { display: flex; align-items: center; gap: 12px; margin: var(--tf-space-5) 0 var(--tf-space-3); color: var(--tf-text-dim); font-size: var(--tf-fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tf-divider:before, .tf-divider:after { content: ""; flex: 1; height: 1px; background: var(--tf-line); }
.tf-social-login { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--tf-radius); background: var(--tf-tex-slot) center / 100% 100% no-repeat; transition: filter var(--tf-fast) ease; }
.tf-social-login img { width: 28px; height: 28px; }
.tf-social-login:hover { filter: brightness(1.3); }

/* ==========================================================================
   21. Footer
   ========================================================================== */
.tf-theme .footer-section {
    position: relative;
    margin-top: var(--tf-space-7);
    padding: var(--tf-space-7) 0 0;
    background-color: var(--tf-frame);
    background-image:
        linear-gradient(180deg, rgba(21, 14, 9, .9) 0%, rgba(13, 9, 6, .98) 100%),
        var(--tf-tex-wood);
    background-size: auto, 600px 100%;
    border-top: 1px solid #000;
    box-shadow: 0 -1px 0 var(--tf-bronze), inset 0 1px 0 rgba(255, 230, 180, .04);
    color: var(--tf-text-muted);
}
.tf-theme .footer-section:before, .tf-theme .footer-section:after { display: none; }
.tf-theme .footer-items { row-gap: var(--tf-space-6); padding-bottom: var(--tf-space-6); }
.tf-theme .footer-item .brand img { width: 170px; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.tf-theme .footer-item .widget-title { margin: 0 0 var(--tf-space-4); padding: 0 0 10px; border-bottom: 1px solid var(--tf-line); background: none; }
.tf-theme .footer-item .widget-title h3 {
    margin: 0; color: var(--tf-gold-light);
    font-family: var(--tf-font-display); font-weight: 800; font-size: var(--tf-fs-lg); letter-spacing: .04em; text-transform: none;
}
.tf-theme .footer-item .widget-title h3:before, .tf-theme .footer-item .widget-title h3:after { display: none; }
.tf-theme .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tf-theme .footer-links li { margin: 0; padding: 0; line-height: 1.4; }
.tf-theme .footer-section .category-list li { margin-bottom: 4px; }
.tf-theme .footer-links li a { color: var(--tf-text-muted); font-size: var(--tf-fs-sm); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.tf-theme .footer-links li a:before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--tf-bronze-2); transition: background var(--tf-fast) ease; display: inline-block; position: static; }
.tf-theme .footer-links li a:hover { color: var(--tf-gold-light); }
.tf-theme .footer-links li a:hover:before { background: var(--tf-gold); }
.tf-theme .footer-section .category-list li { background: rgba(255, 230, 180, .03); padding: 7px 10px; font-size: var(--tf-fs-sm); }
.tf-theme .tf-rates-list li span { color: var(--tf-gold-light); font-variant-numeric: tabular-nums; }
.tf-theme .social-list { display: flex; gap: 8px; list-style: none; margin: var(--tf-space-4) 0 0; padding: 0; }
.tf-theme .social-list li { margin: 0; }
.tf-theme .social-list li a {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: var(--tf-radius-sm);
    background: var(--tf-tex-slot) center / 100% 100% no-repeat, var(--tf-slot);
    color: var(--tf-gold); font-size: 16px; border: 0;
    transition: color var(--tf-fast) ease, filter var(--tf-fast) ease;
}
.tf-theme .social-list li a:hover { color: var(--tf-gold-light); filter: brightness(1.35); background-color: var(--tf-slot); }
.tf-theme .copyright-wrap {
    padding: 16px 0; margin: 0;
    background: rgba(0, 0, 0, .45);
    border-top: 1px solid var(--tf-line);
}
.tf-theme .copyright-wrap:before { display: none; }
.tf-theme .copyright-wrap .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.tf-theme .copyright-wrap p { margin: 0; color: var(--tf-text-dim); font-size: var(--tf-fs-xs); letter-spacing: .03em; }
.tf-theme .copyright-wrap a { color: var(--tf-gold); }

/* back to top */
.tf-theme #scrollup .scroll-to-top, .tf-theme .scroll-to-top {
    width: 44px; height: 44px; line-height: 1;
    display: grid; place-items: center;
    border-radius: var(--tf-radius);
    border: 1px solid #3A2810;
    background: var(--tf-grad-tab); color: #FFF4D6; font-size: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, .35), var(--tf-shadow-1);
}
.tf-theme #scrollup .scroll-to-top:hover { filter: brightness(1.12); }

/* ==========================================================================
   22. Responsive
   ========================================================================== */
@media (min-width: 992px) {
    .tf-theme .header .header-menu-wrap:not(.tf-account-menu) { display: block !important; height: auto !important; }
    .tf-theme .header-menu-wrap ul li.account { display: none !important; }
}
@media (max-width: 1399.98px) {
    .tf-theme .header-menu-wrap ul.nav-menu > li > a { padding: 9px 11px; letter-spacing: .05em; }
    .tf-theme .primary-header-inner { gap: var(--tf-space-3); }
    .tf-theme .primary-header-inner .header-right { gap: var(--tf-space-2); }
    .tf-status-chip { gap: 6px; padding: 0 10px; }
}
@media (max-width: 1199.98px) {
    .tf-theme .header-menu-wrap ul.nav-menu > li > a { padding: 9px 9px; letter-spacing: .04em; }
    .tf-status-chip .tf-status-sep, .tf-status-chip .las, .tf-status-chip #timer { display: none; }
}
@media (max-width: 991.98px) {
    :root { --tf-header-h: 60px; }
    .tf-theme .primary-header .header-logo img.logo { height: 50px; margin: 0; }
    .tf-theme .primary-header .header-logo { align-items: center; }
    .tf-page-index:has(.tf-hero) .header .primary-header .header-logo img.logo { visibility: visible; }
    .tf-theme .mobile-menu-icon { display: block; }
    .tf-theme .header-right .tf-account-menu { display: none !important; }
    .tf-theme .header-right .tf-login-btn { display: none; }
    .tf-theme .header .header-menu-wrap:not(.tf-account-menu),
    .tf-theme .sticky-header .header-menu-wrap:not(.tf-account-menu) {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        max-height: calc(100vh - var(--tf-header-h));
        overflow-y: auto;
        padding: 10px 16px 16px;
        background: var(--tf-surface);
        border-top: 1px solid var(--tf-bronze);
        box-shadow: 0 18px 30px rgba(0, 0, 0, .7);
        z-index: var(--tf-z-dropdown);
    }
    .tf-theme .header-menu-wrap > ul.nav-menu { display: block; }
    .tf-theme .header-menu-wrap ul li { border-bottom: 1px solid var(--tf-line); }
    .tf-theme .header-menu-wrap ul li:first-child { border-top: 0; }
    .tf-theme .header-menu-wrap ul.nav-menu > li > a { padding: 14px 8px; border-radius: 0; font-size: var(--tf-fs-sm); }
    .tf-theme .header-menu-wrap ul.nav-menu > li.active > a { border-radius: var(--tf-radius-sm); }
    .tf-theme .header-menu-wrap ul.nav-menu > li.dropdown_menu > a:after { display: none; }
    .tf-theme .header-menu-wrap li ul {
        position: static; width: 100%; transform: none; opacity: 1; visibility: visible;
        display: none; padding: 0 0 8px 12px; border: 0; border-image: none; background: none; box-shadow: none;
    }
    .tf-theme .header-menu-wrap li ul:before { display: none; }
    .tf-theme .header-menu-wrap li:hover > ul, .tf-theme .header-menu-wrap li:focus-within > ul { transform: none; }
    .tf-theme .header-menu-wrap li li { border: 0; }
    .tf-theme .header-menu-wrap li li > a { padding: 10px 8px; color: var(--tf-text-muted); }
    .tf-theme .dropdown-plus {
        display: block; position: absolute; top: 4px; right: 0; width: 44px; height: 44px; cursor: pointer;
    }
    .tf-theme .dropdown-plus:before, .tf-theme .dropdown-plus:after { top: 21px; right: 14px; width: 14px; background-color: var(--tf-gold); }
    .tf-theme .header-menu-wrap ul li.account { display: block !important; }
    .tf-theme .header-menu-wrap ul li.tf-nav-login { padding: 14px 0 4px; border-bottom: 0; }
    .tf-theme .header-menu-wrap ul li.tf-nav-login .default-btn { width: 100%; }

    .tf-status-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tf-status-cell:nth-child(2) { border-right: 0; }
    .tf-status-cell:nth-child(n+3) { border-top: 1px solid var(--tf-line); }
    .tf-theme .page-header { padding: 56px 0 40px; background-image:
        linear-gradient(90deg, rgba(15, 12, 9, .92) 0%, rgba(15, 12, 9, .7) 100%),
        linear-gradient(0deg, var(--tf-bg) 0%, rgba(15, 12, 9, 0) 45%),
        url("../img/topforever/banner-900.webp"); }
}
@media (max-width: 767.98px) {
    :root { --tf-pad: 16px; }
    .tf-theme .padding-top { padding-top: var(--tf-space-7); }
    .tf-theme .padding-bottom { padding-bottom: var(--tf-space-7); }
    .tf-hero__art { height: clamp(300px, 52vh, 420px); }
    .tf-hero__art img { object-position: 52% 30%; }
    .tf-hero__content { margin-top: -96px; }
    .tf-hero__logo img { height: clamp(150px, 24vh, 200px); }
    .tf-hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
    .tf-hero__actions .default-btn, .tf-hero__actions .tf-btn-ghost { width: 100%; justify-content: center; }
    .tf-status-chip { display: none; }
    .tf-status-cell { padding: 12px 14px; }
    .tf-status-cell__value { font-size: var(--tf-fs-md); }
    .tf-status-cell--wide { flex-direction: column; align-items: flex-start; gap: 4px; }
    .tf-theme .page-header-info { max-width: none; }
    .tf-theme .cart-body > [class*="col-"] { margin-bottom: 6px; }
    .tf-theme .cart-body .default-btn { width: 100%; }
    .tf-page-downloads .cart-body > [class*="col-"] { flex: 0 0 50%; max-width: 50%; }
    .tf-page-downloads .cart-body > [class*="col-"]:first-child,
    .tf-page-downloads .cart-body > [class*="col-"]:has(.default-btn) { flex: 0 0 100%; max-width: 100%; }
    .tf-theme .cart-body > [class*="col-"]:has(> .cart-item > .default-btn) { flex: 0 0 100%; max-width: 100%; }
    .tf-theme .copyright-wrap .container { flex-direction: column; align-items: center; text-align: center; }
    .tf-theme .table { font-size: var(--tf-fs-xs); }
    .tf-theme .table > thead > tr > th, .tf-theme .table > tbody > tr > td { padding: 8px 10px; }
    .tf-theme .footer-items { text-align: left; }
    .tf-theme .match-details, .tf-theme .classic-post { padding: var(--tf-space-4); }
}
@media (max-width: 575.98px) {
    .tf-status-panel { grid-template-columns: 1fr 1fr; }
    .tf-theme .container { padding-left: 16px; padding-right: 16px; }
    .tf-theme .tab-navigation button, .tf-theme .header-menu-wrap-r ul li > a { padding: 8px 12px; }
    .tf-theme .g-recaptcha { transform-origin: center; }
}
@media (max-width: 360px) {
    .tf-theme .g-recaptcha > div { transform: scale(.9); transform-origin: left top; }
}
/* tables inside panels: scroll instead of breaking the layout */
@media (max-width: 991.98px) {
    .tf-theme .match-details table, .tf-theme .classic-post table, .tf-theme .panel table, .tf-theme .card table, .tf-theme .sidebar-widget table {
        display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap;
    }
}

/* ==========================================================================
   23. Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .tf-theme *, .tf-theme *:before, .tf-theme *:after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
}
