* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gymly app – lilla accent */
    --primary: #976FFF;
    --primary-dark: #7B4BFF;
    --primary-light: #9C6EFB;
    --primary-pastel: rgba(151, 111, 255, 0.15);
    --text-dark: #000000;
    --text-muted: #333333;
    --text-light: #666666;
    --text-secondary: #888888;
    --bg-white: #FFFFFF;
    --bg-light: #F8F8FA;
    --border-color: #E8E8EC;
    --online-green: #4CAF50;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    padding-bottom: 60px; /* Space for footer bar */
}

/* White header bar – Log ind/Tilmeld dig venstre, logo midt, Download højre */
.header-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 101;
    max-width: 100%;
}

.header-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-self: start;
}

.header-bar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s;
    justify-self: center;
}

.header-bar-logo:hover {
    opacity: 0.85;
}

.header-bar-logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.header-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-self: end;
}

/* Pill-knapper (Snapchat-stil): meget runde, lilla/hvid */
.header-bar-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.header-bar-right button.header-bar-btn {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.header-bar-btn-pill {
    border-radius: 9999px;
    border: 2px solid transparent;
}

.header-bar-btn-outline {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
}

.header-bar-btn-outline:hover {
    background: var(--primary-pastel);
}

.header-bar-btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.header-bar-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Indstillinger: lilla tandhjul-ikon */
.header-bar-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    text-decoration: none;
    transition: background 0.2s;
}

.header-bar-btn-icon:hover {
    background: var(--primary-dark);
}

.header-bar-btn-icon svg {
    flex-shrink: 0;
}

/* Header */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Logo Icon */
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.logo-icon:hover {
    opacity: 0.8;
}

/* Search Container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #F5F5F5;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    min-width: 200px;
    flex: 0 1 auto;
}

.search-icon {
    color: var(--text-light);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-dark);
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
    color: var(--text-light);
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
    margin: 0 1rem;
}

.nav-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--text-dark);
    position: relative;
    transition: color 0.2s;
    padding: 0.25rem;
}

.nav-icon-item:hover {
    color: var(--primary);
}

.nav-icon-item.active {
    color: var(--primary);
    position: relative;
}

/* Aktivt ikon: ingen cirkel – kun lilla ikon + lilla tekst */

.nav-icon-item.active .nav-label {
    color: var(--primary);
}

.nav-icon {
    stroke: currentColor;
    fill: none;
}

/* Footer ikoner – alle SVG, ens stil */
.nav-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-icon-svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nav-icon-item:not(.active) .nav-icon-svg {
    stroke: var(--text-light);
    fill: none;
}
.nav-icon-item.active .nav-icon-svg,
.nav-icon-item:hover .nav-icon-svg {
    stroke: var(--primary);
    fill: none;
}
.nav-icon-svg.fill-icon {
    stroke: none;
}
.nav-icon-item:not(.active) .nav-icon-svg.fill-icon {
    fill: var(--text-light);
}
.nav-icon-item.active .nav-icon-svg.fill-icon,
.nav-icon-item:hover .nav-icon-svg.fill-icon {
    fill: var(--primary);
}

/* Inaktiv tekst: grå */
.nav-icon-item:not(.active) .nav-label {
    color: var(--text-light);
}

/* Aktivt ikon (SVG) */
.nav-icon-item.active .nav-icon {
    stroke: white;
    fill: white;
}

.nav-icon-item.active .nav-icon[fill="currentColor"],
.nav-icon-item.active .nav-icon[fill] {
    fill: white;
    stroke: white;
}

.nav-label {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    transition: color 0.2s;
}

.nav-icon-item:hover .nav-label {
    color: var(--primary);
}

/* Bund-navigation (5 ikoner) – fast i bunden */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 0.5rem 0.25rem max(0.5rem, env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.bottom-nav-bar .nav-icon-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.4rem 0.25rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.bottom-nav-bar .nav-icon-item .nav-icon-wrap {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    overflow: hidden;
}

.bottom-nav-bar .nav-icon-item .nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.bottom-nav-bar .nav-icon-item .nav-label {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.bottom-nav-bar .nav-icon-item:not(.active) .nav-label {
    color: var(--text-light);
}

.bottom-nav-bar .nav-icon-item.active .nav-label {
    color: var(--primary);
}

.bottom-nav-bar .nav-icon-item.active {
    color: var(--primary);
}

.nav-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
}

.nav-plus {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

/* Grid Icon Button */
.grid-icon-btn {
    background-color: #F5F5F5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.grid-icon-btn:hover {
    background-color: #E0E0E0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-black {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
}

.btn-black:hover {
    background-color: var(--primary-dark);
}

/* Main Content */
.main-content {
    height: calc(100vh - 80px);
    position: relative;
    background-image:
        linear-gradient(rgba(151, 111, 255, 0.12), rgba(124, 75, 255, 0.18)),
        url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

/* Startside: main må ikke låse højden, så man kan scrolle ned til footer */
.main-content.main-content-start {
    min-height: calc(100vh - 80px);
    height: auto !important;
    overflow: visible !important;
}

/* Gør forsiden scrollbar så footeren kan nås */
html.start-page,
body.start-page {
    overflow-y: auto;
    min-height: 100%;
}

/* Left Panel */
.left-panel {
    position: relative;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

.image-cyclists {
    background-image:
        linear-gradient(rgba(124, 75, 255, 0.15), rgba(151, 111, 255, 0.2)),
        url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?auto=format&fit=crop&w=1350&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(151, 111, 255, 0.1), rgba(123, 75, 255, 0.15));
}

/* Center Panel */
.center-panel {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-white);
    width: 100%;
    max-width: 400px;
    height: fit-content;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(151, 111, 255, 0.12);
    overflow: visible;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    align-self: center;
}

/* Right Side Boxes */
.right-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 700px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    align-self: flex-start;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.right-boxes::-webkit-scrollbar {
    width: 8px;
}

.right-boxes::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.right-boxes::-webkit-scrollbar-thumb {
    background: rgba(151, 111, 255, 0.3);
    border-radius: 4px;
}

.right-boxes::-webkit-scrollbar-thumb:hover {
    background: rgba(151, 111, 255, 0.5);
}

.content-box {
    background-color: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(151, 111, 255, 0.08);
    overflow: visible;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.content-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(151, 111, 255, 0.15);
}

.box-placeholder {
    width: 100%;
    min-height: 450px;
    background: linear-gradient(135deg, rgba(151, 111, 255, 0.06) 0%, rgba(156, 110, 251, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(151, 111, 255, 0.2);
    border-radius: 20px;
}

.box-placeholder::before {
    content: '';
    width: 100px;
    height: 100px;
    border: 2px solid rgba(151, 111, 255, 0.25);
    border-radius: 12px;
    background: rgba(151, 111, 255, 0.05);
}

.box-content {
    width: 100%;
    min-height: 500px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: transparent;
    position: relative;
}

.box-btn {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 140px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    visibility: visible !important;
    opacity: 1 !important;
    text-decoration: none;
}

.box-btn-primary {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
}

.box-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(151, 111, 255, 0.35);
    background: var(--primary-dark) !important;
}

.box-btn-secondary {
    background: var(--text-muted) !important;
    color: white !important;
    border: none !important;
}

.box-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.box-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.main-heading {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.description {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.login-prompt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.link-login {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

.signup-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.btn-signup {
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s;
    background-color: var(--bg-white);
    color: var(--text-dark);
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-pastel);
}

.btn-google:hover,
.btn-apple:hover {
    background-color: var(--bg-light);
    border-color: var(--primary);
}

.btn-email {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    text-align: center !important;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.btn-email:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.icon {
    flex-shrink: 0;
}

.terms {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
}

.link {
    color: var(--primary);
    text-decoration: none;
}

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

/* ========== Facebook-style login (lilla + Gymly logo) ========== */
.login-page.login-fb-style {
    min-height: 100vh;
    background-color: var(--bg-white);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.login-fb-wrap {
    display: flex;
    flex: 1;
    min-height: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.login-fb-left {
    flex: 0 0 48%;
    max-width: 520px;
    padding: 2.5rem 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.login-fb-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    text-decoration: none;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    align-self: center;
}

.login-fb-logo {
    height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.login-fb-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    max-width: 420px;
}

.login-fb-heading-line1 {
    display: block;
    color: var(--text-dark);
}

.login-fb-heading-line2 {
    display: block;
    color: var(--primary);
}

.login-fb-illustrations {
    position: relative;
    max-width: 380px;
    height: 220px;
    margin-top: 0.5rem;
}

.login-fb-img {
    position: absolute;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-fb-img-main {
    width: 200px;
    height: 200px;
    top: 0;
    left: 0;
}

.login-fb-img-small {
    width: 120px;
    height: 140px;
    top: 20px;
    left: 160px;
}

.login-fb-img-round {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 0;
    left: 260px;
}

.login-fb-right {
    flex: 1;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-fb-form-wrap {
    width: 100%;
    max-width: 396px;
}

.login-fb-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.login-fb-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.login-fb-input {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: inherit;
}

.login-fb-input::placeholder {
    color: var(--text-secondary);
}

.login-fb-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-pastel);
}

.login-fb-btn-primary {
    padding: 0.875rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.login-fb-btn-primary:hover {
    background-color: var(--primary-dark);
}

.login-fb-forgot {
    display: block;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.login-fb-forgot:hover {
    text-decoration: underline;
}

.login-fb-btn-secondary {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--primary);
    text-decoration: none;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.login-fb-btn-secondary:hover {
    background: var(--primary-pastel);
}

.login-fb-meta {
    text-align: center;
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: 1.5rem;
}

.login-fb-download {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-fb-download-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.login-fb-download-btns {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.login-fb-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.2s;
}

.login-fb-download-btn:hover {
    background-color: var(--primary-dark);
}

.login-fb-lang-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
    background: var(--bg-white);
}

.login-fb-lang-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
}

.login-fb-lang-footer a:hover {
    text-decoration: underline;
    color: var(--primary);
}

.login-fb-footer-sep {
    color: var(--text-secondary);
    pointer-events: none;
    user-select: none;
}

@media (max-width: 900px) {
    .login-fb-wrap {
        flex-direction: column;
        align-items: center;
    }
    .login-fb-left {
        padding: 2rem 1.5rem 1rem;
        align-items: center;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .login-fb-heading {
        text-align: center;
    }
    .login-fb-illustrations {
        display: none;
    }
    .login-fb-right {
        flex: none;
        width: 100%;
        max-width: 396px;
    }
}

/* Right Panel */
.right-panel {
    position: relative;
    overflow: hidden;
}

.image-runners {
    background-image:
        linear-gradient(rgba(124, 75, 255, 0.15), rgba(156, 110, 251, 0.2)),
        url('https://images.unsplash.com/photo-1579758629938-03607ccdbaba?auto=format&fit=crop&w=1200&q=80');
    background-position: center;
    background-size: cover;
    position: relative;
}

.device-overlays {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    pointer-events: none;
    z-index: 5;
}

.device-overlays > * {
    pointer-events: auto;
}

.phone-mockup {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 180px;
    height: 320px;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.phone-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    padding-top: 0.5rem;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.location-pin {
    font-size: 1.2rem;
}

.location-info {
    flex: 1;
}

.location-name {
    font-family: 'Quicksand', sans-serif;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.location-address {
    font-family: 'Quicksand', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
}

.active-with {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--primary-pastel);
    border-radius: 8px;
    border: 1px solid rgba(151, 111, 255, 0.25);
}

.active-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.active-text {
    font-family: 'Quicksand', sans-serif;
    color: white;
    font-size: 0.7rem;
    flex: 1;
}

.friend-name {
    font-family: 'Quicksand', sans-serif;
    color: var(--primary-light);
    font-weight: 600;
}

.swipe-button {
    background: linear-gradient(135deg, rgba(151, 111, 255, 0.2) 0%, rgba(156, 110, 251, 0.15) 100%);
    border-radius: 16px;
    padding: 0.9rem 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid rgba(151, 111, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(151, 111, 255, 0.15);
    order: -1;
    margin-bottom: 0.5rem;
}

.swipe-button:hover {
    background: linear-gradient(135deg, rgba(151, 111, 255, 0.28) 0%, rgba(156, 110, 251, 0.22) 100%);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(151, 111, 255, 0.25);
    transform: translateY(-2px);
}

.swipe-track {
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.swipe-thumb {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(151, 111, 255, 0.35);
    transition: all 0.3s;
}

.swipe-button:hover .swipe-thumb {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(151, 111, 255, 0.5);
}

.swipe-text {
    font-family: 'Quicksand', sans-serif;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.7rem;
    text-align: center;
    font-weight: 500;
}

.activity-card {
    font-family: 'Quicksand', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-row .location-pin {
    font-size: 1rem;
}

.activity-row .location-info {
    flex: 1;
}

.activity-row .location-name {
    font-family: 'Quicksand', sans-serif;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

.activity-row .location-address {
    font-family: 'Quicksand', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.6rem;
}

.activity-row .active-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.activity-row .active-text {
    font-family: 'Quicksand', sans-serif;
    color: white;
    font-size: 0.65rem;
    flex: 1;
}

.watch-mockup {
    position: absolute;
    bottom: -50px;
    right: 12%;
    width: 140px;
    height: 140px;
    background: #1a1a1a;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.watch-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: white;
    font-size: 0.6rem;
    gap: 0.25rem;
}

.watch-status {
    font-family: 'Quicksand', sans-serif;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.55rem;
    text-align: center;
}

.watch-time {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-align: center;
}

.watch-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.5rem;
    color: #999;
    text-align: center;
    margin-top: 0.15rem;
}

.watch-activity {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.55rem;
    color: var(--online-green);
    text-align: center;
    margin-top: 0.25rem;
    font-weight: 600;
}

.muscle-selector {
    position: absolute;
    bottom: 8%;
    right: 10%;
    display: flex;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.muscle-icon {
    font-size: 1rem;
    padding: 0.35rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    user-select: none;
}

.muscle-icon:hover {
    opacity: 0.9;
    transform: scale(1.1);
    background-color: var(--primary-pastel);
}

.muscle-icon.active {
    opacity: 1;
    background-color: rgba(151, 111, 255, 0.2);
    transform: scale(1.15);
    border: 2px solid var(--primary);
}

.path-line {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 120px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(151, 111, 255, 0.4);
}

.path-line::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -5px;
    width: 0;
    height: 0;
    border-left: 10px solid var(--primary);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.app-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.app-store-button,
.google-play-button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #E0E0E0;
    background-color: #000000;
    color: #FFFFFF;
    min-width: 160px;
}

.app-store-button {
    background-color: #000000;
    color: #FFFFFF;
}

.google-play-button {
    background-color: #000000;
    color: #FFFFFF;
}

.app-store-button:hover,
.google-play-button:hover {
    background-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.button-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.button-small-text {
    font-size: 0.65rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.button-large-text {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.app-store-icon,
.google-play-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    color: var(--text-dark);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--primary);
}

/* Footer Bar – matcher appens bundnavigation */
.footer-bar {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10000;
    box-sizing: border-box;
    box-shadow: 0 -2px 10px rgba(151, 111, 255, 0.06);
}

.footer-bar-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

.footer-bar-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-link-cta {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .three-column-layout {
        grid-template-columns: 1fr 1.2fr 1fr;
    }
    
    .main-heading {
        font-size: 2.5rem;
    }
}

@media (max-width: 968px) {
    .three-column-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .left-panel,
    .right-panel {
        min-height: 400px;
    }
    
    .center-panel {
        padding: 3rem 2rem;
    }
    
    .nav {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .header-bar {
        padding: 0.5rem 1rem;
    }
    .header-bar-logo-img {
        height: 44px;
    }
    .header-bar-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem;
    }
    .header-container {
        padding: 0 1rem;
    }
    
    .main-heading {
        font-size: 2rem;
    }
    
    .center-panel {
        padding: 2rem 1.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup,
    .watch-mockup {
        transform: scale(0.7);
    }
}

/* ===== Hjem side (app-style) ===== */
.home-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
    padding-bottom: 100px;
}

.home-greeting {
    margin-bottom: 2rem;
}

.home-greeting-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.home-greeting-subtitle {
    font-size: 1rem;
    color: var(--text-light);
}

.home-section {
    margin-bottom: 2rem;
}

.home-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.home-section-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.home-section-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
}

.home-section-badge {
    background: var(--online-green);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.friend-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.friend-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
}

a.friend-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #fafafa;
}

.friend-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.friend-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.friend-card-location {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

.friend-card-icons {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.friend-card-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.friend-card-btn:hover {
    background: var(--primary-dark);
}

.friend-card-btn.requested {
    background: #9e9e9e;
    color: white;
    cursor: default;
}

.friend-card-btn.requested:hover {
    background: #9e9e9e;
}

.suggested-friends-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.suggested-friends-scroll::-webkit-scrollbar {
    height: 6px;
}

.suggested-friends-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.suggested-friend-card {
    flex-shrink: 0;
    width: 140px;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    text-decoration: none !important;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
}

.suggested-friend-card:hover,
.suggested-friend-card:visited,
.suggested-friend-card:focus {
    text-decoration: none !important;
}

.suggested-friend-card .suggested-friend-avatar,
.suggested-friend-card .suggested-friend-name,
.suggested-friend-card .suggested-friend-mutual,
.suggested-friend-card .suggested-friend-gym {
    text-decoration: none !important;
    border-bottom: none !important;
    color: inherit;
}

.suggested-friend-card .suggested-friend-avatar {
    color: white;
}

.suggested-friend-card .suggested-friend-name {
    color: var(--text-dark);
}

.suggested-friend-card .suggested-friend-mutual {
    color: var(--text-light);
}

.suggested-friend-card .suggested-friend-gym {
    color: var(--text-secondary);
}

.suggested-friend-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #fafafa;
}

.suggested-friend-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.suggested-friend-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.suggested-friend-mutual {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.suggested-friend-gym {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

