:root {
    --of-bg: #0f1722;
    --of-bg-card: #111827;
    --of-bg-card-soft: #1f2937;
    --of-border-soft: #1f2937;
    --of-text: #f9fafb;
    --of-text-muted: #9ca3af;
    --of-accent: #facc15; /* industri-gul */
    --of-hot: #f97316;    /* orange */
    --of-stable: #22c55e; /* grön */
    --of-cold: #6b7280;   /* grå */
    --of-radius-lg: 16px;
    --of-radius-xl: 22px;
    --of-shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.35);
    --of-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--of-font-main);
    background: radial-gradient(circle at top, #1f2937 0, #020617 60%);
    color: var(--of-text);
    min-height: 100vh;
}

/* Headings */
h1, h2, h3 {
    margin: 0 0 1rem 0;
    font-weight: 700;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

/* Header */

.of-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1.4rem 0.6rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(to bottom, rgba(15,23,42,0.95), rgba(15,23,42,0.8));
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.of-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.of-logo-wrap:hover {
    opacity: 0.8;
}

.of-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: radial-gradient(circle at top, var(--of-accent), #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.55);
    color: #111827;
}

.of-logo-text {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.of-tagline {
    font-size: 0.8rem;
    color: var(--of-text-muted);
}

/* Nav */

.of-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
}

.of-nav-link {
    font-size: 0.85rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--of-text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.of-nav-link--active {
    border-color: rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.8);
    color: var(--of-text);
}

/* Bottennavigering (mobil) */
.of-bottom-nav {
    display: none;
}

.of-bottom-nav-more-wrap {
    position: relative;
}

.of-bottom-nav-more-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 24;
    background: transparent;
}

.of-bottom-nav-more-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    min-width: 180px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 25;
    padding: 0.5rem 0;
}

.of-bottom-nav-more-wrap.of-bottom-nav-more-open .of-bottom-nav-more-menu {
    display: block;
}

.of-bottom-nav-more-wrap.of-bottom-nav-more-open .of-bottom-nav-more-backdrop {
    display: block;
}

.of-bottom-nav-more-item {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--of-text);
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.of-bottom-nav-more-item:hover,
.of-bottom-nav-more-item:focus {
    background: rgba(148, 163, 184, 0.15);
    color: var(--of-accent);
}

.of-bottom-nav-more-item--active {
    color: var(--of-accent);
    font-weight: 600;
}

@media (max-width: 768px) {
    .of-header .of-nav {
        display: none !important;
    }

    .of-main {
        padding-bottom: 80px;
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
    }

    .of-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 22;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
        border-top: 1px solid rgba(148, 163, 184, 0.25);
        padding: 0.5rem 0;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
        justify-content: center;
        align-items: stretch;
        gap: 0;
        backdrop-filter: blur(10px);
    }

    .of-bottom-nav-link {
        flex: 1;
        min-width: 0;
        max-width: 25%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        min-height: 56px;
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
        color: var(--of-text-muted);
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
    }

    .of-bottom-nav-link:hover,
    .of-bottom-nav-link:focus {
        color: var(--of-text);
    }

    .of-bottom-nav-link--active {
        color: var(--of-accent);
        font-weight: 600;
    }

    .of-bottom-nav-more-wrap {
        flex: 1;
        min-width: 0;
        max-width: 25%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .of-bottom-nav-more-btn {
        width: 100%;
        min-height: 56px;
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        color: inherit;
    }
}

/* Main layout */

.of-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.7rem 0.9rem 2rem;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 900px 1fr 280px;
    gap: 2rem;
    align-items: start;
    position: relative;
}

.main-content {
    max-width: 900px;
    width: 100%;
    min-width: 0; /* Förhindra overflow */
    grid-column: 2;
}

.main-sidebar {
    position: sticky;
    top: 2rem;
    width: 280px;
    grid-column: 4;
}

.sidebar-card {
    background: var(--of-bg-card);
    border-radius: var(--of-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--of-border-soft);
    box-shadow: var(--of-shadow-soft);
    margin-bottom: 1.5rem;
}

.profile-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.quick-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--of-text);
    transition: background 0.2s, transform 0.2s;
    border: 1px solid rgba(255,255,255,0.05);
}

.quick-list-item:hover {
    background: rgba(0,0,0,0.3);
    transform: translateX(4px);
    border-color: rgba(255,255,255,0.1);
}

.quick-list-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.quick-list-meta {
    font-size: 0.75rem;
    color: var(--of-text-muted);
}

/* Heta spelare i sidobar */
.hot-players-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hot-player-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--of-text);
    transition: background 0.2s, transform 0.2s;
    border: 1px solid rgba(255,255,255,0.05);
}

.hot-player-item:hover {
    background: rgba(0,0,0,0.3);
    transform: translateX(4px);
    border-color: rgba(255,255,255,0.1);
}

.hot-player-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--of-primary), var(--of-primary-dark));
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.hot-player-item:nth-child(1) .hot-player-rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.hot-player-item:nth-child(2) .hot-player-rank {
    background: linear-gradient(135deg, #C0C0C0, #808080);
}

.hot-player-item:nth-child(3) .hot-player-rank {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.hot-player-info {
    flex: 1;
    min-width: 0;
}

.hot-player-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hot-badge {
    font-size: 0.9rem;
}

.hot-player-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--of-text-muted);
    flex-wrap: wrap;
}

.hot-stat {
    white-space: nowrap;
}

.hot-stat strong {
    color: var(--of-text);
    font-weight: 600;
}

@media (max-width: 1400px) {
    .main-layout {
        grid-template-columns: 1fr 900px 1fr;
    }
    
    .main-content {
        grid-column: 2;
    }
    
    .main-sidebar {
        display: none; /* Dölj sidobar på mindre skärmar */
    }
}

@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        grid-column: 1;
        max-width: 100%;
    }
    
    .main-sidebar {
        display: block;
        position: static;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        grid-column: 1;
    }
    
    .profile-sections-grid {
        grid-template-columns: 1fr;
    }
}

/* Filter: bar med knapp – panelen ligger i flödet nedanför (filterPanelWrap) */
.of-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0 0 0;
}

.of-filter-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0.35rem 0.9rem;
    min-height: 0;
    height: auto;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.6);
    color: var(--of-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.2s;
    font-family: var(--of-font-main);
}

.of-filter-trigger:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.5);
    color: var(--of-text);
}

.of-filter-trigger--active {
    border-color: var(--of-accent);
    color: var(--of-text);
    box-shadow: 0 0 0 1px var(--of-accent), 0 0 12px rgba(250, 204, 21, 0.25);
}

.of-filter-trigger--active:hover {
    box-shadow: 0 0 0 1px var(--of-accent), 0 0 16px rgba(250, 204, 21, 0.35);
}

.of-filter-trigger-icon {
    font-size: 1em;
    line-height: 1;
}

/* Wrapper som animerar höjd med grid 0fr → 1fr – skjuter ned rekarna */
.filterPanelWrap {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.filterPanelWrap.is-open {
    grid-template-rows: 1fr;
}

/* Innehållet glider ut (translateX + opacity), min-height: 0 så grid kan kollapsa */
.panelContent {
    min-height: 0;
    overflow: hidden;
    transform: translateX(-12px);
    opacity: 0;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.filterPanelWrap.is-open .panelContent {
    transform: translateX(0);
    opacity: 1;
}

.of-filter-panel-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    padding: 0.35rem 0 0.5rem 0;
}

@media (max-width: 640px) {
    .of-filter-panel-inner {
        gap: 0.35rem 0.5rem;
    }
    .of-filters--secondary {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.2);
        padding-top: 0.35rem;
        margin-top: 0.15rem;
    }
}

/* Filter chips (inuti panel) */
.of-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    overflow-x: auto;
    flex-wrap: wrap;
}

.of-filters--primary {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.of-filters--secondary {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(148, 163, 184, 0.2);
}

.of-filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--of-text-muted);
    margin-right: 0.3rem;
    white-space: nowrap;
}

.of-chip {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.6);
    color: var(--of-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.of-chip:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.5);
}

.of-chip--active {
    border-color: var(--of-accent);
    background: rgba(250, 204, 21, 0.1);
    color: var(--of-text);
}

.of-chip--clear {
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.of-chip--clear:hover {
    border-color: rgba(239, 68, 68, 0.7);
    background: rgba(239, 68, 68, 0.1);
}

/* Feed + cards */

/* Lite marginal ovanför så filterpanelen får plats när den fälls ut (lägger sig inte över rekarna) */
.of-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Clickable rek card link (div with data-href to avoid nested <a>) */
.of-rek-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.of-rek-card-link:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.of-rek-card-link:hover .of-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.of-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.96));
    border-radius: var(--of-radius-xl);
    padding: 0.9rem 1rem 0.85rem;
    border: 1px solid var(--of-border-soft);
    box-shadow: var(--of-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Redesigned rek card layout */
.of-card--redesigned {
    padding: 1rem 1.25rem;
    gap: 1rem;
}

/* Header: League + Kickoff */
.of-rek-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--of-text-muted);
    margin-bottom: 0.5rem;
    overflow: visible;
}

.of-rek-league {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
}

.of-rek-league-icon {
    font-size: 0.85rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.of-rek-league-name {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--of-text-muted);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: visible;
    padding-right: 2px;
    min-width: min-content;
}

.of-rek-kickoff {
    font-size: 0.7rem;
    color: var(--of-text-muted);
    flex-shrink: 0;
}

/* Kortkommentar i header (kursiv, diskret, centrerad) */
.of-rek-header-comment-block {
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
    text-align: center;
}
.of-rek-header-comment {
    font-size: 0.72rem;
    font-style: italic;
    color: var(--of-text-muted);
    line-height: 1.3;
}
.of-rek-comment-author {
    font-style: normal;
    font-weight: 600;
    color: var(--of-text);
    text-decoration: none;
    cursor: pointer;
}
.of-rek-comment-author:hover {
    text-decoration: underline;
}
.of-rek-header-streak {
    font-size: 0.7rem;
    color: var(--of-text-muted);
    margin-top: 0.2rem;
    letter-spacing: 0.05em;
}
.of-rek-header-comment .of-rek-comment-text {
    color: var(--of-text-muted);
}

/* Team matchup row (centered) */
.of-rek-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.of-rek-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    max-width: 45%;
}

.of-rek-team-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--of-text);
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.of-rek-vs {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--of-text-muted);
    opacity: 0.6;
    flex-shrink: 0;
}

/* Odds box (large, rounded) - Green/teal gradient */
.of-rek-odds-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin: 0.5rem 0;
    position: relative;
    overflow: hidden;
    gap: 1rem;
    
    /* Green/teal gradient background */
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.25) 0%,
        rgba(5, 150, 105, 0.35) 50%,
        rgba(4, 120, 87, 0.4) 100%
    );
    
    /* Subtle vignette effect */
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(16, 185, 129, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1);
    
    /* Soft glow effect */
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Subtle overlay for depth */
.of-rek-odds-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at top center,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.of-rek-odds-left {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    z-index: 1;
}

.of-rek-units-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.of-rek-units-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.of-rek-odds-center {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    align-items: center;
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 0 0.5rem;
}

.of-rek-comment-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.of-rek-comment {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 400;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    min-width: 0;
}

.of-rek-odds-right {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.of-rek-odds-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.of-rek-odds-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

/* Footer removed - comment is now in odds box */


/* Mobile responsiveness for redesigned cards */
@media (max-width: 768px) {
    .of-card--redesigned {
        padding: 0.9rem 1rem;
        gap: 0.75rem;
    }
    
    .of-rek-matchup {
        gap: 1rem;
        margin: 0.75rem 0;
    }
    
    .of-rek-team-name {
        font-size: 1.05rem;
    }
    
    .of-rek-vs {
        font-size: 0.75rem;
    }
    
    .of-rek-odds-box {
        padding: 0.85rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .of-rek-odds-left,
    .of-rek-odds-center,
    .of-rek-odds-right {
        align-items: center;
        width: 100%;
    }
    
    .of-rek-odds-center {
        padding: 0;
    }
    
    .of-rek-odds-value,
    .of-rek-units-value {
        font-size: 1.5rem;
        letter-spacing: -0.3px;
    }
    
    .of-rek-comment {
        font-size: 0.95rem;
    }
}

/* Status-baserade ramfärger */

.of-card--open {
    border: 2px solid #facc15 !important; /* Gult för öppna spel */
}

.of-card--win {
    border: 2px solid #22c55e !important; /* Grönt för rättade spel */
}

.of-card--loss {
    border: 2px solid #ef4444 !important; /* Rött för missade spel */
}

.of-card--void {
    border: 2px solid #6b7280 !important; /* Grått för void/push */
}

.of-card--half-win {
    border: 2px solid #84cc16 !important; /* Lime för halvvinst */
}

.of-card--half-loss {
    border: 2px solid #f59e0b !important; /* Amber för halvförlust */
}

.of-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.of-card-league {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.of-pill {
    font-size: 0.7rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.of-league-name {
    color: var(--of-text-muted);
}

.of-card-status {
    font-size: 0.75rem;
    color: var(--of-text-muted);
    font-weight: 500;
}

.of-status--win {
    color: #22c55e;
}

.of-status--loss {
    color: #ef4444;
}

.of-status--void {
    color: #6b7280;
}

.of-status--push {
    color: #6b7280;
}

.of-status--half-win {
    color: #84cc16;
}

.of-status--half-loss {
    color: #f59e0b;
}

.of-status--open {
    color: var(--of-accent);
}

/* Locked content för oinloggade användare */
.of-card-locked {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    margin: 0.5rem 0;
}

.of-locked-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.of-locked-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--of-text-muted);
    line-height: 1.5;
}

/* Match info */

.of-card-match {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.of-match-name {
    font-weight: 600;
    font-size: 1.15rem;
}

.of-match-kickoff {
    font-size: 0.75rem;
    color: var(--of-text-muted);
}

/* Bet section */

.of-card-bet {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.of-bet-type {
    font-weight: 500;
}

.of-bet-meta {
    display: flex;
    gap: 0.6rem;
    font-size: 0.8rem;
}

.of-odds {
    color: var(--of-accent);
}

.of-units {
    color: var(--of-text-muted);
}

/* Analysis */

.of-analysis {
    margin: 0;
    font-size: 0.8rem;
    color: var(--of-text-muted);
}

/* Footer inside card */

.of-card-footer {
    margin-top: 0.2rem;
    font-size: 0.78rem;
}

.of-card-footer-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 1rem;
}

.of-bettare {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 0 1 auto !important;
}

.of-btn-edit {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--of-text);
    text-decoration: none;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    opacity: 0.7;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    order: 999 !important;
}

.of-btn-edit:hover {
    opacity: 1;
    border-color: var(--of-accent);
    color: var(--of-accent);
    transform: translateY(-1px);
}

.of-card-actions .of-btn {
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 0.7;
    white-space: nowrap;
}

.of-card-actions .of-btn:hover {
    opacity: 1;
    border-color: var(--of-accent);
    color: var(--of-accent);
    transform: translateY(-1px);
}

.of-bettare-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #fde68a, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
}

.of-bettare-name {
    font-weight: 500;
}

.of-bettare-stats {
    color: var(--of-text-muted);
    font-size: 0.75rem;
}

/* Buttons */

.of-btn {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
}

.of-btn--ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--of-text);
}

/* Forms */

.of-form {
    max-width: 600px;
    margin: 0 auto;
}

.of-form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.of-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Reka-formulär - Förbättrad design */
.reka-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reka-subtitle {
    color: var(--of-text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.reka-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.reka-form-card {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.96));
    border-radius: var(--of-radius-xl);
    padding: 3rem;
    border: 1px solid var(--of-border-soft);
    box-shadow: var(--of-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin: 0 auto;
}

.reka-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reka-section:not(:last-child) {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.reka-section-header {
    margin-bottom: 0.5rem;
}

.reka-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--of-text);
    letter-spacing: 0.02em;
}

.reka-form-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.reka-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

.required {
    color: #ef4444;
    font-weight: 600;
}

.optional {
    color: var(--of-text-muted);
    font-size: 0.85em;
    font-weight: normal;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--of-text-muted);
    font-style: italic;
    line-height: 1.4;
}

.reka-form-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.of-btn--large {
    padding: 1.1rem 3rem;
    font-size: 1.05rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 200px;
    justify-content: center;
}

.btn-icon {
    font-size: 1.2rem;
}

.of-label {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.of-input {
    margin-bottom: 0;
}

.of-input--textarea {
    min-height: 120px;
    resize: vertical;
}

/* Match search dropdown */
.match-select-wrapper {
    position: relative;
}

.match-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--of-border-soft);
    border-radius: 12px;
    margin-top: 0.3rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--of-shadow-soft);
    display: none;
}

.match-dropdown.active {
    display: block;
}

.match-option {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: background 0.2s;
    font-size: 0.9rem;
}

.match-option:last-child {
    border-bottom: none;
}

.match-option:hover {
    background: rgba(148, 163, 184, 0.1);
}

.match-option.no-results {
    color: var(--of-text-muted);
    cursor: default;
    font-style: italic;
}

.match-option.no-results:hover {
    background: transparent;
}

.match-name {
    font-weight: 500;
    color: var(--of-text);
    margin-bottom: 0.3rem;
}

.match-info {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.match-league {
    font-size: 0.7rem;
    color: var(--of-accent);
    background: rgba(250, 204, 21, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.match-date {
    font-size: 0.75rem;
    color: var(--of-text-muted);
}

@media (max-width: 768px) {
    .reka-form-card {
        padding: 2rem 1.5rem;
    }
    
    .reka-form-row {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .reka-form-content {
        gap: 1.5rem;
    }
    
    .of-btn--large {
        width: 100%;
        padding: 1rem 2rem;
        min-width: 0;
    }
    
    .reka-section:not(:last-child) {
        padding-bottom: 2rem;
    }
    
    .reka-form-card {
        gap: 2rem;
    }

    /* Redigera spel: knapparna staplas på mobil, inget sticker ut */
    .reka-form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .reka-form-actions > div {
        margin-left: 0 !important;
        width: 100%;
        display: flex;
        gap: 0.75rem;
    }
    .reka-form-actions > div .of-btn--large {
        flex: 1;
        width: auto;
        min-width: 0;
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    .reka-form-actions > .of-btn--large:first-of-type {
        width: 100%;
    }
}

.of-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--of-text);
}

.of-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.8);
    color: var(--of-text);
    font-size: 0.9rem;
    font-family: var(--of-font-main);
    transition: all 0.2s;
}

.of-input:focus {
    outline: none;
    border-color: var(--of-accent);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}

.of-input::placeholder {
    color: var(--of-text-muted);
}

.of-input--textarea {
    resize: vertical;
    min-height: 100px;
}

select.of-input {
    cursor: pointer;
}

/* Buttons - expanded */

.of-btn--primary {
    background: linear-gradient(135deg, var(--of-accent), #f97316);
    color: #111827;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
    transition: all 0.2s;
}

.of-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(250, 204, 21, 0.4);
}

.of-btn--primary:active {
    transform: translateY(0);
}

.of-btn--danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all 0.2s;
}

.of-btn--danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.of-btn--danger:active {
    transform: translateY(0);
}

.of-btn--small {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

/* Messages */

.of-message {
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.of-message--success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.of-message--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Footer */

.of-footer {
    text-align: center;
    padding: 1rem 0 1.5rem;
    font-size: 0.75rem;
    color: var(--of-text-muted);
}

/* Responsivitet */

@media (min-width: 768px) {
    .of-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .of-main {
        padding-top: 1.2rem;
    }

    .of-card {
        padding: 1rem 1.2rem 1rem;
    }
}

/* ==========================
   Heta spelare – FAB-kort (FIFA-stil)
   ========================== */

.fab-player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.fab-player-card {
    width: 100%;
    padding: 1.5rem 1.2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border: 2px solid rgba(255,255,255,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.fab-player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.fab-player-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.fab-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.fab-card-rating {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    color: white;
}

.fab-card-flag {
    font-size: 1.8rem;
    opacity: 0.9;
}

.fab-card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0.5rem auto;
    background: radial-gradient(circle at top, rgba(255,255,255,0.98), rgba(255,255,255,0.85));
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    font-weight: 900;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), inset 0 2px 10px rgba(255,255,255,0.5);
    border: 4px solid rgba(255,255,255,0.4);
    position: relative;
    z-index: 1;
}

.fab-card-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: opacity 0.2s;
}

.fab-card-name:hover {
    opacity: 0.8;
}

.fab-card-role {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fab-card-stats {
    background: rgba(0,0,0,0.3);
    border-radius: 14px;
    padding: 0.8rem;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border: 1px solid rgba(255,255,255,0.15);
    margin-top: 0.3rem;
}

.fab-card-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fab-card-stat-row span:first-child {
    opacity: 0.85;
}

.fab-card-stat-row span:last-child {
    font-weight: 700;
    font-size: 0.9rem;
}

.fab-card-btn {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 0.3rem;
}

.fab-card-btn:hover {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.5);
}

/* Tier-färger för player cards - Förbättrade FIFA-stil */
.fab-player-card--gold {
    background: linear-gradient(135deg, #facc15 0%, #fbbf24 25%, #eab308 50%, #d97706 75%, #b45309 100%);
    box-shadow: 0 12px 32px rgba(250, 204, 21, 0.3);
}

.fab-player-card--gold:hover {
    box-shadow: 0 16px 40px rgba(250, 204, 21, 0.4);
}

.fab-player-card--silver {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 25%, #d1d5db 50%, #9ca3af 75%, #6b7280 100%);
    box-shadow: 0 12px 32px rgba(209, 213, 219, 0.2);
}

.fab-player-card--silver:hover {
    box-shadow: 0 16px 40px rgba(209, 213, 219, 0.3);
}

.fab-player-card--bronze {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 25%, #d97706 50%, #b45309 75%, #92400e 100%);
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.25);
}

.fab-player-card--bronze:hover {
    box-shadow: 0 16px 40px rgba(251, 191, 36, 0.35);
}

.fab-player-card--special {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 25%, #60a5fa 50%, #3b82f6 75%, #1e3a8a 100%);
    box-shadow: 0 12px 32px rgba(147, 197, 253, 0.2);
}

.fab-player-card--special:hover {
    box-shadow: 0 16px 40px rgba(147, 197, 253, 0.3);
}

.fab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Basform */
.fab-card {
    width: 100%;
    padding: 1rem;
    border-radius: 18px;
    text-align: center;
    color: var(--of-text);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Tier-färger */
.fab-gold {
    background: linear-gradient(135deg, #facc15, #eab308);
}

.fab-silver {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
}

.fab-bronze {
    background: linear-gradient(135deg, #fbbf24, #b45309);
}

/* Rating */
.fab-rating {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    text-align: left;
}

.fab-rating span {
    font-size: 0.7rem;
    display: block;
    opacity: 0.8;
}

/* Avatar */
.fab-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0.3rem auto;
    background: rgba(255,255,255,0.9);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
}

/* Namn */
.fab-name {
    font-size: 1rem;
    font-weight: 700;
}

.fab-focus {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.4rem;
}

/* Stats block */
.fab-stats {
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fab-stats div {
    display: flex;
    justify-content: space-between;
}

/* Knapp */
.fab-btn {
    width: 100%;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.4);
}

/* ==========================
   PROFILKORT – ODDsfabriken (FLIP CARD)
   ========================== */

.profile-card-wrapper {
    width: 100%;
    max-width: 422px;
    margin: 0 auto 2.5rem;
    perspective: 1000px;
    height: 500px; /* Fast höjd för flip-effekten */
}

/* I grid på hot.php */
.fab-player-grid .profile-card-wrapper {
    max-width: 100%;
    margin: 0;
}

.profile-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.profile-card-wrapper.flipped .profile-card-inner {
    transform: rotateY(180deg);
}

/* Framsidan döljs av backface-visibility vid rotation – ingen visibility:hidden så flip inte blinkar */
.profile-card-front,
.profile-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 22px;
    text-align: center;
    box-shadow: var(--of-shadow-soft);
    border: 2px solid rgba(255,255,255,0.2);
    padding: 2rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.profile-card-back {
    transform: rotateY(180deg);
}

.profile-card-front::before,
.profile-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.profile-card-wrapper:hover .profile-card-inner {
    transform: translateY(-2px);
}

.profile-card-wrapper.flipped:hover .profile-card-inner {
    transform: rotateY(180deg) translateY(-2px);
}

/* Tier backgrounds - Förbättrade FIFA-stil gradients */
.profile-tier-gold {
    background: radial-gradient(circle at top, #facc15 0%, #eab308 30%, #b45309 70%, #0f172a 100%);
    border-color: rgba(250, 204, 21, 0.4);
}

.profile-tier-silver {
    background: radial-gradient(circle at top, #e5e7eb 0%, #d1d5db 30%, #6b7280 70%, #0f172a 100%);
    border-color: rgba(209, 213, 219, 0.4);
}

.profile-tier-bronze {
    background: radial-gradient(circle at top, #fbbf24 0%, #f59e0b 30%, #92400e 70%, #0f172a 100%);
    border-color: rgba(251, 191, 36, 0.4);
}

.profile-tier-cold {
    background: radial-gradient(circle at top, #93c5fd 0%, #60a5fa 30%, #1e3a8a 70%, #0f172a 100%);
    border-color: rgba(147, 197, 253, 0.4);
}

/* Rating top-left */
.profile-card-rating {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    text-align: left;
    line-height: 1;
    z-index: 2;
}

.profile-card-rating span {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Avatar */
.profile-card-avatar {
    width: 120px;
    height: 120px;
    margin: 2rem auto 1rem;
    position: relative;
    z-index: 1;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 30px rgba(255,255,255,0.2);
    border: 4px solid rgba(255,255,255,0.4);
}

.profile-avatar-default {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at top, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: 900;
    color: #111827;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 30px rgba(255,255,255,0.2);
    border: 4px solid rgba(255,255,255,0.4);
}

/* Name + role */
.profile-card-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.profile-card-role {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.profile-card-member-since {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

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

.member-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.profile-card-flip-hint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: auto;
    padding-top: 1rem;
    font-style: italic;
}

/* BAKSIDA - Stats */
.profile-card-back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.profile-card-back-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.profile-card-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-card-stat-item {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.stat-value-roi {
    color: #facc15;
}

.stat-value-hitrate {
    color: #22c55e;
}

.stat-value-units {
    color: #3b82f6;
}

.stat-value-bets {
    color: #a855f7;
}

.profile-card-form-section {
    background: rgba(0,0,0,0.25);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 1rem;
}

/* Following page styles */
.following-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.following-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.96));
    border-radius: var(--of-radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--of-border-soft);
    box-shadow: var(--of-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.following-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.following-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at top, #fde68a, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    flex-shrink: 0;
}

.following-info {
    flex: 1;
    min-width: 0;
}

.following-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--of-text);
    text-decoration: none;
    margin-bottom: 0.3rem;
}

.following-name:hover {
    color: var(--of-accent);
}

.following-stats {
    font-size: 0.85rem;
    color: var(--of-text-muted);
}

.following-card-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--of-border-soft);
}

.following-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--of-text-muted);
}

.following-actions {
    display: flex;
    gap: 0.5rem;
}

.form-section-title {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-form-icons {
    font-size: 1.8rem;
    letter-spacing: 0.15rem;
    line-height: 1.5;
}

.profile-form-empty {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

/* ==========================
   GRUPPER & LISTOR
   ========================== */

.groups-grid,
.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.group-card,
.list-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.96));
    border-radius: var(--of-radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--of-border-soft);
    box-shadow: var(--of-shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
}

.group-card:hover,
.list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.group-card-header,
.list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.group-card-name,
.list-card-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--of-text);
    margin: 0;
}

.group-card-description,
.list-card-description {
    color: var(--of-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.group-badge,
.list-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.group-badge--owner {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.group-badge--admin {
    background: rgba(147, 197, 253, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.group-badge--public,
.list-badge--public {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.list-badge--private {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.group-card-info,
.list-card-info {
    font-size: 0.85rem;
    color: var(--of-text-muted);
    margin-bottom: 1rem;
}

.group-card-members,
.list-card-members {
    margin-bottom: 1rem;
}

.members-label {
    font-size: 0.8rem;
    color: var(--of-text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--of-text);
    transition: background 0.2s;
}

.member-item:hover {
    background: rgba(0,0,0,0.3);
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.member-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.member-role {
    font-size: 1rem;
}

.member-item--more {
    justify-content: center;
    color: var(--of-text-muted);
    font-style: italic;
}

.group-card-actions,
.list-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.member-card {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.member-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--of-text);
}

.member-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
}

.member-info {
    flex: 1;
}

.member-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--of-text-muted);
}

.member-role-badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
    font-size: 0.7rem;
    font-weight: 600;
}

.member-joined {
    font-size: 0.7rem;
}

.of-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--of-text);
}

.of-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--of-accent);
}

.list-empty {
    color: var(--of-text-muted);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 768px) {
    .groups-grid,
    .lists-grid {
        grid-template-columns: 1fr;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
}

/* Delad Numpad för Odds och Units */
.shared-numpad-wrapper {
    margin-top: 1rem;
}

.numpad-status {
    padding: 0.6rem 1rem;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.numpad-status--top {
    margin-bottom: 0.8rem;
}

.numpad-status--bottom {
    margin-top: 0.8rem;
}

.numpad-status-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--of-accent);
}

.of-input--numpad {
    cursor: pointer;
    background: rgba(15, 23, 42, 0.8);
    transition: all 0.2s ease;
}

.of-input--numpad.numpad-active {
    border-color: var(--of-accent);
    background: rgba(250, 204, 21, 0.1);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}

.shared-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
}

.numpad-row {
    display: contents;
}

.numpad-btn {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--of-text);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    user-select: none;
}

.numpad-btn:hover {
    background: rgba(148, 163, 184, 0.15);
    border-color: var(--of-accent);
    transform: translateY(-1px);
}

.numpad-btn:active {
    background: rgba(250, 204, 21, 0.2);
    transform: translateY(0);
    border-color: var(--of-accent);
}

.numpad-btn--backspace {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.numpad-btn--backspace:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

.numpad-btn--backspace svg {
    width: 20px;
    height: 20px;
}

.numpad-row--actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.numpad-row--actions:has(.numpad-btn--back[style*="display: flex"]) {
    grid-template-columns: 1fr 2fr;
}

.numpad-btn--back {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--of-text);
    font-size: 0.9rem;
}

.numpad-btn--back:hover {
    background: rgba(148, 163, 184, 0.25);
    border-color: rgba(148, 163, 184, 0.5);
}

.numpad-btn--ok {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
    font-weight: 700;
    font-size: 1rem;
}

.numpad-btn--ok:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
}

.numpad-btn--decimal {
    display: flex;
}

@media (max-width: 768px) {
    .odds-numpad {
        gap: 0.4rem;
        padding: 0.8rem;
    }
    
    .numpad-btn {
        padding: 0.9rem;
        font-size: 1.1rem;
        min-height: 48px;
    }
}

/* Marknadsväljare (Market Selector) */
.market-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.market-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--of-text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}

.market-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(249, 115, 22, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.market-btn:hover {
    border-color: var(--of-accent);
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2);
}

.market-btn:hover::before {
    opacity: 1;
}

.market-btn:active {
    transform: translateY(0);
}

.market-btn--active {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(249, 115, 22, 0.2));
    border-color: var(--of-accent);
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.15), 0 4px 16px rgba(250, 204, 21, 0.3);
    color: var(--of-accent);
    font-weight: 700;
}

.market-btn--active::before {
    opacity: 1;
}

.market-btn-label {
    position: relative;
    z-index: 1;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .market-selector {
        gap: 0.6rem;
    }
    
    .market-btn {
        padding: 1rem 0.8rem;
        min-height: 65px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .market-selector {
        gap: 0.5rem;
    }
    
    .market-btn {
        padding: 0.9rem 0.6rem;
        min-height: 60px;
        font-size: 0.9rem;
    }
}

/* BTTS-alternativ (Ja/Nej) */
.btts-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.btts-option-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--of-text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    position: relative;
    overflow: hidden;
}

.btts-option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(249, 115, 22, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btts-option-btn:hover {
    border-color: var(--of-accent);
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2);
}

.btts-option-btn:hover::before {
    opacity: 1;
}

.btts-option-btn:active {
    transform: translateY(0);
}

.btts-option-btn--active {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(249, 115, 22, 0.2));
    border-color: var(--of-accent);
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.15), 0 4px 16px rgba(250, 204, 21, 0.3);
    color: var(--of-accent);
    font-weight: 700;
}

.btts-option-btn--active::before {
    opacity: 1;
}

.btts-option-label {
    position: relative;
    z-index: 1;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .btts-options {
        gap: 0.6rem;
    }
    
    .btts-option-btn {
        padding: 0.9rem 1.2rem;
        min-height: 55px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .btts-options {
        gap: 0.5rem;
    }
    
    .btts-option-btn {
        padding: 0.8rem 1rem;
        min-height: 50px;
        font-size: 0.95rem;
    }
}

/* ---- Andra rek på samma match (view_rek) ---- */
.of-rek-others-btn {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--of-text);
    background: var(--of-accent);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.of-rek-others-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.of-rek-others-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.of-rek-others-overlay--open {
    opacity: 1;
    visibility: visible;
}

.of-rek-others-modal {
    background: var(--of-bg-card);
    border: 1px solid var(--of-border-soft);
    border-radius: 1rem;
    max-width: 420px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.of-rek-others-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--of-border-soft);
}
.of-rek-others-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--of-text);
}
.of-rek-others-close {
    background: none;
    border: none;
    color: var(--of-text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}
.of-rek-others-close:hover {
    color: var(--of-text);
}
.of-rek-others-modal-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
}
.of-rek-others-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.of-rek-others-item {
    margin-bottom: 0.5rem;
}
.of-rek-others-link {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.of-rek-others-link:hover {
    background: rgba(15, 23, 42, 0.8);
}
.of-rek-others-user {
    display: block;
    font-weight: 600;
    color: var(--of-text);
    margin-bottom: 0.25rem;
}
.of-rek-others-meta {
    font-size: 0.85rem;
    color: var(--of-text-muted);
    display: block;
    margin-bottom: 0.25rem;
}
.of-rek-others-status {
    font-size: 0.8rem;
    font-weight: 500;
}
.of-rek-others-empty {
    margin: 0;
    font-size: 0.95rem;
    color: var(--of-text-muted);
    text-align: center;
    padding: 1rem 0;
}

/* Inloggningspopup (mindre blå ruta ovanpå sidan) */
.of-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.of-login-overlay--open {
    opacity: 1;
    visibility: visible;
}
.of-login-modal {
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.97) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 1rem;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(59, 130, 246, 0.15);
}
.of-login-modal-brand {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 1rem 1.25rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--of-text);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.of-login-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.of-login-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--of-text);
}
.of-login-close {
    background: none;
    border: none;
    color: var(--of-text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}
.of-login-close:hover {
    color: var(--of-text);
}
.of-login-modal-body {
    padding: 1rem 1.25rem;
}
.of-login-modal-body .of-input {
    margin-bottom: 0.75rem;
}
.of-login-modal-body label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--of-text-muted);
}
.of-login-error {
    margin: 0 0 0.75rem 0;
    padding: 0.5rem 0.75rem;
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 0.5rem;
    color: #f87171;
    font-size: 0.9rem;
}
.of-login-submit-wrap,
.of-register-submit-wrap {
    text-align: center;
    margin-top: 1.25rem;
}
.of-login-submit,
.of-register-submit {
    display: inline-block;
    width: auto;
    min-width: 220px;
    margin: 0;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: var(--of-text);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.of-login-submit:hover,
.of-register-submit:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(148, 163, 184, 0.65);
    transform: translateY(-1px);
}
.of-login-submit:active,
.of-register-submit:active {
    transform: translateY(0);
}

/* Registreringsmodal: flip till tack-sida */
.of-register-modal-flip {
    padding: 0;
    overflow: hidden;
}
.of-register-flip-wrap {
    perspective: 1000px;
    min-height: 520px;
    position: relative;
}
.of-register-flip-inner {
    position: relative;
    width: 100%;
    min-height: 520px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.of-register-flip-wrap.flipped .of-register-flip-inner {
    transform: rotateY(180deg);
}
.of-register-flip-front,
.of-register-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.97) 0%, rgba(15, 23, 42, 0.98) 100%);
}
.of-register-flip-back {
    transform: rotateY(180deg);
}
.of-register-thank-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.of-register-thank-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--of-text);
}
.of-register-thank-text {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--of-text-muted);
}
.of-register-preview-wrap {
    text-align: center;
    margin: 1rem 0 0 0;
}
.of-register-preview-btn {
    background: none;
    border: none;
    color: var(--of-accent);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.25rem 0;
}
.of-register-preview-btn:hover {
    color: var(--of-text);
}

/* view_rek: header och speltyp – ingen avklippning av liga eller lagnamn */
.of-viewrek-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--of-border-soft);
}
.of-viewrek-league {
    color: var(--of-text-muted);
    min-width: min-content;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: visible;
    padding-right: 2px;
}
.of-viewrek-kickoff {
    color: var(--of-text-muted);
    font-size: 0.85rem;
    margin-left: auto;
}
.of-viewrek-status {
    font-size: 0.85rem;
    font-weight: 500;
}
.of-viewrek-bet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(15,23,42,0.5);
    border-radius: 0.75rem;
}
.of-viewrek-bet-cell {
    min-width: 0;
}
.of-viewrek-bet-type {
    font-size: 1rem;
    font-weight: 600;
    color: var(--of-text);
    word-break: break-word;
    overflow-wrap: break-word;
}
.of-viewrek-comment-block {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148,163,184,0.2);
}
.of-viewrek-comment-line {
    font-size: 0.95rem;
    color: var(--of-text-muted);
    line-height: 1.4;
}
.of-viewrek-comment-author {
    font-weight: 600;
    color: var(--of-text);
    text-decoration: none;
}
.of-viewrek-comment-author:hover {
    text-decoration: underline;
}
.of-viewrek-streak {
    font-size: 0.8rem;
    color: var(--of-text-muted);
    margin-top: 0.35rem;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .of-rek-others-btn {
        top: auto;
        bottom: 1.5rem;
        right: 1rem;
    }
}
