/*
 * Shared design-system component classes (00.2)
 * Drop these onto any element in any page without redefining them locally.
 *
 * .card                                    - base container: 12px radius, 16px+ padding
 * .pill / .pill.outline / .pill.pink       - small rounded status label (filled / outline / pink variants)
 * .bar-track > .bar-fill / .bar-fill.pink  - horizontal bar chart primitive; set .bar-fill width inline (0-100%)
 * .action-card > .left > .action-icon     - list row: icon/content left, optional label/value (e.g. a .pill) right
 * .accordion-item > .accordion-head + .accordion-body
 *                                          - tap .accordion-head to toggle "open" on .accordion-item;
 *                                            .accordion-body height animates via max-height, not display:none
 * .btn-pill / .btn-pill.secondary         - pill-shaped buttons: plum fill (primary) / outline (secondary)
 *
 * Page-specific rules belonging to a single page (compare, team, players, dictionary overlay, etc.)
 * live further down this file or in that page's own stylesheet (home.css/compare.css/team.css) and
 * are scoped under that page's container class - they must never redefine the bare selectors above.
 */

:root {
    --plum: #4B145B;
    --plum-dark: #350f42;
    --plum-tint: #6a2a7c;
    --teal: #29C2B2;
    --pink: #F67CB0;
    --charcoal: #333333;
    --offwhite: #F9F9F9;
    --grey: #E5E5E5;
    --grey-mid: #c9c4cc;
    --success: #2ecc71;
    
    --primary-color: var(--plum);
    --secondary-color: var(--teal);
    --tertiary-color: rgb(176, 48, 96);
    --white: rgb(255, 255, 255);
    
    /* Semantic scale for neutral colors from prototype */
    --black-10: var(--grey);
    --black-20: var(--grey-mid);
    --black-30: rgb(179, 179, 179);
    --black-40: rgb(153, 153, 153);
    --black-50: rgb(128, 128, 128);
    --black-60: rgb(102, 102, 102);
    --black-70: rgb(77, 77, 77);
    --black-80: var(--charcoal);
    --black-90: rgb(26, 26, 26);
    --black-100: rgb(0, 0, 0);

    --font: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font);
}

.card {
    background: #fff;
    border: 1px solid var(--black-10);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(75, 20, 91, .05);
}

.pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--teal);
    color: #0d3330;
    margin-right: 6px;
}

.pill.pink {
    background: var(--pink);
    color: #5c1330;
}

.pill.outline {
    background: transparent;
    border: 1.5px solid var(--black-20);
    color: #666;
}

.btn-pill {
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--plum);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 18px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
    width: 100%;
    text-decoration: none;
}

.btn-pill:hover {
    background: #6a2a7c;
    color: #fff;
}

.btn-pill:active {
    transform: scale(.98);
}

.btn-pill.secondary {
    background: transparent;
    color: var(--plum);
    border: 1.5px solid var(--plum);
}

.bar-track {
    height: 8px;
    background: var(--black-10);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 100px;
    transition: width .3s ease;
}

.bar-fill.pink {
    background: var(--pink);
}

.accordion-item {
    border-bottom: 1px solid var(--black-10);
}

.accordion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 12px 0;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.accordion-item.open .accordion-body {
    max-height: 1000px;
    padding-bottom: 12px;
}

.accordion-head .chev {
    transition: transform .2s ease;
}

.accordion-item.open .accordion-head .chev {
    transform: rotate(180deg);
}

.action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.action-card .left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.action-icon {
    font-size: 19px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-10);
    border-radius: 10px;
    flex-shrink: 0;
}

.loader-small {
    width: 24px;
    height: 24px;
    border: 3px solid var(--black-10);
    border-bottom-color: var(--plum);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Grey pulsing placeholder used sitewide while cards are loading, so pages
   never sit blank/unresponsive-looking mid-fetch. */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.skeleton {
    background: var(--black-10);
    border-radius: 6px;
    animation: skeleton-pulse 1.4s ease-in-out infinite;
}

/* Cookie Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ccc;
    padding: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1 1 60%;
    text-align: left;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex: 1 1 35%;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-button-primary,
.cookie-button-secondary {
    border-radius: 3px;
    border: none;
    padding: 6px 10px;
    font-family: var(--font);
    font-size: 12px;
    width: auto;
    flex: 1 1 auto;
}

.cookie-button-primary {
    background-color: var(--secondary-color);
    color: var(--black-80);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-button-primary:hover {
    background-color: var(--black-10);
    color: var(--secondary-color);
}

.cookie-button-secondary {
    background-color: var(--black-30);
    color: var(--black-80);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-button-secondary:hover {
    background-color: var(--black-20);
    color: var(--black-70);
}

/* Responsive behavior for mobile */
@media screen and (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .cookie-text {
        flex: 1 1 100%;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        flex: 1 1 100%;
        gap: 1rem;
    }

    .cookie-button-primary,
    .cookie-button-secondary {
        width: 45%;
        min-width: 100px;
    }
}

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ccc;
    z-index: 1000;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    width: 100%;
    gap: 1rem;
}

.cookie-text {
    flex: 1 1 60%;
    min-width: 200px;
}

.cookie-buttons {
    display: flex;
    flex: 1 1 40%;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 200px;
}

/* Responsive fallback */
@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .cookie-button-primary,
    .cookie-button-secondary {
        width: 100%;
    }
}

/* ====================================================== */
/* Analytics Toggle */

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
  }
  
  .toggle {
    position: relative;
    width: 50px;
    height: 28px;
    display: inline-block;
  }
  
  .toggle input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .toggle .slider {
    all: unset;
    position: absolute;
    display: flex;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 28px;
    background-color: var(--primary-color); /* OFF = pink */
    border-radius: 28px;
    cursor: pointer;
    transition: background-color 0.4s ease;
  }
  
  .toggle .slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    top: 4px;
    left: 4px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s ease;
  }
  
  .toggle input:checked + .slider {
    background-color: var(--secondary-color); /* ON = teal */
  }
  
  .toggle input:checked + .slider::before {
    transform: translateX(22px);
  }
  
  /* =============================================================== */
  /* Toast */
  
  .toast-message {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    opacity: 0;
    z-index: 10000;
    transition: bottom 0.5s ease, opacity 0.5s ease;
  }
  
  .toast-message.show {
    opacity: 1;
    bottom: 30px;
    animation: bounceIn 0.5s ease;
  }
  
  @keyframes bounceIn {
    0%   { transform: translateX(-50%) translateY(100%); }
    60%  { transform: translateX(-50%) translateY(-10px); }
    80%  { transform: translateX(-50%) translateY(5px); }
    100% { transform: translateX(-50%) translateY(0); }
  }
  /* =============================================================== */
  

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


ul {
    list-style-type: none;
    display: block;
    margin-block-start: 0em !important;
    margin-block-end: 0em !important;
    padding-inline-start: 0px !important;
}

.text-center-height{
    height: -webkit-fill-available;
}

.footer {
    color: var(--white);
    background-color: var(--secondary-color);
    padding: 10px;
    width: -webkit-fill-available;
}

@media screen and (max-width: 950px) {
    .footer {
        color: var(--white);
        background-color: var(--secondary-color);
        padding: 2px;
        width: -webkit-fill-available;
        height: fit-content;
    }
}

p {
    margin: 0px;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    font-family: var(--font) !important;
    background-color: var(--white);
    overflow-x: hidden;
}

.footer-content{
    display: flex;
    justify-content: space-around;
    margin: auto;
}

.body-content {
    margin: 10px;
    height: fit-content;
    min-height: -webkit-fill-available;
}
/* Scrollbar*/
::-webkit-scrollbar {
    width: 5px;
}

/* Scrollbar track */
::-webkit-scrollbar-track {
    background-color: lightgray;
    border-radius: 3px;
}

/* Scrollbar handle */
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }

.primary-text{
    color: var(--black-80) !important; 
    font-size: 32px;
    font-weight: 300;
    margin: 8px 30px 8px 8px;
}

.secondary-text{
    color: var(--black-60);
    font-size: 16px;
    font-weight: 400;
    margin: 8px 16px 8px 8px;
}

/* Nav CCS*/

/* Navbar Toggler*/

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;..");
}

.navbar {
    margin-bottom: 0px;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--white) !important;
    font-size: larger !important;
}

.navbar-light .navbar-toggler {
    color: var(--white) !important;
    border: none;
}

.navbar-brand {
    padding: 0px !important;
    font-size: 12px !important;
    line-height: 0px !important;
}

@media (min-width: 768px) {
    .navbar {
        border-radius: 0px !important;
        display: flex !important;
    }

    .navbar-collapse.collapse {
        width: -webkit-fill-available;
    }

    .navbar-nav {
        display: flex;
        width: -webkit-fill-available;
    }

    .nav-items {
        display: flex;
        width: -webkit-fill-available;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }
}

.nav-item{
    width: -webkit-fill-available !important;
}

.navbar-collapse.in {
    overflow-y: hidden;
}


.logo {
    height: 4.0em;
    pointer-events: none;
}

.App-header {
    display: flex;
    align-items: center;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    background-color: var(--primary-color);
    align-content: space-around;
}

div.list {
    display: flex;
    height: 100%;
    flex-direction: row;
    align-content: center;
    align-items: center;
    min-width: -webkit-fill-available;
    flex-wrap: wrap;
    padding: 0px 40px
}

div.list, .menu-items.open {
    display: flex;
    flex-grow: 1;
    justify-content: space-around; /* This will equally distribute the space around items */
}

a.listItem {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-direction: row;
    color: var(--white);
    font-family: var(--font);
    font-weight: 400;
    font-size: 1.5em;
    padding: 8px 0px;
    border-bottom: 5px solid transparent;
}

    a.listItem:hover {
        border-bottom: 5px solid #2F073B;
    }

a.active:hover {
    border-bottom: 5px solid #2F073B;
}


a.active {
    border-bottom: 5px solid transparent;
    background-color: #fff;
    color: #2F073B;
}


.icons {
    font-size: 1.5em;
    padding: 8px 16px;
    text-decoration: none !important;
}

a {
    text-decoration: none;
    color: inherit;
}


@media screen and (max-width: 950px) {
    a.list {
    }

    a.listItem {
        min-width: -webkit-fill-available;
    }

        a.listItem:hover {
            border-bottom: transparent;
        }
}

/* Responsive Menu */
@media screen and (max-width: 950px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }
}



@media screen and (max-width: 950px) {
    /* Show mobile menu on small screens */
    .mobile-menu {
        display: flex;
        min-width: -webkit-fill-available;
        padding: 0px 10px;
        flex-direction: row-reverse;
    }

        /* Show mobile menu on small screens */
        .mobile-menu.open {
            display: flex;
            min-width: -webkit-fill-available;
            flex-direction: row;
            justify-content: space-between;
            padding: 0% 5% 0% 0%;
        }

    /* Hide desktop menu on small screens */
    .desktop-menu {
        display: none;
    }

    .listItem {
        display: flex;
        flex-direction: row;
        align-content: center;
        align-items: center;
        flex-wrap: wrap;
        color: var(--white);
        min-width: -webkit-fill-available;
    }

    .App-header {
        display: flex;
        align-items: center;
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        background-color: var(--primary-color);
        align-content: space-around;
        justify-content: space-between;
        padding-right: 40px
    }
}

/* Team page CSS */
.Team-title {
    font-family: Roboto;
    color: var(--primary-color);
}


/* Definitions of loaders and other UI elements */
/* ============================================================================================================= */

/* PLAYERS.HTML */
.holding-page {
    display: flex;
    flex-direction: column;
    width: -webkit-fill-available;
    align-items: center;
    margin: 30px;
    height: fit-content;
    align-content: center;
    justify-content: center;
}

.placeholder-image {
    width: 80%;
    margin: 20px;
    max-width: 250px;
}

.placeholder-text {
    font-size: 200%;
    font-weight: 600;
    text-align: center;
    margin: 20px;
}

.placeholder-subtext {
    font-size: 100%;
    font-weight: 300;
    color: #a09696;
    text-align: center;
    margin: 20px;
}


/* ============================================================================================================= */
/* COMPARE.HTML */
.back-button-container {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid darkgray;
    align-items: center;
    padding: 10px 5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.category-title {
    font-weight: 400;
    padding-left: 8px;
}

.back-icon{
    font-weight: 600;
    padding-right: 4px;
}

.back-button{
    font-weight: 600;
    padding-right: 8px;
}



.sub-line{
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.pick-players{
    width: -webkit-fill-available;
}

/* Filter styles */

.filters {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

/* Custom Dropdown Styles */
/* Add styles for mobile dropdown visibility */
@media (max-width: 768px) {

    .filters {
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: baseline;
    }

    .custom-dropdown {
        width: -webkit-fill-available !important;
    }

        .custom-dropdown .options {
            position: absolute;
            width: 100%;
            z-index: 1000;
            background-color: white;
            border: 1px solid #ccc;
        }
}



.custom-dropdown {
    position: relative;
    display: flex;
    width: fit-content;
    min-width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    user-select: none;
}

    .custom-dropdown .selected {
        padding: 7px;
        width: -webkit-fill-available;
        background: #fff;
    }

    .custom-dropdown .options {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 0 0 4px 4px;
        display: none;
        z-index: 1000;
    }

    .custom-dropdown .option {
        padding: 7px;
        cursor: pointer;
        width: -webkit-fill-available;
    }

        .custom-dropdown .option:hover {
            background: #f1f1f1;
        }

    .custom-dropdown.open .options {
        display: block !important;
        width: max-content;
        overflow: auto;
        max-height: 500px;
    }

.dropdown-content {
    overflow-y: scroll;
    width: -webkit-fill-available;
    max-height: 400px;
    height: min-content;
    overflow-x: hidden;
}

.search-container {
    display: flex;
    align-items: center;
    border-bottom: 1px solid lightgray;
    margin-bottom: 8px;
    padding: 4px;
}

.search {
    margin: 8px;
    height: fit-content;
    color: darkgray;
}

.search-input {
    width: -webkit-fill-available;
    padding: 8px;
    font-size: 16px;
    font-family: 'Roboto';
    font-weight: 300;
    color: #3f3f3f;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border: none
}

    search-input:focus, input:focus {
        outline: none;
    }

.comparison-result {
    margin: 10px 0px;
}

/* Comparison Cards */
.player-summary{
    width: -webkit-fill-available
}

.comparison-cards {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    background-clip: #ffffff;
}

@media only screen and (max-width: 1200px) {
    .comparison-cards {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: space-between;
        background-clip: #ffffff;
    }

    .content-container {
        max-width: -webkit-fill-available;
    }

   .comparison-cards .card {
        width: auto;
        margin: 2% 1%;
        border: none;
        border-radius: 0px;
        padding: 10px 20px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

   

}

.comparison-cards .card {
    margin: 1% 1%;
    border: none;
    border-radius: 0px;
    padding: 10px 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48%;
    min-height: 400px;
}

    .comparison-cards .card h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

.metric-row {
    display: flex;
    width: -webkit-fill-available;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

    .metric-row .metric {
        flex: 1;
        text-align: center;
        font-size: 1em;
        margin: 0px 18px;
    }

    .metric-row .value-left, .metric-row .rank-left {
        text-align: left;
        flex-grow: 1;
        flex-basis: 0;
    }

    .metric-row .value-right, .metric-row .rank-right {
        text-align: right;
        flex-grow: 1;
        flex-basis: 0;
    }

.highlight {
    color: var(--secondary-color);
    font-family: Roboto;
    font-weight: 500;
    font-size: 24px
}

.pill-container {
    display: flex;
    flex-direction: row;
    margin: 10px 0px;
    width: fit-content;
    justify-content: space-between;
}

.pill-container .pill {
    border: 1px solid var(--secondary-color);
    background-color: var(--white);
    border-radius: 20px;
    padding: 5px 15px;
    margin: 0px 5px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .pill-container .pill:hover {
        background-color: var(--black-10)
    }

    .pill-container .pill.active {
        color: #FFFFFF;
        background-color: var(--secondary-color);
    }

.controls-container {
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    position: relative;
}


.edit-text {
    width: fit-content;
    text-wrap: nowrap;
    margin: 0px;
}

.edit {
    font-size: 14px !important;
    color: #fff;
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 8px 4px;
    height: fit-content;
    flex-direction: row;
    border-radius: 3px;
    align-items: center;
    width: fit-content;
}
    .edit:hover {
        background-color: rgba(55, 0, 60, 0.2);
        color: var(--secondary-color);
    }
.edit-icon {
    display: none;
    cursor: pointer;
    font-size: 12px;
    padding-left: 4px;
    transition: all 0.5s ease;
    z-index: 1001;
    color: inherit;
}

/* Compare Button Styles */
.button-primary {
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    padding: 6px 14px;
    color: var(--black-80);
    background-color: var(--secondary-color);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    width: --webkit-fill-available;
}

    .button-primary:hover {
        background-color: var(--white);
        color: var(--secondary-color);
        border: 2px solid var(--secondary-color);
    }



/* Tabbar & Header matching prototype */
.tabbar {
    display: flex;
    border-top: 1px solid var(--black-10);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-bottom: 24px;
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 0 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--black-20);
    font-family: var(--font);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tab svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5px;
    fill: none;
}

.tab.active {
    color: var(--plum);
}

.tab.active svg {
    stroke: var(--plum);
    stroke-width: 3px;
}

.app-header {
    padding: 38px 20px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--black-10);
    z-index: 100;
}

.brand-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-mini .wm {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--plum);
}

.header-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.gw-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--plum);
    background: rgba(75, 20, 91, .08);
    padding: 4px 10px;
    border-radius: 100px;
}

.deadline {
    font-size: 11px;
    font-weight: 600;
    color: var(--pink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body {
    padding-bottom: 80px; /* Space for fixed bottom tabbar */
}


/* GLOBAL BOTTOM SHEET (PROTOTYPE) */
.sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 2000;
}

.sheet-backdrop.active {
    display: block;
}

.sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    padding: 20px;
    max-height: 90%;
    overflow-y: auto;
    z-index: 2001;
    max-width: 600px;
    margin: 0 auto;
}

.sheet-backdrop.active .sheet {
    transform: translateY(0);
}

.handle {
    width: 40px;
    height: 4px;
    background: var(--grey);
    border-radius: 2px;
    margin: 0 auto 15px;
}
