/* ============================================
   PENSION PROVISION - APPLE-STYLE DESIGN
   Professional & Clean für den Bund
   ============================================ */

:root {
    /* Colors - Professional & Clean */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #161616;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent: #7C3AED;
    --accent-hover: #9061F9;
    --primary-color: #6366f1;
    --success-color: #10b981;
    --border-color: rgba(255, 255, 255, 0.1);
    --blur-bg: rgba(0, 0, 0, 0.72);

    /* Spacing */
    --header-height: 44px;
    --nav-padding: 22px 0;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    background: var(--bg-primary);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Custom Scrollbar - Apple Style */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: 3px solid var(--bg-secondary);
    transition: var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) var(--bg-secondary);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--blur-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--nav-padding);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
}

/* Brand */
.header-brand {
    position: absolute;
    left: max(24px, env(safe-area-inset-left));
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
}

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

.brand-text {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-smooth);
}

.brand-link:hover .brand-text {
    opacity: 0.8;
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent) 50%,
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-header:hover::after {
    opacity: 0.3;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 980px;
    margin: 0 auto;
}

.nav-link {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding: 10px 16px;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    opacity: 1;
    color: var(--text-primary);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    opacity: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
    background: var(--accent);
}

/* Admin Navigation Link */
.nav-admin {
    background: rgba(138, 43, 226, 0.15);
    border-radius: 6px;
    padding: 6px 12px !important;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.nav-admin:hover {
    background: rgba(138, 43, 226, 0.25);
    border-color: rgba(138, 43, 226, 0.5);
}

/* Header Right - Language Switcher */
.header-right {
    position: absolute;
    right: max(24px, env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    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='%23f5f5f7' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

.lang-select:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-select option {
    background: #2d2d2d;
    color: #ffffff;
}

.lang-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger:hover span {
    background: var(--accent);
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 100px 32px 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 22px;
    right: max(24px, env(safe-area-inset-right));
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    z-index: 10001;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.close-btn i {
    font-size: 24px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    flex-shrink: 0;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding: 16px 0;
    transition: var(--transition-smooth);
    opacity: 0.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.2;
}

.mobile-nav a:hover {
    opacity: 1;
    transform: translateX(8px);
}

.mobile-nav a.active {
    opacity: 1;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-bottom-controls {
    margin-top: auto;
    padding-top: 32px;
    padding-bottom: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-account {
    position: relative;
}

.account-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
}

.account-select:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.account-select svg {
    transition: transform 0.3s ease;
}

.account-dropdown.open + .account-select svg,
.account-select:has(+ .account-dropdown.open) svg {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.account-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown a {
    display: block;
    padding: 14px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--border-color);
}

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

.account-dropdown a:hover {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent);
}

.mobile-logout-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.mobile-logout-btn:hover {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent);
}

.mobile-lang .lang-select {
    width: 100%;
    font-size: 18px;
    padding: 16px;
    padding-right: 48px;
    background-position: right 16px center;
    background-size: 14px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 44px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
    margin-top: 120px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.8fr 1.5fr 1fr;
    gap: 120px;
    margin-bottom: 48px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.footer-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.footer-section h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-section h4.footer-second-heading {
    margin-top: 16px;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
    opacity: 0.8;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(4px);
}

.footer-links li {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-bottom a:hover {
    color: var(--accent);
}

@media (max-width: 640px) {
    .footer-bottom p {
        font-size: 15px;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .lang-select-desktop {
        display: none !important;
    }

    .header-right {
        position: static;
        transform: none;
        margin-left: auto;
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .main-header {
        padding: 16px max(24px, env(safe-area-inset-right)) 16px max(24px, env(safe-area-inset-left));
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-brand {
        position: static;
        transform: none;
    }

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

    .lang-select {
        font-size: 14px;
        padding: 8px 12px;
        padding-right: 32px;
        background-position: right 10px center;
    }

    .hamburger {
        order: 2;
    }
}

/* Desktop: Hide mobile contact, show desktop contact under subtitle */
.footer-contact-mobile {
    display: none;
}

.footer-contact-desktop {
    display: block;
    margin-top: 32px;
}

.footer-contact-desktop h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        display: flex;
        flex-direction: column;
    }

    /* Mobile: Hide desktop contact, show mobile contact */
    .footer-contact-desktop {
        display: none;
    }

    .footer-contact-mobile {
        display: block;
        margin-top: 32px; /* Deutlicher Abstand zwischen Text und Email */
    }

    .footer-contact-mobile h4 {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-secondary);
        margin-bottom: 16px; /* Abstand zwischen KONTAKT und Email */
    }

    /* Reorder footer sections on mobile */
    .footer-section:nth-child(1) { order: 1; } /* Retirement Provision + Kontakt mobile */
    .footer-section:nth-child(2) { order: 3; } /* Navigation - put "Studie" at bottom */
    .footer-section:nth-child(3) { order: 2; } /* Rechtliches */

    .main-content {
        padding-top: 76px;
    }

    .footer-section h3 {
        font-size: 22px;
    }

    .footer-section h4 {
        font-size: 14px;
    }

    .footer-section h4.footer-second-heading {
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .footer-links a,
    .footer-links li {
        font-size: 16px;
    }

    .footer-subtitle {
        font-size: 15px;
        margin-bottom: 0;
    }

    /* Kleinere Schrift im mobilen Menü für kleinere Handys */
    .mobile-nav a {
        font-size: 26px;
        padding: 14px 0;
    }

    .mobile-menu-overlay {
        padding: 90px 24px 32px;
    }

    .mobile-lang .lang-select {
        font-size: 16px;
        padding: 14px;
        padding-right: 44px;
    }

    .account-select {
        font-size: 16px;
        padding: 14px;
    }

    .account-dropdown a,
    .mobile-logout-btn {
        font-size: 15px;
        padding: 12px 14px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ============================================
   ACCOUNT & AUTH STYLES
   ============================================ */

/* Account Menu Dropdown */
.account-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .btn {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown .btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.dropdown .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.dropdown .btn-primary {
    background: rgba(124, 58, 237, 0.15);
    color: var(--text-primary);
    border: 1px solid rgba(124, 58, 237, 0.3);
    font-weight: 500;
}

.dropdown .btn-primary:hover {
    background: rgba(124, 58, 237, 0.25);
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-1px);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

/* Create hover bridge to prevent gap */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a,
.dropdown-content button.linklike {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.dropdown-content a:hover,
.dropdown-content button.linklike:hover {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent);
}

.dropdown-content form {
    margin: 0;
}

/* Auth Forms */
.container {
    max-width: 540px;
    margin: 80px auto 40px;
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.container h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.container form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.container label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: -8px;
}

.container .input,
.container input[type="email"],
.container input[type="password"],
.container input[type="text"],
.container select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.container .input:focus,
.container input:focus,
.container select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.05);
}

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

/* Select dropdown styling */
.container select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.container select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px;
}

.container .btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.container .btn-primary {
    background: var(--accent);
    color: white;
    width: 100%;
}

.container .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.container p {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

.container a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.container a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Account Page Styles */
.account-page {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Account Tabs */
.account-tabs {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 0;
}

.account-tabs::-webkit-scrollbar {
    display: none;
}

.account-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.account-tab:hover {
    color: var(--text-primary);
    background: rgba(147, 51, 234, 0.05);
}

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

.account-tab svg {
    flex-shrink: 0;
}

/* Tab Content */
.account-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.tab-panel {
    display: none;
}

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

/* Account Grid */
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
}

/* Account Card */
.account-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

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

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

.info-inactive {
    color: var(--text-secondary);
    opacity: 0.7;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 12px 0 0 0;
}

/* Account Edit Form */
.account-edit-form {
    margin-top: 4px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-sm {
    padding: 10px 14px;
    font-size: 14px;
}

/* Button Sizes */
.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

/* Settings Section */
.settings-section {
    max-width: 800px;
}

.settings-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.section-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
}

/* Coming Soon Placeholder */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.coming-soon svg {
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 16px;
}

.coming-soon p {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

/* OAuth Buttons */
.btn-oauth {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.btn-oauth:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border-radius: 6px;
}

.password-toggle:hover {
    color: var(--accent);
    background: rgba(147, 51, 234, 0.1);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle svg {
    display: block;
}

/* Flash Messages */
#flash-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    width: 90%;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flash-message.show {
    opacity: 1;
    transform: translateX(0);
}

.flash-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-content {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.flash-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.flash-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Flash Message Types */
.flash-error {
    border-color: #ef4444;
}

.flash-error .flash-icon {
    color: #ef4444;
}

.flash-success {
    border-color: #10b981;
}

.flash-success .flash-icon {
    color: #10b981;
}

.flash-warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.flash-warning .flash-icon {
    color: #f59e0b;
}

.flash-info {
    border-color: var(--accent);
}

.flash-info .flash-icon {
    color: var(--accent);
}

/* Responsive */
/* ============================================
   TABLET OPTIMIZATION (iPad)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 60px;
    }

    .footer-section h3 {
        font-size: 18px;
    }

    .footer-links a {
        font-size: 15px;
        padding: 4px 0;
    }

    /* Better touch targets for account dropdown */
    .dropdown .btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .dropdown-content a,
    .dropdown-content button.linklike {
        padding: 14px 18px;
        font-size: 15px;
    }

    /* Flash messages centered on tablet */
    #flash-container {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .account-menu {
        display: none;
    }

    .container {
        margin: 60px 16px 32px;
        padding: 24px;
    }

    #flash-container {
        top: 70px;
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .flash-message {
        padding: 12px 14px;
        font-size: 13px;
        gap: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .flash-content {
        font-size: 12px;
        line-height: 1.4;
    }

    .flash-icon svg {
        width: 18px;
        height: 18px;
    }

    .flash-close {
        padding: 2px;
    }

    /* Account Page Mobile */
    .account-tabs {
        padding: 12px 12px;
        gap: 6px;
        margin-top: 0;
        justify-content: flex-start;
    }

    .account-tab {
        padding: 10px 14px;
        font-size: 13px;
        border-bottom: 2px solid transparent;
    }

    .account-tab svg {
        width: 14px;
        height: 14px;
    }

    .account-content {
        padding: 24px 16px;
    }

    .account-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .account-card {
        padding: 24px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    .card-content h3 {
        font-size: 18px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .info-value {
        text-align: left;
    }
}

/* ============================================
   MOBILE DEVICE BANNER
   ============================================ */

.mobile-device-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, var(--accent) 0%, #5b21b6 100%);
    padding: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
}

.mobile-device-banner.show {
    transform: translateY(0);
}

.mobile-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    max-width: 100%;
}

.mobile-banner-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-banner-icon svg {
    display: block;
}

.mobile-banner-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
}

.mobile-banner-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: background 0.2s ease;
}

.mobile-banner-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-banner-close svg {
    display: block;
}

/* Hide on tablets and desktops */
@media (min-width: 769px) {
    .mobile-device-banner {
        display: none !important;
    }
}
