/* Abandon all hope, ye who enter here */
[data-gif-theme="ursa"] {
  --md-sys-color-primary: #d0bcff;
  --md-sys-color-shit: #b190ff;
  --md-sys-color-shit-light: #c8b0ff;
  --md-sys-color-on-primary: #220a32;
  --md-sys-color-primary-container: #4f378b;
  --md-sys-color-on-primary-container: #f4e7ff;
  --md-sys-color-secondary: #ccc2dc;
  --md-sys-color-on-secondary: #332d41;
  --md-sys-color-secondary-container: #4a4458;
  --md-sys-color-on-secondary-container: #e8def8;
  --md-sys-color-surface: #141218;
  --md-sys-color-on-surface: #e6e0e9;
  --md-sys-color-on-surface-light: #e7e4e9;
  --md-sys-color-surface-variant: #49454f;
  --md-sys-color-on-surface-variant: #cac4d0;
  --md-sys-color-outline: #938f99;
  --md-sys-color-surface-container-low: #1d1b20;
  --md-sys-color-surface-container: #211f26;
  --md-sys-color-surface-container-high: #2b2930;
  --md-sys-color-surface-container-highest: #36343b;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error: #690005;
  --md-header-blur: rgba(20, 18, 24, 0);
  --md-card-hover: rgba(208, 188, 255, 0.08);
}

[data-theme="light"][data-gif-theme="ursa"] {
  --md-sys-color-primary: #6750a4;
  --md-sys-color-shit: #7c4dff;
  --md-sys-color-shit-light: #9575ff;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #eaddff;
  --md-sys-color-on-primary-container: #21005d;
  --md-sys-color-secondary: #625b71;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #e8def8;
  --md-sys-color-on-secondary-container: #1d192b;
  --md-sys-color-surface: #fef7ff;
  --md-sys-color-on-surface: #1d1b20;
  --md-sys-color-on-surface-light: #1c1b1f;
  --md-sys-color-surface-variant: #e7e0ec;
  --md-sys-color-on-surface-variant: #49454f;
  --md-sys-color-outline: #79747e;
  --md-sys-color-surface-container-low: #f7f2fa;
  --md-sys-color-surface-container: #f3edf7;
  --md-sys-color-surface-container-high: #ece6f0;
  --md-sys-color-surface-container-highest: #e6e0e9;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-header-blur: rgba(254, 247, 255, 0);
  --md-card-hover: rgba(103, 80, 164, 0.08);
}

/* brew */
[data-gif-theme="brew"] {
  --md-sys-color-primary: #fac898;
  --md-sys-color-shit: #f8b774;
  --md-sys-color-shit-light: #fbd3a7;
  --md-sys-color-on-primary: #3a1f00;
  --md-sys-color-primary-container: #5c3b00;
  --md-sys-color-on-primary-container: #ffddb7;
  --md-sys-color-secondary: #e6c6a4;
  --md-sys-color-on-secondary: #3b2c18;
  --md-sys-color-secondary-container: #5c4429;
  --md-sys-color-on-secondary-container: #f9e0c3;
  --md-sys-color-surface: #14110f;
  --md-sys-color-on-surface: #f2e6dc;
  --md-sys-color-on-surface-light: #f7ede5;
  --md-sys-color-surface-variant: #4f453b;
  --md-sys-color-on-surface-variant: #d9c4b1;
  --md-sys-color-outline: #9d8f84;
  --md-sys-color-surface-container-low: #201e1b;
  --md-sys-color-surface-container: #262421;
  --md-sys-color-surface-container-high: #302d2a;
  --md-sys-color-surface-container-highest: #3a3734;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error: #690005;
  --md-header-blur: rgba(17, 12, 4, 0);
  --md-card-hover: rgba(250, 200, 152, 0.08);
}

[data-theme="light"][data-gif-theme="brew"] {
  --md-sys-color-primary: #855100;
  --md-sys-color-shit: #a66400;
  --md-sys-color-shit-light: #c47b00;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #ffddb7;
  --md-sys-color-on-primary-container: #2a1700;
  --md-sys-color-secondary: #745a3f;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #ffddb7;
  --md-sys-color-on-secondary-container: #291805;
  --md-sys-color-surface: #fff8f4;
  --md-sys-color-on-surface: #221a12;
  --md-sys-color-on-surface-light: #1f1b16;
  --md-sys-color-surface-variant: #f0dfd0;
  --md-sys-color-on-surface-variant: #51443a;
  --md-sys-color-outline: #837468;
  --md-sys-color-surface-container-low: #fef1e9;
  --md-sys-color-surface-container: #f9ebe1;
  --md-sys-color-surface-container-high: #f3e5db;
  --md-sys-color-surface-container-highest: #ede0d6;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-header-blur: rgba(255, 248, 244, 0);
  --md-card-hover: rgba(133, 81, 0, 0.08);
}

/* fura */
[data-gif-theme="fura"] {
  --md-sys-color-primary: #b1f9a4;
  --md-sys-color-shit: #9bf38a;
  --md-sys-color-shit-light: #c6fbbd;
  --md-sys-color-on-primary: #00390e;
  --md-sys-color-primary-container: #0a5d1d;
  --md-sys-color-on-primary-container: #c8ffc0;
  --md-sys-color-secondary: #a4f9c2;
  --md-sys-color-on-secondary: #003822;
  --md-sys-color-secondary-container: #205e3f;
  --md-sys-color-on-secondary-container: #c2ffd8;
  --md-sys-color-surface: #121511;
  --md-sys-color-on-surface: #e0e4dd;
  --md-sys-color-on-surface-light: #e7ebdf;
  --md-sys-color-surface-variant: #3d4b3e;
  --md-sys-color-on-surface-variant: #c4d0c0;
  --md-sys-color-outline: #8b9688;
  --md-sys-color-surface-container-low: #181c17;
  --md-sys-color-surface-container: #1e221d;
  --md-sys-color-surface-container-high: #282c27;
  --md-sys-color-surface-container-highest: #323630;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error: #690005;
  --md-header-blur: rgba(18, 21, 17, 0);
  --md-card-hover: rgba(177, 249, 164, 0.08);
}

[data-theme="light"][data-gif-theme="fura"] {
  --md-sys-color-primary: #1a7c2e;
  --md-sys-color-shit: #0d9b29;
  --md-sys-color-shit-light: #2aaf44;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #a8f59a;
  --md-sys-color-on-primary-container: #002204;
  --md-sys-color-secondary: #0e7c41;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #9df7bd;
  --md-sys-color-on-secondary-container: #002110;
  --md-sys-color-surface: #f6faf3;
  --md-sys-color-on-surface: #191d18;
  --md-sys-color-on-surface-light: #1a1d19;
  --md-sys-color-surface-variant: #dde5db;
  --md-sys-color-on-surface-variant: #414941;
  --md-sys-color-outline: #717970;
  --md-sys-color-surface-container-low: #eff3ec;
  --md-sys-color-surface-container: #eaede6;
  --md-sys-color-surface-container-high: #e4e8e0;
  --md-sys-color-surface-container-highest: #dee2db;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-header-blur: rgba(246, 250, 243, 0);
  --md-card-hover: rgba(26, 124, 46, 0.08);
}

/* storm */
[data-gif-theme="storm"] {
  --md-sys-color-primary: #c7dbf0;
  --md-sys-color-shit: #b5d0ec;
  --md-sys-color-shit-light: #d9e8f6;
  --md-sys-color-on-primary: #10283e;
  --md-sys-color-primary-container: #334b61;
  --md-sys-color-on-primary-container: #e9f3ff;
  --md-sys-color-secondary: #c8d9ea;
  --md-sys-color-on-secondary: #1d2e3a;
  --md-sys-color-secondary-container: #3b4f5f;
  --md-sys-color-on-secondary-container: #e5f0fa;
  --md-sys-color-surface: #13171a;
  --md-sys-color-on-surface: #e6ebef;
  --md-sys-color-on-surface-light: #ecf1f5;
  --md-sys-color-surface-variant: #434a50;
  --md-sys-color-on-surface-variant: #c9cdd1;
  --md-sys-color-outline: #959a9f;
  --md-sys-color-surface-container-low: #191e22;
  --md-sys-color-surface-container: #1f2428;
  --md-sys-color-surface-container-high: #292e32;
  --md-sys-color-surface-container-highest: #34393d;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error: #690005;
  --md-header-blur: rgba(19, 23, 26, 0);
  --md-card-hover: rgba(199, 219, 240, 0.08);
}

[data-theme="light"][data-gif-theme="storm"] {
  --md-sys-color-primary: #4d6481;
  --md-sys-color-shit: #3a5573;
  --md-sys-color-shit-light: #607a9a;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #d6e3f8;
  --md-sys-color-on-primary-container: #081c30;
  --md-sys-color-secondary: #546679;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #d8e3f1;
  --md-sys-color-on-secondary-container: #111c28;
  --md-sys-color-surface: #f8fafe;
  --md-sys-color-on-surface: #191c1f;
  --md-sys-color-on-surface-light: #1a1d20;
  --md-sys-color-surface-variant: #dfe3e8;
  --md-sys-color-on-surface-variant: #43484d;
  --md-sys-color-outline: #73787e;
  --md-sys-color-surface-container-low: #f2f5f9;
  --md-sys-color-surface-container: #eceff4;
  --md-sys-color-surface-container-high: #e6e9ee;
  --md-sys-color-surface-container-highest: #e0e4e8;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-header-blur: rgba(248, 250, 254, 0);
  --md-card-hover: rgba(77, 100, 129, 0.08);
}

/* invoker */
[data-gif-theme="invoker"] {
  --md-sys-color-primary: #ffffff;
  --md-sys-color-shit: #e0e0e0;
  --md-sys-color-shit-light: #f0f0f0;
  --md-sys-color-on-primary: #000000;
  --md-sys-color-primary-container: #404040;
  --md-sys-color-on-primary-container: #ffffff;
  --md-sys-color-secondary: #cccccc;
  --md-sys-color-on-secondary: #000000;
  --md-sys-color-secondary-container: #5a5a5a;
  --md-sys-color-on-secondary-container: #ffffff;
  --md-sys-color-surface: #0e0e0e;
  --md-sys-color-on-surface: #ffffff;
  --md-sys-color-on-surface-light: #f5f5f5;
  --md-sys-color-surface-variant: #2e2e2e;
  --md-sys-color-on-surface-variant: #e0e0e0;
  --md-sys-color-outline: #7a7a7a;
  --md-sys-color-surface-container-low: #1a1a1a;
  --md-sys-color-surface-container: #1e1e1e;
  --md-sys-color-surface-container-high: #2a2a2a;
  --md-sys-color-surface-container-highest: #363636;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error: #000000;
  --md-header-blur: rgba(18, 18, 18, 0);
  --md-card-hover: rgba(255, 255, 255, 0.08);
}

[data-theme="light"][data-gif-theme="invoker"] {
  --md-sys-color-primary: #5f5f5f;
  --md-sys-color-shit: #757575;
  --md-sys-color-shit-light: #8a8a8a;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #e3e3e3;
  --md-sys-color-on-primary-container: #1c1c1c;
  --md-sys-color-secondary: #5f5f5f;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #e5e5e5;
  --md-sys-color-on-secondary-container: #1c1c1c;
  --md-sys-color-surface: #fefefe;
  --md-sys-color-on-surface: #1c1c1c;
  --md-sys-color-on-surface-light: #1f1f1f;
  --md-sys-color-surface-variant: #e4e4e4;
  --md-sys-color-on-surface-variant: #474747;
  --md-sys-color-outline: #777777;
  --md-sys-color-surface-container-low: #f5f5f5;
  --md-sys-color-surface-container: #f0f0f0;
  --md-sys-color-surface-container-high: #ebebeb;
  --md-sys-color-surface-container-highest: #e5e5e5;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-header-blur: rgba(254, 254, 254, 0);
  --md-card-hover: rgba(95, 95, 95, 0.08);
}

/* meepo */
[data-gif-theme="meepo"] {
  --md-sys-color-primary: #ffb0c8;
  --md-sys-color-shit: #ff8fb3;
  --md-sys-color-shit-light: #ffc6db;
  --md-sys-color-on-primary: #5e0029;
  --md-sys-color-primary-container: #83003e;
  --md-sys-color-on-primary-container: #ffd9e3;
  --md-sys-color-secondary: #e5bdc7;
  --md-sys-color-on-secondary: #432933;
  --md-sys-color-secondary-container: #5c3f49;
  --md-sys-color-on-secondary-container: #ffd9e3;
  --md-sys-color-surface: #191113;
  --md-sys-color-on-surface: #f0dee5;
  --md-sys-color-on-surface-light: #f4e3ea;
  --md-sys-color-surface-variant: #514347;
  --md-sys-color-on-surface-variant: #d6c2c8;
  --md-sys-color-outline: #9f8c92;
  --md-sys-color-surface-container-low: #221a1d;
  --md-sys-color-surface-container: #272023;
  --md-sys-color-surface-container-high: #322a2d;
  --md-sys-color-surface-container-highest: #3d3437;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error: #690005;
  --md-header-blur: rgba(25, 17, 19, 0);
  --md-card-hover: rgba(255, 176, 200, 0.08);
}

[data-theme="light"][data-gif-theme="meepo"] {
  --md-sys-color-primary: #b8004f;
  --md-sys-color-shit: #d81b60;
  --md-sys-color-shit-light: #e91e63;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #ffd9e3;
  --md-sys-color-on-primary-container: #3f0016;
  --md-sys-color-secondary: #75565f;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #ffd9e3;
  --md-sys-color-on-secondary-container: #2b151c;
  --md-sys-color-surface: #fff8f9;
  --md-sys-color-on-surface: #22191c;
  --md-sys-color-on-surface-light: #201a1c;
  --md-sys-color-surface-variant: #f3dde3;
  --md-sys-color-on-surface-variant: #514347;
  --md-sys-color-outline: #847377;
  --md-sys-color-surface-container-low: #fef0f3;
  --md-sys-color-surface-container: #faeaed;
  --md-sys-color-surface-container-high: #f4e4e8;
  --md-sys-color-surface-container-highest: #efdfe2;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-header-blur: rgba(255, 248, 249, 0);
  --md-card-hover: rgba(184, 0, 79, 0.08);
}

/* bh */
[data-gif-theme="bh"] {
  --md-sys-color-primary: #f1d783;
  --md-sys-color-shit: #ebcc6d;
  --md-sys-color-shit-light: #f5e5b0;
  --md-sys-color-on-primary: #3a2e00;
  --md-sys-color-primary-container: #574600;
  --md-sys-color-on-primary-container: #ffe8b8;
  --md-sys-color-secondary: #e0d0a0;
  --md-sys-color-on-secondary: #3a3116;
  --md-sys-color-secondary-container: #574a28;
  --md-sys-color-on-secondary-container: #f5e8c8;
  --md-sys-color-surface: #15130f;
  --md-sys-color-on-surface: #ebe6dc;
  --md-sys-color-on-surface-light: #f0ece3;
  --md-sys-color-surface-variant: #4c473b;
  --md-sys-color-on-surface-variant: #d2c9b5;
  --md-sys-color-outline: #9a9286;
  --md-sys-color-surface-container-low: #1d1b18;
  --md-sys-color-surface-container: #242220;
  --md-sys-color-surface-container-high: #2e2c28;
  --md-sys-color-surface-container-highest: #383632;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error: #690005;
  --md-header-blur: rgba(21, 19, 15, 0);
  --md-card-hover: rgba(240, 220, 154, 0.08);
}

[data-theme="light"][data-gif-theme="bh"] {
  --md-sys-color-primary: #8a7100;
  --md-sys-color-shit: #a08700;
  --md-sys-color-shit-light: #b89b00;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #f5e8b8;
  --md-sys-color-on-primary-container: #2a2000;
  --md-sys-color-secondary: #6d5e3c;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #f5e8b8;
  --md-sys-color-on-secondary-container: #261b00;
  --md-sys-color-surface: #fffaf2;
  --md-sys-color-on-surface: #1f1c14;
  --md-sys-color-on-surface-light: #1d1b13;
  --md-sys-color-surface-variant: #ebe3d0;
  --md-sys-color-on-surface-variant: #4c473b;
  --md-sys-color-outline: #7e7768;
  --md-sys-color-surface-container-low: #fdf3e6;
  --md-sys-color-surface-container: #f7eddf;
  --md-sys-color-surface-container-high: #f1e7d9;
  --md-sys-color-surface-container-highest: #ebe2d4;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-header-blur: rgba(255, 250, 242, 0);
  --md-card-hover: rgba(138, 113, 0, 0.08);
}

/* axe */
[data-gif-theme="axe"] {
  --md-sys-color-primary: #ffb4a9;
  --md-sys-color-shit: #ff897a;
  --md-sys-color-shit-light: #ffc4ba;
  --md-sys-color-on-primary: #680003;
  --md-sys-color-primary-container: #930006;
  --md-sys-color-on-primary-container: #ffdad4;
  --md-sys-color-secondary: #e5bdb6;
  --md-sys-color-on-secondary: #442925;
  --md-sys-color-secondary-container: #5d3f3a;
  --md-sys-color-on-secondary-container: #ffdad4;
  --md-sys-color-surface: #1a1110;
  --md-sys-color-on-surface: #f1e0dc;
  --md-sys-color-on-surface-light: #f5e3df;
  --md-sys-color-surface-variant: #534340;
  --md-sys-color-on-surface-variant: #d8c2bd;
  --md-sys-color-outline: #a08c88;
  --md-sys-color-surface-container-low: #231917;
  --md-sys-color-surface-container: #28201d;
  --md-sys-color-surface-container-high: #332a27;
  --md-sys-color-surface-container-highest: #3e3531;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error: #690005;
  --md-header-blur: rgba(26, 17, 16, 0);
  --md-card-hover: rgba(255, 180, 169, 0.08);
}

[data-theme="light"][data-gif-theme="axe"] {
  --md-sys-color-primary: #ba1a1a;
  --md-sys-color-shit: #d32f2f;
  --md-sys-color-shit-light: #e53935;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #ffdad6;
  --md-sys-color-on-primary-container: #410002;
  --md-sys-color-secondary: #775652;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #ffdad6;
  --md-sys-color-on-secondary-container: #2c1512;
  --md-sys-color-surface: #fffbff;
  --md-sys-color-on-surface: #201a19;
  --md-sys-color-on-surface-light: #1c1b1a;
  --md-sys-color-surface-variant: #f5ddda;
  --md-sys-color-on-surface-variant: #534341;
  --md-sys-color-outline: #857370;
  --md-sys-color-surface-container-low: #fef1ee;
  --md-sys-color-surface-container: #fcebe7;
  --md-sys-color-surface-container-high: #f6e5e1;
  --md-sys-color-surface-container-highest: #f1dfdc;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-header-blur: rgba(255, 251, 255, 0);
  --md-card-hover: rgba(186, 26, 26, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: scroll;
  -ms-overflow-style: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 100px;
  margin: 6px 0;
}

::-webkit-scrollbar-thumb {
  background: var(--md-sys-color-outline);
  border-radius: 100px;
  border: 2px solid var(--md-sys-color-surface-container);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--md-sys-color-primary);
}

body:not(.loaded) .footer {
  opacity: 0;
}

body.loaded .footer {
  opacity: 1;
  transition: opacity 0.3s ease;
}

body:not(.loaded) .main,
body:not(.loaded) .footer {
  opacity: 0;
}

body.loaded .main,
body.loaded .footer {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.material-symbols-rounded {
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: scale(0.80);
  filter: blur(0.4px);
}

.fonts-loaded .material-symbols-rounded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background-color: var(--md-header-blur);
  padding: 14px 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-actions {
  display: none;
}

.mobile-menu {
  display: none;
}

.header-actions-desktop {
  display: flex;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 500;
  color: var(--md-sys-color-primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-to-top-fab {
  bottom: 92px !important;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top-fab.visible {
  opacity: 1 !important;
  pointer-events: auto;
  transform: scale(1);
}

#up-icon {
  font-weight: bold;
}

.logo a {
  cursor: pointer;
}

#tg {
  color: var(--md-sys-color-primary);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--md-sys-color-on-surface-light);
  font-weight: 500;
}

/* Theme */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-left: 12px;
  z-index: 2;
}

.theme-toggle:hover {
  background-color: var(--md-sys-color-surface-container-highest);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  position: absolute;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.theme-icon.sun {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

.theme-icon.moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-icon.sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-icon.moon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: var(--md-sys-color-primary);
  opacity: 0.3;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.theme-toggle:active::before {
  width: 80px;
  height: 80px;
}

.card,
.search-box,
video,
img {
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* fab */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-surface-variant);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.fab:hover {
  background: var(--md-sys-color-shit);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

.fab:active {
  transform: scale(0.95);
}

.fab.active {
  transform: rotate(180deg);
}

.fab .material-symbols-outlined {
  font-size: 24px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab i,
.fab .bx,
.fab .bxl,
.fab .bxs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}

.fab-menu {
  position: fixed;
  bottom: 92px;
  right: 29px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-menu.active {
  opacity: 1;
  pointer-events: all;
}

.fab-menu-item {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px) scale(0.8);
  opacity: 0;
  position: relative;
}

.fab-menu.active .fab-menu-item {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.fab-menu.active .fab-menu-item:nth-child(1) {
  transition-delay: 0.03s;
}

.fab-menu.active .fab-menu-item:nth-child(2) {
  transition-delay: 0.06s;
}

.fab-menu.active .fab-menu-item:nth-child(3) {
  transition-delay: 0.09s;
}

.fab-menu.active .fab-menu-item:nth-child(4) {
  transition-delay: 0.12s;
}

.fab-menu-item:hover {
  background: var(--md-sys-color-shit-light);
  color: var(--md-sys-color-surface-container);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transform: translateY(0) scale(1.1);
}

.fab-menu-item:active {
  transform: translateY(0) scale(0.95);
}

.fab-menu-item .material-symbols-outlined {
  font-size: 24px;
}

.fab-menu-item::before {
  content: attr(data-label);
  position: absolute;
  right: 60px;
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fab-menu-item:hover::before {
  opacity: 1;
}

/* info */
.info-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.25s ease;
}

.info-overlay.active {
  opacity: 1;
  pointer-events: all;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

body.modal-open {
  overscroll-behavior: none;
}

.info-modal-content,
.cart-items,
.pack-log-container,
.assemblies-list,
.notes-content {
  touch-action: pan-y;
}

.info-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  background: var(--md-sys-color-surface-container-high);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.info-modal.no-transition {
  transition: none !important;
}

.info-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.info-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: background 0.2s cubic-bezier(0.2, 0, 0, 1),
    transform 0.15s cubic-bezier(0.2, 0, 0, 1);
}

.info-modal-close:hover {
  background: var(--md-sys-color-secondary-container);
  transform: scale(1.1) rotate(90deg);
}

.info-modal-close:active {
  transform: scale(0.95) rotate(90deg);
  transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1);
}

.info-modal-close .material-symbols-outlined {
  font-size: 20px;
}

.info-modal-content {
  padding: 32px 24px 24px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.info-modal-content::-webkit-scrollbar {
  display: none;
}

.info-modal-content::-webkit-scrollbar {
  width: 8px;
}

.info-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.info-modal-content::-webkit-scrollbar-thumb {
  background: var(--md-sys-color-outline);
  border-radius: 4px;
}

.info-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--md-sys-color-on-surface-variant);
}

.info-modal-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 24px 0;
  padding-right: 40px;
}

.info-modal-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: var(--md-sys-color-primary);
  margin: 0 0 12px 0;
}

.info-modal-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0;
}

.info-modal-section {
  margin-bottom: 28px;
}

.info-modal-section:last-child {
  margin-bottom: 0;
}

.info-modal-list {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin: 0;
}

.info-modal-list li {
  counter-increment: item;
  font-size: 16px;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 12px;
  padding-left: 32px;
  position: relative;
}

.info-modal-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

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

.info-modal-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--md-sys-color-surface-container);
  border-radius: 16px;
  text-decoration: none;
  color: var(--md-sys-color-on-surface);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-modal-link:hover {
  background: var(--md-sys-color-surface-container-highest);
  cursor: pointer;
  transform: translateX(4px);
}

.info-modal-link:active {
  transform: translateX(2px) scale(0.98);
}

.info-modal-link .material-symbols-outlined {
  font-size: 24px;
  color: var(--md-sys-color-primary);
}

.info-modal-link span:last-child {
  font-size: 16px;
  font-weight: 500;
}

.info-modal-note {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--md-sys-color-surface-container-high);
  border-radius: 16px;
  border-left: 4px solid var(--md-sys-color-primary);
}

.info-modal-note .material-symbols-outlined {
  font-size: 24px;
  color: var(--md-sys-color-primary);
  flex-shrink: 0;
}

.info-modal-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--md-sys-color-on-secondary-container);
}

.category-guide-link {
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 3px;
  font-size: 15px;
  color: var(--md-sys-color-primary);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  display: inline-block;
}

.category-guide-link:hover {
  color: var(--md-sys-color-shit-light);
  text-shadow: 0 0 8px var(--md-sys-color-outline);
  text-decoration-style: solid;
}

.category-guide-link:active {
  color: var(--md-sys-color-primary);
}

/* Guide Modal */
.guide-language-toggle {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: var(--md-sys-color-surface-container);
  border-radius: 12px;
  margin-bottom: 24px;
}

[data-theme="light"] .guide-language-toggle {
  background: var(--md-sys-color-surface-container);
}

.guide-language-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .guide-language-bt {
  color: var(--md-sys-color-on-surface-variant);
}

.guide-language-btn.active {
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
}

[data-theme="light"] .guide-language-btn.active {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.guide-language-btn:hover:not(.active) {
  background: var(--md-sys-color-surface-container-highest);
}

[data-theme="light"] .guide-language-btn:hover:not(.active) {
  background: var(--md-sys-color-surface-container-highest);
}

.guide-content {
  display: none;
  flex-direction: column;
}

.guide-content .info-modal-section {
  margin-bottom: 40px;
}

.guide-content.active {
  display: block;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-step {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  padding: 16px;
  background: var(--md-sys-color-surface-container);
  border-radius: 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
}

[data-theme="light"] .guide-step {
  background: var(--md-sys-color-surface-container);
}

.guide-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

[data-theme="light"] .guide-step-number {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.guide-step-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface);
  padding: 4px 0;
}

[data-theme="light"] .guide-step-text {
  color: var(--md-sys-color-on-surface);
}

.guide-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

[data-theme="light"] .guide-section-title {
  color: var(--md-sys-color-primary);
}

.guide-result {
  padding: 16px;
  background: var(--md-sys-color-surface-container-high);
  border-radius: 16px;
  margin-top: 12px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid var(--md-sys-color-primary);
}

.guide-result .material-symbols-rounded {
  font-size: 24px;
  color: var(--md-sys-color-primary);
  flex-shrink: 0;
}

.guide-result-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface);
}

.guide-info {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--md-sys-color-surface-container);
  border-radius: 16px;
  border-left: 3px solid var(--md-sys-color-primary);
  margin-top: 0;
  margin-bottom: 20px;
}

.guide-result+.guide-info {
  margin-top: 12px;
  margin-bottom: 0;
}

.guide-step:last-of-type+.guide-info {
  margin-top: 12px;
  margin-bottom: 0;
}

[data-theme="light"] .guide-info {
  background: var(--md-sys-color-secondary-container);
}

.guide-info .material-symbols-rounded {
  font-size: 24px;
  color: var(--md-sys-color-primary);
  flex-shrink: 0;
}

[data-theme="light"] .guide-info .material-symbols-rounded {
  color: var(--md-sys-color-primary);
}

.guide-info-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
}

[data-theme="light"] .guide-info-text {
  color: var(--md-sys-color-on-secondary-container);
}

.guide-warning {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--md-sys-color-surface-container-high);
  border-radius: 16px;
  border-left: 3px solid var(--md-sys-color-error);
  margin-top: -20px;
  margin-bottom: 0;
  align-items: flex-start;
}

.guide-warning .material-symbols-rounded {
  font-size: 24px;
  color: var(--md-sys-color-error);
  flex-shrink: 0;
}

.guide-warning-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
}

.guide-step.has-link {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-step.has-link:hover {
  background: var(--md-sys-color-surface-container-highest);
  transform: translateX(4px);
}

.guide-step.has-link:active {
  transform: translateX(2px) scale(0.98);
}

[data-theme="light"] .guide-step.has-link:hover {
  background: var(--md-sys-color-surface-container-high);
}

.guide-step.has-link .guide-step-text a {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

.guide-step.has-link .guide-step-text a #tg {
  color: var(--md-sys-color-primary);
  font-weight: 600;
}

[data-theme="light"] .guide-step.has-link .guide-step-text a #tg {
  color: var(--md-sys-color-primary);
}

.guide-step-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: default;
}

[data-theme="light"] .guide-step-image {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.guide-image {
  margin: 16px 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--md-sys-color-surface-container);
  padding: 12px;
}

[data-theme="light"] .guide-image {
  background: var(--md-sys-color-surface-container);
}

.guide-image img {
  width: 100%;
  height: auto;
  min-height: 200px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: default;
  background: var(--md-sys-color-surface-container-highest);
}

[data-theme="light"] .guide-image img {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* code */
code {
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  vertical-align: 0.5px;
  /* vertical-align: baseline; */
  position: relative;
  cursor: pointer;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.6;
}

code:hover {
  background: var(--md-sys-color-surface-container-high);
}

code::after {
  content: "Copied!";
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

code.copied::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

fcode {
  background: var(--md-sys-color-surface-container-highest);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  vertical-align: baseline;
  position: relative;
  line-height: 1.6;
}

.guide-step-text fcode {
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  vertical-align: baseline;
  position: relative;
  line-height: 1.6;
}

[data-theme="light"] .guide-step-text fcode {
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
}

/* Modal Preview Video */
.video-modal {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.video-modal .info-modal-close {
  top: -50px;
  right: 0;
  background: var(--md-sys-color-surface-container-high);
}

.video-modal-content {
  position: relative;
}

.video-modal-content video {
  width: 100%;
  height: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.custom-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-modal-content:hover .custom-video-controls,
.video-modal-content:fullscreen .custom-video-controls {
  opacity: 1;
}

.video-progress-container {
  margin-bottom: 12px;
  cursor: pointer;
}

.video-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.video-progress-filled {
  height: 100%;
  background: var(--md-sys-color-primary);
  width: 0%;
  transition: width 0.1s;
}

.video-time-display {
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.video-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-controls-left,
.video-controls-center,
.video-controls-right {
  display: flex;
  align-items: center;
}

.video-controls-left {
  flex: 1;
  justify-content: flex-start;
}

.video-controls-center {
  flex: 1;
  justify-content: center;
}

.video-controls-right {
  flex: 1;
  justify-content: flex-end;
  gap: 6px;
}

.video-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.video-control-btn:hover {
  background: var(--md-sys-color-surface-container-highest);
}

.video-control-btn .material-symbols-rounded {
  font-size: 24px;
}

.video-modal-content:fullscreen {
  background: #000;
  border-radius: 0;
}

.video-modal-content:fullscreen video {
  max-height: 100vh;
  width: 100%;
  height: 100%;
}

.video-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.video-loading-spinner.hidden {
  opacity: 0;
}

.video-loading-spinner .spinner {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.search-container {
  margin-left: auto;
  max-width: 180px;
  z-index: 2;
  position: relative;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--md-sys-color-surface-container-high);
  border-radius: 24px;
  padding: 8px 16px;
  transition: all 0.2s;
  height: 40px;
}

.search-box:hover {
  background-color: var(--md-sys-color-surface-container-highest);
}

.search-box:focus-within {
  background-color: var(--md-sys-color-surface-container-highest);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.search-icon {
  color: var(--md-sys-color-on-surface-variant);
  margin-right: 8px;
  flex-shrink: 0;
  font-size: 20px;
  width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  font-family: inherit;
  padding: 0;
  height: 100%;
  padding-right: 44px;
}

.search-input::placeholder {
  color: var(--md-sys-color-on-surface-variant);
}

.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--md-sys-color-on-surface-variant);
  transition: all 0.2s;
  margin-left: 0;
  width: 32px;
  height: 32px;
}

.search-clear:hover {
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
}

.search-clear .material-symbols-rounded {
  font-size: 18px;
}

.search-hints {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background-color: var(--md-sys-color-surface-container-high);
  border-radius: 12px;
  padding: 6px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.search-hints.visible {
  display: block;
}

.search-hint-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: default;
}

.search-hint-item:hover {
  background-color: var(--md-sys-color-surface-container-highest);
}

.search-hint-prefix {
  font-weight: bold;
  font-size: 16px;
  color: var(--md-sys-color-primary);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.search-hint-text {
  font-size: 13px;
  color: var(--md-sys-color-on-surface-variant);
}

.footer .fuck {
  color: var(--md-sys-color-primary);
  font-weight: bold;
  font-size: 13px;
}

.hueta {
  width: 32px;
  height: 32px;
  margin-left: 7px;
  vertical-align: middle;
  display: inline-block;
  backface-visibility: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1),
    filter 0.3s cubic-bezier(0.2, 0, 0, 1),
    opacity 0.3s cubic-bezier(0.2, 0, 0, 1);
  transform-origin: center;
  position: relative;
  filter: drop-shadow(0 0 0 transparent);
  animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  will-change: transform, filter;
}

.hueta::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
      var(--md-sys-color-primary) 0%,
      transparent 70%);
  opacity: 0;
  animation: icon-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
  z-index: -1;
}

.hueta::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
      var(--md-sys-color-primary) 0%,
      transparent 50%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hueta:hover {
  transform: scale(1.15) translateY(-2px) rotate(5deg);
  filter: brightness(1.2) drop-shadow(0 4px 16px var(--md-sys-color-primary));
  transition: transform 0.4s cubic-bezier(0.05, 0.7, 0.1, 1),
    filter 0.4s cubic-bezier(0.05, 0.7, 0.1, 1);
  animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hueta:hover::before {
  animation: icon-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hueta:hover::after {
  opacity: 0.2;
}

.hueta:active {
  transform: scale(0.85) rotate(360deg) translateY(2px);
  filter: brightness(1.3) drop-shadow(0 0 20px var(--md-sys-color-primary));
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.2s cubic-bezier(0.4, 0, 1, 1);
}

.hueta:active::before {
  opacity: 0.6;
}

.hueta:active::after {
  opacity: 0.3;
}

.hueta.wiggle-on-hover:hover {
  animation: wiggle 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.hueta.clicked {
  animation: scale-out 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  filter: brightness(1.3) drop-shadow(0 0 20px var(--md-sys-color-primary));
}

.hueta.clicked::before {
  opacity: 0.6;
  animation: icon-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hueta.clicked::after {
  opacity: 0.3;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hueta.appear {
  animation: scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hueta.appear::before {
  animation: icon-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hueta.no-hover:hover {
  transform: scale(1);
  filter: drop-shadow(0 0 0 transparent);
}

.hueta.no-hover:hover::after {
  opacity: 0;
}

/* sort toggle */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 16px;
}

.sort-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.sort-toggle:hover {
  background-color: var(--md-sys-color-surface-container-highest);
  transform: translateY(-1px);
}

.sort-toggle:active {
  transform: scale(0.98);
}

.sort-toggle .material-symbols-rounded {
  font-size: 18px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sort-toggle:hover .material-symbols-rounded {
  transform: rotate(180deg);
}

.back-button {
  display: none;
  align-items: center;
  background: none;
  gap: 5px;
  border: none;
  color: var(--md-sys-color-on-surface);
  background-color: var(--md-sys-color-surface-container-high);
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background-color 0.2s;
  position: absolute;
  left: 0;
}

.back-button:hover {
  background-color: var(--md-sys-color-surface-container-highest);
}

.main {
  padding: 32px 0;
  flex: 1;
}

.page-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: -5px;
  color: var(--md-sys-color-on-surface);
}

.page-description {
  font-size: 17px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 16px;
  max-width: 600px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background-color: var(--md-sys-color-surface-container);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: var(--md-card-hover);
}

.card-media {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.card-media svg,
.card-media .icon {
  color: var(--md-sys-color-primary-container);
}

.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  border-radius: 0 0 24px 24px;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  transition: background-color 0.2s ease;
  border-radius: 0 0 24px 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 5px;
  line-height: 1.3;
}

.card-subtitle {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.4;
  opacity: 0.8;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-circles {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.style-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: outline-color 0.15s, filter 0.15s, opacity 0.15s;
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.396);
    opacity: 0.75;
}

.style-circle:hover {
    filter: brightness(1.2);
    opacity: 1;
}

.style-circle.active {
    outline-color: var(--md-sys-color-primary);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.cart-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-style-circles {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cart-style-circles .style-circle {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.card-buttons-group {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.copy-link-btn,
.copy-category-link-btn {
  background-color: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.copy-link-btn .material-symbols-rounded,
.copy-category-link-btn .material-symbols-rounded {
  font-size: 16px;
}

.copy-link-btn:hover,
.copy-category-link-btn:hover {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  transform: scale(1.1);
}

.copy-link-btn:active,
.copy-category-link-btn:active {
  transform: scale(0.95);
}

.card-subtitle .card-link {
  color: var(--md-sys-color-primary) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  opacity: 1 !important;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.card-subtitle .card-link:hover {
  color: var(--md-sys-color-shit-light) !important;
  text-shadow: 0 0 8px var(--md-sys-color-outline);
}

.card-subtitle .card-link:active {
  color: var(--md-sys-color-primary) !important;
}

.card-subtitle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.link-buttons {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: center;
}

.link-button {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  opacity: 0.8;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px;
}

.link-button[data-custom-name="true"] {
    text-transform: none;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    line-height: 1;
}

.link-button .material-symbols-rounded {
  font-size: 14px;
  font-weight: 400;
}

.link-button:hover {
  background-color: var(--md-sys-color-shit-light);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.link-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.link-button.not-safe {
  background-color: var(--md-sys-color-error);
  color: var(--md-sys-color-on-error);
}

.download-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  z-index: 3;
}

.download-icon .material-symbols-rounded {
  font-size: 24px;
}

.card:hover .download-icon {
  opacity: 1;
}

.mod-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  z-index: 3;
}

.mod-tag {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.636);
}

.lazy-media {
  transition: opacity 0.3s ease;
  background: var(--md-sys-color-surface-variant);
}

.lazy-media.loaded {
  opacity: 1 !important;
}

.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 2px solid var(--md-sys-color-outline);
  border-top: 2px solid var(--md-sys-color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--md-sys-color-surface-container-high);
  border-top: 4px solid var(--md-sys-color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none !important;
}

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

.footer {
  text-align: center;
  padding: 20px 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--md-sys-color-primary);
  mask-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' width='100%25' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpattern id='squiggle' width='91' height='8' patternUnits='userSpaceOnUse'%3E%3Cg clip-path='url(%23clip0_2426_11367)'%3E%3Cpath d='M114 4c-5.067 4.667-10.133 4.667-15.2 0S88.667-.667 83.6 4 73.467 8.667 68.4 4 58.267-.667 53.2 4 43.067 8.667 38 4 27.867-.667 22.8 4 12.667 8.667 7.6 4-2.533-.667-7.6 4s-10.133 4.667-15.2 0S-32.933-.667-38 4s-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0' stroke='white' stroke-linecap='square'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_2426_11367'%3E%3Crect width='91' height='8' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/pattern%3E%3Crect width='100%25' height='100%25' fill='url(%23squiggle)'/%3E%3C/svg%3E");
  mask-repeat: repeat-x;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' width='100%25' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpattern id='squiggle' width='91' height='8' patternUnits='userSpaceOnUse'%3E%3Cg clip-path='url(%23clip0_2426_11367)'%3E%3Cpath d='M114 4c-5.067 4.667-10.133 4.667-15.2 0S88.667-.667 83.6 4 73.467 8.667 68.4 4 58.267-.667 53.2 4 43.067 8.667 38 4 27.867-.667 22.8 4 12.667 8.667 7.6 4-2.533-.667-7.6 4s-10.133 4.667-15.2 0S-32.933-.667-38 4s-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0' stroke='white' stroke-linecap='square'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_2426_11367'%3E%3Crect width='91' height='8' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/pattern%3E%3Crect width='100%25' height='100%25' fill='url(%23squiggle)'/%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat-x;
}

.footer a {
  color: var(--md-sys-color-shit-light);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* Category Note */
.category-note {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--md-sys-color-surface-container-high);
  border-radius: 16px;
  border-left: 4px solid var(--md-sys-color-primary);
  margin-bottom: 20px;
  margin-top: -30px;
}

.category-note .material-symbols-rounded {
  font-size: 24px;
  color: var(--md-sys-color-primary);
  flex-shrink: 0;
}

.category-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--md-sys-color-on-secondary-container);
}

[data-theme="light"] .category-note {
  background: var(--md-sys-color-secondary-container);
}

[data-theme="light"] .category-note .material-symbols-rounded {
  color: var(--md-sys-color-primary);
}

[data-theme="light"] .category-note p {
  color: var(--md-sys-color-on-secondary-container);
}

/* Recently Added */
.recently-added-section {
  margin-bottom: 32px;
}

.recently-added-section.hidden {
  display: none;
}

.recently-added-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.recently-added-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recently-added-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0;
}

.collapse-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapse-btn:hover {
  background-color: var(--md-sys-color-surface-container-highest);
}

.collapse-btn .material-symbols-rounded {
  font-size: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapse-btn.collapsed .material-symbols-rounded {
  transform: rotate(180deg);
}

.carousel-controls {
  display: flex;
  gap: 8px;
  padding: 4px;
  margin: -4px;
  opacity: 1;
  max-height: 48px;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    margin-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-controls.collapsed {
  opacity: 0;
  max-height: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-btn:hover:not(:disabled) {
  background-color: var(--md-sys-color-surface-container-highest);
  transform: scale(1.05);
}

.carousel-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.carousel-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.carousel-btn .material-symbols-rounded {
  font-size: 24px;
}

.carousel-wrapper {
  max-height: 1000px;
  opacity: 1;
  overflow: visible;
  position: relative;
  z-index: 2;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-wrapper.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: -24px;
  pointer-events: none;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  padding: 4px 0;
  margin: -4px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track .card {
  flex: 0 0 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  min-width: 280px;
}

.categories-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 24px 0;
  opacity: 1;
  max-height: 100px;
  transform: translateY(0);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.categories-title.hidden {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin: 0;
  overflow: hidden;
}

.recently-added-header {
  transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recently-added-header.collapsed {
  gap: 0;
}

/* Highlight Recently Added */
.card.highlighted {
  animation: highlight-pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) 1;
  scroll-margin-top: 120px;
  position: relative;
  will-change: transform, box-shadow;
}

.card.highlighted.fade-in {
  animation: fadeIn 0.3s ease-in, highlight-pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s 1;
}

.card.highlighted::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: transparent;
  box-shadow: 0 0 0 2px var(--md-sys-color-primary),
    0 0 20px var(--md-sys-color-primary),
    0 0 40px var(--md-sys-color-primary);
  opacity: 0;
  animation: highlight-glow 1.5s cubic-bezier(0.4, 0, 0.2, 1) 1;
  pointer-events: none;
  z-index: 1;
}

.card.highlighted::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* Cart Button */
.cart-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  margin-left: 12px;
}

.cart-button:hover {
  background-color: var(--md-sys-color-surface-container-highest);
  transform: scale(1.05);
}

.cart-button:active {
  transform: scale(0.95);
}

.cart-button .material-symbols-rounded {
  font-size: 20px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--md-sys-color-error);
  color: var(--md-sys-color-on-error);
  border-radius: 10px;
  min-width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  padding: 0 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Add to Cart Button on Card */
.add-to-cart-btn {
  position: absolute;
  top: 6px;
  right: 12px;
  height: 36px;
  min-width: 36px;
  border-radius: 18px;
  border: none;
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.2, 0, 0, 1),
    background-color 0.3s cubic-bezier(0.2, 0, 0, 1),
    box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1),
    padding-right 0.4s cubic-bezier(0.2, 0, 0, 1),
    min-width 0.4s cubic-bezier(0.2, 0, 0, 1);
  z-index: 4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  transform: translateZ(0);
}

.add-to-cart-btn .material-symbols-rounded {
  font-size: 20px;
  flex-shrink: 0;
  margin: 0 8px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.2, 0, 0, 1),
    margin 0.4s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  backface-visibility: hidden;
}

.add-to-cart-text {
  font-size: 14px;
  font-weight: 500;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.4s cubic-bezier(0.2, 0, 0, 1),
    opacity 0.3s cubic-bezier(0.2, 0, 0, 1),
    padding-right 0.4s cubic-bezier(0.2, 0, 0, 1);
  padding-right: 0;
  letter-spacing: 0.1px;
  backface-visibility: hidden;
}

.add-to-cart-btn:hover {
  background-color: var(--md-sys-color-shit-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px 2px rgba(0, 0, 0, 0.15);
  padding-right: 12px;
}

.add-to-cart-btn:hover .material-symbols-rounded {
  margin-left: 12px;
  margin-right: 4px;
  /* transform: rotate(180deg); */
}

.add-to-cart-btn:hover .add-to-cart-text {
  max-width: 120px;
  opacity: 1;
  padding-right: 8px;
}

.add-to-cart-btn:active {
  transform: translateZ(0);
  transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1);
}

.add-to-cart-btn:active .material-symbols-rounded {
  transform: rotate(360deg) scale(0.95);
}

.card:hover .add-to-cart-btn {
  opacity: 1;
}

.add-to-cart-btn.in-cart {
  opacity: 1 !important;
  background-color: var(--md-sys-color-primary);
  pointer-events: none;
  animation: enable-hover 3s cubic-bezier(0.2, 0, 0, 1) forwards;
  transition: opacity 0.4s cubic-bezier(0.2, 0, 0, 1),
    background-color 0.4s cubic-bezier(0.2, 0, 0, 1),
    box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1),
    padding-right 0.4s cubic-bezier(0.2, 0, 0, 1),
    min-width 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.add-to-cart-btn.in-cart:hover {
  background-color: var(--md-sys-color-error);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px 2px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn.in-cart:hover .material-symbols-rounded {
  animation: shake-warning 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.add-to-cart-btn.in-cart .material-symbols-rounded {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.2, 0, 0, 1),
    margin 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.add-to-cart-btn.in-cart .add-to-cart-text {
  max-width: 100px;
  opacity: 1;
  padding-right: 12px;
}

/* Cart Modal */
.cart-modal {
  max-width: 500px;
  width: 90%;
  display: flex;
  flex-direction: row;
  max-height: 80vh;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%) scale(0.9);
  overflow: hidden;
}

.cart-modal.expanded {
  max-width: 920px;
}

.cart-modal:not(.expanded) {
  max-height: 80vh !important;
  height: auto !important;
}

.cart-main-content {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--md-sys-color-surface-container-high);
  border-radius: 20px;
  position: relative;
  max-height: 80vh !important;
  height: auto !important;
}

.cart-modal:not(.expanded) .cart-main-content {
  height: auto !important;
  border-radius: 20px;
}

.cart-modal.expanded .cart-main-content {
  border-radius: 20px 0 0 20px;
}

.cart-modal .info-modal-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 32px;
  flex: 1;
  height: auto !important;
  min-height: 200px;
}

.cart-modal .info-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: none;
  background-color: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s cubic-bezier(0.2, 0, 0, 1),
    transform 0.15s cubic-bezier(0.2, 0, 0, 1);
}

.cart-modal .info-modal-close:hover {
  background: var(--md-sys-color-secondary-container);
  transform: scale(1.1) rotate(90deg);
}

.cart-modal .info-modal-close:active {
  transform: scale(0.95) rotate(90deg);
  transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1);
}

.cart-modal .info-modal-close .material-symbols-rounded {
  font-size: 24px;
}

.cart-modal .info-modal-title {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--md-sys-color-on-surface-variant);
}

.cart-empty .material-symbols-rounded {
  font-size: 64px;
  opacity: 0.5;
  margin-bottom: 16px;
}

.cart-empty p {
  font-size: 16px;
  margin: 0;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-bottom: 0;
  min-height: 0;
  flex: 1;
}

.cart-items::-webkit-scrollbar {
  display: none;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--md-sys-color-surface-container);
  border-radius: 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.cart-item-image {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--md-sys-color-surface-container-highest);
  display: block;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-category {
  font-size: 13px;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0;
  opacity: 0.8;
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item-remove:hover {
  background-color: var(--md-sys-color-error);
  color: var(--md-sys-color-on-error);
  transform: scale(1.1);
}

.cart-item-remove:active {
  transform: scale(0.9);
}

.cart-item-remove .material-symbols-rounded {
  font-size: 18px;
  line-height: 1;
  transform: translateY(1px);
}

.cart-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  margin-top: auto;
  flex-shrink: 0;
}

.cart-clear-btn,
.cart-pack-btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: 20px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.cart-clear-btn {
  background-color: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
}

.cart-clear-btn:hover {
  background-color: var(--md-sys-color-error);
  color: var(--md-sys-color-on-error);
}

.cart-pack-btn {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.cart-pack-btn:hover {
  background-color: var(--md-sys-color-shit-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cart-pack-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.cart-clear-btn .material-symbols-rounded,
.cart-pack-btn .material-symbols-rounded {
  font-size: 20px;
}

/* Saved Packs Panel */
.assemblies-panel {
  width: 0;
  opacity: 0;
  overflow: hidden;
  background: var(--md-sys-color-surface-container);
  border-radius: 20px 0 0 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-modal.active .assemblies-panel {
  width: 280px;
  opacity: 1;
  padding: 32px 16px 16px 24px;
  overflow: visible;
}

.assemblies-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: visible;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: none;
  padding-right: 8px;
  margin-right: -8px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.cart-modal.active .assemblies-list {
  opacity: 1;
  transform: translateX(0);
}

.assemblies-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
  color: var(--md-sys-color-on-surface-variant);
  text-align: center;
  height: 100%;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.cart-modal.active .assemblies-empty {
  opacity: 1;
  transform: scale(1);
}

.assemblies-empty .material-symbols-rounded {
  font-size: 64px;
  opacity: 0.5;
  margin-bottom: 12px;
}

.assemblies-empty p {
  font-size: 14px;
  margin: 0;
}

.assembly-item {
  background: var(--md-sys-color-surface-container-high);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.assembly-item:hover {
  background: var(--md-sys-color-surface-container-highest);
  transform: translateX(4px);
}

.assembly-item:active {
  transform: translateX(2px) scale(0.98);
}

.assembly-item.selected {
    border: 3px solid var(--md-sys-color-primary);
    padding: 10px;
}

.assembly-item.selected .assembly-name {
    color: var(--md-sys-color-on-primary-container);
}

.assembly-item.selected .assembly-meta {
    color: var(--md-sys-color-on-primary-container);
    opacity: 0.7;
}

.assembly-edit-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.assembly-item:hover .assembly-edit-btn {
    opacity: 1;
}

.assembly-edit-btn .material-symbols-rounded {
    font-size: 16px;
}

.assembly-edit-btn:hover {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    transform: scale(1.1);
}

.assembly-edit-btn:active {
    transform: scale(0.9);
}

.assembly-info {
  flex: 1;
  min-width: 0;
}

.assembly-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assembly-meta {
  font-size: 11px;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0;
  opacity: 0.8;
}

.assembly-delete-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.assembly-item:hover .assembly-delete-btn {
  opacity: 1;
}

.assembly-delete-btn .material-symbols-rounded {
  font-size: 18px;
}

.assembly-delete-btn:hover {
  background: var(--md-sys-color-error);
  color: var(--md-sys-color-on-error);
  transform: scale(1.1);
}

.assembly-delete-btn:active {
  transform: scale(0.9);
}

.assembly-share-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.assembly-item:hover .assembly-share-btn {
    opacity: 1;
}

.assembly-share-btn .material-symbols-rounded {
    font-size: 16px;
}

.assembly-share-btn:hover {
    background: var(--md-sys-color-shit-light);
    color: var(--md-sys-color-on-primary);
    transform: scale(1.1);
}

.assembly-share-btn:active {
    transform: scale(0.9);
}

.cart-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 16px;
  margin-top: auto;
  flex-shrink: 0;
}

.cart-save-assembly-btn,
.cart-clear-btn,
.cart-pack-btn {
  padding: 12px 16px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.cart-save-assembly-btn .material-symbols-rounded,
.cart-clear-btn .material-symbols-rounded,
.cart-pack-btn .material-symbols-rounded {
  position: relative;
  top: 2px;
}

.cart-save-assembly-btn {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.cart-save-assembly-btn:hover {
  background-color: var(--md-sys-color-shit-light);
  color: var(--md-sys-color-on-primary);
}

.cart-clear-btn {
  background-color: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
}

.cart-clear-btn:hover {
  background-color: var(--md-sys-color-error);
  color: var(--md-sys-color-on-error);
}

.cart-pack-btn {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.cart-pack-btn:hover {
  background-color: var(--md-sys-color-shit-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cart-pack-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.cart-save-assembly-btn .material-symbols-rounded,
.cart-clear-btn .material-symbols-rounded,
.cart-pack-btn .material-symbols-rounded {
  font-size: 18px;
}

.assembly-dialog-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.assembly-dialog-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.assembly-dialog {
  background: var(--md-sys-color-surface-container-high);
  border-radius: 20px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.assembly-dialog h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 16px 0;
}

.assembly-name-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--md-sys-color-outline);
  border-radius: 12px;
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.assembly-name-input:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
}

.assembly-name-input::placeholder {
  color: var(--md-sys-color-on-surface-variant);
  opacity: 0.6;
}

.assembly-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.assembly-cancel-btn,
.assembly-save-btn {
  padding: 10px 24px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.assembly-cancel-btn {
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
}

.assembly-cancel-btn:hover {
  background: var(--md-sys-color-surface-container);
}

.assembly-save-btn {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.assembly-save-btn:hover {
  background: var(--md-sys-color-shit-light);
}

.assembly-cancel-btn:active,
.assembly-save-btn:active {
  transform: scale(0.95);
}

.cart-modal.active {
  max-width: 780px;
}

.cart-modal.expanded.active {
  max-width: 1200px;
}

/* Pack Log Panel */
.pack-log-panel {
  width: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--md-sys-color-surface-container-high);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
  border-radius: 0 20px 20px 0;
  position: relative;
}

.cart-modal:not(.expanded) .pack-log-panel {
  display: none !important;
}

.pack-log-panel.active {
  width: 400px;
  opacity: 1;
  padding: 51px 32px 32px 32px;
}

.pack-log-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pack-log-header .spinner {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

.pack-log-header .material-symbols-rounded {
  font-size: 24px;
}

.pack-log-header .material-symbols-rounded.success {
  color: var(--md-sys-color-primary);
}

.pack-log-header .material-symbols-rounded.error {
  color: var(--md-sys-color-error);
}

.pack-log-header h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: var(--md-sys-color-on-surface);
}

.pack-log-container {
  flex: 1;
  background: var(--md-sys-color-surface-container);
  border-radius: 12px;
  padding: 16px;
  overflow-y: auto;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  scrollbar-width: none;
  max-height: calc(80vh - 140px);
}

.pack-log-entry {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

.pack-log-entry .material-symbols-rounded {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pack-log-entry.info,
.pack-log-entry.extract,
.pack-log-entry.archive,
.pack-log-entry.loading,
.pack-log-entry.start,
.pack-log-entry.success {
  color: var(--md-sys-color-on-surface-variant);
}

.pack-log-entry.error,
.pack-log-entry.warning {
  color: var(--md-sys-color-error);
}

.pack-log-entry.download {
  color: var(--md-sys-color-primary);
  font-weight: 600;
}

.pack-log-footer {
  margin-top: 16px;
  padding-top: 16px;
  font-size: 16px;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500;
}

.pack-log-entry a {
  color: var(--md-sys-color-primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pack-log-entry a:hover {
  color: var(--md-sys-color-shit-light);
  text-shadow: 0 0 8px var(--md-sys-color-outline);
}

.pack-log-entry a:active {
  color: var(--md-sys-color-primary);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  padding: 12px 24px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10001;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.spinner.small {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

/* Replace Modal Overlay */
.replace-modal-overlay {
  position: fixed;
  inset: 0;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.replace-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.replace-modal {
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.replace-modal-header h2 {
  font-size: 20px;
  margin: 0 0 12px 0;
}

.replace-modal-body {
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.replace-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Platform Modal */
.os-picker-modal {
  max-width: 480px;
  width: 90%;
}

.os-picker-buttons {
  display: flex;
  gap: 12px;
}

.os-picker-btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: 20px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.os-picker-btn i {
  font-size: 1.4rem;
}

.os-picker-btn:hover {
  transform: translateY(-1px);
}

.os-picker-btn:active {
  transform: scale(0.97);
}

/* Grouped Mods */
.mod-group-header {
  grid-column: 1 / -1;
  margin-top: 10px;
  margin-bottom: 5px;
}

.mod-group-header:first-child {
  margin-top: -10px;
}

.mod-group-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--md-sys-color-primary);
  margin-bottom: -10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mod-group-container {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 16px;
}

.info-modal.active .info-modal-content,
.guide-modal.active .info-modal-content {
  scroll-behavior: auto;
}

.info-modal:not(.active) .info-modal-content,
.guide-modal:not(.active) .info-modal-content {
  scroll-behavior: auto;
}

/* Notes Button */
.notes-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  margin-left: 12px;
}

.notes-button:hover {
  background-color: var(--md-sys-color-surface-container-highest);
  transform: scale(1.05);
}

.notes-button:active {
  transform: scale(0.95);
}

.notes-button .material-symbols-rounded {
  font-size: 20px;
}

.notes-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background-color: var(--md-sys-color-primary);
  border-radius: 10px;
  width: 15px;
  height: 15px;
  display: none;
  padding: 0 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.notes-badge.show {
  display: flex;
}

@keyframes pulse-badge {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Notes Modal */
.notes-modal {
  max-width: 800px;
  width: 50%;
  aspect-ratio: 16 / 9;
  max-height: none;
}

.notes-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.note-item {
  background: var(--md-sys-color-surface-container);
  border-radius: 16px;
  padding: 20px;
  border-left: 4px solid var(--md-sys-color-primary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .note-item {
  background: var(--md-sys-color-surface-container);
}

.note-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.note-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .note-icon {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.note-icon .material-symbols-rounded {
  font-size: 20px;
}

.note-meta {
  flex: 1;
}

.note-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0;
}

.note-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0;
}

[data-theme="light"] .note-text {
  color: var(--md-sys-color-on-surface);
}

.note-item.update {
  border-left-color: var(--md-sys-color-primary);
}

.note-item.warning {
  border-left-color: var(--md-sys-color-error);
}

.note-item.warning .note-icon {
  background: var(--md-sys-color-error);
  color: var(--md-sys-color-on-error);
}

.note-item.info {
  border-left-color: var(--md-sys-color-shit-light);
}

.note-item.info .note-icon {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-shit);
}

.notes-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--md-sys-color-on-surface-variant);
  text-align: center;
}

.notes-empty .material-symbols-rounded {
  font-size: 64px;
  opacity: 0.5;
  margin-bottom: 16px;
}

.notes-empty p {
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

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

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

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

@keyframes shake-warning {

  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  25% {
    transform: translateX(-2px) rotate(-2deg);
  }

  50% {
    transform: translateX(2px) rotate(2deg);
  }

  75% {
    transform: translateX(-1px) rotate(-1deg);
  }
}

@keyframes enable-hover {
  0% {
    pointer-events: none;
  }

  100% {
    pointer-events: auto;
  }
}

@keyframes highlight-pulse {
  0% {
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 8px 32px var(--md-sys-color-primary),
      0 0 40px var(--md-sys-color-primary);
    transform: translateY(-4px);
  }

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

@keyframes highlight-bg {

  0%,
  100% {
    background-color: var(--md-sys-color-surface-container);
  }

  50% {
    background-color: var(--md-sys-color-primary-container);
  }
}

@keyframes highlight-glow {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.3;
  }
}

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

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

@keyframes pulse-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 9px var(--md-sys-color-shit));
  }

  50% {
    filter: drop-shadow(0 0 15px var(--md-sys-color-shit));
  }
}

@keyframes icon-glow {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.25;
  }
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg) scale(1.15) translateY(-2px);
  }

  25% {
    transform: rotate(-8deg) scale(1.15) translateY(-2px);
  }

  50% {
    transform: rotate(8deg) scale(1.15) translateY(-2px);
  }

  75% {
    transform: rotate(-8deg) scale(1.15) translateY(-2px);
  }
}

@keyframes scale-out {
  0% {
    transform: scale(1) rotate(0deg);
  }

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

@keyframes scale-in {
  0% {
    transform: scale(0.6) rotate(-360deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* Media */
@media (max-width: 1024px) {
  .carousel-track .card {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
    min-width: 250px;
  }

  .cart-modal {
    max-width: 460px;
  }

  .cart-modal.expanded {
    max-width: 860px;
  }

  .cart-main-content {
    width: 460px;
  }

  .pack-log-panel.active {
    width: 380px;
    padding: 16px 24px 24px 24px;
  }

  .cart-modal .info-modal-content {
    padding: 24px;
  }

  .pack-log-container {
    font-size: 12px;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .header {
    position: relative;
    overflow: visible;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin: 0;
    pointer-events: none;
  }

  .logo a {
    pointer-events: auto;
  }

  .back-button {
    position: static;
    order: -1;
    align-self: center;
    margin: 0;
    padding: 6px 10px;
  }

  .back-button span:not(.material-symbols-rounded) {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    order: -1;
    margin-right: 4px;
  }

  .mobile-menu-toggle:hover {
    background-color: var(--md-sys-color-surface-container-highest);
    transform: scale(1.05);
  }

  .mobile-menu-toggle:active {
    transform: scale(0.95);
  }

  .mobile-menu-toggle .material-symbols-rounded {
    font-size: 22px;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    order: 1;
    margin-left: 4px;
  }

  .mobile-actions:hover {
    background-color: var(--md-sys-color-surface-container-highest);
    transform: scale(1.05);
  }

  .mobile-actions:active {
    transform: scale(0.95);
  }

  .mobile-actions .material-symbols-rounded {
    font-size: 22px;
  }

  .header-actions-desktop {
    display: none;
  }

  .search-container {
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    order: 3;
  }

  .search-container.active {
    display: block;
  }

  .theme-toggle,
  .notes-button,
  .cart-button {
    display: none;
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--md-sys-color-surface);
    border-radius: 0 0 16px 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 99;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu-search {
    margin-bottom: 16px;
  }

  .mobile-menu-search .search-box {
    width: 100%;
    height: 48px;
    padding: 8px 12px;
  }

  .mobile-menu-search .search-input {
    font-size: 16px;
  }

  .mobile-menu-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background-color: var(--md-sys-color-surface-container);
    border: none;
    border-radius: 12px;
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }

  .mobile-menu-item:hover {
    background-color: var(--md-sys-color-surface-container-high);
    transform: scale(1.02);
  }

  .mobile-menu-item:active {
    transform: scale(0.98);
  }

  .mobile-menu-item .material-symbols-rounded {
    font-size: 24px;
    color: var(--md-sys-color-primary);
  }

  .mobile-menu-item span:not(.material-symbols-rounded):not(.notes-badge):not(.cart-badge) {
    font-size: 12px;
    font-weight: 500;
  }

  .mobile-menu-item .notes-badge,
  .mobile-menu-item .cart-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--md-sys-color-primary);
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .mobile-menu-item .notes-badge.show,
  .mobile-menu-item .cart-badge.show {
    display: flex;
  }

  .mobile-menu-item .theme-icon {
    position: static;
    font-size: 24px;
    display: none;
  }

  .mobile-menu-item .theme-icon.moon {
    display: block;
  }

  [data-theme="light"] .mobile-menu-item .theme-icon.sun {
    display: block;
  }

  [data-theme="light"] .mobile-menu-item .theme-icon.moon {
    display: none;
  }

  .container {
    padding: 0 16px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .page-title {
    font-size: 28px;
  }

  .info-modal {
    width: 95%;
    max-height: 90vh;
    border-radius: 24px;
  }

  .info-modal-content {
    padding: 24px 20px 20px;
  }

  .info-modal-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .info-modal-subtitle {
    font-size: 18px;
  }

  .info-modal-text,
  .info-modal-list li {
    font-size: 15px;
  }

  .recently-added-title {
    font-size: 20px;
  }

  .carousel-track {
    gap: 16px;
  }

  .carousel-track .card {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 250px;
  }

  .carousel-controls {
    gap: 6px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .collapse-btn {
    width: 28px;
    height: 28px;
  }

  .collapse-btn .material-symbols-rounded {
    font-size: 18px;
  }

  .categories-title {
    font-size: 20px;
  }

  .cart-modal {
    max-width: 95%;
    width: 95%;
    flex-direction: column;
    max-height: 90vh;
  }

  .cart-modal.expanded {
    max-width: 95%;
    max-height: 90vh;
  }

  .cart-main-content {
    width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 50vh;
  }

  .cart-modal.expanded .cart-main-content {
    border-radius: 20px 20px 0 0;
    max-height: 40vh;
  }

  .cart-modal .info-modal-content {
    padding: 20px;
    min-height: 150px;
  }

  .cart-modal .info-modal-title {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .cart-items {
    gap: 8px;
  }

  .cart-item {
    padding: 12px;
  }

  .cart-item-name {
    font-size: 14px;
  }

  .cart-item-category {
    font-size: 12px;
  }

  .cart-actions {
    flex-direction: column;
    padding-top: 12px;
  }

  .cart-clear-btn,
  .cart-pack-btn {
    width: 100%;
    padding: 14px 24px;
  }

  .cart-empty .material-symbols-rounded {
    font-size: 48px;
  }

  .cart-empty p {
    font-size: 14px;
  }

  .video-modal {
    max-width: 95vw;
    max-height: 85vh;
  }

  .video-modal .info-modal-close {
    top: -45px;
  }

  .category-header {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-toggle {
    align-self: flex-end;
  }

  .notes-button {
    display: none;
  }

  .notes-modal {
    width: 95%;
    max-width: 95%;
    aspect-ratio: auto;
    max-height: 80vh;
  }

  .lightrope li {
    width: 10px;
    height: 10px;
    margin: 0px 12px;
  }

  .lightrope li:after {
    width: 42px;
  }

  .cart-modal.active .assemblies-panel {
    display: none;
  }

  .cart-modal.active {
    max-width: 95%;
  }

  .cart-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cart-save-assembly-btn,
  .cart-clear-btn,
  .cart-pack-btn {
    width: 100%;
  }
}