body {
      background-color: #F7F7F7;
      margin: 0;
      padding: 50px;
      padding-top: 130px;
      
      display: flex;
      justify-content: center;
      align-items: flex-start;
      min-height: 100vh;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      overflow-x: hidden;
    }

    
    #main-header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 80px;
      background: rgba(247, 247, 247, 0.8);
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 50px;
      z-index: 1000;
      transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
      box-sizing: border-box;
      border-bottom: 1px solid rgba(3, 1, 2, 0.05);
    }

    #main-header.header-hidden {
      transform: translateY(-100%);
      opacity: 0;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 25px;
      flex-shrink: 0;
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 25px;
      flex-shrink: 0;
    }

    .header-logo {
      height: 50px;
      width: auto;
      display: block;
    }

    .header-logo-link {
      margin-left: max(0px, calc(50vw - 800px - 97.4px));
      transition: margin-left 0.4s ease;
    }

    .page-top-left-logo {
      position: fixed;
      top: 25px;
      left: 50px;
      width: 40px;
      height: auto;
      z-index: 100;
      
    }

    .header-center {
      flex: 1;
      max-width: 500px;
      margin: 0 40px;
      min-width: 0;
    }

    .search-container {
      position: relative;
      width: 100%;
    }

    .search-icon {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      color: #030102;
      opacity: 0.5;
      pointer-events: none;
    }

    #header-search {
      width: 100%;
      box-sizing: border-box;
      padding: 10px 10px 10px 40px;
      border-radius: 0;
      border: none;
      border-bottom: 2px solid rgba(3, 1, 2, 0.1);
      background: transparent;
      color: #030102;
      font-size: 1rem;
      font-weight: 600;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      transition: all 0.3s ease;
      outline: none;
    }

    #header-search:focus {
      border-bottom-color: rgba(3, 1, 2, 0.1);
      
    }

    #header-search:focus~.focus-border,
    #header-search:not(:placeholder-shown)~.focus-border {
      width: 100%;
    }

    .focus-border {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0%;
      height: 2px;
      background: var(--search-color, #030102);
      transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
      pointer-events: none;
    }

    
    .burger-menu {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      width: 40px;
      
      height: 30px;
      
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      box-sizing: border-box;
      transition: transform 0.2s ease;
    }

    
    .burger-menu .line {
      width: 40px;
      
      height: 4px;
      
      background-color: #333;
      
      border-radius: 10px;
      transition: all 0.3s linear;
      position: relative;
      transform-origin: 1px;
    }

    
    .burger-menu:hover .line:nth-child(1) {
      background-color: #EA028A;
      
    }

    .burger-menu:hover .line:nth-child(2) {
      background-color: #03ACED;
      
    }

    .burger-menu:hover .line:nth-child(3) {
      background-color: #FFF001;
      
    }

    
    body.sidebar-active .burger-menu .line:nth-child(1) {
      background-color: #EA028A;
    }

    body.sidebar-active .burger-menu .line:nth-child(2) {
      background-color: #03ACED;
    }

    body.sidebar-active .burger-menu .line:nth-child(3) {
      background-color: #FFF001;
    }

    
    .burger-menu:active .line {
      transform: scale(0.95);
    }

    .header-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      color: #030102;
    }

    .header-btn:hover {
      background: rgba(3, 1, 2, 0.05);
      transform: translateY(-1px);
    }

    .header-btn-text .mobile-icon {
      display: none;
    }

    .header-btn-text {
      background: var(--accent-black, #030102);
      color: #fff;
      border: none;
      padding: 12px 24px;
      border-radius: 30px;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-weight: 700;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.3s ease, margin-right 0.4s ease;
      margin-right: max(0px, calc(50vw - 800px - 122px));
    }

    .header-btn-text:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(3, 1, 2, 0.15);
    }

    .profile-btn {
      width: 44px;
      height: 44px;
      box-sizing: border-box;
      padding: 0 !important;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border: 1.5px solid #030102;
    }

    .grid-container {
      /* Columnas fluidas en lugar de 296px fijos. A 1600px de ancho el
         resultado es identico al diseno original —(1600 - 4*30) / 5 = 296— pero
         por debajo el grid se adapta en vez de desbordar. Con columnas fijas
         media 1600px SIEMPRE: en un viewport de 1200px las dos ultimas columnas
         quedaban fuera de la pantalla.

         --grid-cols y --grid-gap son los dos unicos valores que cambian por
         breakpoint. El resto de la geometria —incluida la altura de las
         tarjetas medianas— se deriva de ellos, asi que no hay numeros magicos
         repetidos en cada media query. */
      --grid-cols: 5;
      --grid-gap: 30px;
      display: grid;
      grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
      justify-content: center;
      grid-auto-flow: dense;
      gap: var(--grid-gap);
      width: 100%;
      max-width: 1600px;
    }

    
    .card {
      box-shadow: 0 25px 50px rgba(3, 1, 2, 0.15), 0 10px 20px rgba(3, 1, 2, 0.10);
      border: none;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease;
      cursor: pointer;
      position: relative;
      background: #fff;
      --custom-hover-shadow: 0 50px 100px rgba(3, 1, 2, 0.4), 0 15px 35px rgba(3, 1, 2, 0.25);
    }

    .card:hover,
    .card.loaded:hover {
      transform: scale(1.06) translateZ(0);
      box-shadow: var(--custom-hover-shadow);
      z-index: 10;
    }

    
    .card-small {
      grid-column: span 1;
      aspect-ratio: 1 / 1;
      display: flex;
      flex-direction: column;
    }

    
    .card-medium {
      grid-column: span 2;
    }

    .card-medium::before {
      content: "";
      display: block;
      
      padding-top: calc(50% - var(--grid-gap) / 2);
    }

    .card-medium-content {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: row;
    }

    
    .card-large {
      grid-column: span 2;
      grid-row: span 2;
      aspect-ratio: 1 / 1;
      display: flex;
      flex-direction: column;
    }

    
    .color-block {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-sizing: border-box;
      background-color: #ddd;
      color: #030102;
    }

    .image-block {
      overflow: hidden;
    }

    .card-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    
    .card-small .color-block {
      width: 100%;
      height: 50%;
      padding: 20px;
    }

    .card-small .image-block {
      width: 100%;
      height: 50%;
    }

    .card-medium-content .color-block {
      width: 50%;
      height: 100%;
      padding: 25px;
    }

    .card-medium-content .image-block {
      width: 50%;
      height: 100%;
    }

    .card-large .color-block {
      width: 100%;
      height: 40%;
      padding: 40px;
    }

    .card-large .image-block {
      width: 100%;
      height: 60%;
    }

    

    
    .color-block-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 15px;
      flex-grow: 1;
      overflow: hidden;
    }

    
    .card-title-container {
      flex: 1;
      height: 100%;
      display: flex;
      align-items: flex-start;
      overflow: hidden;
    }

    .card-title {
      margin: 0;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-weight: 700;
      font-style: italic;
      text-transform: uppercase;
      word-break: normal;
      overflow-wrap: normal;
      overflow: hidden;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      
    }

    .card-small .card-title {
      -webkit-line-clamp: 4;
    }

    .card-medium .card-title {
      -webkit-line-clamp: 6;
    }

    .card-large .card-title {
      -webkit-line-clamp: 7;
    }

    
    .card-meta {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      text-align: right;
      font-family: 'Courier New', Courier, monospace;
      font-weight: bold;
      flex-shrink: 0;
      gap: 6px;
    }

    .card-small .card-meta {
      font-size: 0.9rem;
      gap: 4px;
    }

    .card-medium .card-meta {
      font-size: 1.0rem;
      gap: 6px;
    }

    .card-large .card-meta {
      font-size: 1.15rem;
      gap: 8px;
    }

    .meta-row {
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    
    .card-icons {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      margin-top: 15px;
      flex-shrink: 0;
    }

    .descriptor-icons {
      display: flex;
      align-items: center;
    }

    .card-small .descriptor-icons {
      gap: 8px;
    }

    .card-medium .descriptor-icons {
      gap: 12px;
    }

    .card-large .descriptor-icons {
      gap: 16px;
    }

    .card-icon {
      background-color: transparent;
    }

    .card-small .card-icon {
      width: 22px;
      height: 22px;
    }

    .card-medium .card-icon {
      width: 26px;
      height: 26px;
    }

    .card-large .card-icon {
      width: 32px;
      height: 32px;
    }

    
    .plus18-icon {
      -webkit-mask: url(/static/+18.svg) no-repeat center / contain;
      mask: url(/static/+18.svg) no-repeat center / contain;
      background-color: currentColor;
    }

    .card-small .meta-icon {
      width: 14px;
      height: 14px;
    }

    .card-medium .meta-icon {
      width: 16px;
      height: 16px;
    }

    .card-large .meta-icon {
      width: 18px;
      height: 18px;
    }

    
    /* ─── Responsividad de la parrilla ─────────────────────────────────────
       Solo se ajustan el numero de columnas y el gap. Los tamanos de tarjeta
       son relativos a la columna (small 1x1, medium 2x1, large 2x2), asi que
       una large sigue siendo un bloque 2x2 en todos los anchos mientras quepan
       dos columnas.

       El orden importa: con max-width, el breakpoint mas estrecho debe ir
       DESPUES para ganar la cascada. De ahi que 1360 y 1100 esten aqui, antes
       del bloque de 800, y el de 520 vaya al final. */

    @media (max-width: 1360px) {
      .grid-container {
        --grid-cols: 4;
        --grid-gap: 24px;
      }
    }

    @media (max-width: 1100px) {
      .grid-container {
        --grid-cols: 3;
        --grid-gap: 20px;
      }
    }

    @media (max-width: 800px) {
      body {
        padding: 90px 15px 20px 15px;
        
      }

      #main-header {
        padding: 0 15px;
        height: 65px;
      }

      .header-left,
      .header-right {
        gap: 10px;
        max-width: 200px;
        transition: max-width 0.4s ease, transform 0.4s ease, opacity 0.3s ease;
      }

      .header-logo {
        height: 38px;
      }

      .page-top-left-logo {
        top: 20px;
        left: 15px;
        width: 30px;
      }

      .header-center {
        margin: 0 10px;
        min-width: 0;
        transition: margin 0.4s ease;
      }

      #main-header.mobile-search-active .header-left {
        max-width: 0;
        transform: translateX(-30px);
        opacity: 0;
        overflow: hidden;
      }

      #main-header.mobile-search-active .header-right {
        max-width: 0;
        transform: translateX(30px);
        opacity: 0;
        overflow: hidden;
      }

      #main-header.mobile-search-active .header-center {
        margin: 0;
      }

      #header-search {
        padding: 10px 10px 10px 30px;
        font-size: 0.9rem;
      }

      .search-icon {
        left: 5px;
      }

      .header-btn-text {
        padding: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .header-btn-text .desktop-text {
        display: none;
      }

      .header-btn-text .mobile-icon {
        display: block;
        width: 20px;
        height: 20px;
      }

      .grid-container {
        
        --grid-cols: 2;
        --grid-gap: 16px;
      }

      .card-small .color-block {
        padding: 12px;
      }

      .card-medium-content .color-block {
        padding: 16px;
      }

      .card-large .color-block {
        padding: 20px;
      }

      .card-icons {
        margin-top: 8px;
      }

      .card-small .card-meta {
        font-size: 0.5rem;
        gap: 2px;
      }

      .card-small .meta-row {
        gap: 3px;
      }

      .card-medium .card-meta {
        font-size: 0.65rem;
      }

      .card-small .card-icon {
        width: 14px;
        height: 14px;
      }

      .card-small .meta-icon {
        width: 9px;
        height: 9px;
      }

      .card-medium .card-icon {
        width: 16px;
        height: 16px;
      }

      .card-medium .meta-icon {
        width: 11px;
        height: 11px;
      }

      .card-large .card-meta {
        font-size: 0.75rem;
      }

      .card-large .card-icon {
        width: 20px;
        height: 20px;
      }

      .card-large .meta-icon {
        width: 13px;
        height: 13px;
      }

      .card-small .card-title {
        -webkit-line-clamp: 2;
      }
    }

    body {
      overflow-x: hidden;
      
    }

    body.sidebar-active {
      padding-left: 310px;
      
    }

    
    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: 260px;
      background: #fff;
      z-index: 900;
      padding: 95px 25px 30px 25px;
      transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding-top 0.4s ease;
      box-shadow: 10px 0 30px rgba(3, 1, 2, 0.05);
      overflow-y: auto;
      box-sizing: border-box;
      transform: translateX(-100%);
      
    }

    body.header-is-hidden .sidebar {
      padding-top: 55px;
    }

    #close-sidebar {
      position: absolute;
      top: 15px;
      left: 15px;
      background: transparent;
      border: none;
      cursor: pointer;
      color: #030102;
      padding: 8px;
      border-radius: 12px;
      transition: all 0.2s ease;
      z-index: 901;
    }

    #close-sidebar:hover {
      background: #F0F0F0;
    }

    body.sidebar-active .sidebar {
      transform: translateX(0);
    }

    .sidebar::-webkit-scrollbar {
      width: 6px;
    }

    .sidebar::-webkit-scrollbar-thumb {
      background-color: rgba(3, 1, 2, 0.1);
      border-radius: 10px;
    }

    .sidebar-header h3 {
      margin: 0 0 25px 0;
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: -0.5px;
    }

    .filter-section {
      margin-bottom: 30px;
    }

    .filter-title {
      font-size: 0.9rem;
      text-transform: uppercase;
      font-weight: 700;
      color: #888;
      margin: 0 0 15px 0;
      letter-spacing: 1px;
    }

    .filter-group {
      margin-bottom: 12px;
      
      --accent: #ccc;
      --accent-light: color-mix(in srgb, var(--accent) 70%, white);
      --accent-dark: color-mix(in srgb, var(--accent) 70%, #030102);
    }

    .filter-parent {
      display: flex;
      width: 100%;
      background: #F8F8F8;
      border: 2px solid transparent;
      border-radius: 14px;
      transition: all 0.3s ease;
      overflow: hidden;
      position: relative;
      z-index: 2;
    }

    .parent-text-btn {
      flex: 1;
      text-align: left;
      padding: 14px 18px;
      font-size: 0.95rem;
      font-weight: 700;
      color: #030102;
      background: transparent;
      border: none;
      cursor: pointer;
      outline: none;
      transition: all 0.3s ease;
    }

    .parent-arrow-btn {
      width: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      border-left: 1px solid transparent;
      cursor: pointer;
      outline: none;
      transition: all 0.3s ease;
      color: #030102;
    }

    .filter-parent:hover {
      border-color: var(--accent);
      background: #fff;
    }

    .filter-parent:hover .parent-text-btn,
    .filter-parent:hover .parent-arrow-btn {
      color: var(--accent-dark);
    }

    
    .filter-parent.some-selected {
      background: #fff;
      border-color: var(--accent);
      border-style: dashed;
    }

    .filter-parent.some-selected .parent-text-btn {
      color: #030102;
    }

    .filter-parent.some-selected .parent-arrow-btn {
      background: var(--accent);
      color: #030102;
      border-left-style: solid;
      border-left-color: var(--accent);
    }

    
    .filter-parent.all-selected {
      background: var(--accent-light);
      border-color: var(--accent);
      border-style: solid;
    }

    .filter-parent.all-selected .parent-text-btn,
    .filter-parent.all-selected .parent-arrow-btn {
      color: #030102;
      
    }

    .filter-parent.all-selected .parent-arrow-btn {
      border-left-color: var(--accent);
    }

    .parent-arrow-btn svg {
      transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .filter-parent.open .parent-arrow-btn svg {
      transform: rotate(-180deg);
    }

    .filter-children-wrapper {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .filter-children-wrapper.open {
      grid-template-rows: 1fr;
    }

    .filter-children {
      overflow: hidden;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      opacity: 0;
      transform: translateY(-15px);
      transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
      padding: 0 4px 0 12px;
      position: relative;
      z-index: 1;
    }

    .filter-children-wrapper.open .filter-children {
      opacity: 1;
      transform: translateY(0);
      padding-top: 12px;
      padding-bottom: 8px;
    }

    .custom-date-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      justify-content: flex-start;
      width: 100%;
      background: transparent;
      border: 1.5px dashed #ccc;
      color: #555;
      padding: 12px 18px;
      border-radius: 14px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-top: 10px;
    }

    .custom-date-btn:hover {
      border-color: #030102;
      color: #030102;
      background: #F8F8F8;
    }

    .independent-pills-container {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .independent-pill {
      --accent: #ccc;
      --accent-light: color-mix(in srgb, var(--accent) 70%, white);
      --accent-dark: color-mix(in srgb, var(--accent) 70%, #030102);
    }

    .filter-pill {
      background: #F0F0F0;
      border: 2px solid transparent;
      padding: 6px 14px;
      border-radius: 30px;
      font-size: 0.8rem;
      font-weight: 600;
      color: #555;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .filter-pill:hover {
      background: #fff;
      border-color: var(--accent);
      color: var(--accent-dark);
      transform: translateY(-2px);
    }

    
    .filter-pill.active {
      background: var(--accent-light);
      color: #030102;
      border-color: var(--accent);
      box-shadow: 0 4px 12px rgba(3, 1, 2, 0.05);
    }

    .active-filters-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      width: 100%;
      max-width: 1600px;
      align-self: center;
      background-color: #030102;
      border-radius: 12px;
      max-height: 0;
      padding: 0 30px;
      opacity: 0;
      margin-bottom: 0;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .active-filters-bar.has-items {
      max-height: 500px;
      
      padding: 20px 30px;
      opacity: 1;
      margin-bottom: 20px;
    }

    .active-filter-tag {
      font-size: 1.5rem;
      color: var(--filter-color, #fff);
      padding: 0 10px;
      line-height: 1;
      cursor: pointer;
      position: relative;
      background: transparent;
      border: none;
      animation: fadeScaleIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
      opacity: 0;
      transform: scale(0.95);
      z-index: 5;
    }

    .active-filter-tag.type-cat {
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-weight: 700;
      font-style: italic;
    }

    .active-filter-tag.type-cat-parent span {
      text-decoration: underline;
      text-decoration-thickness: 3px;
      text-underline-offset: 4px;
    }

    .active-filter-tag.type-date {
      font-family: 'Courier New', Courier, monospace;
      font-weight: 400;
      font-style: normal;
    }

    .active-filter-tag.type-spec {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 8px;
      
    }

    .active-filter-tag.type-spec svg,
    .active-filter-tag.type-spec .card-icon,
    .active-filter-tag.type-spec .plus18-icon {
      width: 28px !important;
      height: 28px !important;
    }

    .strikethrough-icon-wrapper {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
    }

    .active-filter-tag.type-spec span {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .strikethrough-icon-wrapper::after {
      content: '';
      position: absolute;
      top: 50%;
      left: -5%;
      right: -5%;
      height: 2px;
      background: currentColor;
      transform: translateY(-50%) rotate(-45deg);
      transform-origin: center;
    }

    .active-filter-tag.sibling {
      margin-left: -5px;
      
    }

    .separator-tag {
      font-size: 1.5rem;
      font-weight: 400;
      font-style: italic;
      color: #555;
      padding: 0 10px;
      line-height: 1;
      animation: fadeScaleIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
      opacity: 0;
      transform: scale(0.95);
      user-select: none;
    }

    .active-filter-tag span::after {
      content: ',';
      color: inherit;
    }

    
    .active-filter-tag:last-of-type span::after {
      content: '.';
    }

    .active-filter-tag::before {
      content: '×';
      font-style: normal;
      font-size: 1rem;
      position: absolute;
      top: -10px;
      right: -5px;
      opacity: 0;
      color: #fff;
      transition: opacity 0.2s;
    }

    .active-filter-tag:hover::before {
      opacity: 1;
    }

    .active-filter-tag.type-spec {
      font-size: 0;
      padding: 6px 12px;
    }

    .active-filter-tag.type-search {
      font-family: 'Abril Fatface', serif;
      font-style: normal;
      font-weight: 400;
      font-size: 1.5rem;
    }

    .active-filter-tag.small-tag {
      font-size: 1.2rem;
    }

    .active-filter-tag.exiting,
    .separator-tag.exiting {
      overflow: hidden !important;
      white-space: nowrap !important;
      pointer-events: none;
    }

    @keyframes fadeScaleIn {
      from {
        opacity: 0;
        transform: scale(0.95);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .grids-wrapper {
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 1600px;
      position: relative;
    }

    #grid-out-wrapper {
      margin-top: 60px;
    }

    @media (max-width: 800px) {
      #grid-out-wrapper {
        margin-top: 32px;
      }

      body.sidebar-active {
        padding-left: 50px;
      }

      .sidebar {
        width: 100%;
      }
    }

    
    html {
      overflow-x: hidden;
    }

    #black-bg {
      position: absolute;
      width: 200vw;
      height: 200vh;
      background: #030102;
      z-index: -1;
      pointer-events: none;
      opacity: 0;
      
    }

    

    .card {
      will-change: transform;
    }

    .card.is-moving {
      z-index: 100 !important;
    }

    .calendar-popup {
      position: fixed;
      top: 120px;
      left: 275px;
      width: 320px;
      margin-top: 0;
      background: rgba(255, 255, 255, 0.89);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid rgba(255, 255, 255, 0.5);
      border-radius: 14px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
      padding: 15px 0;
      z-index: 1000;
      display: none;
      opacity: 0;
      transform: translateX(-40px);
      transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .calendar-header,
    .calendar-weekdays {
      padding: 0 15px;
    }

    .calendar-popup.open {
      display: block;
    }

    .calendar-popup.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 900px) {
      .calendar-popup {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        border: 1.5px dashed #ccc !important;
        border-top: none !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 14px !important;
        border-bottom-right-radius: 14px !important;
        background: transparent !important;
        z-index: 1000 !important;
      }
      .calendar-popup.visible {
        transform: none !important;
      }
      .custom-date-btn.open {
        border-bottom: none !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
      }
      .custom-date-btn .btn-chevron {
        transform: rotate(90deg);
      }
      .custom-date-btn.open .btn-chevron {
        transform: rotate(-90deg);
      }
    }

    .calendar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      font-weight: 700;
      color: #030102;
    }

    .calendar-header button {
      background: #F8F8F8;
      border: none;
      width: 30px;
      height: 30px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: bold;
      color: #030102;
      transition: background 0.2s ease;
    }

    .calendar-header button:hover {
      background: #eee;
    }

    .calendar-weekdays {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      text-align: center;
      font-size: 0.75rem;
      font-weight: 700;
      color: #888;
      margin-bottom: 10px;
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 0;
    }

    .cal-day {
      position: relative;
      aspect-ratio: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      color: #030102;
      z-index: 1;
      user-select: none;
    }

    .cal-day.empty {
      cursor: default;
    }

    
    .cal-day::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: var(--br-tl, 50%) var(--br-tr, 50%) var(--br-br, 50%) var(--br-bl, 50%);
      background: transparent;
      z-index: -1;
      transition: all 0.2s ease;
    }

    .cal-day.selected::before {
      background: var(--accent-light, #ccc);
      border: 1px solid var(--accent, #999);
    }

    .cal-day.past-day:not(.selected):not(.outlined)::before {
      background: #e2e2e2;
    }

    .cal-day.past-day:not(.selected):not(.outlined).conn-right-past::before {
      --br-tr: 0;
      --br-br: 0;
    }

    .cal-day.past-day:not(.selected):not(.outlined).conn-left-past::before {
      --br-tl: 0;
      --br-bl: 0;
    }

    .cal-day.past-day:not(.selected):not(.outlined).conn-top-past::before {
      --br-tl: 0;
      --br-tr: 0;
    }

    .cal-day.past-day:not(.selected):not(.outlined).conn-bottom-past::before {
      --br-bl: 0;
      --br-br: 0;
    }

    .cal-day:hover:not(.empty)::before {
      background: #F8F8F8;
    }

    .cal-day.selected:hover:not(.empty)::before {
      background: var(--accent-light, #ccc);
      filter: brightness(0.95);
    }

    
    .cal-day.conn-right::before {
      border-right: none;
      --br-tr: 0;
      --br-br: 0;
    }

    .cal-day.conn-left::before {
      border-left: none;
      --br-tl: 0;
      --br-bl: 0;
    }

    .cal-day.conn-top::before {
      border-top: none;
      --br-tl: 0;
      --br-tr: 0;
    }

    .cal-day.conn-bottom::before {
      border-bottom: none;
      --br-bl: 0;
      --br-br: 0;
    }

    .cal-day.conn-bottom {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }

    
    .cal-day.outlined {
      border: 2px solid var(--outline-color);
      border-radius: 8px;
      
      box-sizing: border-box;
      z-index: 2;
    }

    .cal-day.outlined:not(.selected) {
      background-color: transparent;
      color: var(--outline-color);
    }

    .cal-day.outlined.conn-left-out {
      border-left: none;
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }

    .cal-day.outlined.conn-right-out {
      border-right: none;
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
    }

    .cal-day.outlined.conn-top-out {
      border-top: none;
      border-top-left-radius: 0;
      border-top-right-radius: 0;
    }

    .cal-day.outlined.conn-bottom-out {
      border-bottom: none;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }

    .custom-date-btn.open .btn-chevron {
      transform: rotate(180deg);
    }

    .custom-date-btn.active {
      background: var(--accent-light, #f0f0f0);
      border-color: var(--accent, #333);
      color: #030102;
    }

    .custom-date-btn.active {
      background: var(--accent-light, #f0f0f0);
      border-color: var(--accent, #333);
      color: #030102;
    }

    /* ========================================================= */
    
    /* ========================================================= */
    .event-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 2000;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      visibility: visible;
      opacity: 1;
      transition: opacity 0.6s ease, visibility 0.6s ease;
    }

    .event-modal.hidden {
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .modal-backdrop {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--modal-bg, rgba(247, 247, 247, 0.4));
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
      transition: all 0.6s ease;
    }

    .modal-scroll-container {
      position: relative;
      width: 100%;
      height: 100%;
      overflow-y: auto;
      display: flex;
      justify-content: center;
      padding: 50px 20px;
      box-sizing: border-box;
    }

    
    .modal-scroll-container::-webkit-scrollbar {
      width: 8px;
    }

    .modal-scroll-container::-webkit-scrollbar-thumb {
      background-color: rgba(3, 1, 2, 0.2);
      border-radius: 10px;
    }

    .modal-wrapper {
      position: relative;
      width: 100%;
      max-width: 1200px;
      margin: 40px auto;
      transform: translateY(0);
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
    }

    .event-modal.hidden .modal-wrapper {
      transform: translateY(100vh);
    }

    .modal-top-left-actions {
      position: absolute;
      top: 20px;
      left: 50px;
      display: flex;
      gap: 10px;
      z-index: 100;
    }

    .modal-top-right-actions {
      position: absolute;
      top: 20px;
      right: 50px;
      display: flex;
      gap: 10px;
      z-index: 100;
    }

    .icon-action-btn {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background: transparent;
      border: 2px solid var(--modal-saturated, #030102);
      color: var(--modal-saturated, #030102);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s, border-color 0.2s, color 0.2s;
      box-shadow: none;
    }

    .icon-action-btn:hover {
      transform: scale(1.1);
    }

    .modal-content {
      
      background-color: var(--modal-paper, #Fdfdfc);
      width: 100%;
      box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
      display: flex;
      flex-direction: column;
      position: relative;
      border: 1px solid rgba(0, 0, 0, 0.1);
    }

    
    .news-header {
      padding: 80px 50px 15px 50px;
      border-bottom: 6px solid var(--modal-saturated, #030102);
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 30px;
      text-align: center;
      background: transparent;
    }

    .news-header-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      flex: 1;
      max-width: 100%;
    }

    .news-header-side-img {
      max-width: 30%;
      max-height: 210px;
      object-fit: contain;
      border: 3px solid var(--modal-saturated, #030102);
      display: none;
    }

    .news-title {
      font-family: 'Playfair Display', serif;
      font-style: normal;
      font-size: 4.2rem;
      font-weight: 900;
      text-transform: uppercase;
      line-height: 0.95;
      margin: 0 0 15px 0;
      color: var(--modal-saturated, #030102);
      letter-spacing: -1px;
    }

    .news-meta-bar {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 30px;
      font-family: 'Helvetica Neue', Helvetica, sans-serif;
      text-transform: uppercase;
      font-weight: 700;
      font-size: 0.85rem;
      letter-spacing: 1px;
      border-top: 2px solid var(--modal-saturated, #030102);
      border-bottom: 2px solid var(--modal-saturated, #030102);
      padding: 12px 0;
      width: 100%;
      margin-top: 20px;
      color: var(--modal-saturated, #030102);
    }

    .news-meta-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .news-hero {
      width: 100%;
      border-bottom: 4px solid var(--modal-saturated, #030102);
      position: relative;
      background: var(--modal-saturated, #030102);
      height: 8px;
      
    }

    .news-hero img {
      display: none;
    }

    .news-body-container {
      display: flex;
      flex-direction: row;
      padding: 40px 50px;
      gap: 50px;
      background: transparent;
    }

    .news-sidebar {
      width: 280px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      gap: 40px;
      position: sticky;
      top: 40px;
      align-self: flex-start;
    }

    .news-actions {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .news-btn {
      width: 100%;
      padding: 18px 24px;
      font-family: 'Helvetica Neue', Helvetica, sans-serif;
      font-weight: 800;
      font-size: 1.1rem;
      text-transform: uppercase;
      border: 3px solid var(--modal-saturated, #030102);
      background: transparent;
      color: var(--modal-saturated, #030102);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: all 0.2s ease;
    }

    .news-btn:hover {
      background: var(--modal-saturated, #030102);
      color: #fff;
    }

    #modal-admin-btn.active {
      background: var(--modal-saturated, #030102);
      border-color: var(--modal-saturated, #030102);
      color: #fff;
    }

    .news-btn.buy-btn {
      background: var(--modal-saturated, #030102);
      border-color: var(--modal-saturated, #030102);
      color: #fff;
    }

    .admin-tab-btn {
      flex: 1;
      padding: 12px;
      border: 2px solid var(--modal-saturated, #030102);
      border-left: none;
      background: transparent;
      color: var(--modal-saturated, #030102);
      font-weight: 800;
      cursor: pointer;
      font-family: inherit;
      min-width: 100px;
      transition: all 0.2s;
    }

    .admin-tab-btn:first-child {
      border-left: 2px solid var(--modal-saturated, #030102);
    }

    .admin-tab-btn.active {
      background: var(--modal-saturated, #030102);
      color: #fff;
    }

    .news-btn.buy-btn:hover {
      filter: brightness(0.85);
    }

    .news-specs {
      border-top: 2px solid var(--modal-saturated, #030102);
      padding-top: 20px;
      margin-top: auto;
    }

    .news-specs h4 {
      font-family: 'Helvetica Neue', Helvetica, sans-serif;
      font-weight: 800;
      text-transform: uppercase;
      margin: 0 0 20px 0;
      font-size: 1rem;
      letter-spacing: 0.5px;
    }

    .spec-item {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      font-family: 'Helvetica Neue', Helvetica, sans-serif;
      font-weight: 600;
      font-size: 0.95rem;
      color: #030102;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    .news-content {
      flex: 1;
      min-width: 0;
      column-count: 2;
      column-fill: auto;
      column-gap: 50px;
      column-rule: 1px solid rgba(0, 0, 0, 0.2);
      font-family: 'Georgia', 'Times New Roman', serif;
      font-size: 1.15rem;
      line-height: 1.6;
      color: #111;
      text-align: justify;
      overflow-wrap: break-word;
      word-break: break-word;
      -webkit-hyphens: auto;
      hyphens: auto;
    }

    .news-content p {
      margin-top: 0;
      margin-bottom: 20px;
    }

    .news-content p:first-child::first-letter {
      font-size: 4.5rem;
      float: left;
      line-height: 1;
      margin-right: 8px;
      margin-top: 5px;
      font-weight: 900;
      color: var(--modal-saturated, #030102);
      font-family: 'Playfair Display', serif;
    }

    .news-extra-img {
      max-width: 50%;
      margin: 0 auto 20px auto;
      break-inside: avoid;
      display: flex;
      flex-direction: column;
    }

    .news-extra-img img {
      width: 100%;
      height: auto;
      border: 2px solid var(--modal-saturated, #030102);
      box-sizing: border-box;
    }

    .news-extra-img-caption {
      font-family: 'Helvetica Neue', Helvetica, sans-serif;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      padding: 8px 0;
      border-bottom: 1px solid var(--modal-saturated, #030102);
      margin-bottom: 10px;
      color: var(--modal-saturated, #333);
    }

    .flex-divider {
      width: 1px;
      background: rgba(0, 0, 0, 0.2);
      align-self: stretch;
      margin: 0 10px;
    }

    @media (max-width: 900px) {
      .modal-wrapper {
        margin: 0;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
      }

      .modal-content {
        min-height: 100vh;
        border: none;
      }

      .news-body-container {
        display: contents;
      }

      .news-header {
        order: 1;
        padding: 65px 15px 15px 15px;
      }

      .news-sidebar {
        order: 2;
        width: 100%;
        position: static;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 15px;
        padding: 0 15px;
        margin-top: 15px;
      }

      .news-hero {
        order: 3;
        margin: 20px 0;
      }

      .news-content,
      #modal-admin-content {
        order: 4;
        column-count: auto;
        padding: 0 15px 30px 15px;
      }

      .news-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex-shrink: 0;
      }

      .news-specs {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
      }

      .news-btn {
        width: 60px;
        height: auto;
        border-radius: 0;
        padding: 0;
        font-size: 0;
        justify-content: center;
        flex: 1;
        gap: 0;
      }

      .news-btn svg {
        width: 24px;
        height: 24px;
      }

      .news-btn span,
      .news-btn text {
        display: none;
      }

      #modal-rating-options {
        flex-direction: column;
        flex: 1;
      }

      .news-specs h4 {
        margin: 0 0 10px 0;
        font-size: 0.85rem;
      }

      .spec-item {
        gap: 8px;
        margin-bottom: 10px;
        font-size: 0.85rem;
      }

      .spec-item svg {
        width: 16px;
        height: 16px;
      }

      .news-content p:first-child::first-letter {
        font-size: 3rem;
        margin-top: 2px;
      }

      .flex-divider {
        display: none;
      }

      .news-title {
        font-size: 2.2rem;
      }

      .news-meta-bar {
        font-size: 0.75rem;
        gap: 15px;
      }

      .modal-top-left-actions {
        top: 15px;
        left: 15px;
        gap: 8px;
      }

      .modal-top-right-actions {
        top: 15px;
        right: 15px;
        gap: 8px;
      }

      .icon-action-btn {
        width: 40px;
        height: 40px;
      }

      .modal-scroll-container {
        padding: 0;
        display: block;
      }
    }

    
    .lightbox-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.85);
      z-index: 3000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
    }

    .lightbox-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .lightbox-img-container {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
    }

    .lightbox-img {
      max-width: 100%;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
      transform: scale(0.9);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .lightbox-overlay.active .lightbox-img {
      transform: scale(1);
    }

    .lightbox-btn {
      position: absolute;
      background: rgba(255, 255, 255, 0.1);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      width: 45px;
      height: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      backdrop-filter: blur(10px);
      transition: all 0.2s ease;
      z-index: 3010;
    }

    .lightbox-btn:hover {
      background: rgba(255, 255, 255, 0.25);
      transform: scale(1.1);
    }

    .lightbox-close {
      top: 20px;
      right: 20px;
    }

    .lightbox-save {
      top: 20px;
      left: 20px;
    }

    .news-extra-img img,
    .news-header-side-img,
    #modal-main-img-left,
    #modal-main-img-right {
      cursor: zoom-in;
    }

    body.modal-open {
      overflow: hidden;
    }

    
    .location-section {
      margin-top: auto;
      padding-top: 30px;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      margin-bottom: 20px;
    }

    .location-btn {
      width: 100%;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #f8f8f8;
      border: 1px solid #e0e0e0;
      padding: 12px 15px;
      border-radius: 12px;
      cursor: pointer;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-weight: 600;
      color: #333;
      transition: all 0.2s ease;
    }

    .location-btn:hover {
      background: #f0f0f0;
      border-color: #d0d0d0;
    }

    .location-btn .lucide-chevron-right {
      transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .location-btn.open .lucide-chevron-right {
      transform: rotate(180deg);
    }

    .location-dropdown {
      display: none;
      position: fixed;
      left: 20px;
      bottom: 20px;
      width: 500px;
      max-width: 90vw;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 16px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
      z-index: 1000;
      padding: 15px;
      flex-direction: row;
      gap: 20px;
      opacity: 0;
      transform: translateX(-40px);
      transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    @media (max-width: 600px) {
      .location-dropdown {
        flex-direction: column;
        width: 300px;
        max-height: 70vh;
        overflow-y: auto;
      }
    }

    .location-dropdown.open {
      display: flex;
    }

    .location-dropdown.visible {
      opacity: 1;
      transform: translateX(0);
    }

    .location-pane {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .location-pane h4 {
      margin: 0 0 10px 0;
      font-size: 0.85rem;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .location-search-input {
      width: 100%;
      box-sizing: border-box;
      padding: 10px;
      border-radius: 8px;
      border: 1px solid #e0e0e0;
      background: #f8f8f8;
      font-family: inherit;
      font-size: 0.9rem;
      outline: none;
      transition: all 0.2s;
      margin-bottom: 10px;
    }

    .location-search-input:focus {
      background: #fff;
      border-color: #333;
    }

    .location-search-input:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .location-list {
      overflow-y: auto;
      height: 200px;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .location-list::-webkit-scrollbar {
      width: 4px;
    }

    .location-list::-webkit-scrollbar-thumb {
      background-color: rgba(0, 0, 0, 0.1);
      border-radius: 4px;
    }

    .location-item-btn {
      width: 100%;
      text-align: left;
      padding: 8px 10px;
      background: transparent;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-family: inherit;
      font-size: 0.9rem;
      color: #333;
      transition: background 0.2s;
    }

    .location-item-btn:hover,
    .location-item-btn.selected {
      background: #f0f0f0;
      font-weight: 600;
    }

    
    .notif-popup {
      position: absolute;
      top: 50px;
      right: -10px;
      width: 340px;
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 16px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
      z-index: 2000;
      display: none;
      opacity: 0;
      transform: translateY(-10px);
      transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }

    .notif-popup.open {
      display: flex;
      flex-direction: column;
    }

    .notif-popup.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .notif-header {
      padding: 16px;
      font-weight: 900;
      text-transform: uppercase;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      font-size: 0.9rem;
    }

    .notif-clear-btn {
      background: none;
      border: none;
      color: #03ACED;
      font-weight: bold;
      cursor: pointer;
      font-size: 0.75rem;
      text-transform: uppercase;
      transition: color 0.2s;
      padding: 0;
    }

    .notif-clear-btn:hover {
      color: #0286b8;
    }

    .notif-list {
      max-height: 350px;
      overflow-y: auto;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .notif-list::-webkit-scrollbar {
      width: 4px;
    }

    .notif-list::-webkit-scrollbar-thumb {
      background-color: rgba(0, 0, 0, 0.1);
      border-radius: 4px;
    }

    .notif-item {
      position: relative;
      padding: 12px 16px;
      border-radius: 12px;
      text-decoration: none;
      color: #030102;
      transition: background 0.2s ease, transform 0.2s ease, opacity 0.3s ease, margin 0.3s ease, height 0.3s ease, padding 0.3s ease;
      background: var(--notif-bg, rgba(240, 240, 240, 0.5));
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      overflow: hidden;
      flex-shrink: 0;
    }

    .notif-item:hover {
      background: rgba(255, 255, 255, 0.9) !important;
    }

    .notif-item.removing {
      opacity: 0;
      transform: scale(0.9);
      margin-top: -4px;
      margin-bottom: -4px;
      height: 0 !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
      border: none !important;
      pointer-events: none;
    }

    .notif-content {
      font-size: 0.85rem;
      font-weight: 500;
      line-height: 1.3;
      margin-bottom: 4px;
      padding-right: 20px;
    }

    .notif-time {
      font-size: 0.7rem;
      color: rgba(3, 1, 2, 0.6);
      font-weight: 600;
    }

    .notif-close-btn {
      position: absolute;
      top: 50%;
      right: 15px;
      transform: translateY(-50%);
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.05);
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #030102;
      opacity: 1;
      transition: background 0.2s;
      z-index: 2;
    }

    .notif-close-btn:hover {
      background: rgba(0, 0, 0, 0.15);
    }

    
    .card.loaded {
      opacity: 1;
      transform: translateY(0);
    }

    .id-card,
    #main-profile-card,
    #official-stats-card {
      opacity: 0;
    }

    .id-card.loaded,
    #main-profile-card.loaded,
    #official-stats-card.loaded {
      opacity: 1;
      animation: slideUp 0.6s cubic-bezier(0.19, 1, 0.22, 1) backwards;
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 800px) {
      .notif-popup {
        position: fixed;
        top: 65px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
        width: 90vw;
        max-width: 340px;
      }

      .notif-popup.visible {
        transform: translateX(-50%) translateY(0) !important;
      }
    }

/* ── Popup de ciudad (primer arranque) ────────────────────────────────────── */
/* Se muestra una sola vez, cuando todavia no hay ciudad guardada. El fondo se
   desenfoca para que la eleccion sea lo unico en foco. */
.ciudad-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 1, 2, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ciudad-overlay.visible {
  opacity: 1;
}

.ciudad-modal {
  background: rgba(255, 255, 255, 0.89);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 28px 26px 22px;
  width: 100%;
  max-width: 520px;
  transform: translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ciudad-overlay.visible .ciudad-modal {
  transform: translateY(0);
}

.ciudad-modal h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #030102;
}

.ciudad-modal p.ciudad-sub {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #666;
}

.ciudad-rejilla {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Mismo tratamiento que un filtro activo: el color al 70% sobre blanco, para
   que el texto oscuro se lea siempre sin listas de excepciones por color. */
.ciudad-btn {
  --accent: #ccc;
  background: color-mix(in srgb, var(--accent) 70%, white);
  border: 2px solid var(--accent);
  border-radius: 30px;
  padding: 12px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #030102;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.25;
}

.ciudad-btn small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  opacity: 0.7;
  margin-top: 2px;
}

.ciudad-btn:hover,
.ciudad-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--accent);
  outline: none;
}

.ciudad-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Salida para quien no vive en ninguna de las seis. */
.ciudad-otra {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background: none;
  border: 2px dashed #bbb;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.ciudad-otra:hover {
  border-color: #030102;
  color: #030102;
}

.ciudad-nota {
  margin: 18px 0 0;
  font-size: 0.78rem;
  color: #888;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .ciudad-rejilla { grid-template-columns: repeat(2, 1fr); }
  .ciudad-modal   { padding: 22px 18px 18px; }
  .ciudad-modal h2 { font-size: 1.2rem; }
}

/* Para que el usuario vea donde se cambia despues de cerrar sin elegir. */
@keyframes ciudad-late {
  0%, 100% { box-shadow: 0 0 0 0 rgba(3, 1, 2, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(234, 2, 138, 0.28); }
}

.location-btn.recien-fijado {
  animation: ciudad-late 1s ease-in-out 3;
}

/* ── Estado vacio de la rejilla ───────────────────────────────────────────── */
/* Antes, una ciudad sin eventos dejaba la pagina en blanco sin explicacion. */
.sin-eventos {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  color: #555;
}

.sin-eventos h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #030102;
}

.sin-eventos p {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #777;
}

.sin-eventos-acciones {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.sin-eventos-btn {
  padding: 10px 18px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid #030102;
  background: #030102;
  color: #fff;
  transition: transform 0.15s ease;
  text-decoration: none;
  display: inline-block;
}

.sin-eventos-btn.secundario {
  background: none;
  color: #030102;
}

.sin-eventos-btn:hover {
  transform: translateY(-2px);
}
