/* Enhanced CSS Reset for browser consistency (Normalize.css inspired) – läggs högst upp för att "rensa" defaults */
html {
    line-height: 1.15; /* 1 */
    -ms-text-size-adjust: 100%; /* 2 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased; /* För bättre text-rendering i Chrome/Edge */
    -moz-osx-font-smoothing: grayscale; /* För macOS-baserade browsers */
}

article,
aside,
footer,
header,
nav,
section {
    display: block;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

figcaption,
figure,
main { /* 1 */
    display: block;
}

figure {
    margin: 1em 40px;
}

hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
}

pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

a {
    background-color: transparent; /* 1 */
    -webkit-text-decoration-skip: objects; /* 2 */
}

abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
}

b,
strong {
    font-weight: inherit;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

dfn {
    font-style: italic;
}

mark {
    background-color: #ff0;
    color: #000;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

audio,
video {
    display: inline-block;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

img {
    border-style: none;
}

svg:not(:root) {
    overflow: hidden;
}

button,
input,
optgroup,
select,
textarea {
    font-family: sans-serif; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
}

button,
input { /* 1 */
    overflow: visible;
}

button,
select { /* 1 */
    text-transform: none;
}

button,
html [type="button"], /* 1 */
[type="reset"],
[type="submit"] {
    -webkit-appearance: button; /* 2 */
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
}

progress {
    display: inline-block; /* 1 */
    vertical-align: baseline; /* 2 */
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

details, /* 1 */
menu {
    display: block;
}

summary {
    display: list-item;
}

canvas {
    display: inline-block;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

/* Din ursprungliga CSS-kod börjar här – oförändrad */
/* Design2026.css - Modern, clean design for OddsDrops.se 2026 (Desktop-only version)
/* White background by default, with dark mode support via .dark-mode class
   Sans-serif fonts, subtle shadows and transitions for elegance
   Color scheme: Primary blue (#007BFF), secondary green (#28A745), red (#DC3545)
   Grid and Flexbox for layout - desktop optimized only
*/
/* CSS Variables for easy theming */
:root {
    --bg-color: #FFFFFF;
    --text-color: #333333;
    --card-bg: #F8F9FA;
    --border-color: #DEE2E6;
    --primary-color: #007BFF;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.dark-mode {
    --bg-color: #121212;
    --text-color: #EDEDED;
    --card-bg: #1E1E1E;
    --border-color: #333333;
    --primary-color: #4DA6FF;
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --warning-color: #FFEB3B;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.4);
}
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header */
header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}
/* Nav-meny (desktop only) */
.nav-menu {
    display: flex;
    align-items: center;
}
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}
.nav-menu a:hover {
    color: var(--primary-color);
}
/* Dropdown-menyer (desktop only) */
.dropdown {
    position: relative;
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    min-width: 200px;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 101;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.dropdown-menu li {
    margin: 0;
}
.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
}
.dropdown-menu a:hover {
    background: var(--primary-color);
    color: white;
}
/* Sök – kompakt med expanderande wrapper (Desktop-only) */
/* SÖKIKON – storlek på ikonen + knapp */
.search-btn {
    width: 60px;
    height: 60px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}
.search-btn i {
    font-size: 35px; /* ← ÄNDRA HÄR för att ändra bara ikonens storlek */
}
.search-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.search-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}
.search-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-hover);
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 300px;
}
.search-wrapper.hidden {
    display: none;
}
.search-wrapper.active {
    opacity: 1;
    transform: translateY(0);
}
.search-wrapper input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.search-page-select {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 18px 22px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9em;
}
#searchInput {
    padding: 8px 12px;
    width: 220px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9em;
}
#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-hover);
}
.search-suggestions div {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9em;
}
.search-suggestions div:hover {
    background: var(--primary-color);
    color: white;
}
.search-suggestions div:last-child {
    border-bottom: none;
}
.search-highlight {
    background-color: #ffff99;
    border: 2px solid #ffcc00;
    transition: background 2s;
}
/* Highlight vid sökträff */
.match.search-highlight {
    animation: highlightPulse 2s ease;
    border-left: 4px solid var(--primary-color) !important;
}
@keyframes highlightPulse {
    0% { background: rgba(0,123,255,0.1); }
    50% { background: rgba(0,123,255,0.2); }
    100% { background: transparent; }
}
/* Auth – kompakt med ikon (Desktop-only) */
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.9rem;
}
.auth-btn:hover {
    background: #0056b3;
}
.username {
    font-size: 0.9rem;
    color: var(--primary-color);
    white-space: nowrap;
}
/* Main Sections */
main {
    padding: 2rem 0;
}
.section {
    margin-bottom: 3rem;
}
.section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
/* Login Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    transition: var(--transition);
}
.modal-content {
    background: var(--card-bg);
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.change-indicator {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}
.up { background: var(--success-color); color: white; }
.down { background: var(--danger-color); color: white; }
.neutral { background: var(--warning-color); color: #333; }
/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.tool-card {
    text-align: center;
    padding: 2rem;
}
.tool-card input {
    margin: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
/* Betting Planner */
.planner-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.planner-table th, .planner-table td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}
.planner-table th {
    background: var(--primary-color);
    color: white;
}
/* Footer */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}
/* Match Cards */
.wrap {
    max-width: 100%;
    margin: 0 auto;
}
.match {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
    overflow: visible !important;
}
.match:hover {
    box-shadow: var(--shadow-hover);
}
.header-row {
    display: flex;
    align-items: center;
    position: relative;
    gap: 1rem;
    padding: 1rem;
}
.left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 40px;
    margin-right: 0.5rem;
}
.num {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1;
}
.teams {
    flex: 1;
    text-align: left;
}
.teams strong {
    display: block;
    font-size: 1.1rem;
}
.teams small {
    color: #666;
    font-size: 0.9rem;
}
.odds-container {
    display: flex;
    gap: 0.5rem;
    text-align: center;
    min-width: 200px;
}
.odds-cell {
    flex: 1;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}
.odds-cell .current {
    font-weight: bold;
    font-size: 1.1rem;
}
.odds-cell .start {
    font-size: 0.8rem;
    color: #888;
}
.bookmaker {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
}
/* Value-klasser */
.value-normal {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
}
.value-strong {
    background: var(--success-color);
    color: white;
}
.dark-mode .value-normal {
    background: rgba(40, 167, 69, 0.2);
}
.odds-cell.value-normal {
    background: rgba(40, 167, 69, 0.15) !important;
    border: 1px solid var(--success-color);
}
.odds-cell.value-strong {
    background: var(--success-color) !important;
    color: white !important;
}
.odds-cell.value-strong .bookmaker,
.odds-cell.value-strong .start {
    color: rgba(255,255,255,0.8);
}
/* Change-indikatorer */
.change, .change-small {
    position: absolute;
    top: 0;
    right: -0.5rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}
.up { background: var(--success-color); color: white; }
.down { background: var(--danger-color); color: white; }
.change-small { font-size: 0.6rem; right: 0; }
.odds-cell .change {
    position: static !important;
    margin-bottom: 4px;
    font-size: 0.8em;
    padding: 2px 6px;
}
.change-small {
    font-size: 0.75em;
    margin-bottom: 4px;
}
/* Expanded Tabell (KONSOLIDERAD) */
.expanded {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out !important;
    padding: 0 1rem !important;
    background: var(--bg-color) !important;
    border-top: 1px solid var(--border-color) !important;
}
[aria-expanded="true"] .expanded {
    max-height: 1200px !important;
    padding: 1.5rem !important;
}
#favorites .expanded {
    background: linear-gradient(to bottom, var(--card-bg), rgba(0,123,255,0.05)) !important;
}
.value-page .expanded {
    background: rgba(0,0,0,0.02) !important;
}
.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 10;
}
#favorites .close-btn {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
}
#favorites .close-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}
.bookies-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.85em;
}
.bookies-table th,
.bookies-table td {
    padding: 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.bookies-table th {
    background: var(--primary-color);
    color: white;
    font-size: 0.9rem;
}
.book-name {
    text-align: left !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}
.book-logo-small {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.value-bets-table {
    font-size: 0.85em;
    margin: 6px 0;
}
.value-bets-table th {
    font-size: 0.75em;
    padding: 5px 8px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.value-bets-table td {
    padding: 5px 8px !important;
}
.book-cell {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
}
.value-strong {
    color: #c62828 !important;
    font-weight: bold !important;
}
.value-normal {
    color: #2e7d32 !important;
    font-weight: 600 !important;
}
.kelly-cell {
    font-weight: bold;
    color: var(--primary-color);
}
/* Filter-knappar */
.filter-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9em;
}
.filter-btn.active,
.filter-btn:hover {
    background: #0056b3;
}
/* Active states för filter */
.value-active .odds-cell.value-normal,
.value-active .odds-cell.value-strong {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
.drop-active .change.down {
    box-shadow: 0 0 10px var(--danger-color);
}
/* Sport & Liga filter */
.sport-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-group label {
    font-weight: 600;
    color: #ddd;
}
.sport-select, .league-select {
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #222;
    color: white;
    cursor: pointer;
    min-width: 180px;
}
.sport-select:focus, .league-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}
/* Value-sidan – kompakt & override (desktop) */
.value-page .wrap {
    margin: 0;
    padding: 0;
}
.value-page .match {
    margin-bottom: 10px !important;
    border-radius: 8px;
    overflow: hidden;
}
.value-page .header-row {
    padding: 10px 14px !important;
    gap: 10px !important;
    align-items: center;
}
.value-page .num {
    font-size: 1.1rem !important;
    min-width: 35px;
}
.value-page .teams strong {
    font-size: 1rem !important;
}
.value-page .teams small {
    font-size: 0.85rem !important;
}
.value-page .value-summary {
    text-align: right;
    font-size: 0.85em;
    line-height: 1.2;
}
.value-page .value-count {
    font-weight: bold;
    color: var(--success-color);
    font-size: 1em;
}
.value-page .value-avg {
    color: #777;
    font-size: 0.8em;
}
.value-page .left-col {
    min-width: 35px !important;
}
.value-page .header-row {
    gap: 0.75rem !important;
}
/* No-matches */
.no-matches {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    color: #777;
    font-size: 1.1em;
}
.value-page .no-matches {
    background: rgba(0,0,0,0.03);
}
/* Prediction-summary */
.prediction-summary {
    font-size: 0.85em;
    color: var(--primary-color);
    text-align: right;
}
.prediction-summary small {
    display: block;
    color: #888;
    font-size: 0.8em;
}
/* Resultat-info för favorites */
.result-info {
    font-weight: bold;
    color: var(--success-color);
    font-size: 0.9em;
    text-align: center;
    margin-top: 0.5rem;
}
.value-summary {
    position: relative;
}
/* Favorit-stjärna */
.favorite-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    color: #ddd !important;
    padding: 0.25rem !important;
    transition: color 0.3s !important;
    align-self: flex-start !important;
    position: static !important;
}
.favorite-btn.active {
    color: #ffd700 !important;
}
.favorite-btn i.inactive {
    color: #ddd !important;
}
.favorite-btn.disabled {
    color: #888 !important;
    cursor: not-allowed !important;
}
/* OddsDrops-specifika (Desktop-only) */
.odds-container {
    gap: 6px !important;
}
.odds-cell {
    padding: 6px 4px !important;
    min-width: 60px;
}
.odds-cell .change {
    margin-bottom: 2px;
    font-size: 0.75em;
}
.odds-cell .current {
    font-size: 1.1em !important;
    font-weight: bold;
}
.odds-cell .start {
    font-size: 0.75em;
    color: #888;
    margin-top: 2px;
}
.odds-cell .bookmaker {
    font-size: 0.7em;
    margin-top: 2px;
    color: #666;
}
.bookies-table th {
    font-size: 0.8em;
    padding: 6px 8px !important;
}
.bookies-table td {
    padding: 6px 8px !important;
    text-align: center;
}
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.page-link {
    padding: 8px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}
.page-link:hover {
    background: var(--primary-color);
    color: white;
}
.page-link.active {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}
/* Planner */
.planner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.planner-table th,
.planner-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #444;
}
/* Risk warning & success messages */
.risk-warning {
    background: #ffeb3b;
    color: red;
    padding: 10px;
    border-radius: 5px;
}
.success-msg {
    background: green;
    color: white;
    padding: 10px;
    border-radius: 5px;
}
/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow: auto;
}
.modal-content {
    background-color: #1e1e1e;
    margin: 10% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: #fff;
}
.close {
    color: #aaa;
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: #fff;
}
/* Form styling i modal */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #ccc;
    font-weight: 500;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
}
.match-row {
    background: #252525;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}
.bookmaker-group select {
    padding: 8px;
    font-size: 14px;
}
.bookmaker-logo-small {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 3px;
}
.bookmaker-link {
    color: #4caf50;
    text-decoration: none;
}
.bookmaker-link:hover {
    text-decoration: underline;
}
/* Knapp-styling */
.btn-primary {
    background: #00b7eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.btn-primary:hover {
    background: #0099cc;
}
/* === MODERN MENY & AUTH FÖRBÄTTRINGAR 2026 (Desktop-only) === */
/* Ikoner i menyn */
.nav-menu ul li a i {
    margin-right: 8px;
    opacity: 0.85;
}
/* Lite större & luftigare meny */
.nav-menu ul {
    gap: 2.2rem;
}
.nav-menu a {
    font-size: 1.02rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
/* Hover-effekt med underlinje */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-menu a:hover::after {
    width: 100%;
}
/* User profile dropdown (konsoliderad & förbättrad) */
.user-profile {
    position: relative;
}
.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-light);
}
.user-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.user-btn i {
    font-size: 1.35rem;
}
/* Dropdown */
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    min-width: 220px;
    z-index: 200;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.user-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
.user-dropdown a:hover {
    background: var(--primary-color);
    color: white;
}
.user-dropdown hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}
.logout-link {
    color: var(--danger-color) !important;
    font-weight: 500;
}
.logout-link:hover {
    background: var(--danger-color) !important;
    color: white !important;
}
/* Login-knapp (ej inloggad) */
.auth-btn.login-btn {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-light);
}
.auth-btn.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
/* Dark mode förbättringar */
.dark-mode .user-btn {
    background: #4DA6FF;
}
.dark-mode .user-btn:hover {
    background: #3a8ce6;
}
.dark-mode .user-dropdown {
    background: #1E1E1E;
    border-color: #444;
}
/* === FIX FÖR SÖKRUTAN – INTE UTANFÖR SKÄRMEN LÄNGRE (Desktop-only) === */
.header-content {
    position: relative; /* Viktigt för absoluta barn */
}
.search-section {
    position: relative;
    margin-left: auto; /* Pushar sök till höger */
    z-index: 150;
}
.search-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: var(--shadow-hover);
    z-index: 300;
    min-width: 360px;
    max-width: 420px;
    opacity: 0;
    transform: translateY(-12px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.search-wrapper.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* === NY TWO-ROW HEADER LAYOUT 2026 (Desktop-only) === */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Logo större och snyggare */
.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}
/* Tema-knapp (sol/måne) */
.theme-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}
.theme-btn:hover {
    background: rgba(0,123,255,0.1);
}
/* Nav-menyn under (andra raden) */
.nav-menu {
    padding: 0.8rem 0;
}
.nav-menu ul {
    justify-content: center; /* centrerad meny */
    gap: 2.5rem;
}
/* Hamburger visas aldrig (desktop-only) */
.mobile-menu-btn {
    display: none;
}
/* ====================== EUROPATIPS - FÖRBÄTTRAD CSS 2026 ====================== */
.europatips-page {
    padding-top: 20px;
}
/* Match-kort – snyggare och mer premium */
.europatips-page .match {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}
.europatips-page .match:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}
/* Header-raden */
.europatips-page .header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}
.europatips-page .num {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--primary-color);
    width: 38px;
    text-align: center;
    flex-shrink: 0;
}
.europatips-page .teams {
    flex: 1;
}
.europatips-page .teams strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.3;
}
.europatips-page .teams small {
    color: #888;
    font-size: 0.85rem;
    margin-top: 2px;
}
/* Odds-celler på huvudraden */
.europatips-page .odds-container {
    display: flex;
    gap: 6px;
}
.europatips-page .odds-cell {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 8px 6px;
    width: 62px;
    text-align: center;
    font-size: 0.82rem;
    transition: all 0.25s ease;
    position: relative;
}
.europatips-page .odds-cell .current {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-color);
}
.europatips-page .odds-cell .start {
    font-size: 0.74rem;
    color: #888;
    margin-top: 1px;
}
.europatips-page .odds-cell .bookmaker {
    font-size: 0.65rem;
    color: #777;
    margin-top: 3px;
    text-transform: uppercase;
}
/* Value-markeringar */
.europatips-page .odds-cell.value-normal {
    background: rgba(255, 215, 0, 0.25) !important;
    border: 1px solid #ffd700;
}
.europatips-page .odds-cell.value-strong {
    background: #1e90ff !important;
    color: white !important;
    animation: valuePulse 2s infinite alternate;
}
@keyframes valuePulse {
    from { box-shadow: 0 0 8px #1e90ff; }
    to { box-shadow: 0 0 18px #1e90ff; }
}
/* Change-pilar */
.europatips-page .change {
    font-size: 0.78rem;
    font-weight: bold;
    margin-bottom: 4px;
}
.europatips-page .change.up { color: var(--success-color); }
.europatips-page .change.down { color: var(--danger-color); }
/* Expanded-delen – snygg och smidig animation */
.europatips-page .expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease-out, padding 0.45s ease-out;
    padding: 0 16px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}
.europatips-page .match[aria-expanded="true"] .expanded {
    max-height: 800px;
    padding: 18px 16px;
}
/* Tabell i expanded */
.europatips-page .bookies-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.europatips-page .bookies-table th {
    background: var(--primary-color);
    color: white;
    padding: 10px 6px;
    font-size: 0.82rem;
}
.europatips-page .bookies-table td {
    padding: 10px 6px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}
.europatips-page .book-name {
    text-align: left !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.europatips-page .book-logo-small {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
}
/* Close-knapp */
.europatips-page .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger-color);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
}
/* Filterknappar – snyggare */
.europatips-page .filter-btn {
    padding: 12px 28px;
    font-size: 1.02rem;
    font-weight: 600;
    border-radius: 8px;
    margin: 0 6px 20px 6px;
    transition: all 0.3s ease;
}
.europatips-page .filter-btn:hover {
    transform: translateY(-2px);
}
/* === LIVE TICKER i header === */
.live-ticker {
    background: linear-gradient(90deg, #1e2937, #334155);
    color: #67e8f9;
    font-size: 0.92em;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    height: 34px;
    line-height: 34px;
    border-radius: 6px;
    margin: 0 15px;
    flex: 1;
    max-width: 620px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.ticker-wrapper {
    display: flex;
    width: 200%;
    animation: ticker-scroll 35s linear infinite;
}
.ticker-content {
    display: inline-flex;
    padding-right: 40px;
}
.ticker-match {
    color: #f1f5f9;
    font-weight: 600;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Hover-paus (valfritt men snyggt) */
.live-ticker:hover .ticker-wrapper {
    animation-play-state: paused;
}
/* === STAPLADE LIVE-FAVORITER === */
.live-favorites-box {
    background: #1a1a2e;
    border: 2px solid #00ff9d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 255, 157, 0.2);
}
.live-favorites-box h3 {
    color: #00ff9d;
    margin-bottom: 15px;
}
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 15px;
}
.live-match-card {
    background: #16213e;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #334155;
}
.status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.status-badge.live { background: #ff2d55; color: white; }
.status-badge.finished { background: #00ff9d; color: #000; }
.status-badge.upcoming { background: #666; color: white; }
.live-score { color: #00ff9d; font-size: 1.3em; }
.final-score { color: #ddd; font-size: 1.2em; }
.live-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    font-size: 1.1em;
}
.live-teams .team {
    flex: 1;
}
.live-teams .score {
    text-align: center;
    min-width: 120px;
}
.live-score {
    color: #00ff9d;
    font-weight: bold;
    font-size: 1.35em;
}
/* === STAPLADE LIVE-FAVORITER (extra layout) === */
.live-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.live-stack-item {
    background: #1e2937;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #475569;
}
.live-stack-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85em;
}
.status {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.78em;
    font-weight: 700;
}
.status.live { background: #ef4444; color: white; }
.status.finished { background: #22c55e; color: #111827; }
.status.upcoming { background: #64748b; color: white; }
.live-stack-teams {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 8px 0;
}
.team-name {
    font-size: 1.1em;
    font-weight: 500;
    text-align: center;
    width: 100%;
}
.score-big {
    font-size: 1.65em;
    font-weight: bold;
    color: #67e8f9;
    margin: 4px 0;
}
.live-stack-source {
    text-align: center;
    font-size: 0.8em;
    color: #94a3b8;
}
.refresh-btn {
    background: #334155;
    color: #67e8f9;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
}
.refresh-btn:hover {
    background: #475569;
}
/* ==========================================================================
   GOAL SHOUTOUT – FUNGERAR BÅDE PÅ DESKTOP OCH MOBIL
   Desktop: stort och festligt
   Mobil: mindre, snyggt centrerad, täcker inte hela skärmen
   ========================================================================== */
/* DESKTOP (stort och tydligt) */
.goal-shoutout {
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, #00e676, #ffd700) !important;
    color: #000 !important;
    padding: 18px 40px !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 40px rgba(0, 230, 118, 0.7) !important;
    font-size: 1.7rem !important;
    font-weight: 900 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    white-space: nowrap !important;
    animation: goalPop 0.4s ease-out !important;
    pointer-events: none !important;
    max-width: 90% !important; /* säkerhet för stora skärmar */
    text-align: center !important;
}
.goal-shoutout .fa-futbol {
    font-size: 2.4rem !important;
}
#goal-text {
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4) !important;
}
@keyframes goalPop {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}
/* =============================================
   MOBIL – mycket mindre och snyggare
   ============================================= */
@media screen and (max-width: 1023px) {
    .goal-shoutout {
        top: 70px !important;
        padding: 10px 20px !important; /* ← minskade från 14/24 */
        font-size: 1.15rem !important; /* ← betydligt mindre än 1.35 */
        line-height: 1.35 !important; /* ← lägg till detta om du inte redan har det */
        gap: 8px !important;
        border-radius: 36px !important;
        max-width: 92% !important;
        max-height: 65vh !important; /* ← nyckel: begränsar maxhöjd */
        overflow-y: auto !important; /* scroll om texten mot förmodan blir lång */
        box-shadow: 0 6px 24px rgba(0, 230, 118, 0.65) !important; /* lite mjukare skugga */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .goal-shoutout .fa-futbol {
        font-size: 1.6rem !important; /* ← mindre boll */
    }
    #goal-text {
        font-size: 1.12rem !important; /* ← matchar bättre med förälderns font-size */
        margin: 0 !important;
    }
}
/* Extra liten mobil (iPhone SE, gamla Android etc) */
@media screen and (max-width: 560px) {
    .goal-shoutout {
        top: 60px !important; /* lite högre upp om det behövs */
        padding: 8px 16px !important; /* ← ännu tightare */
        font-size: 1.02rem !important;
        border-radius: 28px !important;
        max-height: 55vh !important; /* tightare på små skärmar */
    }
    .goal-shoutout .fa-futbol {
        font-size: 1.4rem !important;
    }
    #goal-text {
        font-size: 1rem !important;
    }
}
.hidden {
    display: none !important;
}
/* ===================================================== */
/* STRYKTIKSET & EUROPATIPSET – GEMENSAM CSS MED DARK MODE (Desktop-only) */
/* ===================================================== */
/* Basfärger för light mode */
.stryktips-page, .europatips-page {
    background-color: #ffffff; /* Vit bakgrund */
    color: #000000; /* Svart text */
}
/* Dark mode-override */
body.dark-mode .stryktips-page, body.dark-mode .europatips-page {
    background-color: #1e1e1e; /* Mörkgrå bakgrund */
    color: #ffffff; /* Vit text */
}
.stryktips-page .match, .europatips-page .match {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, background-color 0.3s;
}
body.dark-mode .stryktips-page .match, body.dark-mode .europatips-page .match {
    border-color: #444;
    background-color: #2c2c2c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.stryktips-page .match:hover, .europatips-page .match:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
body.dark-mode .stryktips-page .match:hover, body.dark-mode .europatips-page .match:hover {
    box-shadow: 0 4px 10px rgba(255,255,255,0.1);
}
.stryktips-page .header-row, .europatips-page .header-row {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.3s;
}
body.dark-mode .stryktips-page .header-row, body.dark-mode .europatips-page .header-row {
    background-color: #333;
}
.stryktips-page .match-number, .europatips-page .match-number {
    width: 40px;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}
.stryktips-page .teams-column, .europatips-page .teams-column {
    flex: 1;
    margin-left: 10px;
}
.stryktips-page .teams-column strong, .europatips-page .teams-column strong {
    display: block;
}
.stryktips-page .teams-column small, .europatips-page .teams-column small {
    color: #666;
}
body.dark-mode .stryktips-page .teams-column small, body.dark-mode .europatips-page .teams-column small {
    color: #bbb;
}
.stryktips-page .odds-container, .europatips-page .odds-container {
    display: flex;
    gap: 10px;
}
.stryktips-page .odds-cell, .europatips-page .odds-cell {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}
body.dark-mode .stryktips-page .odds-cell, body.dark-mode .europatips-page .odds-cell {
    border-color: #555;
    background: #3a3a3a;
    color: #fff;
}
.stryktips-page .odds-cell .current-odd, .europatips-page .odds-cell .current-odd {
    font-weight: bold;
}
.stryktips-page .odds-cell .change-indicator, .europatips-page .odds-cell .change-indicator {
    position: absolute;
    top: -20px;
    right: -10px;
    padding: 2px 5px;
    border-radius: 50%;
    font-size: 0.8rem;
}
.stryktips-page .odds-cell .change-indicator.up, .europatips-page .odds-cell .change-indicator.up {
    background: green;
    color: white;
}
.stryktips-page .odds-cell .change-indicator.down, .europatips-page .odds-cell .change-indicator.down {
    background: red;
    color: white;
}
.stryktips-page .odds-cell.value-normal, .europatips-page .odds-cell.value-normal {
    background: yellow !important;
    border-color: #ffc107;
}
body.dark-mode .stryktips-page .odds-cell.value-normal, body.dark-mode .europatips-page .odds-cell.value-normal {
    background: #b8860b !important;
}
.stryktips-page .odds-cell.value-strong, .europatips-page .odds-cell.value-strong {
    background: lightblue !important;
    border-color: #00bfff;
    animation: pulse 1.5s infinite;
}
body.dark-mode .stryktips-page .odds-cell.value-strong, body.dark-mode .europatips-page .odds-cell.value-strong {
    background: #4682b4 !important;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.stryktips-page .expanded-section, .europatips-page .expanded-section {
    display: none;
    padding: 15px;
    background: #f0f0f0;
    border-top: 1px solid #ddd;
    transition: background-color 0.3s;
}
body.dark-mode .stryktips-page .expanded-section, body.dark-mode .europatips-page .expanded-section {
    background: #252525;
    border-top-color: #444;
}
.stryktips-page .match[aria-expanded="true"] .expanded-section, .europatips-page .match[aria-expanded="true"] .expanded-section {
    display: block;
}
.stryktips-page .close-button, .europatips-page .close-button {
    float: right;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}
body.dark-mode .stryktips-page .close-button, body.dark-mode .europatips-page .close-button {
    color: #ccc;
}
.stryktips-page .bookmakers-table, .europatips-page .bookmakers-table {
    width: 100%;
    border-collapse: collapse;
}
.stryktips-page .bookmakers-table th,
.stryktips-page .bookmakers-table td,
.europatips-page .bookmakers-table th,
.europatips-page .bookmakers-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
}
body.dark-mode .stryktips-page .bookmakers-table th,
body.dark-mode .stryktips-page .bookmakers-table td,
body.dark-mode .europatips-page .bookmakers-table th,
body.dark-mode .europatips-page .bookmakers-table td {
    border-color: #555;
    color: #fff;
}
body.dark-mode .stryktips-page .bookmakers-table th,
body.dark-mode .europatips-page .bookmakers-table th {
    background: #333;
}
.stryktips-page .filter-btn, .europatips-page .filter-btn {
    margin-right: 10px;
    padding: 8px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
body.dark-mode .stryktips-page .filter-btn, body.dark-mode .europatips-page .filter-btn {
    background: #0056b3;
}
.stryktips-page .filter-btn.active, .europatips-page .filter-btn.active {
    background: #0056b3;
}
body.dark-mode .stryktips-page .filter-btn.active, body.dark-mode .europatips-page .filter-btn.active {
    background: #003d7a;
}
/* ====================== DEADLINE BANNER 2026 – KOMPAKT VERSION (Desktop-only) ====================== */
#deadline-banner {
    background: linear-gradient(135deg, #0f172a 0%, var(--primary-color) 100%);
    color: #f8fafc;
    padding: 10px 20px;
    box-shadow: var(--shadow-hover);
    border-bottom: 4px solid #67e8f9;
    position: sticky;
    top: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 1.02rem;
    font-weight: 600;
    min-height: 58px;
}
#deadline-banner span {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Countdown – mindre men fortfarande super-synlig */
#deadline-banner #countdown {
    font-family: 'Segoe UI Mono', Consolas, monospace;
    font-size: 1.35rem;
    font-weight: 800;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 6px 18px;
    border-radius: 10px;
    color: #fef08c;
    letter-spacing: 1.5px;
    box-shadow: 0 0 15px rgba(254, 240, 140, 0.6);
    min-width: 175px;
    text-align: center;
}
/* Speltyp-accents */
#deadline-banner.stryktipset { border-bottom-color: #4ade80; }
#deadline-banner.europatipset { border-bottom-color: #60a5fa; }
#deadline-banner.topptipset { border-bottom-color: #eab308; }
#deadline-banner.powerplay {
    background: linear-gradient(135deg, #6b21a8, #c026d3);
    border-bottom-color: #e0bbff;
}
#deadline-banner.bomben { border-bottom-color: #fb7185; }
#deadline-banner.jackpot { border-bottom-color: #a78bfa; }
#deadline-banner.no-deadline {
    background: linear-gradient(135deg, #334155, #475569);
    border-bottom-color: #94a3b8;
}
/* Knappar – mindre och tightare */
#deadline-banner .button-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
#deadline-banner .shop-link {
    background: #ffffff;
    color: #111827;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: var(--transition);
    font-size: 0.95rem;
}
#deadline-banner .shop-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(103, 232, 249, 0.35);
    background: var(--success-color);
    color: white;
}
/* Expired-text */
#deadline-banner .expired {
    color: #fda4af;
    background: rgba(220, 53, 69, 0.35);
    padding: 5px 14px;
    border-radius: 8px;
    font-weight: 700;
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}
/* Dark mode */
.dark-mode #deadline-banner {
    background: linear-gradient(135deg, #1e2937, #3b82f6);
}
/* User profile dropdown (desktop-only) */
.user-profile {
    position: relative;
}
.user-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #333;
}
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    margin-top: 8px;
    padding: 8px 0;
    display: none;
}
.user-dropdown.hidden {
    display: none !important;
}
.user-dropdown.active {
    display: block !important;
}
.user-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
}
.user-dropdown a:hover {
    background: #f5f5f5;
}
.user-dropdown hr {
    margin: 6px 0;
    border: none;
    border-top: 1px solid #eee;
}
.logout-link {
    color: #d32f2f !important;
}
/* Admin-länk i dropdown */
.user-dropdown a[href="admin_landing.php"] {
    color: #e74c3c;
    font-weight: bold;
}
.user-dropdown a[href="admin_landing.php"]:hover {
    background: rgba(231, 76, 60, 0.1);
}
/* Floating Chat Button (desktop-only) */
.chat-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e676, #00c853);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.chat-float-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.6);
}
.chat-float-btn:active {
    transform: scale(0.95);
}
/* Notification Badge */
.chat-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b30;
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.chat-badge.hidden {
    display: none;
}
/* Chat Modal */
.chat-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    padding: 15px;
}
.chat-modal.active {
    display: flex;
}
#chat-container {
    width: 95%;
    max-width: 520px;
    height: 88vh;
    max-height: 820px;
    background: #121212;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,230,118,0.35);
    position: relative;
    border: 2px solid #00e676;
}
#chat-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
#chat-close-btn:hover {
    background: #ff3b30;
    transform: rotate(90deg) scale(1.1);
}
#chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #121212;
}
/* assets/css/Design2026.css - Desktop-only version */
/* Admin-länk i user-dropdown */
.user-dropdown a[href="admin_landing.php"] {
    color: #e74c3c; /* röd eller annan admin-färg */
    font-weight: bold;
}
.user-dropdown a[href="admin_landing.php"]:hover {
    background: rgba(231, 76, 60, 0.1);
}
/* === OSS / SPELTIPS PROMO BANNER - efter var 5:e match (Desktop-only) === */
.promo-oss-banner {
    margin: 30px 0 25px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    background: var(--card-bg);
}
.promo-oss-banner a {
    display: block;
    position: relative;
    text-decoration: none;
}
.promo-image {
    width: 100%;
    height: 290px; /* Högre bild så huvuden syns tydligt */
    object-fit: cover;
    object-position: top; /* Viktigt: visar toppen av bilden (spelare/huvuden) */
    display: block;
    transition: transform 0.4s ease;
}
.promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 35px 20px 28px; /* Luft under texten */
    color: white;
}
.promo-text {
    font-size: 1.65rem;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 3px 12px rgba(0,0,0,0.8);
}
.promo-oss-banner:hover .promo-image {
    transform: scale(1.03);
}
.promo-oss-banner:hover .promo-overlay {
    background: linear-gradient(transparent, rgba(0,123,255,0.85));
}
/* Dark mode */
.dark-mode .promo-oss-banner {
    box-shadow: 0 4px 20px rgba(0,123,255,0.3);
}
html {
    height: 100%;
    background: #0f0f1a; /* mörk fallback-färg om bilden inte laddar */
}
/* Bakgrundsbild */
body {
    min-height: 100vh;
    margin: 0;
    background-image: url("/images/image31.jpg");
    background-repeat: no-repeat;
    background-position: center 2%;     /* centrerad horisontellt, flyttad nedåt lite från toppen */
    background-attachment: fixed;        /* ← Detta är det som gör bilden FAST – den följer inte med scrollen */
    background-size: 50% auto;          /* bredare än 100% – justera procenten uppåt om du vill ännu bredare */
    /* Alternativ för att täcka hela skärmen utan vit kant: background-size: cover; */
}
@media (max-width: 1023px) {
    body {
        background-attachment: scroll;  /* fallback för mobil om fixed krånglar */
        background-size: cover;         /* täcker bättre på små skärmar */
    }
}

/* ==========================================================================
   MOBIL & SMÅ SKÄRMAR (under ~1024 px bredd)
   ========================================================================== */
/* ───────────────────────────────────────────────
   GRUND – förhindra horisontell scroll överallt
   ─────────────────────────────────────────────── */
@media screen and (max-width: 1023px) {
    html,
    body {
        overflow-x: hidden !important;
        width: 100%;
        margin: 0;
        padding: 0;
        touch-action: pan-y; /* tillåter vertikal scroll, blockerar sidledes drag */
    }
    main,
    .container,
    section,
    .section,
    .content-wrapper { /* om du har en sådan wrapper – lägg till den annars */
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    * {
        box-sizing: border-box !important; /* säkerställer att padding inte ökar total bredd */
    }
    /* ───────────────────────────────────────────────
       BAKGRUND & FÄRGER (mörkt tema)
       ─────────────────────────────────────────────── */
    body,
    main,
    .container,
    section,
    .section {
        background-color: #0f172a;
        color: #f1f5f9;
    }
    /* ───────────────────────────────────────────────
       CONTAINER – tightare marginaler
       ─────────────────────────────────────────────── */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    main.container {
        padding-top: 0.8rem;
        padding-bottom: 1.8rem;
    }
    /* ───────────────────────────────────────────────
       HEADER
       ─────────────────────────────────────────────── */
    .header-top {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 0;
        background: #0f172a;
        width: 100%;
        overflow-x: hidden;
    }
    .logo {
        font-size: 1.3rem;
        color: #ffffff;
    }
    .logo-img {
        max-height: 36px !important;
        width: auto !important;
    }
    .header-controls {
        margin-left: auto;
    }
    .search-section {
        order: 3;
        width: 100%;
        margin-top: 6px;
    }
    #search-wrapper {
        width: 100%;
    }
    .search-page-select,
    #searchInput {
        font-size: 0.92rem;
        padding: 7px 9px;
        background: #1e293b;
        color: #f1f5f9;
        border: 1px solid #334155;
        border-radius: 6px;
        width: 100%;
    }
    /* Hamburger */
    #mobile-menu-toggle {
        display: block !important;
        font-size: 1.55rem;
        padding: 8px 10px;
        margin-left: 6px;
        color: #f1f5f9;
        background: transparent;
        border: none;
    }
    /* ───────────────────────────────────────────────
       HUVUDMENYN (hamburger)
       ─────────────────────────────────────────────── */
    .nav-menu ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        border-top: 1px solid #334155;
        border-bottom: 1px solid #334155;
        z-index: 999;
        padding: 0.8rem 0;
        box-shadow: 0 10px 25px rgba(0,0,0,0.6);
        max-height: calc(100vh - 130px);
        overflow-y: auto;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu ul::-webkit-scrollbar {
        width: 5px;
    }
    .nav-menu ul::-webkit-scrollbar-track {
        background: #1e293b;
    }
    .nav-menu ul::-webkit-scrollbar-thumb {
        background: #64748b;
        border-radius: 3px;
    }
    .nav-menu ul.active {
        display: flex !important;
    }
    .nav-menu a {
        padding: 11px 18px;
        font-size: 0.98rem;
        color: #ffffff !important;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    /* Dropdowns i menyn */
    .nav-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #1e293b;
        margin: 0;
        padding: 4px 0;
    }
    .nav-menu .dropdown-menu a {
        padding: 9px 32px;
        font-size: 0.93rem;
    }
    /* ───────────────────────────────────────────────
       DEADLINE-BANNER
       ─────────────────────────────────────────────── */
    #deadline-banner {
        flex-direction: column;
        gap: 10px;
        padding: 8px 10px;
        font-size: 0.92rem;
        background: #1e293b;
        border-bottom: 1px solid #334155;
    }
    #deadline-banner .button-container {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    #deadline-banner .shop-link {
        flex: 1;
        max-width: 160px;
        font-size: 0.68rem;
        padding: 5px 8px;
    }
    /* ───────────────────────────────────────────────
       Goal Shoutout – tightare + centrerad + ingen sidscroll
       ─────────────────────────────────────────────── */
    .goal-shoutout {
        position: fixed;
        left: 4%;
        right: 4%;
        bottom: 120px; /* justera efter behov */
        margin: 0 auto;
        max-width: 92vw !important;
        width: auto !important;
        padding: 10px 16px !important;
        font-size: 1.15rem !important;
        line-height: 1.35 !important;
        background: rgba(34, 197, 94, 0.92);
        color: white;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.5);
        text-align: center;
        overflow: hidden !important; /* viktig */
        box-sizing: border-box !important;
    }
    /* ───────────────────────────────────────────────
       Övriga element – kort, tabeller, knappar
       ─────────────────────────────────────────────── */
    .match-row,
    .odds-table,
    .bet-card,
    .value-item,
    .card,
    .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important; /* tillåter scroll inuti kortet om tabell blir bred */
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive table {
        min-width: 100%;
    }
    .btn,
    .auth-btn,
    button:not(#mobile-menu-toggle) {
        padding: 9px 14px;
        font-size: 0.92rem;
    }
    /* Chatt-knapp */
    .chat-float-btn {
        bottom: 70px;
        right: 14px;
        width: 52px;
        height: 52px;
    }
}
/* ───────────────────────────────────────────────
   EXTRA LITEN SKÄRM (< 560 px)
   ─────────────────────────────────────────────── */
@media screen and (max-width: 560px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    .goal-shoutout {
        font-size: 1.05rem !important;
        padding: 8px 14px !important;
        bottom: 100px;
        left: 3%;
        right: 3%;
    }
    h1, h2 {
        font-size: 1.5rem;
    }
    .nav-menu a {
        padding: 12px 16px;
        font-size: 1rem;
    }
}
@media screen and (max-width: 1023px) {
    /* SÖK-IKONEN – mindre och tightare */
    .search-btn {
        font-size: 1.1rem !important; /* mindre än standard 1.6rem eller vad du hade */
        padding: 6px 10px !important; /* tight padding runt ikonen */
        min-width: 36px !important;
        height: 36px !important;
        line-height: 1 !important;
        border-radius: 6px !important;
    }
    .search-btn i.fas.fa-search {
        font-size: 1.2rem !important; /* ikonstorlek – testa 1.1–1.3rem */
    }
    /* LOGGA IN-KNAPPEN – mindre ikon + text */
    .auth-btn.login-btn {
        font-size: 0.5rem !important; /* grundstorlek för hela knappen */
        padding: 6px 12px !important; /* tightare än tidigare */
        border-radius: 6px !important;
        min-height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important; /* avstånd ikon ↔ text */
    }
    /* Ikonen i Logga in */
    .auth-btn.login-btn i.fas.fa-sign-in-alt {
        font-size: 0.75rem !important; /* ikon – lite större än texten */
    }
    /* Texten "Logga in" */
    .auth-btn.login-btn .btn-text,
    .auth-btn.login-btn span {
        font-size: 0.58rem !important; /* mindre text */
        font-weight: 500 !important;
    }
    /* Om du vill ha ännu tightare på extra små mobiler */
    @media screen and (max-width: 560px) {
        .search-btn {
            padding: 5px 8px !important;
        }
        .search-btn i {
            font-size: 1.1rem !important;
        }
        .auth-btn.login-btn {
            padding: 5px 10px !important;
            font-size: 0.85rem !important;
        }
        .auth-btn.login-btn i {
            font-size: 1.05rem !important;
        }
        .auth-btn.login-btn .btn-text {
            font-size: 0.42rem !important;
        }
    }
/* ==========================================================================
   MOBIL & SMÅ SKÄRMAR (under ~1024 px bredd)
   ========================================================================== */
@media screen and (max-width: 1023px) {
    /* ───────────────────────────────────────────────
       GRUND – blockera horisontell scroll + touch-beteende
       ─────────────────────────────────────────────── */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        margin: 0;
        padding: 0;
        touch-action: pan-y;
    }
    * {
        box-sizing: border-box !important;
    }
    main, .container, section, .section, .content-wrapper {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    /* Bakgrund & textfärger – mörkt tema */
    body, main, .container, section, .section {
        background-color: #0f172a;
        color: #f1f5f9;
    }
    /* ───────────────────────────────────────────────
       CONTAINER – tight padding
       ─────────────────────────────────────────────── */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    main.container {
        padding-top: 0.8rem;
        padding-bottom: 1.8rem;
    }
    /* ───────────────────────────────────────────────
       LIVE TICKER – pytte liten + ALLTID ovanpå allt
       ─────────────────────────────────────────────── */
    .live-ticker {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important; /* extremt högt – över header, goal-shoutout, allt */
        background: rgba(30, 41, 59, 0.97) !important;
        color: #f1f5f9 !important;
        font-size: 0.84rem !important; /* riktigt liten text */
        padding: 4px 12px !important;
        text-align: center !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
        border-bottom: 1px solid #334155 !important;
        pointer-events: none !important; /* klicka igenom om möjligt */
        line-height: 1.3 !important;
    }
    /* Om texten scrollar (t.ex. marquee eller animerad) */
    .live-ticker span,
    .live-ticker .ticker-content,
    .live-ticker marquee {
        font-size: 0.84rem !important;
        display: inline-block !important;
    }
    /* Extra liten skärm – ännu tightare ticker */
    @media screen and (max-width: 560px) {
        .live-ticker {
            font-size: 0.78rem !important;
            padding: 3px 10px !important;
        }
    }
    /* ───────────────────────────────────────────────
       HEADER – logo, sök, inloggning
       ─────────────────────────────────────────────── */
    .header-top {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 0;
        background: #0f172a;
        width: 100%;
        position: relative; /* så ticker kan ligga ovanpå */
        z-index: 100 !important; /* lägre än ticker */
    }
    .logo {
        font-size: 1.3rem;
    }
    .logo-img {
        max-height: 36px !important;
        width: auto !important;
    }
    /* Sök-knapp (förstoring) */
    .search-btn {
        font-size: 1.1rem !important;
        padding: 6px 10px !important;
        min-width: 36px !important;
        height: 36px !important;
        border-radius: 6px !important;
    }
    .search-btn i.fas.fa-search {
        font-size: 1.2rem !important;
    }
    /* Logga in-knapp */
    .auth-btn.login-btn {
        font-size: 0.9rem !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
        min-height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .auth-btn.login-btn i.fas.fa-sign-in-alt {
        font-size: 1.15rem !important;
    }
    .auth-btn.login-btn .btn-text,
    .auth-btn.login-btn span {
        font-size: 0.68rem !important;
    }
    /* ───────────────────────────────────────────────
       Goal shoutout – tight + centrerad
       ─────────────────────────────────────────────── */
    .goal-shoutout {
        position: fixed;
        left: 4%;
        right: 4%;
        bottom: 110px; /* under ticker + chat-knapp */
        margin: 0 auto;
        max-width: 92vw !important;
        padding: 10px 16px !important;
        font-size: 1.15rem !important;
        line-height: 1.35 !important;
        background: rgba(34, 197, 94, 0.92) !important;
        color: white !important;
        border-radius: 12px !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.5) !important;
        text-align: center !important;
        z-index: 9000 !important; /* under ticker men över annat */
        overflow: hidden !important;
    }
    /* ───────────────────────────────────────────────
       Övrigt – kort, tabeller, knappar etc
       ─────────────────────────────────────────────── */
    .match-row, .odds-table, .bet-card, .value-item, .card, .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
    }
    .btn, .auth-btn, button:not(#mobile-menu-toggle) {
        padding: 9px 14px;
        font-size: 0.92rem;
    }
    .chat-float-btn {
        bottom: 70px;
        right: 14px;
        width: 52px;
        height: 52px;
        z-index: 8000 !important;
    }
/* Extra liten skärm (< 560 px) */
@media screen and (max-width: 560px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    .goal-shoutout {
        font-size: 1.05rem !important;
        padding: 8px 14px !important;
        bottom: 95px;
        left: 3%;
        right: 3%;
    }
    .live-ticker {
        font-size: 0.78rem !important;
        padding: 3px 10px !important;
    }
}
/* ==========================================================================
   MOBIL-STIL FÖR ODSDROPS-SIDAN (den första sidan)
   Mörkt tema med blå accenter – endast mobil (< 1024px)
   ========================================================================== */
@media screen and (max-width: 1023px) {
    /* ───────────────────────────────────────────────
       Grundläggande mörkt tema + blå touch
    ─────────────────────────────────────────────── */
    body {
        background-color: #0a0e17; /* mörkblå-svart bakgrund */
        color: #e2e8f0; /* ljusgrå/vit text */
    }
    /* Förhindra att sidhuvud täcker innehållet på mobil */
    .main-content,
    main.container,
    .section,
    .calc-section,
    .dashboard {
        padding-top: 100px !important; /* justera om ditt header är högre/lägre */
    }
    /* ───────────────────────────────────────────────
       Calc-sektioner (de blåa/rubrik-boxarna)
       ─────────────────────────────────────────────── */
    .calc-section {
        background-color: #111827; /* mörkare grå-blå */
        border: 1px solid #1e40af; /* blå kant */
        border-radius: 12px;
        padding: 18px 14px;
        margin-bottom: 20px;
        box-shadow: 0 4px 15px rgba(30, 64, 175, 0.12);
    }
    .calc-section h2,
    .calc-section h3 {
        color: #60a5fa; /* ljusblå rubriker */
        font-size: 1.45rem; /* lite mindre på mobil */
        margin-bottom: 14px;
    }
    .calc-section h3 {
        font-size: 1.25rem;
    }
    .calc-section p,
    .calc-section label {
        color: #cbd5e1;
        font-size: 0.97rem;
        line-height: 1.5;
    }
    /* Formulär och inputs på mobil */
    .calc-section form {
        flex-direction: column !important;
        gap: 14px;
        align-items: stretch;
    }
    .calc-section input[type="number"],
    .calc-section input[type="text"] {
        width: 100%;
        padding: 12px 14px;
        background-color: #1e293b;
        border: 1px solid #3b82f6;
        border-radius: 8px;
        color: #f1f5f9;
        font-size: 1rem;
    }
    .calc-section input:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
        border-color: #60a5fa;
    }
    .calc-section button {
        width: 100%;
        padding: 14px;
        font-size: 1.05rem;
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }
    .calc-section button:hover {
        background: linear-gradient(135deg, #60a5fa, #3b82f6);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    }
    /* Resultat-boxar */
    .result {
        background-color: rgba(59, 130, 246, 0.12);
        border-left: 4px solid #3b82f6;
        padding: 14px;
        margin: 16px 0;
        border-radius: 6px;
        font-weight: 500;
        color: #bfdbfe;
    }
    .error {
        background-color: rgba(239, 68, 68, 0.15);
        border-left-color: #ef4444;
        color: #fecaca;
    }
    /* Tabell med exempelodds */
    .odds-table {
        font-size: 0.92rem;
        background: #111827;
        border: 1px solid #1e40af;
        border-radius: 10px;
        overflow: hidden;
    }
    .odds-table th {
        background: #1e40af;
        color: #bfdbfe;
        padding: 12px 8px;
        font-weight: 600;
    }
    .odds-table td {
        padding: 12px 8px;
        border-top: 1px solid #1e293b;
        color: #e2e8f0;
    }
    /* Info-meddelanden och förklaringar */
    .info-message,
    .calc-section .explanation p {
        background: rgba(30, 64, 175, 0.08);
        border: 1px solid rgba(59, 130, 246, 0.2);
        padding: 14px;
        border-radius: 8px;
        color: #93c5fd;
        margin: 16px 0;
    }
    code {
        background: #1e293b;
        color: #93c5fd;
        padding: 3px 6px;
        border-radius: 4px;
    }
    /* Liten extra justering för väldigt små skärmar */
    @media screen and (max-width: 560px) {
        .calc-section {
            padding: 16px 12px;
        }
        .calc-section h2 {
            font-size: 1.35rem;
        }
        .calc-section button {
            padding: 13px;
            font-size: 1rem;
        }
    }
/* ==========================================================================
   MOBIL FIX – ODSDROPS – SLUTGILTIG & AGGRESSIV 2026
   Tar bort ljus bild, tvingar mörkt tema, strukturerar om korten snyggt
   ========================================================================== */
/* DÖDA BAKGRUNDSBILDEN PÅ MOBIL – annars vinner den alltid */
@media screen and (max-width: 1023px) {
    body {
        background-image: none !important;
        background-color: #0f172a !important;
    }
}
/* Enorma !important-krig för att vinna över allt ljus */
@media screen and (max-width: 1023px) {
    html, body, main, .container, .section,
    .match, .match-card, .event-card, .card, .match-row,
    .prediction-box, .odds-box, .team-info, .left-col, .right-col,
    table, thead, tbody, tr, th, td, .bolag-table, .odds-table {
        background-color: #0f172a !important;
        background: #0f172a !important;
        color: #e2e8f0 !important;
    }
    /* Alla kort och boxar – mörka */
    .match, .match-card, .card, .event-item, .odds-container, .pred-block {
        background: #1e293b !important;
        border: 1px solid #334155 !important;
        border-radius: 10px !important;
        padding: 12px 10px !important;
        margin: 10px 8px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.6) !important;
    }
    /* Titel (lag) på egen rad – mindre & ren */
    .teams, .match-name, .event-title, strong {
        font-size: 1.0rem !important;
        display: block !important;
        margin-bottom: 6px !important;
        color: #ffffff !important;
    }
    /* Liga + tid under titel */
    small, .league, .time, .date {
        font-size: 0.80rem !important;
        color: #94a3b8 !important;
        display: block !important;
    }
    /* Pred + odds sida vid sida eller kolumn */
    .match > div, .card-content, .left-col + .right-col {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    /* Pred-sidan (vänster) */
    .pred, .prediction, [class*="pred"] {
        flex: 1 1 140px !important;
        font-size: 0.88rem !important;
    }
    /* Odds-sidan (höger) – snygg rad */
    .odds-container, .h2h, .three-way, .odds-row {
        flex: 2 1 200px !important;
        display: flex !important;
        justify-content: space-around !important;
        gap: 6px !important;
        background: rgba(30,41,59,0.7) !important;
        padding: 8px !important;
        border-radius: 8px !important;
    }
    .odds-cell, .odd-item, .outcome {
        flex: 1 !important;
        text-align: center !important;
        min-width: 60px !important;
        padding: 6px 4px !important;
        background: #172033 !important;
        border: 1px solid #334155 !important;
        border-radius: 6px !important;
    }
    .odds-cell .current, .odd-value {
        font-size: 1.18rem !important;
        font-weight: bold !important;
        color: #60a5fa !important;
    }
    .odds-cell small, .bookmaker {
        font-size: 0.74rem !important;
        color: #94a3b8 !important;
    }
    /* Tabell "Alla bolag" – mörk */
    table, .bolag-table {
        background: #1e293b !important;
        border: 1px solid #334155 !important;
    }
    thead th {
        background: #1e40af !important;
        color: white !important;
        padding: 10px !important;
    }
    tr:nth-child(even) {
        background: #172033 !important;
    }
    td {
        padding: 10px 6px !important;
        color: #e2e8f0 !important;
    }
    /* Spara-hjärtan */
    .spara, .heart {
        color: #f87171 !important;
        background: transparent !important;
    }
}
@media screen and (max-width: 1023px) {
    /* Mål: .match och allt inuti */
    .match,
    .match *,
    .match .header-row,
    .match .expanded,
    .match .teams,
    .match .odds-container,
    .match .prediction-summary,
    .match .left-col,
    .match .num,
    .match .favorite-btn {
        background-color: #1e293b !important;
        background: #1e293b !important;
    }
    /* Extra aggressivt – tvinga även barn och pseudo-element */
    .match {
        background-color: #172033 !important;
        background-image: none !important;
        isolation: isolate; /* hjälper mot bakgrunds-bleed från barn */
    }
    /* Om det är .expanded som spökar när den är öppen */
    .match .expanded,
    .match .expanded * {
        background-color: #0f172a !important;
    }
    /* Fånga eventuella tailwind/bootstrap-läckor */
    [class*="bg-"] {
        background-color: inherit !important;
    }
}
/* ==========================================================================
   VALUE-PAGE – MOBIL CSS (endast denna sida)
   Läggs sist i filen – påverkar INTE odsdrops eller andra sidor
   ========================================================================== */
@media screen and (max-width: 1023px) {
    /* ───────────────────────────────────────────────
       Mörkt tema för hela value-sidan
    ─────────────────────────────────────────────── */
    .value-page,
    .value-page .section,
    .value-page .wrap,
    .value-page .match,
    .value-page .value-match,
    .value-page .card {
        background-color: #0f172a !important;
        color: #e2e8f0 !important;
    }
    /* Alla matchkort mörka */
    .value-page .match,
    .value-page .value-match {
        background: #1e293b !important;
        border: 1px solid #334155 !important;
        border-radius: 12px !important;
        margin: 12px 8px !important;
        padding: 14px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    }
    /* Lag-namn mindre + egen rad (så det blir plats) */
    .value-page .teams {
        display: block !important;
        margin-bottom: 10px !important;
    }
    .value-page .teams strong {
        font-size: 1.02rem !important;
        display: block !important;
        color: #ffffff !important;
        margin-bottom: 2px !important;
    }
    .value-page .teams small {
        font-size: 0.82rem !important;
        color: #94a3b8 !important;
    }
    /* Header-row – bättre struktur */
    .value-page .header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 0 !important;
    }
    /* Vänster del (nummer + stjärna) */
    .value-page .left-col {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }
    /* Prediktering + rekommendation */
    .value-page .prediction-summary,
    .value-page .value-recommendation {
        font-size: 0.90rem !important;
        line-height: 1.45 !important;
        width: 100% !important;
    }
    .value-page .value-recommendation {
        background: rgba(59, 130, 246, 0.15) !important;
        padding: 10px !important;
        border-radius: 8px !important;
        border-left: 4px solid #3b82f6 !important;
    }
    /* Value summary (antal value bets) */
    .value-page .value-summary {
        font-size: 0.68rem !important;
        color: #60a5fa !important;
        font-weight: 600 !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 6px !important;
    }
    /* Expanded-delen (tabellen) */
    .value-page .expanded {
        padding: 16px 10px !important;
        background: #172033 !important;
        border-radius: 8px !important;
        margin-top: 12px !important;
    }
    .value-page .value-bets-table {
        font-size: 0.88rem !important;
        width: 100% !important;
    }
    .value-page .value-bets-table th,
    .value-page .value-bets-table td {
        padding: 10px 6px !important;
        text-align: center !important;
    }
    .value-page .value-bets-table th {
        background: #1e40af !important;
        color: #bfdbfe !important;
    }
    .value-page .value-bets-table td {
        background: #1e293b !important;
    }
    /* Spara-knappar i tabellen */
    .value-page button[onclick*="saveSpecificFavorite"] {
        font-size: 0.82rem !important;
        padding: 4px 10px !important;
        background: #f87171 !important;
        color: white !important;
        border-radius: 6px !important;
    }
    /* Filter-raden – bättre på mobil */
    .value-page .sport-filter-container {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
        margin-bottom: 20px !important;
    }
    .value-page .filter-group {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .value-page .league-select {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1rem !important;
    }
    /* Promo-banner (oss.jpg) – lite mindre på mobil */
    .value-page .promo-oss-banner {
        margin: 20px 8px !important;
    }
    .value-page .promo-image {
        height: 180px !important;
    }
    /* Mycket liten skärm */
    @media screen and (max-width: 560px) {
        .value-page .teams strong {
            font-size: 0.96rem !important;
        }
        .value-page .value-bets-table th,
        .value-page .value-bets-table td {
            font-size: 0.82rem !important;
            padding: 8px 4px !important;
        }
    }
/* Dashboard och tävlingssidan för mobila enheter.
/* ==========================================================================
   MOBIL-STILAR FÖR TAVLING.PHP (Leaderboard/Dashboard) – ODSDROPS.SE 2026
   Fokuserar på responsivitet: tabeller scrollbara, charts mindre, texter reducerade,
   allt strukturerat snyggt. Mörkt tema med blå accenter för modern känsla.
   Lägg till detta i slutet av design2026.css, innan andra media queries.
   ========================================================================== */
/* ───────────────────────────────────────────────
   GRUND FÖR MOBIL – mörkt tema, ingen horisontell scroll
   ─────────────────────────────────────────────── */
@media screen and (max-width: 1023px) {
    .container {
        padding: 0 12px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    body, .container, .dashboard {
        background-color: #0f172a !important; /* mörkblå-svart */
        color: #e2e8f0 !important; /* ljus text */
    }
    h1, h2 {
        font-size: 1.45rem !important;
        color: #60a5fa !important; /* blå accent */
        margin-bottom: 14px !important;
    }
    p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        color: #cbd5e1 !important;
    }
    /* Announcement bar – kompakt */
    .announcement-bar {
        margin: -20px -12px 20px -12px !important;
        padding: 12px 16px !important;
        font-size: 1.05rem !important;
        border-radius: 0 0 10px 10px !important;
        background: linear-gradient(90deg, #ef4444, #f97316) !important;
    }
    .announcement-bar strong {
        font-size: 1.15rem !important;
    }
    /* Top buttons – stackade */
    .top-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }
    .top-buttons a, .top-buttons button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }
    /* Debug info – mindre */
    .debug-info {
        font-size: 0.85rem !important;
        color: #94a3b8 !important;
        margin-bottom: 10px !important;
    }
}
/* ───────────────────────────────────────────────
   RANKING-TABELL (stats-table) – scrollbar på mobil, mindre text
   ─────────────────────────────────────────────── */
@media screen and (max-width: 1023px) {
    .table-wrapper {
        overflow-x: auto !important;
        margin: 0 -12px !important; /* utöka till kanterna */
        padding: 0 12px !important;
        max-width: calc(100% + 24px) !important;
    }
    .stats-table {
        min-width: 650px !important; /* tvingar scroll */
        font-size: 0.9rem !important;
        background: #1e293b !important;
        border: 1px solid #334155 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }
    .stats-table thead th {
        background: #1e40af !important; /* blå header */
        color: #bfdbfe !important;
        padding: 10px 8px !important;
        font-size: 0.85rem !important;
        text-transform: uppercase !important;
    }
    .stats-table tbody td {
        padding: 10px 8px !important;
        border-top: 1px solid #334155 !important;
        color: #e2e8f0 !important;
    }
    .stats-table .rank {
        font-weight: bold !important;
        color: #60a5fa !important;
    }
    .stats-table .avatar {
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
    }
    .green { color: #4ade80 !important; }
    .red { color: #f87171 !important; }
}
/* ───────────────────────────────────────────────
   CHARTS – mindre höjd, responsiv bredd, touch-vänlig
   ─────────────────────────────────────────────── */
@media screen and (max-width: 1023px) {
    .chart-container {
        height: 300px !important; /* mindre än original 620px */
        max-height: 300px !important;
        margin: 20px 0 40px 0 !important;
        padding: 15px 10px !important;
        border: 2px solid #1e40af !important; /* blå kant */
        background: #172033 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    .chart-container.bar {
        height: 250px !important;
        max-height: 250px !important;
    }
    canvas {
        touch-action: pan-x pan-y !important; /* tillåt touch-scroll i chart */
    }
    /* Avatars i charts – mindre */
    .avatar {
        width: 28px !important;
        height: 28px !important;
    }
}
@media screen and (max-width: 768px) {
    .chart-container {
        height: 250px !important;
    }
    .chart-container.bar {
        height: 200px !important;
    }
}
/* ───────────────────────────────────────────────
   FILTER-KNAPPAR & TIPSTER-SELECT – wrap snyggt, mindre
   ─────────────────────────────────────────────── */
@media screen and (max-width: 1023px) {
    .filter-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin: 20px 0 !important;
        justify-content: center !important;
    }
    .filter-btn {
        padding: 10px 16px !important;
        font-size: 0.92rem !important;
        border-radius: 8px !important;
        background: #1e40af !important; /* blå */
        color: #bfdbfe !important;
        flex: 1 1 auto !important;
        min-width: 120px !important;
    }
    .filter-btn.active {
        background: #60a5fa !important;
        color: #0f172a !important;
    }
    .tipster-filter-wrapper {
        margin: 15px 0 !important;
    }
    .tipster-select {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1rem !important;
        background: #1e293b !important;
        border: 1px solid #334155 !important;
        color: #e2e8f0 !important;
        border-radius: 8px !important;
    }
    .filter-hint {
        font-size: 0.85rem !important;
        color: #94a3b8 !important;
        margin-top: 6px !important;
    }
}
/* ───────────────────────────────────────────────
   ALLA SPEL-TABELL (bets-table) – scrollbar, mindre kolumner
   ─────────────────────────────────────────────── */
@media screen and (max-width: 1023px) {
    .bets-table {
        min-width: 850px !important; /* tvingar horisontell scroll */
        font-size: 0.88rem !important;
        background: #1e293b !important;
        border: 1px solid #334155 !important;
    }
    .bets-table thead th {
        background: #1e40af !important;
        color: #bfdbfe !important;
        padding: 8px 6px !important;
        font-size: 0.82rem !important;
    }
    .bets-table tbody td {
        padding: 8px 6px !important;
        color: #e2e8f0 !important;
    }
    .bets-table .avatar, .bets-table .logo {
        width: 24px !important;
        height: 24px !important;
    }
    .bets-table .multi-bet {
        white-space: pre-wrap !important; /* radbrytning för multi */
    }
    /* Status-färger */
    .win { background: rgba(34, 197, 94, 0.2) !important; }
    .loss { background: rgba(239, 68, 68, 0.2) !important; }
    .push { background: rgba(245, 158, 11, 0.2) !important; }
    .pending { background: rgba(59, 130, 246, 0.2) !important; }
    .giveup { background: rgba(139, 92, 246, 0.2) !important; }
}
/* ───────────────────────────────────────────────
   PAGINATION – centrerad, mindre knappar
   ─────────────────────────────────────────────── */
@media screen and (max-width: 1023px) {
    .pagination {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        margin: 20px 0 !important;
    }
    .pagination a {
        padding: 8px 12px !important;
        font-size: 0.92rem !important;
        background: #1e293b !important;
        border: 1px solid #334155 !important;
        color: #e2e8f0 !important;
        border-radius: 6px !important;
    }
    .pagination a.active {
        background: #60a5fa !important;
        color: #0f172a !important;
    }
}
/* ====================== GLOBAL SÖK 2026 – Desktop + Mobil (med fix för klick-glow) ====================== */
.search-section {
    position: relative;
    z-index: 10000;
}
.search-btn {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 7px 9px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.search-btn:hover {
    background: #334155;
    color: #e2e8f0;
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.5); /* blått sken vid hover */
}
.search-btn:active {
    transform: scale(0.98);
    background: #1e40af;
}
.search-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    padding: 12px;
    width: 380px;
    z-index: 10001;
    display: none;
    flex-direction: column;
    gap: 8px;
}
.search-wrapper:not(.hidden) {
    display: flex;
}
.search-page-select {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
}
#searchInput {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 1rem;
    width: 100%;
}
#searchInput:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}
#searchSuggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    max-height: 340px;
    overflow-y: auto;
    z-index: 10002;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    display: none;
}
#searchSuggestions.show {
    display: block;
}
.suggestion-item {
    padding: 14px 18px;
    border-bottom: 1px solid #334155;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #e2e8f0;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background: #334155;
    color: #ffffff;
    padding-left: 22px;
}
.suggestion-item strong {
    color: #60a5fa;
}
.suggestion-item small {
    display: block;
    color: #94a3b8;
    font-size: 0.86rem;
    margin-top: 4px;
}
/* Scrollbar */
#searchSuggestions::-webkit-scrollbar {
    width: 6px;
}
#searchSuggestions::-webkit-scrollbar-track {
    background: #1e293b;
}
#searchSuggestions::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}
/* ====================== MOBIL SÖK ====================== */
@media screen and (max-width: 1023px) {
    .search-section {
        width: 100%;
        margin-top: 8px;
    }
    .search-wrapper {
        position: static;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        margin-top: 8px;
    }
    #searchSuggestions {
        position: static;
        max-height: 280px;
        margin-top: 6px;
    }
    .suggestion-item {
        padding: 16px 18px;
        font-size: 1.02rem;
    }
}
/* Extra liten skärm */
@media screen and (max-width: 560px) {
    .search-btn {
        padding: 5px 7px;
        font-size: 0.8rem;
    }
    #searchInput {
        padding: 10px 12px;
        font-size: 0.98rem;
    }
    .suggestion-item {
        padding: 15px 16px;
        font-size: 0.98rem;
    }
}
/* design2026.css - Main stylesheet for OddsDrops.se 2026 design */
/* Supports dark and light themes, with responsive mobile optimizations */
/* Dark theme as default, with nice text colors and contrasts */
:root {
    /* Common variables */
    --gold: #ffd700; /* Gold accent color */
    --accent-green: #4caf50; /* Green for positive elements */
    --transition: all 0.3s ease; /* Smooth transitions */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Clean font stack */
}
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: var(--transition);
}
/* Dark Theme */
body.dark {
    --background: #121212; /* Dark background */
    --text: #e0e0e0; /* Light gray text for readability */
    --text-highlight: #ffffff; /* White for highlights */
    --card-bg: #1e1e1e; /* Dark card background */
    --border: #333333; /* Subtle dark border */
    --accent: #bb86fc; /* Purple accent for variety */
    --error: #cf6679; /* Soft red for errors */
    background-color: var(--background);
    color: var(--text);
}
/* Light Theme */
body.light {
    --background: #ffffff; /* White background */
    --text: #333333; /* Dark text for contrast */
    --text-highlight: #000000; /* Black for highlights */
    --card-bg: #f5f5f5; /* Light card background */
    --border: #dddddd; /* Light border */
    --accent: #6200ee; /* Blue accent */
    --error: #b00020; /* Red for errors */
    background-color: var(--background);
    color: var(--text);
}
/* General Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
h1, h2 {
    font-weight: 700;
    color: var(--gold);
}
p {
    color: var(--text);
}
a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--gold);
}
/* Accordion and Match Row Styles (from inline, enhanced) */
.accordion summary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    font-weight: 600;
    color: var(--gold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.accordion summary:hover {
    background: darken(var(--card-bg), 5%);
}
.match-row {
    display: grid;
    grid-template-columns: 50px 1fr 200px;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.match-num {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--gold);
}
.outcome-tags span {
    display: inline-block;
    padding: 5px 14px;
    margin: 3px;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 600;
    color: #fff; /* White text for better contrast in dark mode */
    transition: var(--transition);
}
/* Outcome-specific colors (enhanced for visibility) */
.outcome-1 {
    background: #4CAF50; /* Green for home win */
}
.outcome-x {
    background: #FFC107; /* Yellow for draw */
    color: #000; /* Black text for readability */
}
.outcome-2 {
    background: #F44336; /* Red for away win */
}
.outcome-unknown {
    background: #555555; /* Gray for unknown */
}
/* Pagination Styles */
.pagination a, .pagination span {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}
.pagination a:hover {
    background: var(--gold);
    color: #000;
}
.pagination .active {
    background: var(--gold);
    color: #000;
    font-weight: bold;
}
/* Hero Section */
.secken-hero {
    background: var(--card-bg);
    border: 3px solid var(--gold);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: left; /* Left-aligned by default */
}
.mikael-img {
    max-width: 240px;
    height: auto;
    border: 4px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    margin: 0 0 25px 0; /* Adjusted for left alignment */
    display: block;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 10px; /* Reduced padding for mobiles */
        margin: 50px 0; /* Remove auto centering margins */
    }
    h1, h2, p, .secken-hero, .match-row, .outcome-tags, .pagination {
        text-align: left !important; /* Force left alignment on mobile */
    }
    .match-row {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 10px;
    }
    .mikael-img {
        max-width: 100%; /* Full width on mobile */
    }
    .pagination {
        text-align: left; /* Left-align pagination */
        display: flex;
        flex-wrap: wrap; /* Wrap for better mobile view */
        justify-content: flex-start;
    }
    /* Enhance text readability on mobile */
    body {
        font-size: 16px; /* Larger base font for touch devices */
    }
    .accordion summary {
        padding: 15px; /* Slightly smaller padding */
    }
    .secken-hero {
        padding: 20px; /* Reduced padding for mobile */
    }
}
@media (max-width: 480px) {
    /* Extra small devices */
    .match-num {
        font-size: 1.2em; /* Adjust for very small screens */
    }
    .outcome-tags span {
        padding: 4px 10px; /* Smaller tags */
        font-size: 0.85em;
    }
}
/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
/* Ensure high contrast for accessibility */
a, button {
    outline: none; /* Remove default outline */
}
a:focus, button:focus {
    box-shadow: 0 0 0 3px rgba(var(--gold), 0.5); /* Focus ring with gold */
}
/* shout out för mobiler */
/* ───────────────────────────────────────────────
   Goal shoutout – mobilanpassad + top fixed
   ─────────────────────────────────────────────── */
.goal-shoutout {
    position: fixed;
    top: 12px;                 /* högst upp på sidan */
    left: 4%;
    right: 4%;
    margin: 0 auto;
    max-width: 92vw !important;
    padding: 10px 14px !important;
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    background: rgba(34, 197, 94, 0.92) !important;
    color: white !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45) !important;
    text-align: center !important;
    z-index: 9999 !important;
    overflow: hidden !important;
}

/* Extra optimering för små mobiler */
@media (max-width: 420px) {
    .goal-shoutout {
        padding: 8px 12px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
    }
}

/* ==================== ODDSÄNDRINGAR - PIL UPP GRÖN / PIL NER RÖD (mobilvänlig) ==================== */
/* Lägg till längst ner i /assets/Design2026.css */

.odds-cell .change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 13.5px;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

/* PIL UPP = GRÖN */
.odds-cell .change.up {
    color: #00ff9d;
    background: rgba(0, 255, 157, 0.12);
}
.odds-cell .change.up i.fas {
    color: #00ff9d;
}

/* PIL NER = RÖD */
.odds-cell .change.down {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.12);
}
.odds-cell .change.down i.fas {
    color: #ff4757;
}

/* ==================== MOBIL-OPTIMERING ==================== */
@media (max-width: 768px) {
    .odds-cell .change {
        font-size: 12px;
        padding: 2px 8px;
        margin-bottom: 4px;
        gap: 3px;
    }
}
/* ==================== VALUE BETS TABELL - STJÄRNA + GRÖN EV % ==================== */
.value-bets-table td {
    vertical-align: middle;
}

.value-bets-table button {
    transition: all 0.2s ease;
}
.value-bets-table button:hover {
    transform: scale(1.0);
    background: #00cc7a !important;
}

/* EV % - extra grön effekt */
.value-bets-table .value-strong {
    color: #00ff9d !important;
    background: rgba(0, 255, 157, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}
/* ==================== VALUE PAGE - VALUE BETS RUBRIK (mobilvänlig) ==================== */
.value-match .expanded > strong {
    display: block;
    font-size: 18px;          /* desktop-storlek (kan ändra om du vill) */
    margin: 12px 0 15px 0;
    color: #00ff9d;
}

/* MOBIL - mindre storlek */
@media (max-width: 768px) {
    .value-match .expanded > strong {
        font-size: 5px;      /* mindre på telefon */
        margin: 2px 0 5px 0;
    }
}
/* ==================== USER DROPDOWN FIX - MOBIL (FINAL VERSION) ==================== */

/* Vit färg på både ikon OCH namnet (tidigare var bara ikonen vit) */
.user-btn,
.user-btn span {
    color: #ffffff !important;
    font-weight: 600;
}

/* Header och kontroller – ger dem högre z-index så dropdown kan hamna OVANFÖR */
header .container,
.header-top,
.header-controls {
    position: relative !important;
    z-index: 2000 !important;
    overflow: visible !important;
}

/* Användarprofilen – hög z-index */
.user-profile {
    position: relative !important;
    z-index: 3000 !important;
}

/* Dropdown – MAX z-index + snygg design */
#user-dropdown {
    position: absolute !important;
    z-index: 99999999 !important;     /* galet högt – hamnar över ALLT */
    top: 105% !important;
    right: 0 !important;
    background: #1a1a1a !important;
    border: 2px solid #00ff9d !important;
    border-radius: 10px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.95) !important;
    min-width: 220px;
    padding: 12px 0;
    color: #ffffff !important;
    visibility: visible !important;
}

/* Länkar inne i menyn – vit text + hover */
#user-dropdown a {
    color: #ffffff !important;
    padding: 12px 20px;
}
#user-dropdown a:hover {
    background: rgba(0, 255, 157, 0.25) !important;
}

/* MOBIL – extra säkerhet */
@media (max-width: 768px) {
    #user-dropdown {
        right: 10px !important;
        width: 92vw !important;
        max-width: 290px !important;
        top: 110% !important;
        z-index: 999999999 !important;   /* ännu högre på mobil */
    }
    
    .user-btn {
        padding: 5px 9px !important;
    }
}


/* ==========================================================================
   GOAL SHOUTOUT – FIXAD 2026 VERSION (funkar perfekt på både mobil + desktop)
   ========================================================================== */
#goal-shoutout {
    position: fixed;
    top: 20px;                    /* lite luft under headern */
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    z-index: 999999;              /* högre än allt annat */
    pointer-events: none;
    text-align: center;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); /* fin bounce */
    opacity: 0;
    visibility: hidden;
    display: block !important;    /* säkerställer att global .hidden inte dödar den */
}

#goal-shoutout.show,
#goal-shoutout:not(.hidden) {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

/* Inner pillen */
.goal-shoutout-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ffd700 0%, #ffea80 40%, #00ff9d 100%);
    color: #000;
    font-weight: 900;
    font-size: clamp(1.25rem, 3vw, 1.75rem); /* perfekt storlek på alla skärmar */
    line-height: 1.3;
    border-radius: 999px;
    box-shadow: 
        0 15px 40px rgba(0, 200, 83, 0.45),
        0 0 0 5px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    max-width: 96vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ikon */
.goal-shoutout-inner .fa-futbol,
.goal-shoutout-inner i {
    font-size: 2.25rem;
    flex-shrink: 0;
}

/* Extra säkerhet */
#goal-shoutout {
    display: block !important;
}
/* ───────────────────────────────────────────────
   MOBIL – responsiv magic
   ─────────────────────────────────────────────── */
@media (max-width: 1023px) {
    #goal-shoutout {
        inset: 56px 0 auto 0;        /* under typisk header (justera efter din header-höjd) */
    }

    .goal-shoutout-inner {
        margin: 0 12px;
        padding: 11px 20px;          /* tightare men fortfarande touch-vänlig */
        font-size: 1.18rem;          /* ≈19px – sweet spot 2026 */
        line-height: 1.32;
        gap: 10px;
        box-shadow: 0 8px 32px rgba(0, 200, 83, 0.38);
        white-space: normal;         /* ← viktig! */
        word-break: break-word;
        hyphens: auto;
        border-radius: 60px;         /* lite mindre extrem på små skärmar */
    }

    #goal-shoutout-inner .fa-futbol,
    #goal-shoutout-inner i,
    #goal-shoutout-inner span.emoji {
        font-size: 1.55rem;
    }
}

/* Extra små mobiler (≤ 560px, gamla Android etc) */
@media (max-width: 560px) {
    .goal-shoutout-inner {
        font-size: 1.05rem;          /* ≈17px – aldrig under 16px */
        padding: 10px 18px;
        gap: 9px;
        margin: 0 10px;
    }

    #goal-shoutout-inner .fa-futbol,
    #goal-shoutout-inner i,
    #goal-shoutout-inner span.emoji {
        font-size: 1.4rem;
    }
}

/* Superstora skärmar – bonus */
@media (min-width: 1400px) {
    .goal-shoutout-inner {
        font-size: 1.65rem;
        padding: 16px 36px;
        gap: 16px;
    }
}
/* top3 oddsdrops */
.top-drop:hover {
    border-color: #ff4757;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255,71,87,0.3);
}

.planner-container { max-width:1280px; margin:30px auto; padding:35px; background:#1a1a1a; border-radius:20px; box-shadow:0 15px 50px rgba(0,0,0,0.7); }
    h1 { color:#00d4ff; font-size:3rem; text-align:center; text-shadow:0 2px 15px rgba(0,212,255,0.3); }
    .planner-table { width:100%; border-collapse:collapse; background:#1f1f1f; border-radius:16px; overflow:hidden; box-shadow:0 10px 30px rgba(0,0,0,0.5); }
    .planner-table th { background:#252525; color:#00d4ff; padding:18px 12px; text-transform:uppercase; font-size:12.5px; letter-spacing:0.5px; }
    .planner-table td { padding:16px 12px; border-bottom:1px solid #333; vertical-align:middle; }
    .planner-table tr:hover { background:#2a2a2a; }
    .btn-primary { background:linear-gradient(135deg,#00b7eb,#0099cc); padding:16px 34px; font-size:1.2rem; border-radius:12px; box-shadow:0 8px 25px rgba(0,183,235,0.4); }
    .btn-primary:hover { transform:translateY(-4px); box-shadow:0 12px 30px rgba(0,183,235,0.5); }
    
/* ==================== TOP 5 – ENDAST DET SJUNKEN UTVALLET (hög specificitet) ==================== */
#top5-section .match-card {
    background: #1f1f1f !important;
    border: 2px solid #333 !important;
    border-radius: 16px !important;
    padding: 22px !important;
    margin-bottom: 18px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
    transition: all 0.35s ease !important;
    cursor: pointer !important;
}
#top5-section .match-card:hover {
    transform: translateY(-6px) !important;
    border-color: #00e676 !important;
    box-shadow: 0 15px 40px rgba(0,230,118,0.45) !important;
}

#top5-section .rank-badge {
    width: 58px !important; height: 58px !important; font-size: 1.95rem !important;
    clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%) !important;
}
#top5-section .match-teams { font-size: 1.28rem !important; font-weight: 700 !important; flex: 1 !important; }

.summary-odds { width: 100% !important; margin-top: 12px !important; }
.odd-row { display: flex !important; justify-content: space-between !important; align-items: center !important; margin: 9px 0 !important; font-size: 1.07rem !important; }
.outcome { font-weight: bold !important; width: 26px !important; color: #ffd700 !important; }
.odds { font-family: monospace !important; font-weight: 600 !important; }
.odds-change { padding: 7px 16px !important; border-radius: 10px !important; font-weight: 800 !important; font-size: 1.02rem !important; min-width: 82px !important; text-align: center !important; }
.odds-change.odds-down { color: #ff3b30 !important; background: linear-gradient(135deg,#0f1e2e,#0f1e2e) !important; }

/* Mobil */
@media (max-width: 768px) {
    #top5-section .rank-badge { width: 48px !important; height: 48px !important; font-size: 1.05rem !important; }
    #top5-section .match-card { padding: 18px !important; }
}
/* ==================== TOP 5 – TVINGAD DESKTOP CSS (högsta prioritet) ==================== */
#top5-section .match-card {
    background: #1f1f1f !important;
    border: 2px solid #333 !important;
    border-radius: 16px !important;
    padding: 22px !important;
    margin-bottom: 18px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
    transition: all 0.35s ease !important;
    cursor: pointer !important;
}

#top5-section .match-card:hover {
    transform: translateY(-6px) !important;
    border-color: #00e676 !important;
    box-shadow: 0 15px 40px rgba(0,230,118,0.45) !important;
    background: #252525 !important;
}

/* Rank-badge (guld/silver/brons) */
#top5-section .rank-badge {
    width: 58px !important;
    height: 58px !important;
    font-size: 1.95rem !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6) !important;
    margin-right: 16px !important;
    color: #000 !important;
}

/* Guld / Silver / Brons */
#top5-section .match-card:nth-of-type(1) .rank-badge { background: linear-gradient(135deg,#FFD700,#B8860B) !important; }
#top5-section .match-card:nth-of-type(2) .rank-badge { background: linear-gradient(135deg,#C0C0C0,#808080) !important; }
#top5-section .match-card:nth-of-type(3) .rank-badge { background: linear-gradient(135deg,#CD7F32,#8C5523) !important; }

/* Match-header + lag */
#top5-section .match-header {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: center !important;
}
#top5-section .match-teams {
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    flex: 1 !important;
    color: #ffffff !important;
}

/* Odds-rader */
.summary-odds { width: 100% !important; margin-top: 12px !important; }
.odd-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 9px 0 !important;
    font-size: 1.07rem !important;
}
.outcome { font-weight: bold !important; width: 26px !important; color: #ffd700 !important; }
.odds { font-family: monospace !important; font-weight: 600 !important; }
.odds-change {
    padding: 7px 16px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 1.02rem !important;
    min-width: 82px !important;
    text-align: center !important;
}
.odds-change.odds-down {
    color: #ff3b30 !important;
    background: linear-gradient(135deg,#0f1e2e,#0f1e2e) !important;
}

/* Desktop (oförändrat) */
#top5-section .match-card {
    background: #1f1f1f !important;
    border: 3px solid #444 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 10px 35px rgba(0,0,0,0.7) !important;
    transition: all 0.4s ease !important;
    cursor: pointer !important;
}
#top5-section .match-card:hover {
    transform: translateY(-8px) !important;
    border-color: #00e676 !important;
    box-shadow: 0 20px 50px rgba(0,230,118,0.5) !important;
    background: #252525 !important;
}
#top5-section .rank-badge {
    width: 62px !important; height: 62px !important; font-size: 2.1rem !important;
}

/* MOBIL – MINDRE STORLEK (här har vi minskat allt lite) */
@media (max-width: 768px) {
    #top5-section .match-card {
        padding: 14px !important;          /* mindre padding */
        margin-bottom: 14px !important;
    }
    #top5-section .rank-badge {
        width: 42px !important;            /* mindre medalj */
        height: 42px !important;
        font-size: 1.55rem !important;
    }
    #top5-section .match-teams {
        font-size: 0.85rem !important;     /* lite mindre text */
    }
    .summary-odds { margin-top: 8px !important; }
    .odd-row {
        font-size: 0.98rem !important;     /* mindre odds-text */
        margin: 6px 0 !important;
    }
    .odds-change {
        padding: 5px 12px !important;
        font-size: 0.95rem !important;
        min-width: 72px !important;
    }
}


/* SÖKNING FRÅN HEADER */
.search-wrapper {
    position: absolute;
    top: 60px;
    right: 20px;
    background: #1a1a1a;
    border: 2px solid #00ff9d;
    border-radius: 12px;
    width: 380px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    padding: 12px;
}
.search-suggestions {
    max-height: 320px;
    overflow-y: auto;
    margin-top: 8px;
}
.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: all 0.2s;
}
.suggestion-item:hover {
    background: #00ff9d;
    color: #000;
}
.suggestion-item strong { font-size: 1.05rem; }
.no-results { padding: 15px; text-align: center; color: #888; font-style: italic; }

/* RADIO SELECTOR */
.radio-select {
    width: 100%;
    max-width: 420px;
    margin: 1rem auto 1.5rem;
    padding: 14px 16px;
    font-size: 1.1rem;
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid #00ff9d;
    border-radius: 8px;
    cursor: pointer;
}
/* SNYGG MINI RADIO - bredvid chat-knappen */
#radio-mini-player {
    position: fixed !important;
    bottom: 95px !important;
    right: 25px !important;
    background: #00ff9d !important;
    color: #000 !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 30px rgba(0,255,157,0.6) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-weight: bold !important;
    font-size: 1.05rem !important;
    min-width: 220px !important;
    transition: all 0.3s ease !important;
}

.mini-inner { display: flex; align-items: center; gap: 12px; }
#mini-play-btn, .stop-btn {
    background: rgba(0,0,0,0.25) !important;
    color: #000 !important;
    border: none !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
}
#mini-play-btn:hover, .stop-btn:hover { background: rgba(0,0,0,0.35) !important; }
.stop-btn { background: #dc3545 !important; color: white !important; }
/* RESPONSIV MINI RADIO - snygg på PC + mobil */
#radio-mini-player {
    position: fixed !important;
    bottom: 95px !important;
    right: 25px !important;
    background: #00ff9d !important;
    color: #000 !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 30px rgba(0,255,157,0.6) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-weight: bold !important;
    font-size: 1.05rem !important;
    min-width: 220px !important;
    transition: all 0.3s ease !important;
}

.mini-inner { display: flex; align-items: center; gap: 12px; }

#mini-play-btn, .stop-btn {
    background: rgba(0,0,0,0.25) !important;
    color: #000 !important;
    border: none !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
}
#mini-play-btn:hover, .stop-btn:hover { background: rgba(0,0,0,0.35) !important; }
.stop-btn { background: #dc3545 !important; color: white !important; }

/* MOBIL VERSION - mindre + vänster sida */
@media (max-width: 768px) {
    #radio-mini-player {
        right: auto !important;
        left: 20px !important;
        padding: 5px 8px !important;
        font-size: 0.65rem !important;
        min-width: 160px !important;
        bottom: 65px !important; /* lite högre upp så den inte krockar med chat */
    }
    #mini-play-btn, .stop-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.5rem !important;
    }
}
/* RESPONSIV MINI RADIO - perfekt på iPhone + PC */
#radio-mini-player {
    position: fixed !important;
    bottom: 100px !important;           /* ←←← ÄNDRA HÄR för att flytta upp/ner */
    right: 25px !important;
    background: #00ff9d !important;
    color: #000 !important;
    padding: 10px 18px !important;      /* ←←← ÄNDRA HÄR för storlek */
    border-radius: 50px !important;
    box-shadow: 0 10px 30px rgba(0,255,157,0.6) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-weight: bold !important;
    font-size: 1.0rem !important;       /* ←←← ÄNDRA HÄR för textstorlek */
    min-width: 200px !important;        /* ←←← ÄNDRA HÄR för bredd */
    transition: all 0.3s ease !important;
}

.mini-inner { display: flex; align-items: center; gap: 12px; }

#mini-play-btn, .stop-btn {
    background: rgba(0,0,0,0.25) !important;
    color: #000 !important;
    border: none !important;
    width: 26px !important;             /* ←←← ÄNDRA HÄR för knappstorlek */
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

/* MOBIL (iPhone) - mindre + vänster sida */
/* MOBIL VERSION - så långt ner som möjligt på iPhone */
@media (max-width: 768px) {
    #radio-mini-player {
        right: auto !important;
        left: 15px !important;
        bottom: 20px !important;        /* ←←← DETTA ÄR SÅ LÅNGT NER SOM MÖJLIGT */
        padding: 4px 7px !important;
        font-size: 0.55rem !important;
        min-width: 125px !important;
    }
    #mini-play-btn, .stop-btn {
        width: 32px !important;
        height: 32px !important;
    }
}






/* === ULTRA FORCE – TVINGAD GENOMSKINLIG BAKGRUND PÅ BÅDA CHARTS === */
    .chart-container,
    .chart-container.bar,
    .container > .chart-container,
    div[class*="chart-container"] {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 20px 0 30px 0 !important;
        margin: 35px 0 80px 0 !important;
    }

    .chart-container > div[style*="position: relative"],
    .chart-container > div {
        background: transparent !important;
        background-color: transparent !important;
    }

    canvas#bankChart,
    canvas#bankrollBarChart,
    canvas {
        background: transparent !important;
        background-color: transparent !important;
    }

    /* Extra säkerhet mot Design2026.css + h2-rubriker */
    .chart-container h2,
    .chart-container *,
    div[class*="chart"] {
        background: transparent !important;
    }
    /* MOBIL HEADER – KOMPAKT VERSION */
@media (max-width: 1023px) {
    .header-top {
        padding: 8px 10px !important;
        gap: 8px !important;
        min-height: 56px !important;
        align-items: center !important;
    }

    .logo-text {
        font-size: 1.25rem !important;   /* mindre text på mobil */
        font-weight: 900;
    }
    .logo-img {
        max-height: 36px !important;
    }

    .header-controls {
        gap: 6px !important;
    }

    .search-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.25rem !important;
    }

    .auth-btn.login-btn {
        padding: 6px 12px !important;
        font-size: 0.82rem !important;
        background: #00ff9d !important;
        color: #000 !important;
    }

    #mobile-menu-toggle {
        font-size: 1.7rem !important;
        padding: 6px 10px !important;
    }
}
/* FIX FÖR ATT INNEHÅLLET INTE SKA TRYCKAS LÅNGT NER PÅ MOBIL */
@media (max-width: 1023px) {
    
    /* Tar bort onödig top-padding på main */
    main.container,
    .main-content,
    section,
    .section {
        padding-top: 10px !important;
        margin-top: 0 !important;
    }

    /* Se till att hela sidan börjar direkt under header + banner */
    body {
        padding-top: 0 !important;
    }

    /* Om du har en wrapper runt innehållet */
    .container {
        padding-top: 0 !important;
    }

    /* Extra säkerhet mot stora tomma ytor */
    html, body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}
/* ================================================
   DESKTOP ONLY – Minska menytextstorlek
   ================================================ */
@media screen and (min-width: 1024px) {
    
    /* Huvudmenyn – länkarna */
    .nav-menu a {
        font-size: 0.85rem !important;     /* ← ÄNDRA HÄR (t.ex. 0.95rem eller 1.0rem) */
        padding: 12px 14px !important;     /* lite tightare padding om du vill */
        font-weight: 500;
    }

    /* Dropdown-länkar (Verktyg, Speltips, Info) */
    .dropdown-menu a {
        font-size: 0.92rem !important;     /* lite mindre än huvudmenyn */
        padding: 10px 18px !important;
    }

    /* Dropdown-knappen själv (t.ex. "Verktyg ▼") */
    .dropdown-toggle {
        font-size: 1.02rem !important;
    }
}
