/* --- LOKALT HOSTAD MONTESSERT-FONT (Lättvikt: endast nödvändiga vikter) --- */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/montserrat/v29/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/montserrat/v29/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/montserrat/v29/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/montserrat/v29/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2') format('woff2');
}

/* BASE & SYSTEM SPACING */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #121212;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 60px 16px;
}

.page-wrap {
    max-width: 620px;
    width: 100%;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* HUVUDCONTAINER MED MER LUFT */
.container {
    width: 100%;
    text-align: center;
    background: #ffffff;
    padding: 85px 28px 40px 28px;
    border-radius: 32px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(18, 18, 18, 0.8);
    position: relative;
    z-index: 1;
}

/* PROFILBILD HERO */
.profile-wrap {
    position: absolute;
    top: -62px;
    left: 50%;
    transform: translateX(-50%);
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 4px solid #25F4EE;
    box-shadow: 0 8px 24px rgba(37, 244, 238, 0.35);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

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

/* SHOPPING CART IKON HÖGST UPP TILL HÖGER */
.shop-cart-icon {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.shop-cart-icon:hover {
    background-color: #f0fdfd;
    border-color: #25F4EE;
    transform: translateY(-2px);
}

/* TYPOGRAFI HIERARKI */
h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: #121212;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #20d5df;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 900;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(32, 213, 223, 0.4);
    user-select: none;
    pointer-events: none;
}

.tagline {
    color: #121212;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.sub-tagline {
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.5;
    padding: 0 12px;
}

.section-title {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #6b7280;
    margin-bottom: 18px;
}

/* LJUDSPELARE */
.audio-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 18px;
    border-radius: 24px;
    margin-bottom: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.audio-bar:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.audio-btn {
    font-size: 1rem;
}

.audio-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #121212;
}

/* PREMIUM DIAGNOS-KORT */
.disease-card {
    background-color: #fff5f5;
    border: 1.5px solid #fecdd3;
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 32px;
    display: inline-block;
    width: 100%;
    max-width: 390px;
}

.disease-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #fe2c55;
    margin-bottom: 4px;
}

.disease-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #121212;
}

.disease-date {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 4px;
}

/* SIFFER-SEKTION */
.stats-editorial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.stat-huge {
    font-size: 1.85rem;
    font-weight: 900;
    color: #121212;
    letter-spacing: -0.5px;
    line-height: 1.1;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-huge.infinity {
    font-size: 2.8rem;
    line-height: 1;
}

.stat-sub {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    margin-top: 6px;
}

/* IKONISKT ÖGONBLICK */
.reaction-feature {
    background: #fafafa;
    border: 1.5px solid #e5e7eb;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 40px;
}

.reaction-title-main {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fe2c55;
    margin-bottom: 6px;
}

.reaction-desc {
    font-size: 1rem;
    font-weight: 700;
    color: #121212;
    margin-bottom: 14px;
}

.yt-preview-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    background-color: #000;
    cursor: pointer;
}

.yt-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.yt-preview-box:hover .yt-preview-img {
    transform: scale(1.02);
}

.yt-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    padding-left: 3px;
    z-index: 2;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.yt-preview-box:hover .yt-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #ff0000;
}

.yt-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
}

/* OM FOTJOZEF */
.seo-about-section {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.seo-about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.seo-about-title {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #4b5563;
}

.seo-about-toggle {
    font-size: 0.82rem;
    font-weight: 700;
    color: #25F4EE;
    background: #121212;
    padding: 4px 10px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.seo-intro-text {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 0;
}

.seo-collapse-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.seo-about-text {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.6;
    margin-top: 12px;
}

/* LÄNK-SEKTIONER */
.link-section-wrap {
    margin-bottom: 36px;
}

.action-link-btn {
    width: 100%;
    background-color: #ffffff;
    color: #121212;
    border: 1.5px solid #25F4EE;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 14px rgba(37, 244, 238, 0.15);
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.action-link-btn:hover {
    background-color: #f0fdfd;
    transform: translateY(-1px);
}

.action-link-arrow {
    font-size: 1rem;
    font-weight: 900;
    color: #121212;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.video-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    height: 175px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.video-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: #121212;
}

.pinned-badge {
    align-self: flex-end;
    font-size: 0.8rem;
    z-index: 2;
}

.play-btn-banner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4px;
    background-color: rgba(18, 18, 18, 0.85);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    backdrop-filter: blur(2px);
}

/* HÄNG MED */
.social-section {
    margin-bottom: 32px;
}

.social-tier-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-bottom: 10px;
}

.primary-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 10px;
    background-color: #121212;
    color: #ffffff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #25F4EE;
    color: #121212;
    transform: translateY(-2px);
}

.secondary-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-secondary {
    display: inline-flex;
    padding: 8px 14px;
    background-color: #ffffff;
    color: #4b5563;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #121212;
    color: #121212;
    background-color: #f5f5f5;
}

.contact-link {
    display: inline-block;
    color: #121212;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #25F4EE;
}

/* FOOTER & TURN-O-MATIC WIDGET */
.copyright-footer {
    color: #6b7280;
    font-size: 0.85rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
    line-height: 1.6;
    text-align: center;
    position: relative;
}

.footer-highlight {
    color: #121212;
    font-weight: 800;
    font-size: 0.95rem;
    display: block;
    margin-top: 4px;
}

.turnomatic-ticket {
    background: #ffffff;
    border: 2px solid #e06d8a;
    border-radius: 4px;
    width: 65px;
    padding: 3px 2px 5px 2px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    position: absolute;
    right: 0;
    top: 20px;
    transform: rotate(2deg);
}

.ticket-banner {
    background-color: #e06d8a;
    color: white;
    font-size: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: bold;
    padding: 2px 0;
    margin: -3px -2px 4px -2px;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.ticket-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: bold;
    color: #121212;
    line-height: 1;
    min-height: 16px;
}

.ticket-arrow {
    font-size: 10px;
    color: #e06d8a;
    font-weight: bold;
    margin-top: 2px;
    line-height: 1;
}

/* LYCKOHJUL & HÖGERFLIK */
.wheel-tab {
    position: fixed;
    right: 10px;
    top: 40%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
    background: linear-gradient(135deg, #25F4EE, #FE2C55);
    color: #121212;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 12px 20px;
    border-radius: 16px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: -4px 4px 15px rgba(0,0,0,0.15);
    user-select: none;
}

.wheel-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    padding: 16px;
    cursor: pointer;
}

.wheel-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 2px solid #121212;
    cursor: default;
}

.wheel-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #121212;
    font-weight: bold;
}

.wheel-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #121212;
    margin-bottom: 4px;
}

.wheel-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.wheel-container {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 20px auto;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 24px solid #FE2C55;
    z-index: 10;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid #121212;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.15, 0.9, 0.2, 1);
    background: conic-gradient(
        #25F4EE 0deg 45deg,
        #121212 45deg 90deg,
        #25F4EE 90deg 135deg,
        #121212 135deg 180deg,
        #25F4EE 180deg 225deg,
        #121212 225deg 270deg,
        #25F4EE 270deg 315deg,
        #121212 315deg 360deg
    );
}

.wheel-segment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(calc(var(--i) * 45deg + 22.5deg));
    transform-origin: 50% 50%;
    pointer-events: none;
}

.wheel-segment span {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) rotate(270deg);
    font-size: 0.55rem;
    font-weight: 900;
    width: 90px;
    text-align: center;
    z-index: 5;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.wheel-segment:nth-child(odd) span {
    color: #121212;
}

.wheel-segment:nth-child(even) span {
    color: #ffffff;
}

.wheel-spin-button {
    background-color: #FE2C55;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(254, 44, 85, 0.3);
    transition: transform 0.1s ease;
}

.wheel-spin-button:hover {
    background-color: #e0244a;
}

.win-result-box {
    margin-top: 16px;
    padding: 14px;
    background: #f0fdfd;
    border: 1.5px solid #25F4EE;
    border-radius: 12px;
}

.win-result-box h4 {
    font-size: 1.1rem;
    font-weight: 900;
    color: #121212;
    margin-bottom: 4px;
}

.win-result-box p {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.win-action-btn {
    display: inline-block;
    background-color: #121212;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* --- NYA SNYGGA ANIMERADE POPUPS & KUVERT-EFFEKT --- */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    padding: 16px;
    cursor: pointer;
}

.custom-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 28px 24px 24px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border: 2px solid #121212;
    cursor: default;
    animation: modalPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalPopIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.custom-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #121212;
    font-weight: bold;
}

.custom-modal-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #121212;
    margin-bottom: 12px;
}

.custom-modal-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-line;
}

.custom-modal-btn {
    background-color: #121212;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.custom-modal-btn:hover {
    background-color: #25F4EE;
    color: #121212;
}

/* Kuvert-animation för kontakt */
@keyframes envelopeFlyIn {
    0% { transform: translateY(-300px) rotate(-20deg) scale(0.2); opacity: 0; }
    60% { transform: translateY(20px) rotate(10deg) scale(1.1); opacity: 1; }
    100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
}

.envelope-wrapper {
    font-size: 4rem;
    margin-bottom: 8px;
    animation: envelopeFlyIn 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* RESPONSIVITET MOBIL */
@media (max-width: 500px) {
    .container {
        padding: 70px 16px 28px 16px;
    }

    .stat-huge {
        font-size: 1.5rem;
        height: 32px;
    }

    .stat-huge.infinity {
        font-size: 2.2rem;
    }

    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .video-card {
        height: 145px;
    }

    .primary-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

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

    .video-card {
        height: 200px;
    }
}