/* Swiss Minimalism Playground CSS - Iteration 14 (Dropdown Fix & Logo Animation) */

/* ==========================================================================
   1. Variables & Design Tokens
   ========================================================================== */
:root {
    /* Palette: Modern Swiss / Pop */
    --swiss-bg: #F2F0E9;
    /* Unbleached paper */
    --swiss-white: #FFFFFF;
    --swiss-black: #111111;
    /* Deep black */

    /* Accents: Off-beat Primaries */
    --swiss-red: #FF331F;
    /* Vermilion */
    --swiss-blue: #3A4FE0;
    /* Cobalt */
    --swiss-yellow: #FFC800;
    /* Marigold */
    --swiss-green: #00A676;
    /* Jade */

    /* Neutrals */
    --swiss-grey: #D1D1D1;
    --swiss-grey-light: #EAEAEA;
    --swiss-grey-dark: #666666;

    /* Spacing & Layout */
    --grid-gap: 2rem;
    --container-width: 1200px;
    --header-height: 80px;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--swiss-bg);
    color: var(--swiss-black);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--swiss-black);
    text-transform: uppercase;
}

.display-huge {
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    margin-bottom: 4rem;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 2;
    mix-blend-mode: multiply;
}

h1 {
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 65ch;
    color: var(--swiss-black);
}

ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   3. Layout & Grid
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

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

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* ==========================================================================
   4. Header & Navigation (Refined)
   ========================================================================== */
/* Context Bar (Top Strip) */
.context-bar {
    background: var(--swiss-black);
    color: var(--swiss-white);
    padding: 0.25rem 0;
    position: relative;
    z-index: 101;
    font-size: 0.75rem;
}

.context-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.25rem 0;
}

.context-switch:hover {
    color: var(--swiss-yellow);
}

.context-switch svg {
    width: 0.75rem;
    height: 0.75rem;
    fill: currentColor;
}

.context-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--swiss-black);
    border: 1px solid var(--swiss-grey-dark);
    min-width: 220px;
    display: none;
    z-index: 102;
    box-shadow: 4px 4px 0 0 rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
}

.context-switch:hover .context-dropdown,
.context-dropdown:hover {
    display: block;
}

.context-item {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--swiss-white);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: background 0.1s;
}

.context-item:hover {
    background: var(--swiss-grey-dark);
    color: var(--swiss-yellow);
}

.context-item.add-new {
    color: var(--swiss-yellow);
    border-top: 1px solid var(--swiss-grey-dark);
    margin-top: 0.25rem;
    padding-top: 0.5rem;
}

/* Main Navigation Wrapper */
.nav-wrapper {
    background: var(--swiss-white);
    border-bottom: 2px solid var(--swiss-black);
    /* Stronger separation */
    margin-bottom: 3rem;
    position: relative;
    z-index: 100;
}

/* Primary Nav Row */
.swiss-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    /* More breathing room */
    border-bottom: 1px solid var(--swiss-grey-light);
}

.nav-brand {
    font-size: 2rem;
    /* Larger, more impact */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--swiss-black);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}

/* Geometric Accent for Logo (Animated) */
.nav-brand::before {
    content: '';
    display: block;
    width: 1rem;
    height: 1rem;
    background: var(--swiss-red);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-brand:hover::before {
    transform: scale(1.4);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 0;
    color: var(--swiss-black);
    text-decoration: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    /* Prevent wrapping */
    flex-wrap: nowrap;
    /* Force single line */
}

.nav-item:hover {
    color: var(--swiss-blue);
}

/* User Avatar */
.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--swiss-black);
    /* Black for contrast */
    color: var(--swiss-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.user-avatar:hover {
    transform: rotate(15deg);
    background: var(--swiss-blue);
}

/* Dropdowns */
.has-dropdown::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid currentColor;
    transform: translateY(1px);
    margin-left: 0.25rem;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--swiss-white);
    border: 2px solid var(--swiss-black);
    min-width: 200px;
    display: none;
    z-index: 20;
    box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

/* Invisible bridge to prevent menu from closing */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    width: 100%;
    height: 0.5rem;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--swiss-black);
    font-weight: 700;
    font-size: 0.875rem;
    transition: background 0.1s;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.dropdown-item:hover {
    background: var(--swiss-bg);
    color: var(--swiss-blue);
}

/* Sub Navigation & Pool Context (Refined) */
.sub-nav {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    gap: 2rem;
}

/* Compact Pool Context */
.pool-context {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 2rem;
    border-right: 1px solid var(--swiss-grey);
    margin-right: 1rem;
}

.pool-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--swiss-grey-dark);
    letter-spacing: 0.1em;
    background: var(--swiss-grey-light);
    padding: 0.125rem 0.375rem;
    border-radius: 2px;
}

.pool-name {
    font-size: 1rem;
    /* Smaller than before */
    font-weight: 700;
    text-transform: uppercase;
    color: var(--swiss-black);
    line-height: 1;
}

.sub-nav-links {
    display: flex;
    gap: 1.5rem;
}

.sub-nav-link {
    text-decoration: none;
    color: var(--swiss-black);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    padding: 0.25rem 0;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.sub-nav-link:hover,
.sub-nav-link.active {
    opacity: 1;
    color: var(--swiss-red);
}

.sub-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--swiss-red);
}

/* ==========================================================================
   5. Components
   ========================================================================== */

/* Tabs */
.tabs-container {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.tabs-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: -2px;
    position: relative;
    z-index: 3;
}

.tab {
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    background: transparent;
    color: var(--swiss-black);
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    opacity: 0.6;
    transition: all 0.2s;
}

.tab:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.5);
}

.tab.active {
    opacity: 1;
    background: var(--swiss-white);
    color: var(--swiss-black);
    border: 2px solid var(--swiss-black);
    border-bottom: 2px solid var(--swiss-white);
    z-index: 4;
    padding-bottom: 1rem;
    margin-bottom: -2px;
}

.tab-content {
    padding: 2rem;
    background: var(--swiss-white);
    border: 2px solid var(--swiss-black);
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* Action Toolbar */
.action-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--swiss-grey-light);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    color: var(--swiss-black);
}

.label-error {
    color: var(--swiss-red);
}

.input,
.select-input,
.textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--swiss-black);
    background: var(--swiss-white);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s;
    border-radius: 0;
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.05);
}

.input:focus,
.select-input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--swiss-blue);
    box-shadow: 6px 6px 0 0 rgba(58, 79, 224, 0.2);
}

.input-error {
    border-color: var(--swiss-red);
    background: #FFF0EE;
}

.input:disabled {
    background: var(--swiss-grey-light);
    border-color: var(--swiss-grey);
    color: var(--swiss-grey-dark);
    cursor: not-allowed;
    box-shadow: none;
}

.select-input {
    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='currentColor' stroke-width='3' 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 1rem center;
    background-size: 1em;
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-wrapper,
.radio-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.custom-checkbox,
.custom-radio {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--swiss-black);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--swiss-white);
}

.custom-radio {
    border-radius: 50%;
}

.custom-checkbox::after {
    content: '';
    width: 0.875rem;
    height: 0.875rem;
    background: var(--swiss-black);
    display: none;
}

.custom-radio::after {
    content: '';
    width: 0.875rem;
    height: 0.875rem;
    background: var(--swiss-black);
    border-radius: 50%;
    display: none;
}

input:checked+.custom-checkbox::after,
input:checked+.custom-radio::after {
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--swiss-white);
    border: 2px solid var(--swiss-black);
    color: var(--swiss-black);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 4px 4px 0 0 var(--swiss-black);
    border-radius: 0;
    line-height: 1.2;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 0 var(--swiss-black);
}

.btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 0 var(--swiss-black);
}

.btn:disabled,
.btn-disabled {
    background: var(--swiss-grey-light);
    border-color: var(--swiss-grey);
    color: var(--swiss-grey-dark);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--swiss-black);
    border-color: var(--swiss-black);
    color: var(--swiss-white);
}

.btn-primary:hover {
    background: var(--swiss-blue);
    border-color: var(--swiss-blue);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--swiss-black);
    color: var(--swiss-black);
}

.btn-danger {
    background: var(--swiss-white);
    border-color: var(--swiss-red);
    color: var(--swiss-red);
    box-shadow: 4px 4px 0 0 var(--swiss-red);
}

.btn-danger:hover {
    background: var(--swiss-red);
    color: var(--swiss-white);
    box-shadow: 6px 6px 0 0 var(--swiss-black);
    border-color: var(--swiss-black);
}

.btn-icon {
    padding: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--swiss-black);
    box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.1);
}

.btn-icon:hover {
    background: var(--swiss-white);
    box-shadow: 4px 4px 0 0 var(--swiss-black);
}

/* Form Button (Matches Input Height) */
.btn-form {
    height: 60px;
    /* Matches input height: 1rem font + 1.5 line-height + 2rem padding + 4px border */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Success State */
.btn-success-state {
    background: var(--swiss-white) !important;
    border-color: var(--swiss-green) !important;
    color: var(--swiss-green) !important;
    box-shadow: 4px 4px 0 0 var(--swiss-green) !important;
}

/* Cards / Blocks */
.block {
    background: var(--swiss-white);
    padding: 2rem;
    border: 2px solid var(--swiss-black);
    height: 100%;
    position: relative;
    z-index: 2;
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.1);
}

/* Tables */
.swiss-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.swiss-table th {
    padding: 1rem 0;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--swiss-black);
    text-transform: uppercase;
    color: var(--swiss-black);
    font-weight: 900;
}

.swiss-table td {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--swiss-grey);
    font-size: 0.9375rem;
}

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

/* Tags */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid currentColor;
    background: transparent;
    border-radius: 0;
    line-height: 1;
}

.tag-sm {
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
}

.tag-lg {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.tag.yes,
.tag-success {
    color: var(--swiss-blue);
    border-color: var(--swiss-blue);
}

.tag.no,
.tag-danger {
    color: var(--swiss-red);
    border-color: var(--swiss-red);
}

.tag.pending,
.tag-warning {
    color: var(--swiss-black);
    border-color: var(--swiss-black);
    background: var(--swiss-yellow);
    border: 2px solid var(--swiss-black);
}

.tag-neutral {
    color: var(--swiss-grey-dark);
    border-color: var(--swiss-grey);
}

/* Notifications & Flash */
.info-notification,
.flash {
    background: var(--swiss-white);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.05);
}

.info-notification {
    border: 1px solid var(--swiss-grey-light);
    border-left: 6px solid var(--swiss-yellow);
}

.flash {
    border: 2px solid var(--swiss-black);
    font-weight: 700;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.flash-success {
    background: #E6FFF5;
    border-left: 8px solid var(--swiss-green);
}

.flash-error {
    background: #FFF0EE;
    border-left: 8px solid var(--swiss-red);
}

.flash-info {
    background: #F0F4FF;
    border-left: 8px solid var(--swiss-blue);
}

/* Stat Cards */
.stat-card {
    background: var(--swiss-white);
    border: 2px solid var(--swiss-black);
    padding: 2rem;
    text-align: center;
    box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--swiss-grey-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--swiss-black);
    line-height: 1;
}

/* Empty State */
.empty-state {
    background: var(--swiss-white);
    border: 2px dashed var(--swiss-black);
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    width: 4rem;
    height: 4rem;
    background: var(--swiss-grey-light);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--swiss-grey-dark);
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-text {
    color: var(--swiss-grey-dark);
    margin-bottom: 2rem;
    max-width: 40ch;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--swiss-black);
    background: var(--swiss-white);
    color: var(--swiss-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
    background: var(--swiss-black);
    color: var(--swiss-white);
}

.page-link.active {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.1);
}

.page-link.disabled {
    opacity: 0.3;
    pointer-events: none;
    border-color: var(--swiss-grey);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--swiss-white);
    border: 2px solid var(--swiss-black);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 12px 12px 0 0 var(--swiss-yellow);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================================================
   6. Utilities & Decorations
   ========================================================================== */
.shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.shape-circle {
    border-radius: 50%;
}

.hero-circle {
    width: 300px;
    height: 300px;
    top: -50px;
    right: 10%;
    background-color: var(--swiss-yellow);
    mix-blend-mode: multiply;
    opacity: 0.8;
    animation: float 8s ease-in-out infinite;
}

.hero-bar {
    width: 40px;
    height: 400px;
    top: 100px;
    left: 40%;
    background-color: var(--swiss-red);
    transform: rotate(45deg);
    opacity: 0.9;
    mix-blend-mode: multiply;
}

.content-blob {
    width: 150px;
    height: 150px;
    bottom: 5%;
    left: 5%;
    background-color: var(--swiss-blue);
    border-radius: 50%;
    opacity: 0.7;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ==========================================================================
   7. Landing Page Specifics
   ========================================================================== */
.landing-hero {
    padding: 2rem 0 4rem;
    position: relative;
    /* Anchor for absolute shapes */
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-title {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.04em;
}

.landing-subtitle {
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    border-top: 4px solid var(--swiss-black);
    padding-top: 1.5rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    border-radius: 50%;
}

.feature-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--swiss-grey-dark);
}

/* ==========================================================================
   8. Ballot Specifics
   ========================================================================== */
.ballot-container {
    max-width: 800px;
    margin: 0 auto;
}

.ballot-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--swiss-black);
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--swiss-green);
    background: #E6FFF5;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--swiss-green);
    border-radius: 100px;
    border: 1px solid var(--swiss-green);
}

.ballot-block {
    background: var(--swiss-white);
    border: 2px solid var(--swiss-black);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.1);
}

.deadline-badge {
    background: var(--swiss-black);
    color: var(--swiss-white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.voting-as {
    font-size: 0.875rem;
    color: var(--swiss-grey-dark);
}

.warning-box {
    background: #FFF5EB;
    border: 2px solid var(--swiss-black);
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 4px 4px 0 0 var(--swiss-black);
}

.warning-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--swiss-black);
}

.warning-text {
    font-size: 0.875rem;
    margin: 0;
}

/* ==========================================================================
   9. Utility Classes (Phase 3 Cleanup)
   ========================================================================== */

/* Spacing - Margins */
.m-0 {
    margin: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 2rem !important;
}

.mb-6 {
    margin-bottom: 3rem !important;
}

.mb-8 {
    margin-bottom: 4rem !important;
}

.mb-10 {
    margin-bottom: 5rem !important;
}

.mb-12 {
    margin-bottom: 6rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 2rem !important;
}

.mt-6 {
    margin-top: 3rem !important;
}

/* Spacing - Padding */
.p-0 {
    padding: 0 !important;
}

.p-4 {
    padding: 1rem !important;
}

.p-5 {
    padding: 2rem !important;
}

.p-6 {
    padding: 3rem !important;
}

.p-8 {
    padding: 4rem !important;
}

.p-10 {
    padding: 5rem !important;
}

.p-12 {
    padding: 6rem !important;
}

.pt-4 {
    padding-top: 1rem !important;
}

.pb-4 {
    padding-bottom: 1rem !important;
}

.pl-4 {
    padding-left: 1rem !important;
}

.pr-4 {
    padding-right: 1rem !important;
}

/* Typography */
.text-sm {
    font-size: 0.875rem !important;
}

.text-xs {
    font-size: 0.75rem !important;
}

.text-lg {
    font-size: 1.125rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
}

.text-2xl {
    font-size: 1.5rem !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-black {
    font-weight: 900 !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-grey {
    color: var(--swiss-grey) !important;
}

.text-grey-dark {
    color: var(--swiss-grey-dark) !important;
}

.text-red {
    color: var(--swiss-red) !important;
}

.text-green {
    color: var(--swiss-green) !important;
}

.text-blue {
    color: var(--swiss-blue) !important;
}

.text-black {
    color: var(--swiss-black) !important;
}

/* Layout */
.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.items-center {
    align-items: center !important;
}

.items-end {
    align-items: flex-end !important;
}

.items-start {
    align-items: flex-start !important;
}

.justify-between {
    justify-content: space-between !important;
}

.justify-end {
    justify-content: flex-end !important;
}

.justify-center {
    justify-content: center !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.gap-5 {
    gap: 2rem !important;
}

.w-full {
    width: 100% !important;
}

.relative {
    position: relative !important;
}

.z-2 {
    z-index: 2 !important;
}

/* Containers */
.max-w-xs {
    max-width: 320px !important;
}

.max-w-sm {
    max-width: 480px !important;
}

.max-w-md {
    max-width: 600px !important;
}

.max-w-lg {
    max-width: 800px !important;
}

/* Component Classes */
.page-header {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-content {
    flex: 1;
}

.page-header-title {
    margin-bottom: 0.5rem;
}

.page-header-subtitle {
    font-size: 1.125rem;
    color: var(--swiss-grey-dark);
    margin-bottom: 0;
}

.page-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Stepper Component */
.onboarding-stepper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    position: relative;
    margin-bottom: 4rem;
}

.onboarding-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100px;
}

.onboarding-step-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--swiss-grey-light);
    color: var(--swiss-grey-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.onboarding-step.active .onboarding-step-marker {
    background: var(--swiss-blue);
    color: white;
}

.onboarding-step-label {
    font-size: 0.75rem;
    color: var(--swiss-grey-dark);
    text-align: center;
    font-weight: 500;
}

.onboarding-step.active .onboarding-step-label {
    color: var(--swiss-blue);
    font-weight: 700;
}

/* Connecting Line */
.onboarding-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    /* Adjust based on gap */
    height: 1px;
    background: var(--swiss-grey-light);
    z-index: 1;
}

/* ==========================================================================
   10. Playful Swiss Footer
   ========================================================================== */

.swiss-footer {
    margin-top: 6rem;
    padding: 4rem 0 2rem;
    background: var(--swiss-bg);
    border-top: 4px solid var(--swiss-black);
    position: relative;
    overflow: hidden;
}

.swiss-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.swiss-footer-brand {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--swiss-grey);
    text-transform: uppercase;
    margin-left: 0;
}

.swiss-footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.swiss-footer-link {
    color: var(--swiss-black);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.swiss-footer-link:hover::before {
    content: '→';
    color: var(--swiss-red);
}

.swiss-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 2px solid var(--swiss-black);
    padding-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--swiss-grey-dark);
}

/* Decorative Shapes */
.swiss-footer-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.swiss-footer-circle {
    width: 200px;
    height: 200px;
    background: var(--swiss-red);
    border-radius: 50%;
    bottom: -50px;
    right: 50%;
    opacity: 0.1;
}

.swiss-footer-square {
    width: 100px;
    height: 100px;
    background: var(--swiss-blue);
    top: 20px;
    right: 20%;
    transform: rotate(15deg);
    opacity: 0.1;
}

/* Swiss Vote Bar (Progress Bar) */
.vote-bar-container {
    margin-bottom: 2rem;
}

.vote-bar {
    display: flex;
    height: 24px;
    width: 100%;
    border: 2px solid var(--swiss-black);
    background: var(--swiss-white);
    position: relative;
    overflow: hidden;
}

.vote-segment {
    height: 100%;
    transition: width 0.5s ease-out;
}

.vote-segment.yes {
    background: var(--swiss-green);
}

.vote-segment.no {
    background: var(--swiss-red);
}

.vote-segment.abstain {
    background: var(--swiss-yellow);
}

.vote-legend {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.vote-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.vote-legend-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--swiss-black);
}

.vote-legend-dot.yes {
    background: var(--swiss-green);
}

.vote-legend-dot.no {
    background: var(--swiss-red);
}

.vote-legend-dot.abstain {
    background: var(--swiss-yellow);
}

.vote-legend-dot.not-voted {
    background: var(--swiss-grey-light);
}

/* Refined Table Badges */
.badge-status {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.badge-status.yes {
    color: var(--swiss-green);
}

.badge-status.no {
    color: var(--swiss-red);
}

.badge-status.abstain {
    color: var(--swiss-yellow);
}

.badge-status.not-voted {
    color: var(--swiss-grey-dark);
    font-weight: 400;
    opacity: 0.6;
}

/* Mobile Menu Styles (Redesigned) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
    position: relative;
    color: var(--swiss-black);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--swiss-bg);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    background: var(--swiss-bg);
    position: relative;
}

/* Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--swiss-black);
}

.mobile-brand {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.mobile-close-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--swiss-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.mobile-close-btn:hover {
    transform: rotate(90deg);
    color: var(--swiss-red);
}

/* Content */
.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.mobile-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--swiss-grey-dark);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.mobile-main-link {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--swiss-black);
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-main-link:hover {
    color: var(--swiss-blue);
}

.mobile-main-link.has-arrow .arrow-icon {
    width: 2rem;
    height: 2rem;
    stroke: currentColor;
    stroke-width: 3px;
    fill: none;
    transition: transform 0.3s;
}

.mobile-main-link[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
}

/* Accordion */
.mobile-accordion-content {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1rem;
    margin-top: 1rem;
    border-left: 2px solid var(--swiss-grey-light);
}

.mobile-accordion-content.is-open {
    display: flex;
}

.mobile-sub-link {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--swiss-black);
    text-decoration: none;
    padding: 0.5rem 0;
}

.mobile-sub-link.highlight {
    color: var(--swiss-blue);
}

/* Highlight Section (Active Pool) */
.highlight-section {
    background: var(--swiss-white);
    border: 2px solid var(--swiss-black);
    padding: 1.5rem;
    box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.05);
}

.mobile-grid-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mobile-grid-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid var(--swiss-black);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--swiss-black);
    text-align: center;
    transition: all 0.2s;
    background: var(--swiss-white);
}

.mobile-grid-link:hover,
.mobile-grid-link.active {
    background: var(--swiss-black);
    color: var(--swiss-white);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.1);
}

/* Footer Section */
.mobile-footer-section {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 2px solid var(--swiss-grey-light);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-small {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--swiss-black);
    color: var(--swiss-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-email {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--swiss-black);
}

.user-links {
    font-size: 0.75rem;
    color: var(--swiss-grey-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-links a,
.text-btn {
    color: inherit;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
}

.user-links a:hover,
.text-btn:hover {
    color: var(--swiss-blue);
}

/* Company Switcher */
.company-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.company-chip {
    padding: 0.5rem 1rem;
    border: 1px solid var(--swiss-black);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--swiss-black);
    text-decoration: none;
    transition: all 0.2s;
}

.company-chip.active {
    background: var(--swiss-black);
    color: var(--swiss-white);
}

.company-chip.add {
    border-style: dashed;
    color: var(--swiss-blue);
    border-color: var(--swiss-blue);
}

.mobile-feedback {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.mobile-feedback a {
    color: var(--swiss-grey-dark);
    text-decoration: none;
}

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

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr !important;
    }

    h1 {
        font-size: 2.5rem;
    }

    .sub-nav {
        display: none;
        /* Hide desktop sub-nav completely on mobile */
    }

    .swiss-table {
        min-width: 600px;
    }
}