/* ============================================
   Sjöstad Modding – Black, White & Blue Theme
   Responsive: phone, tablet, desktop, ultra-wide
   ============================================ */

:root {
    --color-bg: #0a0a0f;
    --color-bg-elevated: #12121a;
    --color-bg-card: #16161f;
    --color-surface: #1a1a24;
    --color-border: #2a2a3a;
    --color-text: #f0f0f5;
    --color-text-muted: #8a8a9a;
    --color-accent: #2563eb;
    --color-accent-hover: #3b82f6;
    --color-accent-muted: rgba(37, 99, 235, 0.15);
    --color-white: #ffffff;
    --font-primary: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: 0.2s ease;
    --container-max: 1400px;
    --header-padding: clamp(0.75rem, 2vw, 2rem);
    --section-padding: clamp(2rem, 5vw, 4rem);
    --touch-min: 44px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) var(--color-bg-elevated);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-elevated);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    overflow-x: hidden;
}

/* ========== Header ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--header-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 2vw, 2rem);
}

/* Hamburger – hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: var(--touch-min);
    height: var(--touch-min);
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    color: var(--color-text);
    transition: background var(--transition);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:hover {
    background: var(--color-accent-muted);
}

.nav-toggle:active,
.pin-keypad-btn:active,
.btn:active {
    -webkit-tap-highlight-color: transparent;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity var(--transition);
    flex-shrink: 0;
}

.header-logo:hover {
    opacity: 0.9;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-link {
    padding: 0.5rem 1rem;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
    background: var(--color-accent-muted);
}

.nav-admin {
    display: none;
}

.nav-admin.visible {
    display: inline-flex;
}

/* Nav dropdown – Juridiskt */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: var(--touch-min);
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: var(--color-text-muted);
    cursor: pointer;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger,
.nav-dropdown.active .nav-dropdown-trigger {
    color: var(--color-text);
    background: var(--color-accent-muted);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 50;
}

.nav-dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background var(--transition);
}

.nav-dropdown-item:hover {
    background: var(--color-accent-muted);
}

.nav-dropdown .dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Login Button */
.btn-login {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    min-height: var(--touch-min);
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}

.btn-login:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    min-height: var(--touch-min);
    background: transparent;
    border: none;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--transition);
}

.user-pfp {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem;
}

.user-discord {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.user-dropdown-trigger:hover {
    background: var(--color-accent-muted);
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.user-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.user-dropdown.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background var(--transition);
}

.dropdown-item:hover {
    background: var(--color-accent-muted);
}

.dropdown-logout {
    color: #ef4444;
    border-top: 1px solid var(--color-border);
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}

.dropdown-logout:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-load {
    animation: fadeInUp 0.7s ease-out forwards;
}

.animate-on-load-delay-1 { animation-delay: 0.15s; opacity: 0; }
.animate-on-load-delay-2 { animation-delay: 0.3s; opacity: 0; }
.animate-on-load-delay-3 { animation-delay: 0.45s; opacity: 0; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Main / Hero ========== */
.main {
    flex: 1;
}

.hero {
    position: relative;
    min-height: min(85vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.7);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: min(700px, 90vw);
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: clamp(12px, 3vw, 20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slogan {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-discord {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
}

.btn-discord:hover {
    border-color: var(--color-white);
    color: var(--color-white);
}

/* ========== Auth Pages ========== */
.auth-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding) clamp(1rem, 4vw, 2rem);
}

.auth-box {
    max-width: min(420px, 95vw);
    width: 100%;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.auth-error {
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* PIN display: -- -- -- -- (left to right) */
.pin-box {
    max-width: 360px;
}

.pin-step-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.pin-display {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    user-select: none;
    -webkit-user-select: none;
}

.pin-display span {
    min-width: 2ch;
    text-align: center;
    color: var(--color-text-muted);
}

.pin-display span.filled {
    color: var(--color-accent);
}

/* Keypad: 1-9, 0, erase, submit */
.pin-keypad {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pin-keypad-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pin-keypad-btn {
    width: clamp(48px, 14vw, 56px);
    height: clamp(48px, 14vw, 56px);
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform 0.1s;
}

.pin-keypad-btn:hover {
    background: var(--color-bg-card);
    border-color: var(--color-accent);
}

.pin-keypad-btn:active {
    transform: scale(0.96);
}

.pin-keypad-btn svg {
    width: 22px;
    height: 22px;
}

.pin-keypad-erase {
    color: var(--color-text-muted);
}

.pin-keypad-erase:hover {
    color: #ef4444;
}

.pin-keypad-submit {
    color: var(--color-accent);
}

.pin-keypad-submit:hover {
    background: var(--color-accent-muted);
    border-color: var(--color-accent);
}

.btn-discord-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-discord-login:hover {
    background: #4752C4;
}

.discord-icon {
    flex-shrink: 0;
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
}

.auth-footer a {
    color: var(--color-accent);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-discord-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-accent-muted);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.discord-link-area {
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.discord-link-hint {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.discord-icon-small {
    flex-shrink: 0;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.auth-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

/* ========== Cards Section ========== */
.cards-section {
    padding: var(--section-padding) clamp(1rem, 4vw, 2rem);
    max-width: var(--container-max);
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cards-grid .card:nth-child(1) { transition-delay: 0s; }
.cards-grid .card:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .card:nth-child(3) { transition-delay: 0.2s; }

.card {
    display: grid;
    grid-template-rows: 1fr 1.85fr;
    max-height: min(440px, 60vh);
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition), opacity 0.6s ease-out;
}

.cards-section .card {
    opacity: 0;
    transform: translateY(30px);
}

.cards-section .card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    min-height: 0;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.card-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.card-button-wrap {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    justify-content: center;
}

.card-btn {
    min-width: 140px;
}

/* ========== Why Section ========== */
.why-section {
    padding: var(--section-padding) clamp(1rem, 4vw, 2rem);
    background: var(--color-bg-elevated);
}

.why-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.why-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 4/3;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.why-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.why-list {
    list-style: none;
}

.why-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.why-item:last-child {
    border-bottom: none;
}

.why-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.35rem;
}

.why-item-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ========== Discord Section ========== */
.discord-section {
    padding: var(--section-padding) clamp(1rem, 4vw, 2rem);
}

.discord-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.discord-content {
    order: 1;
}

.discord-image {
    order: 2;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 4/3;
}

.discord-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discord-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.discord-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ========== Footer ========== */
.footer {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    padding: var(--section-padding) clamp(1rem, 4vw, 2rem);
    margin-top: auto;
    padding-bottom: calc(var(--section-padding) + env(safe-area-inset-bottom));
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.footer-left p,
.footer-center,
.footer-right {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-left p {
    margin-bottom: 0.25rem;
}

.footer-center {
    text-align: center;
}

.footer-link {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--color-accent);
}

.footer-email {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity var(--transition);
}

.footer-email:hover {
    opacity: 0.9;
}

.footer-job-text {
    margin: 0.75rem 0 0.25rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.footer-right {
    text-align: right;
}

.footer-disclaimer {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ========== Page Styles (for other pages) ========== */
.page-header {
    padding: var(--section-padding) clamp(1rem, 4vw, 2rem) 2rem;
    text-align: center;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-content {
    max-width: min(800px, 95vw);
    margin: 0 auto;
    padding: var(--section-padding) clamp(1rem, 4vw, 2rem);
    color: var(--color-text-muted);
}

/* ========== Personal Portal ========== */
.personal-main {
    flex: 1;
}

.personal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-padding) clamp(1rem, 4vw, 2rem);
    align-items: start;
}

@media (max-width: 768px) {
    .personal-layout {
        grid-template-columns: 1fr;
    }
}

.personal-sidebar {
    position: sticky;
    top: 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem;
}

.personal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.personal-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.personal-nav-btn:hover {
    background: var(--color-bg-elevated);
}

.personal-nav-btn.active {
    background: var(--color-accent-muted);
    color: var(--color-accent);
}

.personal-nav-icon {
    font-size: 1.25rem;
}

.personal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.personal-welcome {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.personal-welcome-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 2rem;
}

.personal-page-content {
    width: 100%;
    max-width: 960px;
    text-align: left;
    padding: 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.personal-placeholder {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Stats cards */
.personal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.personal-stat-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.personal-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-mono);
}

.personal-stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Section header */
.personal-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.personal-section-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.personal-section-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.personal-search {
    width: auto;
    min-width: 180px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-elevated) !important;
    color: var(--color-text) !important;
    font-size: 0.95rem;
}

.personal-search:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Table */
.personal-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.personal-table {
    width: 100%;
    border-collapse: collapse;
}

.personal-table th,
.personal-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.personal-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.personal-table tbody tr:hover {
    background: var(--color-bg-elevated);
}

.personal-actions {
    white-space: nowrap;
}

.personal-btn-link {
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

.personal-btn-link:hover {
    text-decoration: underline;
}

.personal-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.personal-status-ongoing { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.personal-status-resolved { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.personal-status-pending { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.personal-status-archived { background: var(--color-border); color: var(--color-text-muted); }

.personal-empty {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    display: none;
}

/* Form */
.personal-form-title {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.personal-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.personal-toggle-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.personal-field {
    margin-bottom: 1.25rem;
}

.personal-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

/* Personal: all inputs styled to match theme (no white defaults) */
.personal-main input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
.personal-main select,
.personal-main textarea,
.personal-field input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
.personal-field select,
.personal-field textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-elevated) !important;
    color: var(--color-text) !important;
    font-family: inherit;
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
}

.personal-field select,
.personal-main select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8a9a' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    padding-right: 2rem !important;
}

.personal-field input[type="number"] {
    -moz-appearance: textfield;
}

.personal-field input[type="number"]::-webkit-outer-spin-button,
.personal-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.personal-main input::placeholder,
.personal-main textarea::placeholder {
    color: var(--color-text-muted);
}

.personal-main input:-webkit-autofill,
.personal-main input:-webkit-autofill:hover,
.personal-main input:-webkit-autofill:focus,
.personal-main input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--color-text) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--color-bg-elevated) inset !important;
    box-shadow: 0 0 0 1000px var(--color-bg-elevated) inset !important;
}

.personal-field textarea {
    resize: vertical;
    min-height: 80px;
}

.personal-field input:focus,
.personal-field select:focus,
.personal-field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.personal-upload-zone {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: var(--color-bg-elevated);
    transition: border-color 0.2s, background 0.2s;
}

.personal-upload-zone:hover,
.personal-upload-zone.dragover {
    border-color: var(--color-accent);
    background: var(--color-accent-muted);
}

.personal-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
}

.personal-upload-zone-content {
    pointer-events: none;
}

.personal-upload-zone-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.personal-upload-zone-text {
    display: block;
    font-weight: 500;
    color: var(--color-text);
}

.personal-upload-zone-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.personal-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.personal-image-preview-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.personal-image-preview-grid .personal-preview-img-wrap {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
}

.personal-image-preview-grid .personal-preview-img {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personal-preview-img {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.personal-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.personal-pfp-cell { width: 40px; }
.personal-account-pfp {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border);
}
.personal-perm-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
}
.personal-table-konton .personal-table th,
.personal-table-konton .personal-table td {
    font-size: 0.9rem;
}

.personal-btn-danger {
    color: #ef4444 !important;
}
.personal-btn-danger:hover {
    color: #f87171 !important;
}

.personal-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.personal-checkbox-label input[type="checkbox"] {
    accent-color: var(--color-accent);
    width: 18px;
    height: 18px;
}

.personal-konton-row {
    cursor: pointer;
}
.personal-konton-row:hover {
    background: var(--color-bg-elevated) !important;
}

.personal-konton-detail {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.personal-konton-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.personal-konton-detail-title {
    font-size: 1.15rem;
    font-weight: 600;
}
.personal-konton-detail-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
}
.personal-konton-detail-close:hover {
    color: var(--color-text);
}
.personal-konton-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.personal-konton-detail-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}
.personal-konton-detail-section p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.personal-konton-detail-section input[type="text"] {
    width: 100%;
    max-width: 280px;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg-elevated) !important;
    color: var(--color-text) !important;
}
.personal-konton-banned {
    color: #ef4444;
}
.personal-licenser-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.personal-licenser-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.personal-muted {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Ärenden – transkript */
.personal-arenden-detail {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.personal-arenden-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.personal-arenden-detail-meta {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.personal-arenden-detail-meta strong {
    color: var(--color-text);
}
.personal-arenden-transcript {
    max-height: 60vh;
    overflow-y: auto;
}
.personal-transcript-content {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.policy-content {
    max-width: min(800px, 95vw);
    margin: 0 auto;
    padding: var(--section-padding) clamp(1rem, 4vw, 2rem);
    color: var(--color-text-muted);
    line-height: 1.7;
}

.policy-content .policy-date {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.policy-content h2 {
    font-size: 1.35rem;
    color: var(--color-text);
    margin: 2rem 0 0.75rem;
}

.policy-content h2:first-of-type {
    margin-top: 0;
}

.policy-content h3 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin: 1.5rem 0 0.5rem;
}

.policy-content p {
    margin-bottom: 1rem;
}

.policy-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.policy-content li {
    margin-bottom: 0.35rem;
}

/* ========== Responsive ========== */

/* Tablet landscape & smaller desktop */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-inner,
    .discord-inner {
        grid-template-columns: 1fr;
    }

    .discord-inner .discord-image {
        order: 0;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        flex: none;
    }

    .header-actions {
        order: 2;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card {
        max-height: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .nav-dropdown-menu {
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile – hamburger menu */
@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
        order: 0;
    }

    .header-logo {
        order: 1;
        flex: 1;
        justify-content: center;
    }

    .header-actions {
        order: 2;
    }

    .header-nav {
        order: 3;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0.25rem;
        border-top: 1px solid var(--color-border);
        margin-top: 0.5rem;
    }

    .header-nav.nav-open {
        display: flex;
    }

    .nav-link {
        justify-content: center;
        padding: 1rem;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--color-bg);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        padding-left: 1rem;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        transform: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown:not(.open) .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown-item {
        padding: 0.75rem 1rem;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
    }

    .footer-link {
        padding: 0.5rem 0;
    }

    .user-dropdown-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
    }

    .user-dropdown.open .user-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* Small phones */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.15rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .footer-inner {
        gap: 1.5rem;
    }
}

/* Ultra-wide – constrain content width */
@media (min-width: 1920px) {
    :root {
        --container-max: 1600px;
    }
}

/* ========== Tebex Products ========== */
.tebex-products {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-padding) clamp(1rem, 4vw, 2rem);
}

.tebex-products-loading,
.tebex-products-error {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}

.tebex-products-error {
    color: #ef4444;
}

.tebex-categories {
    margin-bottom: 2rem;
}

.tebex-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.tebex-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Horizontal row layout per category (X | X | X..) */
.tebex-products-grid-horizontal {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.25rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.tebex-products-grid-horizontal .tebex-product-card {
    flex: 0 0 min(280px, 85vw);
    scroll-snap-align: start;
}

.tebex-product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.tebex-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tebex-product-image {
    aspect-ratio: 16/10;
    background: var(--color-bg-elevated);
    overflow: hidden;
}

.tebex-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tebex-product-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: var(--color-bg-elevated);
}

.tebex-product-no-checkout {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.tebex-product-card-clickable {
    cursor: pointer;
}

.tebex-product-price-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tebex-product-price-original {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.tebex-product-price-sale {
    color: #22c55e;
    font-weight: 700;
}

.tebex-product-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 6px;
}

/* Product detail modal */
.produkt-detail-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.produkt-detail-modal.open {
    opacity: 1;
    visibility: visible;
}

.produkt-detail-modal-inner {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.produkt-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
}

.produkt-detail-close:hover {
    color: var(--color-text);
}

.produkt-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 2rem 2rem;
}

@media (max-width: 768px) {
    .produkt-detail-main {
        grid-template-columns: 1fr;
    }
}

.produkt-detail-gallery-wrap {
    position: relative;
}

.produkt-detail-img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--color-bg);
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.produkt-detail-placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

.produkt-detail-main-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 12px;
    background: var(--color-bg);
}

.produkt-detail-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.produkt-detail-gallery img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
}

.produkt-detail-gallery img:hover,
.produkt-detail-gallery img.active {
    opacity: 1;
    border-color: var(--color-accent);
}

.produkt-detail-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.produkt-detail-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.produkt-detail-meta p {
    margin: 0.25rem 0;
}

.produkt-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.produkt-detail-info {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.produkt-detail-desc {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.produkt-detail-desc::-webkit-scrollbar {
    width: 6px;
}

.produkt-detail-desc::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.produkt-detail-add {
    width: 100%;
}

.personal-preview-img-wrap {
    position: relative;
    display: inline-block;
}

.personal-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.personal-preview-remove:hover {
    background: #ef4444;
}

.personal-field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.tebex-product-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tebex-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.tebex-product-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tebex-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.tebex-product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-accent);
}

.tebex-product-price s {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--color-text-muted);
    margin-right: 0.5rem;
}

.tebex-product-add {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Cart */
.tebex-cart-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 95vw);
    height: 100vh;
    background: var(--color-bg-elevated);
    border-left: 1px solid var(--color-border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tebex-cart-wrapper.open {
    transform: translateX(0);
}

.tebex-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.tebex-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.tebex-cart-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tebex-cart-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.tebex-cart-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
}

.tebex-cart-close:hover {
    color: var(--color-text);
}

.tebex-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.tebex-cart-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.tebex-cart-item:last-child {
    border-bottom: none;
}

.tebex-cart-item-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--color-bg);
}

.tebex-cart-item-info {
    flex: 1;
    min-width: 0;
}

.tebex-cart-item-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.tebex-cart-item-price {
    font-size: 0.85rem;
    color: var(--color-accent);
}

.tebex-cart-item-remove {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem;
}

.tebex-cart-item-remove:hover {
    color: #ef4444;
}

.tebex-cart-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.tebex-qty-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.tebex-qty-btn:hover {
    background: var(--color-accent-muted);
    border-color: var(--color-accent);
}

.tebex-qty-val {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.tebex-cart-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.tebex-cart-total {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tebex-cart-coupon {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tebex-cart-coupon input {
    flex: 1;
    padding: 0.6rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: inherit;
}

.tebex-cart-empty {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
}

.tebex-cart-shop-link {
    display: block;
    margin-top: 0.75rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.tebex-cart-shop-link:hover {
    text-decoration: underline;
}

.tebex-cart-btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* Cart trigger in header */
.tebex-cart-trigger {
    position: relative;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
}

.tebex-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--color-accent);
    color: white;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tebex-cart-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    font-size: 0.95rem;
    z-index: 10000;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.tebex-cart-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.tebex-product-coming-soon-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.tebex-product-coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Checkout feedback */
.tebex-checkout-msg {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.tebex-checkout-msg.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.tebex-checkout-msg.cancelled {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #eab308;
}

/* Checkout page – Tebex-style */
.checkout-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.checkout-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
}

.checkout-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
    text-decoration: none;
}

.checkout-back {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.checkout-back:hover {
    color: var(--color-accent);
}

.checkout-main {
    flex: 1;
    padding: 2rem 1.5rem;
}

.checkout-layout {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.checkout-layout--checkout {
    max-width: 1100px;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .checkout-layout--checkout {
        grid-template-columns: 1fr;
    }
}

/* Order summary (left) – hidden until linked */
.checkout-order {
    position: sticky;
    top: 1rem;
}

.checkout-layout:not(.checkout-layout--checkout) .checkout-order {
    display: none;
}

.checkout-order-inner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.checkout-order-title {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
}

.checkout-order-items {
    padding: 1rem 1.5rem;
    max-height: 320px;
    overflow-y: auto;
}

.checkout-order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.checkout-order-item:last-child {
    border-bottom: none;
}

.checkout-order-item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.checkout-order-item-placeholder {
    background: var(--color-bg-elevated);
}

.checkout-order-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-order-item-name {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
}

.checkout-order-item-qty {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.checkout-order-item-price {
    font-weight: 600;
    color: var(--color-accent);
}

.checkout-order-footer {
    padding: 1rem 1.5rem;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
}

.checkout-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
}

.checkout-order-total strong {
    color: var(--color-accent);
    font-size: 1.25rem;
}

/* Form wrap – full width when centered */
.checkout-form-wrap {
    width: 100%;
}

/* Link state – centered Cfx button */
.checkout-link-state {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkout-link-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem 2.5rem;
    text-align: center;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.checkout-link-icon {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.checkout-link-icon svg {
    display: inline-block;
}

.checkout-link-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.checkout-link-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.checkout-link-reset {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.checkout-link-reset a {
    color: var(--color-text-muted);
    text-decoration: underline;
}

.checkout-link-reset a:hover {
    color: var(--color-primary);
}

.checkout-form-reset {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.checkout-form-reset a {
    color: var(--color-text-muted);
    text-decoration: underline;
}

.checkout-form-reset a:hover {
    color: var(--color-primary);
}

/* Username as styled text (not input) when linked */
.checkout-username-text {
    padding: 0.875rem 1rem;
    background: var(--color-bg-elevated);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

/* Form (right) */
.checkout-form-inner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.75rem 2rem;
}

.checkout-order-empty {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.checkout-step {
    margin-bottom: 1.75rem;
}

.checkout-step:last-of-type {
    margin-bottom: 1.5rem;
}

.checkout-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.checkout-step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
}

.checkout-step-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.checkout-step-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.checkout-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkout-toggle-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.checkout-toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
}

.checkout-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.checkout-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-border);
    border-radius: 30px;
    transition: 0.3s;
}

.checkout-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkout-toggle-switch input:checked + .checkout-toggle-slider {
    background: var(--color-accent);
}

.checkout-toggle-switch input:checked + .checkout-toggle-slider:before {
    transform: translateX(22px);
}

.checkout-checkbox-row {
    margin: 1rem 0;
}

.checkout-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--color-text);
}

.checkout-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}

.checkout-btn-cfx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.75rem;
    background: #f97316;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.checkout-btn-cfx:hover:not(:disabled) {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.checkout-btn-cfx:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.checkout-delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 500px) {
    .checkout-delivery-options {
        grid-template-columns: 1fr;
    }
}

.checkout-option-card {
    cursor: pointer;
    margin: 0;
}

.checkout-option-card input {
    position: absolute;
    opacity: 0;
}

.checkout-option-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

.checkout-option-card input:checked + .checkout-option-inner {
    border-color: var(--color-accent);
    background: var(--color-accent-muted);
}

.checkout-option-card:hover .checkout-option-inner {
    border-color: var(--color-accent);
}

.checkout-option-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.checkout-option-label {
    font-weight: 600;
    font-size: 1rem;
}

.checkout-option-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.checkout-field {
    margin-top: 1rem;
}

.checkout-field label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.checkout-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
}

.checkout-field input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.checkout-field input[readonly] {
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    cursor: default;
}

.checkout-field-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

.checkout-field-hint a {
    color: var(--color-accent);
}

.checkout-btn-pay {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.checkout-btn-pay:hover:not(:disabled) {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.checkout-btn-pay:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.checkout-alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.checkout-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.checkout-alert-warn {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #eab308;
}

.checkout-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
}

.checkout-footer a {
    color: var(--color-accent);
}

/* Legacy checkout (auth-box) */
.checkout-box .auth-subtitle {
    margin-bottom: 1.5rem;
}

.checkout-recipient {
    margin-bottom: 1rem;
}

.checkout-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.checkout-radio input {
    margin: 0;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

.checkout-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.checkout-items-list {
    margin-bottom: 0.75rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.95rem;
}

.checkout-total {
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    font-size: 1.1rem;
}

/* ========== Ansökningar (Lediga positioner) ========== */
.ansokningar-intro {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.ansokningar-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.ansokningar-krav-list {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.ansokningar-krav-list li {
    margin-bottom: 0.5rem;
}

.ansokningar-cta {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-align: center;
}

.ansokningar-cta-text {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-text);
}

.ansokningar-cta-btn {
    display: inline-block;
}

.ansokningar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.ansokningar-empty {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.ansokningar-card {
    display: block;
    padding: 1.75rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.ansokningar-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ansokningar-card-icon {
    display: block;
    font-size: 1.75rem;
    font-family: var(--font-mono);
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.ansokningar-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.ansokningar-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ansokningar-card-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
}

/* ========== Ansökan (formulär) ========== */
.ansokan-alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.ansokan-alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.ansokan-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.ansokan-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    background: #fff;
    border: 1px solid #1a1a1a;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ansokan-form {
    max-width: 100%;
}

.ansokan-field {
    margin-bottom: 1.5rem;
}

.ansokan-field label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.ansokan-required {
    color: #dc2626;
}

.ansokan-field input[type="text"],
.ansokan-field input[type="email"],
.ansokan-field input[type="date"],
.ansokan-field select,
.ansokan-field textarea {
    width: 100%;
    padding: 0.65rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #1a1a1a;
    border-radius: 0;
    color: #1a1a1a;
    font-family: var(--font-primary);
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
}

.ansokan-field input:focus,
.ansokan-field select:focus,
.ansokan-field textarea:focus {
    outline: none;
    border-bottom-color: #1a1a1a;
}

.ansokan-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.5rem;
}

.ansokan-field textarea {
    resize: vertical;
    min-height: 100px;
}

.ansokan-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

.ansokan-multicheck {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ansokan-checkbox-label {
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 400;
}

.ansokan-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}

.ansokan-upload-zone {
    position: relative;
    border: 1px dashed #1a1a1a;
    border-radius: 2px;
    padding: 1.25rem;
    background: transparent;
    transition: border-color var(--transition);
}

.ansokan-upload-zone:hover {
    border-color: var(--color-accent);
}

.ansokan-upload-zone input[type="file"] {
    width: 100%;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.ansokan-upload-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.ansokan-submit-wrap {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.ansokan-submit-wrap .btn {
    min-width: 160px;
}
