@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500&family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&display=swap');

/* ======================
   1. GRUND & VARIABLER
   ====================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Bakgrunder */
    --bg-page:          #F6F8FA;
    --bg-surface:       #FFFFFF;
    --bg-subtle:        #F9FAFB;  /* read-only ytor, hover-bakgrunder */
    --bg-input:         #F9FAFB;  /* editerbara fält — separat för framtida divergens */
    --bg-elevated:      #FFFFFF;  /* ytor ovanpå cards: dropdown, tooltip, modal */
    --bg-secondary:     var(--bg-subtle); /* alias — undvik direkt användning, använd --bg-subtle */

    /* Text */
    --text-primary:     #111827;
    --text-secondary:   #6B7280;
    --text-muted:       #9CA3AF;

    /* Accent — Indigo */
    --accent:           #6366F1;
    --accent-hover:     #4F46E5;
    --accent-light:     rgba(99, 102, 241, 0.08);
    --accent-border:    rgba(99, 102, 241, 0.25);
    --accent-gradient-end: #818CF8;   /* Indigo-400, gradient-ände för brand-icon */

    /* Semantiska färger (behålls för funktionalitet) */
    --success:          #10B981;
    --success-light:    rgba(16, 185, 129, 0.08);
    --danger:           #EF4444;
    --danger-light:     rgba(239, 68, 68, 0.08);
    --warning:          #F59E0B;
    --warning-light:    rgba(245, 158, 11, 0.08);
    --warning-border:   rgba(245, 158, 11, 0.2);
    --info:             #3B82F6;
    --info-light:       rgba(59, 130, 246, 0.08);
    --radius-base: 8px;   /* Bas-radius för interaktiva element */

    /* Borders */
    --border:           #E5E7EB;
    --border-strong:    #D1D5DB;

    /* Skuggor */
    --shadow-sm:        0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md:        0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg:        0 8px 24px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl:        0 16px 40px rgba(0, 0, 0, 0.12);

    /* Typografi */
    --font-main:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display:     'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;

    /* Bakåtkompatibilitet — gamla variabelnamn mappas till nya */
    --bg-dark:          var(--bg-page);
    --bg-card:          var(--bg-surface);
    --accent-green:     var(--accent);   /* OBS: mappar nu till Indigo — fasas ut */
    --accent-red:       var(--danger);
    --accent-yellow:    var(--warning);
    --accent-blue:      var(--info);
    --border-color:     var(--border);

    /* Layout */
    --radius-sm:        6px;
    --radius-md:        10px;
    --radius-lg:        16px;
    --radius-xl:        20px;
    --transition:       150ms ease;

    /* Hero */
    --hero-bg-start:    #FAFAFF;
    --hero-bg-mid:      #F0F0FF;
    --hero-placeholder-end: #EEF0FF;
}

body {
    font-family: var(--font-main);
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
}

/* Specifik centrering BARA för inloggningssidan */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======================
   2. NAVBAR & LOGOTYP
   ====================== */
.navbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.25s ease;
}

.navbar--hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Brand / logo */
.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-link h1 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-gradient-end));
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--accent-border);
    flex-shrink: 0;
}

.brand-icon svg {
    width: 18px;
    height: 18px;
    color: white;
    stroke: white;
}

.brand-text {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 20px;
}

/* Desktop nav — visas endast >= 1024px */
.nav-links {
    display: none;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-base);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-subtle);
}

.nav-links a.active {
    color: var(--accent);
    background: var(--accent-light);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: all var(--transition);
    background: none;
    border: none;
    font-family: var(--font-main);
    white-space: nowrap;
}

.nav-dropdown-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-subtle);
}

.nav-dropdown-arrow {
    font-size: 10px;
    transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 8px;
    background: transparent;
    min-width: 220px;
    z-index: 200;
}

.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: -1;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-base);
    transition: all var(--transition);
}

.nav-dropdown-menu a:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.nav-dropdown-menu a.nav-locked,
.submenu a.nav-locked {
    opacity: 0.45;
    color: var(--text-muted);
}

.nav-dropdown-menu a.nav-locked:hover,
.submenu a.nav-locked:hover {
    color: var(--text-muted);
    background: none;
}

/* Nav right side & CTA */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Desktop user links (logged-in navbar) */
.nav-user-links {
    display: none;
    align-items: center;
    gap: 4px;
}

.nav-user-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-base);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-user-link:hover {
    color: var(--text-primary);
    background: var(--bg-subtle);
}

.nav-user-link.nav-logout {
    color: var(--danger);
}

.nav-user-link.nav-logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

.nav-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: var(--border);
    margin: 0 4px;
}

/* Account dropdown - högerställd */
.nav-account-dropdown .nav-dropdown-menu {
    left: auto;
    right: 0;
    min-width: 180px;
}

.nav-account-toggle svg {
    color: var(--text-secondary);
    transition: color var(--transition);
}

.nav-account-dropdown:hover .nav-account-toggle svg {
    color: var(--text-primary);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 8px;
}

.nav-account-logout {
    color: var(--danger) !important;
}

.nav-account-logout:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: var(--danger) !important;
}

.nav-cta {
    display: none;
    padding: 8px 18px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .nav-cta {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-border);
}

.user-greeting {
    display: none;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 500;
}

@media (min-width: 1024px) {
    .user-greeting {
        display: block;
    }
}

.user-sub-info {
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--accent-border);
    font-size: 12px;
    font-weight: 600;
}

.user-sub-expired {
    background: var(--danger-light);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.25);
}

/* Hamburger menu */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background var(--transition);
}

.hamburger-menu:hover {
    background: var(--bg-subtle);
}

@media (min-width: 1024px) {
    .hamburger-menu.desktop-hidden {
        display: none;
    }

.nav-user-links {
        display: flex;
    }
}

.hamburger-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 64px; /* = navbar height (--nav-height), uppdatera om navbar-höjden ändras */
    right: 15px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    min-width: 260px;
    overflow: hidden;
    z-index: 200;
}

.dropdown-menu.active {
    display: block;
    animation: dropdownSlideIn 0.15s ease;
}

@keyframes dropdownSlideIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.dropdown-menu .logout-link {
    color: var(--danger);
}

.dropdown-menu .logout-link:hover {
    color: var(--danger);
    background: var(--danger-light);
}

.menu-subscription-info {
    padding: 12px 18px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.menu-divider {
    height: 1px;
    background: var(--border);
}

/* Submenu (mobile accordion) */
.submenu {
    display: none;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.submenu.active {
    display: block;
}

.submenu a {
    padding-left: 36px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform var(--transition);
}

.submenu-trigger.active .submenu-arrow {
    transform: rotate(180deg);
}

/* Login-header brand adjustments */
.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-header .brand-icon {
    width: 40px;
    height: 40px;
}

.login-header .brand-icon svg {
    width: 22px;
    height: 22px;
}

/* Legacy — hide old nav-menu */
.nav-menu {
    display: none;
}

/* Mobil-optimering */
@media (max-width: 768px) {
    /* Mobil-optimering - endast TABELLEN scrollar */
    .data-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 20px;
    }
    
    table {
        font-size: 12px;
        margin-bottom: 0;
        width: 100%;
        table-layout: auto;  /* Auto layout så kolumner anpassar sig till innehåll */
    }
    
    /* Thead bakgrund täcker hela bredden */
    table thead {
        background: var(--bg-input);
    }
    
    table thead tr {
        background: var(--bg-input);
    }
    
    table th,
    table td {
        padding: 10px 6px;
        white-space: nowrap;
        font-size: 12px;
    }
    
    table th {
        background: var(--bg-input);
    }
    
    /* Gör badges mindre på mobil */
    .badge-buy,
    .badge-sell,
    .badge-hold {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    /* Dashboard cards */
    .strategy-grid {
        grid-template-columns: 1fr;
    }
    
    /* Strategy stats - gör dem mindre */
    .strategy-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 12px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 17px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-mid) 50%, var(--bg-page) 100%);
    border-bottom: 1px solid var(--border);
    padding: 64px 0 28px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%); /* = var(--accent) med 6% opacity */
    pointer-events: none;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    cursor: default;
    pointer-events: none;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero på landningssida — full-bleed inuti .container */
.dashboard > .container > .hero {
    margin-left: -30px;
    margin-right: -30px;
    margin-top: -40px;
    margin-bottom: 40px;
    border-radius: 0;
}

@media (max-width: 768px) {
    .dashboard > .container > .hero {
        margin-left: -16px;
        margin-right: -16px;
        margin-top: -24px;
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--hero-placeholder-end) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    position: relative;
}

.hero-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.04) 0%, rgba(99,102,241,0.08) 100%); /* = var(--accent-light) */
    pointer-events: none;
}

.placeholder-icon {
    font-size: 48px;
    opacity: 0.4;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 520px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: block;
}

/* Responsivitet för hero */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-placeholder {
        max-width: 100%;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 28px 0 28px;
    }

    .hero-inner {
        padding: 0 20px;
    }

    .hero-visual {
        display: none;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
}

/* ============================================
   HUR DET FUNGERAR (index.php)
   ============================================ */

.how-it-works {
    padding: 24px 0 56px;
    background: var(--bg-page);
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 32px 0 40px;
    }
}

.how-it-works-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.how-it-works-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
    text-align: center;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.how-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.how-step-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.18;
    line-height: 1;
    margin-bottom: 4px;
}

.how-step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.how-step-desc {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ============================================
   PRISSEKTION (index.php)
   ============================================ */

.pricing-section {
    padding: 40px 0 64px;
}

.pricing-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.pricing-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pricing-card--featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.pricing-featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-plan-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.pricing-plan-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px;
    line-height: 1.5;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-unit {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.pricing-feature::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-feature--included::before {
    background-color: rgba(99, 102, 241, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5l2.5 2.5 4.5-4.5' stroke='%236366F1' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pricing-feature--excluded {
    color: var(--text-muted);
}

.pricing-feature--excluded::before {
    background-color: var(--bg-subtle);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 2.5l5 5M7.5 2.5l-5 5' stroke='%23CBD5E1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.pricing-cta {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.pricing-trial-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 24px;
}

@media (max-width: 480px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   METOD-SEKTION (index.php)
   ============================================ */

.method-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 48px 0;
    margin-bottom: 40px;
}

.method-content h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin: 16px 0 24px;
    line-height: 1.3;
}

.method-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.method-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.method-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.method-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

@media (max-width: 1024px) {
    .method-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .method-section {
        padding: 32px 0;
    }

    .method-content h2 {
        font-size: 22px;
    }
}

/* ======================
   3. INLOGGNINGSSIDA
   ====================== */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card { 
    background: var(--bg-card); 
    padding: 40px; 
    border-radius: 16px; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); 
    width: 100%;
}

.login-header {
    margin-bottom: 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-green) 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-form {
    margin-top: 20px;
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ======================
   4. DASHBOARD & KORT
   ====================== */
.dashboard {
    min-height: calc(100vh - 64px);
    padding: 40px 0 40px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (max-width: 768px) {
    .dashboard {
        padding: 24px 0 32px;
    }
    .container {
        padding: 0 16px;
    }
}

.page-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin: 0 0 20px;
}

/* Dashboard intro */
.dashboard-intro {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.dashboard-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 14px;
}

.dashboard-intro p:last-child {
    margin-bottom: 0;
}

.dashboard-intro strong {
    color: var(--text-primary);
}

/* Strategy grid på dashboard */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Collapsible strategy-sektion — visas bara på mobil */
.strategy-collapse-btn {
    display: none;
}

@media (max-width: 768px) {
    .strategy-collapse-btn {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 20px 20px;
        background: var(--bg-surface);
        border: 1px solid var(--border);
        border-left: 4px solid var(--accent);
        border-radius: var(--radius-lg);
        cursor: pointer;
        color: var(--text-primary);
        box-shadow: var(--shadow-md);
        transition: background 0.2s, border-color 0.2s;
        margin-bottom: 12px;
        text-align: left;
    }
    .strategy-collapse-text {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    .strategy-collapse-primary {
        font-size: 17px;
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.3;
    }
    .strategy-collapse-sub {
        font-size: 13px;
        font-weight: 400;
        color: var(--text-muted);
        line-height: 1.3;
    }
    .collapse-chevron-wrap {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--accent);
        color: #fff;
    }
    .strategy-collapse-btn .collapse-chevron {
        transition: transform 0.25s;
        color: #fff;
    }
    .strategy-collapse-wrap .strategy-grid {
        display: none;
    }
    .strategy-collapse-wrap .strategy-grid.is-open {
        display: grid;
    }
}

@media (max-width: 768px) {
    .strategy-grid {
        grid-template-columns: 1fr;
    }
    .strategy-grid .strategy-description { display: none; }
}

.strategy-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
}

.strategy-card-link:hover {
}

.strategy-card-link:hover .strategy-card {
    border-color: var(--accent-green);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.view-strategy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    transition: gap var(--transition);
    text-decoration: none;
}

.view-strategy-btn:hover {
    gap: 10px;
}

.strategy-card-link:hover .view-strategy-btn {
    gap: 10px;
}

/* Strategy page header */
.strategy-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.strategy-page-header .page-title {
    margin-bottom: 0;
}

/* Chart komponenter */
.chart-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.chart-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 20px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.chart-context-note {
    margin-top: 14px;
    padding: 10px 14px;
    background: #F0F4FF;
    border-left: 3px solid #6366F1;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Strategikorten */
.strategy-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.strategy-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-border);
}

.strategy-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: opacity var(--transition);
}

.strategy-card:hover::before {
    opacity: 1;
}

.admin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.admin-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.admin-users-header {
    margin-bottom: 16px;
}

.admin-users-header h3 {
    margin-bottom: 0;
}

.user-search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.user-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
}

#user-search {
    display: block;
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#user-search:focus {
    outline: none;
    border-color: var(--accent-color);
}

.strategy-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 15px; 
}

.strategy-header h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 0;
}

/* Vertical layout på dashboard cards */
.strategy-grid .strategy-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.strategy-grid .strategy-header h3 {
    font-size: 20px;
}

/* Badges */
.strategy-badge {
    background: transparent;
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--accent-border);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
    cursor: default;
    pointer-events: none;
}

.calendar-btn {
    background: #ecfdf5;
    color: #059669;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(5, 150, 105, 0.25);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.calendar-btn:hover {
    background: #d1fae5;
    border-color: rgba(5, 150, 105, 0.4);
}

.badge-coming-soon {
    background: var(--warning-light);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.25);
}

/* Kommer snart kort styling */
.coming-soon-card {
    position: relative;
    opacity: 0.85;
}

.coming-soon-card .strategy-stats {
    opacity: 0.5;
}

.stat-placeholder {
    color: var(--text-secondary) !important;
    font-size: 18px !important;
}

.coming-soon-message {
    background: rgba(251, 191, 36, 0.05);
    border: 1px dashed var(--accent-yellow);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.coming-soon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
}

.coming-soon-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-yellow);
}

.coming-soon-message h4 {
    font-size: 18px;
    color: var(--accent-yellow);
    margin-bottom: 10px;
    font-weight: 600;
}

.coming-soon-message p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.view-strategy-btn-disabled {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.strategy-card-link:hover .view-strategy-btn-disabled {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-yellow);
}

.coming-soon-stats {
    opacity: 0.6;
}

/* Under Construction Card */
.under-construction-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    margin-top: 30px;
    text-align: center;
}

.construction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    margin-bottom: 25px;
}

.construction-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent-yellow);
}

.under-construction-card h3 {
    font-size: 24px;
    color: var(--accent-yellow);
    margin-bottom: 30px;
    font-weight: 600;
}

.construction-content {
    max-width: 700px;
    margin: 0 auto;
}

.construction-status {
    text-align: left;
    margin-bottom: 40px;
}

.status-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-input);
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid transparent;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    font-weight: 700;
}

.status-done {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
}

.status-active {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-yellow);
    border: 2px solid var(--accent-yellow);
    animation: pulse 2s ease-in-out infinite;
}

.status-pending {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
    border: 2px solid var(--text-secondary);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    flex: 1;
}

.status-text h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.status-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.construction-note {
    background: rgba(251, 191, 36, 0.05);
    border: 1px dashed var(--accent-yellow);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
}

.construction-note p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.construction-note p:last-child {
    margin-bottom: 0;
}

.construction-note strong {
    color: var(--accent-yellow);
}

/* Subscription Warning Banner */
.subscription-warning {
    background: var(--warning-light);
    border-top: 1px solid var(--warning-border);
    padding: 10px 30px;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--warning);
    font-weight: 500;
}

.warning-content a {
    color: var(--warning);
    font-weight: 600;
    text-decoration: underline;
}

.warning-icon {
    font-size: 16px;
}

.warning-text {
    color: var(--warning);
    font-size: 13px;
}

.warning-text a {
    color: var(--warning);
    text-decoration: underline;
    font-weight: 600;
}

.warning-text a:hover {
    opacity: 0.8;
}

.btn-subscription {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--accent-green) !important;
    border: 1px solid var(--accent-green) !important;
}

.btn-subscription:hover {
    background: var(--accent-green) !important;
    color: white !important;
}

.btn-invite {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--accent-green) !important;
    border: 1px solid var(--accent-green) !important;
}

.btn-invite:hover {
    background: var(--accent-green) !important;
    color: white !important;
}

.status-expired {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-warning {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-yellow);
}

/* Admin Subscription Management */
.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sub-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    width: fit-content;
}

.status-active-sub {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
    border: 1px solid #059669;
}


.status-expiring {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
}

.status-expired {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.status-no-sub {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

.status-manual {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.status-past-due {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid #dc2626;
}

.status-canceled {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

.sub-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.subscription-actions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.btn-extend {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
}

.btn-extend-small {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-extend-small:hover {
    background: #3b82f6;
    color: white;
}

.btn-extend-medium {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.btn-extend-medium:hover {
    background: var(--accent-green);
    color: white;
}

.btn-extend-large {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border-color: #a855f7;
}

.btn-extend-large:hover {
    background: #a855f7;
    color: white;
}

/* Admin Invites Column */
.invites-info {
    text-align: center;
}

.invites-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
}

/* Invite System */
.invite-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.invite-header {
    margin-bottom: 30px;
}

.invite-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
}

.invite-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent-green);
}

.invite-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.invite-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.invite-create-form {
    margin-top: 20px;
}

.invite-email-row .btn-create-invite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    width: auto;
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.btn-create-invite svg {
    width: 20px;
    height: 20px;
}

.invites-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.invites-list h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.invite-section-title {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.invite-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.invite-unused {
    border-left: 4px solid var(--accent-green);
}

.invite-used {
    border-left: 4px solid var(--text-secondary);
    opacity: 0.7;
}

.invite-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.invite-status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
}

.badge-unused {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.badge-used {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

.invite-username {
    color: var(--accent-green);
    font-size: 16px;
}

.invite-date {
    color: var(--text-secondary);
    font-size: 13px;
}

.invite-email-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    max-width: 480px;
    margin: 0 auto;
}

.invite-email-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.invite-email-input:focus {
    outline: none;
    border-color: var(--accent-green);
}

.invite-email-hint {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 0;
}

.invite-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.invite-email-sent {
    color: var(--accent-green);
    font-size: 13px;
}

.btn-copy-invite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-invite svg {
    width: 16px;
    height: 16px;
}

.btn-copy-invite:hover {
    background: var(--accent-green);
    color: white;
}

.btn-delete-invite {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-invite:hover {
    background: #ef4444;
    color: white;
}

/* Registration Page */
.registration-info {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--accent-yellow);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.registration-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.registration-benefits {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.registration-benefits h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.registration-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.registration-benefits li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.registration-welcome {
    font-size: 18px;
    padding: 20px 30px;
    text-align: center;
    margin-bottom: 30px;
}

/* Already logged in message */
.already-logged-in-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 30px;
}

.already-logged-in-card h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.already-logged-in-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.already-logged-in-card p strong {
    color: var(--accent-green);
}

.already-logged-in-card .button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.badge-admin {
    background: rgba(30, 64, 175, 0.1);
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #1e40af;
    display: inline-block;
}

.badge-user {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--text-secondary);
    display: inline-block;
}

.badge-vip {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #d97706;
    display: inline-block;
}

.badge-you {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-yellow);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

/* ======================
   5. STAT-RUTORNA (CAGR osv)
   ====================== */
.strategy-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

#sc-summary .sc-summary-final {
    background: rgba(99, 102, 241, 0.07);
    border-color: rgba(99, 102, 241, 0.3);
}


.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.strategy-description {
    background: var(--bg-input);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Strategy methodology box — strategy detail pages */
.strategy-methodology {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.strategy-methodology > p:first-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.strategy-methodology p {
    margin: 0 0 10px;
}

.strategy-methodology p:last-child {
    margin-bottom: 0;
}

.strategy-methodology ul {
    margin: 4px 0 12px;
    padding-left: 20px;
    list-style: none;
}

.strategy-methodology ul li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 4px;
}

.strategy-methodology ul li::before {
    content: "→";
    position: absolute;
    left: -18px;
    color: var(--accent);
    font-size: 13px;
}

@media (max-width: 768px) {
    .strategy-methodology {
        padding: 20px;
        font-size: 13px;
    }
}

/* ======================
   6. TABELLER & DATA
   ====================== */
.data-table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: var(--bg-surface);
    margin-top: 20px;
}

.portfolio-card-wrapper {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: var(--bg-surface);
    margin-top: 20px;
    overflow: hidden;
}

.portfolio-card-wrapper .data-table-container {
    overflow-x: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    margin-top: 0;
}

.portfolio-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.portfolio-header--with-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.portfolio-header--with-tabs h4 {
    margin: 0;
}

.portfolio-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}

/* Holdings variant tabs */
.holdings-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-subtle);
    border-radius: 8px;
    padding: 3px;
}

.holdings-tab {
    padding: 5px 12px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.holdings-tab:hover {
    color: var(--text-primary);
}

.holdings-tab--active {
    background: var(--bg-surface);
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.holdings-panel--hidden { display: none; }

.loading-text, .placeholder {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.quant-table {
    border-collapse: collapse;
    font-size: 14px;
}

.quant-table thead {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-strong);
}

.quant-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.quant-table th.sortable-col {
    cursor: pointer;
    user-select: none;
}

.quant-table th.sortable-col:hover {
    color: var(--accent);
}

.sort-icon::after {
    content: '↕';
    margin-left: 5px;
    opacity: 0.35;
    font-style: normal;
}

.sortable-col[data-sort-dir="asc"] .sort-icon::after {
    content: '↑';
    opacity: 1;
    color: var(--accent);
}

.sortable-col[data-sort-dir="desc"] .sort-icon::after {
    content: '↓';
    opacity: 1;
    color: var(--accent);
}

.quant-table td {
    padding: 14px 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

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

.quant-table tbody tr:hover {
    background: var(--bg-subtle);
}

.quant-table tbody tr:nth-child(even) {
    background: rgba(249, 250, 251, 0.5);
}

.quant-table tbody tr:nth-child(even):hover {
    background: var(--bg-subtle);
}

@media (max-width: 768px) {
    .quant-table th,
    .quant-table td {
        padding: 10px 10px;
        font-size: 12px;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
}

.users-table {
    margin-top: 20px;
    overflow-x: auto;
}

th {
    background: var(--bg-input);
    color: var(--text-primary);  /* Ljusare text för bättre läsbarhet */
    text-align: left;
    padding: 12px 15px;
    font-size: 11px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}
.sortable-th {
    cursor: pointer;
    user-select: none;
}
.sortable-th:hover {
    background: var(--border-color);
}
.sort-arrow::after {
    content: ' ↕';
    opacity: 0.35;
    font-size: 0.9em;
}
.sortable-th.sort-asc .sort-arrow::after {
    content: ' ↑';
    opacity: 1;
}
.sortable-th.sort-desc .sort-arrow::after {
    content: ' ↓';
    opacity: 1;
}

td { 
    padding: 15px; 
    border-bottom: 1px solid var(--border-color); 
    font-size: 14px; 
}


/* Signaler-ruta */
.signal-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 8px 0 0;
    line-height: 1.6;
}

.rebalansering-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.rebalansering-link:hover {
    text-decoration: underline;
}

/* Nästa byte-rad */
.next-change-row td {
    background: var(--warning-light);
    color: var(--warning);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

.next-change-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.next-change-row .alert-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.next-change-row .alert-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--accent-yellow);
}

.merged-row td {
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

.holdings-updated {
    padding: 12px 24px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ======================
   7. FORMULÄR
   ====================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label,
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.1px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-main);
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
    -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    /* inherits global input styles above */
}

.admin-form {
    margin-top: 20px;
}

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

.checkbox-group {
    margin: 20px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    background: var(--bg-input);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.checkbox-group label:hover {
    border-color: var(--accent-green);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-group span {
    font-size: 14px;
    color: var(--text-primary);
}

.help-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Change password specific */
.change-password-container {
    max-width: 600px;
    margin: 0 auto;
}

.change-password-form {
    margin-top: 20px;
}

/* Reset password form in admin table */
.reset-password-row {
    background: var(--bg-input) !important;
}

.reset-password-form {
    padding: 20px;
}

.reset-form-content {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.reset-form-content label {
    flex: 0 0 100%;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.reset-form-content input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
}

/* ======================
   8. KNAPPAR
   ====================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    font-family: var(--font-main);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

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

.btn-primary-small {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    font-family: var(--font-main);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-main);
}

.btn-logout:hover {
    background: var(--danger-light);
    border-color: var(--danger);
}

/* Små knappar för admin-tabellen */
.btn-reset-small,
.btn-danger-small,
.btn-cancel-small {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-main);
}

/* btn-primary-small is defined via .btn-primary + .btn-primary-small modifier */
.btn-primary-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all var(--transition);
}

.btn-primary-small:hover {
    background: var(--accent-hover);
}

.btn-reset-small {
    background: var(--accent-blue);
    color: white;
}

.btn-reset-small:hover {
    background: #2563eb;
}

.btn-danger-small {
    background: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.btn-danger-small:hover {
    background: var(--accent-red);
    color: white;
}

.btn-cancel-small {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-cancel-small:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* ======================
   9. MEDDELANDEN
   ====================== */
.success-message {
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 3px solid var(--success);
    color: #065F46;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 16px;
}

.error-message,
.login-error {
    background: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 3px solid var(--danger);
    color: #991B1B;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 16px;
}

/* ======================
   10. UTILITIES
   ====================== */
.text-muted {
    color: var(--text-muted);
    font-size: 13px;
}

/* ======================
   11. FOOTER (legacy — see section 15 for new definitions)
   ====================== */

.login-footer,
.footer p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ======================
   12. RESPONSIV DESIGN
   ====================== */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .strategy-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .strategy-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 300px;
    }
    
    .strategy-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reset-form-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reset-form-content input {
        min-width: 100%;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .strategy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chart-container {
        height: 250px;
    }
    
    /* Extra kompakt tabell på riktigt små skärmar */
    table {
        font-size: 11px;
    }
    
    table th,
    table td {
        padding: 8px 4px;
    }
    
    /* Gör container ännu tightare */
    .data-table-container {
        margin: 20px -10px 0 -10px;
        padding: 0 10px;
    }
    
    /* Stats i 2 kolumner */
    .strategy-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Sparkalkylator: Slutvärde spänner hela bredden på rad 2 */
    #sc-summary .sc-summary-final {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================
   NAVBAR UPDATES - KLICKBAR LOGGA & MENU
   ========================================== */
/* Dessa klasser är nu definierade i sektion 2 ovan.
   Blocket behålls som platshållare för framtida patchar. */

/* ==========================================
   SCROLL INDICATOR FÖR TABELLER
   ========================================== */

/* Subtil scroll-hint */
.data-table-container {
    position: relative;
}

/* "→ Scrolla" indikator - enkel och diskret */
.data-table-container::after {
    content: '→ Scrolla';
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: var(--accent);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
    box-shadow: 0 4px 12px var(--accent-border);
}

@media (max-width: 768px) {
    .data-table-container::after {
        opacity: 0.9;
    }
    
    /* Göm scroll-hint efter användaren scrollat */
    .data-table-container.scrolled::after {
        opacity: 0;
    }
}

@keyframes pulse-scroll {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* ==========================================
   MOBIL NAVBAR
   ========================================== */

@media (max-width: 1023px) {
    .nav-container {
        padding: 0 16px;
    }

    .dropdown-menu {
        right: 10px;
        left: 10px;
        min-width: 0;
        width: auto;
        max-width: calc(100vw - 20px);
    }

    .brand-icon {
        width: 28px;
        height: 28px;
    }

    .brand-icon svg {
        width: 16px;
        height: 16px;
    }

    .brand-text {
        font-size: 17px;
    }
}

/* ========================================
   NAVBAR SUBMENU TRIGGER (mobil accordion)
   ======================================== */

.menu-item-with-submenu {
    position: relative;
}

.submenu-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    width: 100%;
}


/* ========================================
   RESPONSIVE TABLES FOR MOBILE
   ======================================== */

/* Endast för rebalansering-sidan */
@media (max-width: 768px) {
    /* Gör tabeller scrollbara horisontellt */
    .portfolio-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px 0;
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
    
    .portfolio-table {
        min-width: 500px; /* Tvinga tabell att behålla bredd */
        margin: 0;
    }
    
    /* Alternativ: Card-layout för tabeller */
    .portfolio-table-cards {
        display: none; /* Dold by default, används bara på mobil */
    }
    
    /* Visa card-layout istället för tabell på mobil */
    @media (max-width: 600px) {
        .portfolio-table-wrapper {
            display: none; /* Dölj tabell */
        }
        
        .portfolio-table-cards {
            display: block; /* Visa cards */
        }
        
        .table-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 12px;
        }
        
        .table-card-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        
        .table-card-row:last-child {
            border-bottom: none;
        }
        
        .table-card-label {
            font-weight: 600;
            color: var(--text-secondary);
            font-size: 13px;
        }
        
        .table-card-value {
            color: var(--text-primary);
            font-size: 14px;
            text-align: right;
        }
    }
}


/* ========================================
   SCROLLABLE TABLE HINT
   ======================================== */

/* Visa "scroll"-hint på mobil */
.table-scroll-hint {
    display: none;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 10px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .table-scroll-hint {
        display: block;
    }
}


/* ========================================
   MIN SIDA
   ======================================== */

.profile-section { margin-bottom: 28px; }
.profile-section h4 { font-size: 16px; margin-bottom: 16px; color: var(--text-primary); }
.section-divider { border: none; border-top: 1px solid var(--border-color); margin: 28px 0; }

.sub-status-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.sub-status-display .status-days {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
}

.sub-status-display .status-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.sub-status-display .status-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sub-status-display.status-expired .status-days {
    color: var(--accent-red);
}

.sub-status-display.status-warning .status-days {
    color: var(--accent-yellow);
}

.sub-status-display.status-none {
    border-color: var(--accent-red);
}

.sub-status-display.status-none .status-days {
    font-size: 18px;
    color: var(--accent-red);
}

.stripe-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
    user-select: none;
}

.stripe-coming-soon {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

.sub-renew-info {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
    margin-bottom: 0;
}

.stripe-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stripe-section-header h4 {
    margin-bottom: 0;
}

.stripe-plan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.stripe-plan-row:last-of-type {
    border-bottom: none;
}

.stripe-plan-row strong {
    color: var(--text-primary);
}

.stripe-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* btn-secondary and btn-danger are defined in section 8 above */

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-main);
}

.btn-danger:hover {
    background: var(--danger-light);
    border-color: var(--danger);
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 12px;
}

.invoice-table th {
    text-align: left;
    padding: 8px 12px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.invoice-table td {
    padding: 10px 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.invoice-placeholder {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

/* ======================
   13. LOGIN-MODAL
   ====================== */
.login-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal.active {
    display: flex;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.2s ease;
}

@media (max-width: 480px) {
    .login-modal {
        padding: 12px;
    }
    .login-modal-content {
        padding: 24px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    line-height: 1;
}

.login-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.login-modal-header {
    margin-bottom: 24px;
}

.login-modal-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.login-modal-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.modal-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 24px;
}

.modal-tab-btn {
    flex: 1;
    padding: 9px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-main);
}

.modal-tab-btn.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.modal-panel {
    display: none;
}

.modal-panel.active {
    display: block;
}

/* ======================
   14. STRATEGY LOCK OVERLAY
   ====================== */
.strategy-card.locked-content .stats-to-blur {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.strategy-card.locked-content .strategy-header,
.strategy-card.locked-content .strategy-stat-teaser,
.strategy-card.locked-content .strategy-description {
    filter: none !important;
}

.strategy-lock-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.lock-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.lock-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.strategy-lock-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-top: 12px;
    box-shadow: var(--shadow-md);
}

.strategy-stat-teaser {
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-light), rgba(99, 102, 241, 0.04));
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.teaser-label {
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.teaser-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* ======================
   15. FOOTER
   ====================== */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 24px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.disclaimer {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.disclaimer p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.footer-support {
    margin-bottom: 16px;
    text-align: center;
}

.footer-support a {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.footer-support a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
}

/* === Tooltips === */
.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: none;
  padding: 0;
  margin-left: 5px;
  transition: background var(--transition);
  flex-shrink: 0;
}

.tooltip-trigger:hover,
.tooltip-trigger:focus {
  background: var(--accent);
  outline: none;
}

.tooltip-box {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 12px;
  width: 220px;
  font-size: 12px;
  color: var(--text-secondary);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  white-space: normal;
}

.tooltip-wrap:hover .tooltip-box,
.tooltip-wrap:focus-within .tooltip-box,
.tooltip-wrap.tooltip-open .tooltip-box {
  opacity: 1;
}

/* På touch-enheter: inaktivera hover-triggern — JS hanterar öppning/stängning */
@media (hover: none) {
    .tooltip-wrap:hover .tooltip-box { opacity: 0; }
}


/* ======================
   VÄRVNINGSBONUS
   ====================== */

/* Bonuskort på Min Sida */
.referral-bonus-display {
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-base);
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.referral-bonus-display.referral-bonus-empty {
    background: var(--bg-subtle);
    border-color: var(--border);
}

.referral-bonus-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--success);
    line-height: 1.2;
}

.referral-bonus-empty .referral-bonus-amount {
    color: var(--text-muted);
}

.referral-bonus-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.referral-bonus-stats {
    display: flex;
    gap: 16px;
}

.referral-bonus-stat {
    flex: 1;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    padding: 12px;
    text-align: center;
}

.referral-bonus-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.referral-bonus-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Bonusbadge på invites-sidan */
.invite-bonus-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 6px;
}

.invite-bonus-credited {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.invite-bonus-pending {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

/* ── Support-sida ── */
.support-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.faq-group:last-child {
    margin-bottom: 0;
}

.support-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 48px;
    transition: color 0.2s;
    letter-spacing: 0.2px;
}
.support-back:hover { color: var(--accent); }
.support-back svg { width: 16px; height: 16px; }

.support-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.support-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.support-hero-eyebrow span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

.support-hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.support-hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.support-hero-lead {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.support-hero-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 20px 56px rgba(99, 102, 241, 0.12);
}

.support-channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 56px;
}

.support-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.support-card:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.support-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-card-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.support-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.support-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.support-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.support-card-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.support-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-top: auto;
    padding-top: 4px;
}

.support-card-action svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.faq-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 32px;
}

.faq-group {
    margin-bottom: 40px;
}

.faq-group-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-item[open] summary {
    color: var(--accent);
}

.faq-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    padding-bottom: 20px;
}

@media (max-width: 700px) {
    .support-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .support-hero h1 { font-size: 32px; }

    .support-hero-image {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .support-channels {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════
   Cookie-samtyckesbanner
═══════════════════════════════════════ */
#site-notice {
    display: none;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #FFFFFF;
    border-top: 3px solid #6366F1;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15), 0 0 0 200vmax rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 900px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

#site-notice.notice-visible {
    display: block;
    animation: cookieSlideUp 0.4s ease-out both;
}

@keyframes cookieSlideUp {
    from { transform: translate(-50%, 100px); opacity: 0; }
    to   { transform: translate(-50%, 0); opacity: 1; }
}

#site-notice p {
    margin: 0 0 14px 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.notice-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#sn-accept {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

#sn-accept:hover {
    background: #4F46E5;
}

#sn-dismiss {
    padding: 0.25rem 0.5rem;
    font-size: 13px;
    border: none;
    background: transparent;
    color: #6B7280;
    cursor: pointer;
    transition: color 0.15s;
}

#sn-dismiss:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

@media (max-width: 640px) {
    #site-notice {
        left: 0;
        right: 0;
        transform: none;
        max-width: none;
        border-radius: 0;
    }
    #sn-accept {
        width: 100%;
    }
    #site-notice.notice-visible {
        animation: cookieSlideUpMobile 0.4s ease-out both;
    }
    @keyframes cookieSlideUpMobile {
        from { transform: translateY(100px); opacity: 0; }
        to   { transform: translateY(0); opacity: 1; }
    }
}

/* ======================
   FAQ Accordion (strategisidor)
   ====================== */
.faq-section {
    margin-top: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item[open] {
    border-color: var(--accent-border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
    user-select: none;
    transition: background 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: var(--bg-subtle);
}

.faq-item .faq-answer {
    padding: 0 18px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    border-top: 1px solid var(--border);
    margin-top: 0;
    padding-top: 14px;
}

@media (max-width: 768px) {
    .faq-item summary {
        padding: 12px 14px;
        font-size: 13.5px;
    }

    .faq-item .faq-answer {
        padding: 0 14px 14px;
        padding-top: 12px;
        font-size: 13.5px;
    }
}

/* ======================
   Backtest Section (collapsible)
   ====================== */
.backtest-section {
    margin-top: 24px;
    margin-bottom: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.backtest-section[open] {
    border-color: var(--accent-border);
}

.backtest-section summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s ease;
}

.backtest-section summary::-webkit-details-marker {
    display: none;
}

.backtest-section summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.backtest-section[open] summary::after {
    transform: rotate(45deg);
}

.backtest-section summary:hover {
    background: var(--bg-subtle);
}

.backtest-summary-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.backtest-summary-cagr {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-subtle);
    padding: 4px 10px;
    border-radius: 20px;
}

.backtest-content {
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
}

.backtest-content .strategy-stats {
    margin-top: 20px;
}

.backtest-content .chart-card {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .backtest-section summary {
        padding: 14px 16px;
    }

    .backtest-summary-text {
        font-size: 14px;
    }

    .backtest-summary-cagr {
        font-size: 12px;
        padding: 3px 8px;
    }

    .backtest-content {
        padding: 0 16px 16px;
    }
}

/* ======================
   Dashboard: Compact Strategy Navigation
   ====================== */
.strategy-nav-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strategy-nav-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.15s ease;
}

.strategy-nav-card:hover {
    border-color: var(--accent-border);
    background: var(--bg-subtle);
}

.strategy-nav-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.strategy-nav-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.strategy-nav-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.strategy-nav-updated {
    font-size: 13px;
    color: var(--text-muted);
}

.strategy-nav-arrow {
    font-size: 18px;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.strategy-nav-card:hover .strategy-nav-arrow {
    transform: translateX(3px);
}

.strategy-nav-card--locked {
    opacity: 0.55;
    cursor: pointer;
}

.strategy-nav-card--locked:hover {
    border-color: var(--border);
    background: var(--bg-surface);
}

.strategy-nav-lock {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .strategy-nav-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
    }

    .strategy-nav-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .strategy-nav-meta {
        width: 100%;
        justify-content: space-between;
    }

    .strategy-nav-name {
        font-size: 14px;
    }
}

/* ======================
   Dashboard: Compact Blog Navigation
   ====================== */
.blog-nav-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.blog-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-nav-row {
    display: flex;
    align-items: flex-start;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    background: var(--bg-surface);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.15s ease;
}

.blog-nav-row:hover {
    border-color: var(--accent-border);
    background: var(--bg-subtle);
}

.blog-nav-row:hover .blog-nav-title {
    color: var(--accent);
}

.blog-nav-row:hover .strategy-nav-arrow {
    transform: translateX(3px);
}

.blog-nav-row--new {
    border-left: 3px solid var(--accent);
    background: rgba(99, 102, 241, 0.03);
}

.blog-nav-row--new:hover {
    background: rgba(99, 102, 241, 0.07);
}

.blog-nav-left {
    width: 155px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}

.blog-nav-left .strategy-badge {
    white-space: nowrap;
    align-self: flex-start;
}

.blog-nav-date {
    font-size: 12px;
    color: var(--text-muted);
}

.blog-nav-body {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
}

.blog-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.blog-nav-snippet {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

.blog-nav-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-top: 2px;
}

.blog-nav-all {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.blog-nav-all:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .blog-nav-row {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .blog-nav-left {
        width: auto;
        flex-direction: row;
        align-items: center;
        flex-basis: 100%;
    }

    .blog-nav-body {
        padding: 0;
        flex-basis: calc(100% - 44px);
    }

    .blog-nav-title {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

/* ======================
   NOTISKLOCKA
   ====================== */

.notification-bell {
    position: relative;
}

.notification-bell-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background var(--transition);
    position: relative;
    color: var(--text-secondary);
}

.notification-bell-btn:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger, #ef4444);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 210;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-dropdown[hidden] {
    display: none;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.notification-dropdown-header strong {
    color: var(--text-primary);
}

.notification-mark-all {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.notification-mark-all:hover {
    background: var(--accent-light, rgba(99, 102, 241, 0.08));
}

.notification-dropdown-list {
    overflow-y: auto;
    max-height: 420px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}

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

.notification-item:hover {
    background: var(--bg-subtle);
}

.notification-unread {
    background: rgba(99, 102, 241, 0.07);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.notification-unread .notification-title {
    font-weight: 600;
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

.notification-empty,
.notification-loading {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.notification-dot-label {
    font-size: 12px;
    font-weight: 700;
    color: white;
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    animation: notifPulse 2s ease-in-out infinite;
}

@keyframes notifPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.notify-checkbox-wrapper {
    margin-bottom: 16px;
}

.notify-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
}

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

.notify-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-left: 26px;
}

@media (max-width: 1023px) {
    .notification-dropdown {
        position: fixed;
        top: 72px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

/* ======================
   KALKYLATORER
   ====================== */

.calc-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 0 48px;
}

/* ── Sidhuvud ── */
.calc-page-header {
    margin-bottom: 28px;
}

.calc-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.calc-page-header h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 8px;
}

.calc-page-intro {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
}

/* ── Tab-navigation ── */
.calc-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}

.calc-tab {
    padding: 12px 24px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition), border-color var(--transition);
}

.calc-tab:hover {
    color: var(--text-primary);
}

.calc-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ── Sektioner (kort-stil) ── */
.calc-section {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.calc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}

.calc-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.calc-section-body {
    padding: 20px;
}

.calc-section-results {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
}

.calc-disclaimer-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 12px 20px;
    margin: 0;
    border-top: 1px solid var(--border);
}

/* ── Grid-layouts ── */
.calc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.calc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.calc-span-2 {
    grid-column: span 2;
}

/* ── Input-grupper ── */
.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.calc-input-row {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.calc-input-row:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.calc-input-row input[type="number"],
.calc-input-row input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

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

.calc-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    user-select: none;
}

.calc-unit-prefix {
    padding: 0 0 0 12px;
}

.calc-unit-suffix {
    padding: 0 12px 0 0;
}

/* ── Slider ── */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.calc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* ── Graf-legend ── */
.calc-chart-legend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.calc-legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

/* ── Innehav (rebalansering) ── */
.calc-holdings-head {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 40px;
    gap: 8px;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.calc-holding-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 40px;
    gap: 8px;
    padding: 6px 20px;
    align-items: center;
    border-top: 1px solid var(--border);
}

.calc-holding-cell input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.calc-holding-cell input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.calc-cur-weight {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.calc-del-cell {
    text-align: center;
}

.calc-del-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--danger-light);
    color: var(--danger);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition);
}

.calc-del-btn:hover {
    background: var(--danger);
    color: #fff;
}

/* ── Vikttotal ── */
.calc-weight-total {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.calc-weight-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.weight-err {
    font-weight: 700;
    color: var(--danger);
}

.weight-ok {
    font-weight: 700;
    color: var(--success);
}

.calc-weight-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.weight-hint-ok {
    color: var(--success);
}

/* ── Knappar ── */
.calc-add-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-base);
    background: transparent;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.calc-add-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* ── Toggle-knappar (courtage) ── */
.calc-toggle {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    overflow: hidden;
}

.calc-toggle-btn {
    padding: 6px 14px;
    border: none;
    background: var(--bg-surface);
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.calc-toggle-btn.active {
    background: var(--accent);
    color: #fff;
}

.calc-example-note {
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

/* ── CTA-block ── */
.calc-cta-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding: 24px 28px;
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
}

.calc-cta-text strong {
    font-size: 15px;
    color: var(--text-primary);
}

.calc-cta-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 4px;
}

.calc-cta-block .btn-primary {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── SEO-text ── */
.calc-seo-content {
    margin-top: 40px;
    padding: 0 4px;
}

.calc-seo-content h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 8px;
}

.calc-seo-content h2:first-child {
    margin-top: 0;
}

.calc-seo-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── FAQ-accordion ── */
.calc-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    margin-top: 8px;
    overflow: hidden;
}

.calc-faq-item summary {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    transition: background var(--transition);
}

.calc-faq-item summary::-webkit-details-marker {
    display: none;
}

.calc-faq-item summary::before {
    content: '+';
    display: inline-block;
    width: 20px;
    font-weight: 700;
    color: var(--accent);
}

.calc-faq-item[open] summary::before {
    content: '−';
}

.calc-faq-item summary:hover {
    background: var(--bg-subtle);
}

.calc-faq-item p {
    padding: 0 18px 14px 38px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Badges (rebalansering) ── */
.badge-buy {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--success-light);
    color: var(--success);
}

.badge-sell {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--danger-light);
    color: var(--danger);
}

.badge-hold {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--bg-subtle);
    color: var(--text-muted);
}

/* ── Drift-bar (avvikelse) ── */
.drift-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drift-bar-bg {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.drift-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ── Responsive: kalkylatorer ── */
@media (max-width: 768px) {
    .calc-wrap {
        padding: 20px 0 32px;
    }

    .calc-page-header h1 {
        font-size: 22px;
    }

    .calc-grid-3 {
        grid-template-columns: 1fr;
    }

    .calc-grid-2 {
        grid-template-columns: 1fr;
    }

    .calc-span-2 {
        grid-column: span 1;
    }

    .calc-holdings-head {
        display: none;
    }

    .calc-holding-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 12px 16px;
    }

    .calc-holding-cell:first-child {
        grid-column: span 2;
    }

    .calc-cur-weight {
        text-align: left;
    }

    .calc-del-cell {
        text-align: right;
    }

    .calc-cta-block {
        flex-direction: column;
        text-align: center;
    }

    .calc-chart-legend {
        flex-wrap: wrap;
        gap: 8px;
    }

    .calc-tabs-nav {
        gap: 0;
    }

    .calc-tab {
        flex: 1;
        text-align: center;
        padding: 12px 12px;
    }
}


/* ===================================
   LIVE-RESULTAT
   =================================== */

/* Sidhuvud — badge och rubrik i linje */
.live-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.live-page-header .page-title {
    margin: 0;
    line-height: 1.2;
}

/* Live-badge med pulserande punkt */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
    flex-shrink: 0;
}

.live-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: live-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(0.8); }
}

/* Intro-text — nedtonad, informativ */
.live-intro {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
}
.live-intro p { margin: 0 0 6px; }
.live-intro p:last-child { margin-bottom: 0; }

/* Flik-navigation */
.live-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.live-tabs::-webkit-scrollbar { display: none; }

.live-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    border-radius: var(--radius-base) var(--radius-base) 0 0;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    white-space: nowrap;
    min-height: 44px;
}
.live-tab:hover {
    color: var(--text-primary);
    background: var(--bg-subtle);
}
.live-tab--active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}
.live-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Panel */
.live-panel { display: flex; flex-direction: column; }
.live-panel--hidden { display: none; }

/* Kort som ramar in kalender + statistik */
.live-calendar-section {
    width: fit-content;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* Kalender + årsnavigator som sammanhållen enhet */
.live-calendar-wrap {
    width: 418px;
    margin: 0 auto 12px;
}

/* Årsnavigator */
.live-year-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.live-year-label {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 48px;
    text-align: center;
}
.live-year-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}
.live-year-btn:hover:not(:disabled) {
    background: var(--accent-light);
    border-color: var(--accent-border);
    color: var(--accent);
}
.live-year-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Kalender-grid — 4 kolumner med fast bredd */
.live-calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    gap: 6px;
}

/* Månadsruta */
.live-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: var(--radius-base);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-sm);
}
.live-month__name {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.live-month__value {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* Månadsruta — tillstånd */
.live-month--positive {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.25);
}
.live-month--positive .live-month__value { color: var(--success); }

.live-month--negative {
    background: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.25);
}
.live-month--negative .live-month__value { color: var(--danger); }

.live-month--empty {
    background: transparent;
    border: 1px dashed var(--border);
    box-shadow: none;
}
.live-month--empty .live-month__name { opacity: 0.5; }
.live-month--empty .live-month__value {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    opacity: 0.4;
}

/* Statistikrutor — matchar kalenderns bredd exakt */
.live-panel .strategy-stats {
    width: 418px;
    gap: 6px;
    margin: 0 auto;
}
.live-panel .stat-item {
    padding: 10px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-sm);
}
.live-panel .stat-label { font-size: 10px; }
.live-panel .stat-value { font-size: 16px; }

/* Statistik-rad — färger */
.live-stat--positive { color: var(--success); }
.live-stat--negative { color: var(--danger); }

@media (max-width: 500px) {
    .live-tabs {
        justify-content: flex-start;
    }
    .live-calendar-section {
        width: 100%;
        box-sizing: border-box;
    }
    .live-calendar-wrap,
    .live-panel .strategy-stats {
        width: 100%;
    }
    .live-calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .live-tabs:not(.is-scroll-end) {
        -webkit-mask-image: linear-gradient(to right, black 55%, transparent 90%);
        mask-image: linear-gradient(to right, black 55%, transparent 90%);
    }
}

/* Kombinerad vy */
.live-combined-note {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 10px 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Pensionsjakten — YTD-cell */
.live-pj-ytd-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.live-pj-ytd-cell__label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.live-pj-ytd-cell__value {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}
.live-pj-ytd-cell__date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.live-pj-ytd-cell--positive {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.25);
}
.live-pj-ytd-cell--positive .live-pj-ytd-cell__value { color: var(--success); }
.live-pj-ytd-cell--negative {
    background: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.25);
}
.live-pj-ytd-cell--negative .live-pj-ytd-cell__value { color: var(--danger); }
.live-pj-ytd-cell--empty {
    background: transparent;
    border: 1px dashed var(--border);
    box-shadow: none;
}
.live-pj-ytd-cell--empty .live-pj-ytd-cell__value { color: var(--text-muted); }
.live-pj-ytd-cell--pending .live-pj-ytd-cell__value {
    color: var(--text-muted);
    font-size: 20px;
    font-weight: 500;
}

/* Pensionsjakten-vy */
.live-pj-note {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 12px 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    line-height: 1.6;
}
.live-pj-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 560px;
}
.live-pj-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}
.live-pj-year {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.live-pj-value {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.live-pj-status {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: right;
}
.live-pj-row--positive .live-pj-value { color: var(--success); }
.live-pj-row--negative .live-pj-value { color: var(--danger); }
.live-pj-row--pending .live-pj-value {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}
.live-pj-row--empty .live-pj-value { color: var(--text-muted); }

/* Admin — live-resultat-verktyg */
.live-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 8px;
}
.live-admin-table th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.live-admin-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.live-admin-table tr:last-child td { border-bottom: none; }
.live-admin-table .positive { color: var(--success); font-weight: 600; }
.live-admin-table .negative { color: var(--danger); font-weight: 600; }

/* === Publika strategisidor (kvantstrategier/) === */

.breadcrumb-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.breadcrumb-bar a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 6px; color: var(--text-muted); }
.breadcrumb-current { color: var(--text-primary); font-weight: 500; }

.backtest-disclaimer {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 12px;
  line-height: 1.5;
}

.cta-banner {
  background: var(--accent-light);
  border-top: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
  padding: 48px 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 10px; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 20px; }

.holdings-teaser-section { padding: 48px 0 32px 0; }
.holdings-teaser-section h2 { margin-bottom: 6px; }
.holdings-blur-wrapper { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 320px; }
.holdings-blur-table { width: 100%; border-collapse: collapse; user-select: none; pointer-events: none; }
.holdings-blur-table th { background: var(--bg-subtle); padding: 24px 32px; text-align: left; font-size: 14px; font-weight: 700; color: var(--text-secondary); border-bottom: 2px solid var(--border); border-right: 1px solid var(--border); }
.holdings-blur-table th:last-child { border-right: none; }
.holdings-blur-table td { padding: 16px 32px; font-size: 15px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); height: 50px; }
.holdings-blur-table td:last-child { border-right: none; }
.holdings-blur-table tbody tr:nth-child(odd) td { background: #ffffff; }
.holdings-blur-table tbody tr:nth-child(even) td { background: #f5f5f5; }
/* Göm Köps och Säljs på mobil */
@media (max-width: 768px) {
  .holdings-blur-table th:nth-child(3),
  .holdings-blur-table th:nth-child(4),
  .holdings-blur-table td:nth-child(3),
  .holdings-blur-table td:nth-child(4) {
    display: none;
  }
}
.holdings-placeholder { background: #d9d9d9; border-radius: 4px; display: inline-block; height: 20px; min-width: 80px; }
.holdings-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, transparent 0%, rgba(249,250,251,0.3) 40%, rgba(249,250,251,0.85) 60%);
  border-radius: var(--radius-lg);
}
.lock-content { text-align: center; padding: 32px 24px; background: rgba(255, 255, 255, 0.85); border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.lock-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.lock-content h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text-primary); font-weight: 700; }
.lock-content p { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.95rem; }
.lock-subtext { font-size: 0.82rem; color: var(--text-secondary); margin-top: 10px; display: block; }

.steps-section { padding: 64px 0; background: var(--bg-subtle); }
.steps-section h2 { text-align: center; margin-bottom: 32px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; }
.step-number { width: 36px; height: 36px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; margin-bottom: 16px; }
.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); }

.trust-strip { padding: 48px 0; }
.trust-strip h2 { text-align: center; margin-bottom: 28px; font-size: 1.2rem; color: var(--text-secondary); font-weight: 600; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-card { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.trust-card-icon { font-size: 1.5rem; margin-bottom: 8px; }
.trust-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.trust-card p { font-size: 0.82rem; color: var(--text-secondary); }

.final-cta-section { padding: 80px 0; text-align: center; background: linear-gradient(135deg, var(--hero-bg-start), var(--hero-bg-mid)); border-top: 1px solid var(--border); }
.final-cta-section h2 { font-size: 2rem; margin-bottom: 16px; }
.final-cta-section p { color: var(--text-secondary); margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }
.final-cta-footnote { font-size: 0.82rem; color: var(--text-secondary); margin-top: 12px; }

.btn-lg { padding: 14px 32px !important; font-size: 1rem !important; }
.hero-no-cc { font-size: 0.82rem; color: var(--text-secondary); margin-top: 8px; }

.related-strategies { padding: 48px 0; border-top: 1px solid var(--border); }
.related-strategies h2 { margin-bottom: 24px; font-size: 1.1rem; color: var(--text-secondary); font-weight: 600; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related-card { display: flex; align-items: center; gap: 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; text-decoration: none; color: var(--text-primary); transition: box-shadow var(--transition), border-color var(--transition); }
.related-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent-border); }
.related-card--back { border-color: var(--accent-border); color: var(--accent); }
.related-card--back .related-card-name { color: var(--accent); }
.related-card-emoji { font-size: 1.4rem; }
.related-card-info { flex: 1; }
.related-card-name { font-weight: 600; font-size: 0.9rem; display: block; }
.related-card-meta { font-size: 0.78rem; color: var(--text-secondary); }

/* Mobile */
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta-section h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}
