@charset "UTF-8";
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul[role=list], ol[role=list] {
  list-style: none;
  padding: 0;
  margin: 0;
}

img, picture {
  max-width: 100%;
  display: block;
}

input, button, textarea, select {
  font: inherit;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
}

pre, code {
  font-family: var(--font-code);
}

html:focus-within {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Light Theme Variables - COMPLETE VERSION
   ========================================================================== */
[data-theme=light], :root {
  --color-bg: #F6F2FF;
  --color-bg-alt: #ece8f3;
  --color-panel: #fff;
  --color-surface: #f8f9fa;
  --language-menu-bg: #f5f5f5;
  --language-menu-fg: #222;
  --language-menu-border: #ddd;
  --language-menu-highlight: #e3f2fd;
  --color-border: #D1C8E3;
  --color-border-light: #e8e4ef;
  --color-border-strong: #b8aacc;
  --color-divider: rgba(209, 200, 227, 0.6);
  --color-hint: #072536;
  --color-fg: #072536;
  --color-fg-muted: #4d6270;
  --color-fg-subtle: #7a8691;
  --color-fg-disabled: #a0a7b4;
  --color-accent: #6A35FF;
  --color-accent-light: #BBAAFF;
  --color-accent-bg: #e6e0fa;
  --color-accent-hover: #5a2ed9;
  --color-accent-pressed: #4a2ab8;
  --color-btn-primary-bg: var(--color-accent);
  --color-btn-primary-fg: #ffffff;
  --color-btn-primary-hover: var(--color-accent-hover);
  --color-btn-secondary-bg: var(--color-bg-alt);
  --color-btn-secondary-fg: var(--color-accent);
  --color-btn-secondary-hover: var(--color-accent-bg);
  --color-btn-backup: #38d9a9;
  --color-btn-delete: #d72660;
  --color-btn-copy: #6A35FF;
  --color-btn-download: #3590FF;
  --color-btn-hover: #BBAAFF;
  --color-btn-back-bg: rgb(37, 37, 37);
  --color-btn-back-hover: rgb(58, 58, 58);
  --color-btn-back-text: #ffffff;
  --color-btn-back-text-hover: #ffffff;
  --color-success: #38d9a9;
  --color-success-bg: #e8f8f5;
  --color-success-text: #00695c;
  --color-success-border: #7dd3c0;
  --color-error: #d72660;
  --color-error-bg: #fdeef3;
  --color-error-text: #8b1538;
  --color-error-border: #faa8bb;
  --color-warning: #ffa600;
  --color-warning-bg: #fff8e6;
  --color-warning-text: #b8740a;
  --color-warning-border: #ffe599;
  --color-info: #3590FF;
  --color-info-bg: #e6f3ff;
  --color-info-text: #1976d2;
  --color-info-border: #b3d9ff;
  --color-status-healthy: #38d9a9;
  --color-status-healthy-bg: #e8f8f5;
  --color-status-healthy-shadow: rgba(56, 217, 169, 0.2);
  --color-status-warning: #ffa600;
  --color-status-warning-bg: #fff8e6;
  --color-status-warning-shadow: rgba(255, 166, 0, 0.3);
  --color-status-error: #d72660;
  --color-status-error-bg: #fdeef3;
  --color-status-error-shadow: rgba(215, 38, 96, 0.4);
  --color-status-unknown: #6b7280;
  --color-status-unknown-bg: #f3f4f6;
  --color-status-unknown-shadow: rgba(107, 114, 128, 0.2);
  --toast-info-bg: #ffffff;
  --toast-info-color: #072536;
  --toast-info-border: #D1C8E3;
  --toast-shadow: rgba(0, 0, 0, 0.1);
  --toast-success-bg: var(--color-success-bg);
  --toast-error-bg: var(--color-error-bg);
  --toast-warning-bg: var(--color-warning-bg);
  --color-badge-csharp: #7f5fff;
  --color-badge-javascript: #f7c945;
  --color-badge-python: #44aadd;
  --color-badge-markup: #e56969;
  --color-badge-json: #80cbc4;
  --color-badge-css: #42d392;
  --color-badge-html: #e44d26;
  --color-badge-php: #8892be;
  --color-badge-typescript: #2b7489;
  --color-badge-shell: #89e051;
  --color-badge-sql: #f29111;
  --color-badge-md: #083fa1;
  --color-badge-yaml: #f3b93f;
  --color-badge-xml: #f16529;
  --color-badge-rust: #dea584;
  --color-badge-go: #00acd7;
  --color-badge-java: #b07219;
  --color-badge-cpp: #659ad2;
  --color-badge-text: #999999;
  --color-badge-none: #888;
  --color-badge-beta-bg: #BBAAFF;
  --color-badge-beta-text: #452E77;
  --color-badge-stable-bg: #38d9a9;
  --color-badge-stable-text: #00382f;
  --color-badge-new-bg: #f7c945;
  --color-badge-new-text: #3b2e00;
  --color-badge-wip-bg: #ffa600;
  --color-badge-wip-text: #472a00;
  --color-badge-deprecated-bg: #d72660;
  --color-badge-deprecated-text: #ffffff;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.3);
  --transition-fast: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), color 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: background-color 350ms cubic-bezier(0.4, 0, 0.2, 1), color 350ms cubic-bezier(0.4, 0, 0.2, 1), border-color 350ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: background-color 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55), color 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55), border-color 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --color-footer-bg: #072536;
  --color-footer-fg: #F6F2FF;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;
  --space-56: 14rem;
  --space-64: 16rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  --font-weight-thin: 100;
  --font-weight-extralight: 200;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-base: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;
  --border-width: 1px;
  --border-width-0: 0;
  --border-width-2: 2px;
  --border-width-4: 4px;
  --border-width-8: 8px;
  --radius: 0.625em;
  --font-fluid-sm: clamp(0.8rem, 0.17vw + 0.76rem, 0.89rem);
  --font-fluid-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
  --font-fluid-lg: clamp(1.25rem, 0.61vw + 1.1rem, 1.58rem);
  --font-fluid-xl: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
}

[data-theme=dark] {
  --color-bg: #072536;
  --color-bg-alt: #0c3047;
  --color-panel: #12314a;
  --color-surface: #0f2a3d;
  --language-menu-bg: #22243a;
  --language-menu-fg: #f6f2ff;
  --language-menu-border: #3a3d53;
  --language-menu-highlight: #233;
  --color-border: #253A4D;
  --color-border-light: #1e2f3d;
  --color-border-strong: #34495e;
  --color-divider: rgba(37, 58, 77, 0.6);
  --color-fg: #F6F2FF;
  --color-fg-muted: #b5bad0;
  --color-fg-subtle: #8a92a8;
  --color-fg-disabled: #5a6270;
  --color-hint: #F6F2FF;
  --color-accent: #BBAAFF;
  --color-accent-light: #F6F2FF;
  --color-accent-bg: #241040;
  --color-accent-hover: #d4c7ff;
  --color-accent-pressed: #e8ddff;
  --color-btn-primary-bg: var(--color-accent);
  --color-btn-primary-fg: #072536;
  --color-btn-primary-hover: var(--color-accent-hover);
  --color-btn-secondary-bg: var(--color-bg-alt);
  --color-btn-secondary-fg: var(--color-accent);
  --color-btn-secondary-hover: var(--color-accent-bg);
  --color-btn-backup: #38d9a9;
  --color-btn-delete: #fa5b7b;
  --color-btn-copy: #BBAAFF;
  --color-btn-download: #8ec7ff;
  --color-btn-hover: #6A35FF;
  --color-btn-back-bg: #BBAAFF;
  --color-btn-back-hover: #F6F2FF;
  --color-btn-back-text: #072536;
  --color-btn-back-text-hover: #072536;
  --color-success: #38d9a9;
  --color-success-bg: #0d2d24;
  --color-success-text: #7dd3c0;
  --color-success-border: #2a5a4a;
  --color-error: #fa5b7b;
  --color-error-bg: #2d1419;
  --color-error-text: #faa8bb;
  --color-error-border: #5a2a33;
  --color-warning: #ffc857;
  --color-warning-bg: #2d2010;
  --color-warning-text: #ffe599;
  --color-warning-border: #5a4a20;
  --color-info: #8ec7ff;
  --color-info-bg: #0f1e2d;
  --color-info-text: #b3d9ff;
  --color-info-border: #1f3a5a;
  --color-status-healthy: #38d9a9;
  --color-status-healthy-bg: #0d2d24;
  --color-status-healthy-shadow: rgba(56, 217, 169, 0.3);
  --color-status-warning: #ffc857;
  --color-status-warning-bg: #2d2010;
  --color-status-warning-shadow: rgba(255, 200, 87, 0.4);
  --color-status-error: #fa5b7b;
  --color-status-error-bg: #2d1419;
  --color-status-error-shadow: rgba(250, 91, 123, 0.5);
  --color-status-unknown: #8a92a8;
  --color-status-unknown-bg: #1a1d24;
  --color-status-unknown-shadow: rgba(138, 146, 168, 0.3);
  --toast-info-bg: #1e1e1e;
  --toast-info-color: #ffffff;
  --toast-info-border: #333333;
  --toast-shadow: rgba(0, 0, 0, 0.3);
  --toast-success-bg: var(--color-success-bg);
  --toast-error-bg: var(--color-error-bg);
  --toast-warning-bg: var(--color-warning-bg);
  --color-badge-csharp: #ae8cff;
  --color-badge-javascript: #ffe066;
  --color-badge-python: #80d6ff;
  --color-badge-markup: #ffa3a3;
  --color-badge-json: #b7fff8;
  --color-badge-css: #a8ffde;
  --color-badge-html: #ff6b3d;
  --color-badge-php: #a6b8e8;
  --color-badge-typescript: #5fc8ff;
  --color-badge-shell: #b2ff7f;
  --color-badge-sql: #ffc266;
  --color-badge-md: #7dafff;
  --color-badge-yaml: #ffe17d;
  --color-badge-xml: #ff8a4c;
  --color-badge-rust: #f5cbaa;
  --color-badge-go: #5fd6ff;
  --color-badge-java: #e18f6b;
  --color-badge-cpp: #8cbfff;
  --color-badge-text: #bbbbbb;
  --color-badge-none: #aaaaaa;
  --color-badge-beta-bg: #6A35FF;
  --color-badge-beta-text: #F6F2FF;
  --color-badge-stable-bg: #38d9a9;
  --color-badge-stable-text: #00382f;
  --color-badge-new-bg: #ffe066;
  --color-badge-new-text: #241e00;
  --color-badge-wip-bg: #ffc857;
  --color-badge-wip-text: #2f2000;
  --color-badge-deprecated-bg: #fa5b7b;
  --color-badge-deprecated-text: #ffffff;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.7);
  --transition-fast: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), color 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: background-color 350ms cubic-bezier(0.4, 0, 0.2, 1), color 350ms cubic-bezier(0.4, 0, 0.2, 1), border-color 350ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: background-color 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55), color 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55), border-color 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --color-footer-bg: #F6F2FF;
  --color-footer-fg: #072536;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;
  --space-56: 14rem;
  --space-64: 16rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  --font-weight-thin: 100;
  --font-weight-extralight: 200;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-base: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;
  --border-width: 1px;
  --border-width-0: 0;
  --border-width-2: 2px;
  --border-width-4: 4px;
  --border-width-8: 8px;
  --radius: 0.625em;
  --font-fluid-sm: clamp(0.8rem, 0.17vw + 0.76rem, 0.89rem);
  --font-fluid-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
  --font-fluid-lg: clamp(1.25rem, 0.61vw + 1.1rem, 1.58rem);
  --font-fluid-xl: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
}

[data-theme=dark] ::-webkit-scrollbar {
  width: 10px;
  background: var(--color-bg-alt);
}
[data-theme=dark] ::-webkit-scrollbar-thumb {
  background: var(--color-accent-bg);
  border-radius: 8px;
}
[data-theme=dark] ::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

.u-text-left {
  text-align: left !important;
}

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

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

.u-font-light {
  font-weight: var(--font-weight-light) !important;
}

.u-font-normal {
  font-weight: var(--font-weight-normal) !important;
}

.u-font-medium {
  font-weight: var(--font-weight-medium) !important;
}

.u-font-bold {
  font-weight: var(--font-weight-bold) !important;
}

.u-m-0 {
  margin: 0 !important;
}

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

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

.u-ml-0 {
  margin-left: 0 !important;
}

.u-mr-0 {
  margin-right: 0 !important;
}

.u-mt-1 {
  margin-top: var(--space-1) !important;
}

.u-mb-1 {
  margin-bottom: var(--space-1) !important;
}

.u-mt-2 {
  margin-top: var(--space-2) !important;
}

.u-mb-2 {
  margin-bottom: var(--space-2) !important;
}

.u-p-0 {
  padding: 0 !important;
}

.u-pt-0 {
  padding-top: 0 !important;
}

.u-pb-0 {
  padding-bottom: 0 !important;
}

.u-pt-1 {
  padding-top: var(--space-1) !important;
}

.u-pb-1 {
  padding-bottom: var(--space-1) !important;
}

.u-flex {
  display: flex !important;
}

.u-inline-flex {
  display: inline-flex !important;
}

.u-block {
  display: block !important;
}

.u-inline-block {
  display: inline-block !important;
}

.u-hidden {
  display: none !important;
}

.u-flex-center {
  justify-content: center;
  align-items: center;
}

.u-flex-between {
  justify-content: space-between;
  align-items: center;
}

.u-flex-column {
  flex-direction: column;
}

.u-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/Inter-VariableFont_opsz_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/Inter-Italic-VariableFont_opsz_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Raleway";
  src: url("../fonts/Raleway/Raleway-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Raleway";
  src: url("../fonts/Raleway/Raleway-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Code";
  src: url("../fonts/FiraCode/FiraCode-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Mono";
  src: url("../fonts/FiraMono/FiraMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Mono";
  src: url("../fonts/FiraMono/FiraMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Mono";
  src: url("../fonts/FiraMono/FiraMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --font-primary: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-fallback: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: "Fira Code", "Fira Mono", ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", "Menlo", "Courier New", monospace;
  --font-code: "Fira Code", ui-monospace, "Source Code Pro", "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-otp: "Fira Mono", ui-monospace, "SF Mono", Monaco, "Lucida Console", "Liberation Mono", "Courier New", monospace;
}

.u-font-primary {
  font-family: var(--font-primary);
}

.u-font-fallback {
  font-family: var(--font-fallback);
}

.u-font-system {
  font-family: var(--font-system);
}

.u-font-mono {
  font-family: var(--font-mono);
}

.u-font-code {
  font-family: var(--font-code);
}

.u-font-otp {
  font-family: var(--font-otp);
}

@media (max-width: 768px) {
  :root {
    --font-size-base: 0.9rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.5rem;
    --font-size-4xl: 1.875rem;
  }
}
.font-performance {
  font-display: swap;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 0;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  transition: background-color var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal);
}

* {
  box-sizing: inherit;
}
*::before, *::after {
  box-sizing: inherit;
}

@media (max-width: 576px) {
  html {
    font-size: var(--font-fluid-sm);
  }
}
@media (max-width: 575px) {
  body {
    font-size: var(--font-fluid-sm);
  }
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-fg);
  margin: 0 0 var(--space-4) 0;
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin: 0 0 var(--space-4) 0;
  line-height: var(--line-height-normal);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-fast);
  border-radius: var(--radius-sm);
}
a:hover, a:focus {
  color: var(--color-accent-light);
  text-decoration: underline;
  outline: none;
}
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

button, input, select, textarea {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-fg);
  background: var(--color-panel);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-base);
  padding: var(--space-3) var(--space-4);
  transition: var(--transition-fast);
}
button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-accent);
}
button:disabled, input:disabled, select:disabled, textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: var(--color-fg-disabled);
  background: var(--color-bg-alt);
}

button {
  cursor: pointer;
  background: var(--color-btn-secondary-bg);
  color: var(--color-btn-secondary-fg);
  border: var(--border-width) solid var(--color-border);
  font-weight: var(--font-weight-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  user-select: none;
}
button:hover:not(:disabled) {
  background: var(--color-btn-secondary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
button:active {
  transform: translateY(0);
}
button.btn-primary {
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-fg);
  border-color: transparent;
}
button.btn-primary:hover:not(:disabled) {
  background: var(--color-btn-primary-hover);
}
button.btn-danger {
  background: var(--color-error);
  color: white;
  border-color: var(--color-error);
}
button.btn-danger:hover:not(:disabled) {
  filter: brightness(1.1);
}

code {
  font-family: var(--font-code);
  font-size: var(--font-size-sm);
  background: var(--color-bg-alt);
  color: var(--color-fg);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  border: var(--border-width) solid var(--color-border-light);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  background: var(--color-bg-alt);
  color: var(--color-fg);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  overflow-x: auto;
  border: var(--border-width) solid var(--color-border);
  line-height: var(--line-height-relaxed);
}
pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
}

kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  padding: var(--space-1) var(--space-2);
  margin-right: var(--space-1);
  white-space: nowrap;
  background: var(--color-panel);
  color: var(--color-fg);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-base);
  box-shadow: 0 2px 0 var(--color-border);
}
kbd.kbd--rounded {
  border-radius: var(--radius-base);
  line-height: var(--line-height-snug);
  padding: var(--space-2) var(--space-3);
  margin: 0 var(--space-1);
}

hr {
  border: none;
  border-top: var(--border-width) solid var(--color-border);
  margin: var(--space-8) 0;
  opacity: 0.8;
}

::-webkit-scrollbar {
  width: 12px;
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent-bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-bg-alt);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-bg) var(--color-bg-alt);
}

.content-wrapper {
  padding: var(--space-4);
  max-width: 90%;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 992px) {
  .content-wrapper {
    padding: var(--space-4);
  }
}
@media (max-width: 576px) {
  .content-wrapper {
    padding: var(--space-3);
  }
}
.ui-button-bar {
  margin: 1em 0 0em 1em;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.centered {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

.badge-beta {
  background: var(--color-badge-beta-bg);
  color: var(--color-badge-beta-text);
  border-radius: var(--radius-base);
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-left: var(--space-2);
  display: inline-block;
  box-shadow: var(--shadow-xs);
}

.footer-copyright {
  text-align: center;
  width: 100%;
  margin-top: var(--space-20);
  padding: var(--space-8) var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-fg-muted);
  background: linear-gradient(to right, transparent, var(--color-bg-alt) 20%, var(--color-bg-alt) 80%, transparent);
  border-top: var(--border-width) solid var(--color-border);
  box-shadow: inset 0 1px 0 var(--color-border);
  transition: var(--transition-normal);
}

.footer-copyright__text {
  margin: 0;
  padding: 0;
  letter-spacing: 0.04em;
  line-height: var(--line-height-relaxed);
  opacity: 0.9;
}
.footer-copyright__text::before {
  content: "© ";
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
}

@media (max-width: 576px) {
  .footer-copyright {
    font-size: var(--font-size-xs);
    padding: var(--space-6) 0 var(--space-8);
  }
}
.language-toggle-btn,
.theme-toggle-btn,
.feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  min-height: 42px;
  line-height: var(--line-height-snug);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  border: none;
  border-radius: var(--radius-base);
  background: var(--color-bg-alt);
  color: var(--color-accent);
  cursor: pointer;
  transition: var(--transition-fast);
  gap: var(--space-2);
}
.language-toggle-btn:hover, .language-toggle-btn.active,
.theme-toggle-btn:hover,
.theme-toggle-btn.active,
.feedback-btn:hover,
.feedback-btn.active {
  background: var(--color-accent);
  color: var(--color-panel);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.language-toggle-btn:focus,
.theme-toggle-btn:focus,
.feedback-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.language-toggle-btn {
  margin-left: 0;
}

.github-icon {
  color: var(--color-fg);
  transition: var(--transition-fast);
}

.card-button-github:hover .github-icon {
  color: var(--color-panel);
}

.shortcut {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.shortcut__desc {
  font-size: var(--font-size-sm);
  color: var(--color-fg-muted);
}

.code-output__code,
.code-output__samp {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-code);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-snug);
  border: var(--border-width) solid;
  border-radius: var(--radius-base);
}

.code-output__code {
  background-color: rgba(244, 189, 80, 0.2);
  border-color: #F4BD50;
  color: #1f1f1f;
}

.code-output__samp {
  background-color: rgba(184, 129, 255, 0.2);
  border-color: #B881FF;
  color: #452E77;
}

[data-theme=dark] .code-output__code {
  background-color: rgba(244, 189, 80, 0.15);
  border-color: #f4bd50;
  color: #f8e9c0;
}
[data-theme=dark] .code-output__samp {
  background-color: rgba(184, 129, 255, 0.15);
  border-color: #b881ff;
  color: #e2ccff;
}

body.reduce-motion,
body.reduce-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
  scroll-behavior: auto !important;
  transform: none !important;
}

@media (prefers-contrast: high) {
  button, input, select, textarea {
    border-width: 2px;
  }
  ::-webkit-scrollbar-thumb {
    border-width: 1px;
  }
}
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .theme-toggle-btn,
  .language-toggle-btn,
  .feedback-btn {
    display: none !important;
  }
}
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

body.theme-transition {
  transition: var(--transition-normal) !important;
}

.theme-transition * {
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), color 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes theme-switch-to-light {
  from {
    filter: brightness(0.8) contrast(1.1);
  }
  to {
    filter: brightness(1) contrast(1);
  }
}
@keyframes theme-switch-to-dark {
  from {
    filter: brightness(1.2) contrast(0.9);
  }
  to {
    filter: brightness(1) contrast(1);
  }
}
body.theme-switching {
  animation: theme-switch-to-light 0.3s ease-out;
}
body.theme-switching[data-theme=dark] {
  animation: theme-switch-to-dark 0.3s ease-out;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: var(--color-accent);
  cursor: pointer;
  transition: var(--transition-normal);
  overflow: hidden;
}
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.25rem;
  height: 1.25rem;
  transition: var(--transition-normal);
}
.theme-toggle .sun-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}
.theme-toggle .moon-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(180deg) scale(0);
}
.theme-toggle:hover {
  background-color: var(--color-accent-bg);
}
.theme-toggle:hover .sun-icon,
.theme-toggle:hover .moon-icon {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.1);
}

[data-theme=dark] .theme-toggle .sun-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-180deg) scale(0);
}
[data-theme=dark] .theme-toggle .moon-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
  }
}
.theme-light {
  color-scheme: light;
}

.theme-dark {
  color-scheme: dark;
}

@media (prefers-contrast: high) {
  :root {
    --color-border: #000000;
    --color-border-light: #333333;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
  [data-theme=dark] {
    --color-border: #ffffff;
    --color-border-light: #cccccc;
    --color-fg: #ffffff;
    --color-bg: #000000;
  }
}
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateZ(0);
    will-change: transform;
  }
  50% {
    transform: translateY(-10px) translateZ(0);
  }
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0) translateZ(0);
    will-change: transform;
  }
  50% {
    transform: translateY(-15px) translateZ(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    will-change: transform, opacity;
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--color-accent), 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--color-accent), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--color-accent), 0);
  }
}
.global-back-button {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 9000;
  vertical-align: middle;
  line-height: 1;
  padding: 6px 16px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  font-weight: bold;
  font-family: inherit;
  border-radius: 6px;
  background: var(--color-btn-back-bg);
  color: var(--color-btn-back-text);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 250ms ease;
}
.global-back-button:hover {
  background: var(--color-btn-back-hover);
  color: var(--color-btn-back-text-hover);
}
.global-back-button.transparent {
  opacity: 0.6;
}
.global-back-button.relative-mode {
  position: relative;
  top: 0;
  left: 0;
}
.global-back-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

[data-theme=dark] .global-back-button {
  box-shadow: 0 2px 6px rgba(187, 170, 255, 0.25);
}
[data-theme=dark] .global-back-button:hover {
  box-shadow: 0 4px 10px rgba(187, 170, 255, 0.35);
}

.language-menu-overlay button {
  padding: 6px 12px;
  min-width: 48px;
  z-index: 9999;
  text-align: center;
  background: var(--color-btn-bg);
  color: var(--color-btn-text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
  user-select: none;
  touch-action: manipulation;
}
.language-menu-overlay button:hover {
  background: var(--color-btn-hover-bg);
}

#languageToggleBtn, #languageToggleBtn * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

.tooltip-module__tooltip {
  position: absolute;
  z-index: 9999;
  display: block;
  padding: 6px 12px;
  font-size: 0.92em;
  border-radius: 6px;
  background: var(--color-hint);
  color: var(--color-panel);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  pointer-events: none;
  font-family: inherit;
  white-space: nowrap;
  backdrop-filter: blur(2px);
  opacity: 0;
  transform: translateY(4px);
  visibility: hidden;
  transition: opacity 300ms ease, transform 300ms ease, visibility 0s linear 300ms;
}
.tooltip-module__tooltip--visible {
  opacity: 1;
  transform: translateY(8px);
  visibility: visible;
  transition: opacity 300ms ease, transform 300ms ease, visibility 0s linear 0s;
}
.tooltip-module__tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--color-hint);
}

.footer-snark {
  position: fixed;
  bottom: 0;
  background: var(--color-footer-bg, rgba(20, 20, 20, 0.884));
  color: var(--color-footer-fg, rgba(226, 226, 226, 0.911));
  font-weight: bold;
  font-family: "Inter", "Raleway", Arial, sans-serif;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 1em 1em 0 0;
  font-style: italic;
  text-align: center;
  z-index: 9999;
  transition: background 0.3s, color 0.3s;
  left: 3%;
  transform: translateX(-3%);
  cursor: pointer;
  user-select: none;
}
.footer-snark:hover {
  transform: translateX(-3%) scale(1.02);
}

.flying-heart {
  position: fixed;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 10000;
  opacity: 1;
  user-select: none;
}

.theme-menu-overlay {
  position: absolute;
  padding: 8px;
  z-index: 9999;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  max-width: 280px;
}
.theme-menu-overlay button {
  padding: 6px 12px;
  min-width: 48px;
  text-align: center;
  background: var(--color-btn-bg);
  color: var(--color-btn-text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
  margin: 4px;
  user-select: none;
  touch-action: manipulation;
}
.theme-menu-overlay button:hover {
  background: var(--color-btn-hover-bg);
}

.theme-menu-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 4px;
  border-radius: 4px;
  cursor: pointer;
}
.theme-menu-checkbox input[type=checkbox] {
  accent-color: var(--color-accent);
}

#themeToggleBtn, #themeToggleBtn * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 9999;
}
#themeToggleBtn > *, #themeToggleBtn * > * {
  pointer-events: none;
}

#note_files {
  display: none;
}

.translation-progress-badge {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1999;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb, 106, 53, 255), 0.1) 0%, rgba(var(--color-accent-rgb, 106, 53, 255), 0.05) 100%);
  color: var(--color-accent);
  border: 1px solid rgba(var(--color-accent-rgb, 106, 53, 255), 0.2);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(var(--color-accent-rgb, 106, 53, 255), 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.translation-progress-badge .badge-icon {
  font-size: 0.875rem;
  animation: translation-pulse 3s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.translation-progress-badge .badge-text {
  white-space: nowrap;
  font-family: var(--font-family-ui, "Inter", -apple-system, sans-serif);
  letter-spacing: 0.025em;
}
.translation-progress-badge:hover {
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb, 106, 53, 255), 0.15) 0%, rgba(var(--color-accent-rgb, 106, 53, 255), 0.08) 100%);
  border-color: rgba(var(--color-accent-rgb, 106, 53, 255), 0.3);
  box-shadow: 0 4px 16px rgba(var(--color-accent-rgb, 106, 53, 255), 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
}
.translation-progress-badge:hover .badge-icon {
  animation-duration: 1.5s;
  transform: scale(1.1);
}
.translation-progress-badge:active {
  transform: translateX(-50%) scale(0.98);
}
.translation-progress-badge:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .translation-progress-badge {
    top: auto;
    left: auto;
    right: 1rem;
    transform: none;
  }
  .translation-progress-badge.mobile-under-prism {
    top: 70px;
    left: auto;
    right: 1rem;
    transform: none;
  }
}
@media (max-width: 480px) {
  .translation-progress-badge {
    padding: 0.375rem;
    border-radius: 50%;
  }
  .translation-progress-badge .badge-text {
    display: none;
  }
  .translation-progress-badge .badge-icon {
    font-size: 0.875rem;
  }
  .translation-progress-badge.mobile-under-prism {
    right: 0.75rem;
  }
}
[dir=rtl] .translation-progress-badge {
  left: 50%;
  transform: translateX(-50%);
}

[data-theme=dark] .translation-progress-badge {
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb, 187, 170, 255), 0.12) 0%, rgba(var(--color-accent-rgb, 187, 170, 255), 0.06) 100%);
  border-color: rgba(var(--color-accent-rgb, 187, 170, 255), 0.25);
  box-shadow: 0 2px 8px rgba(var(--color-accent-rgb, 187, 170, 255), 0.2), 0 1px 3px rgba(0, 0, 0, 0.3);
}
[data-theme=dark] .translation-progress-badge:hover {
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb, 187, 170, 255), 0.18) 0%, rgba(var(--color-accent-rgb, 187, 170, 255), 0.1) 100%);
  border-color: rgba(var(--color-accent-rgb, 187, 170, 255), 0.35);
  box-shadow: 0 4px 16px rgba(var(--color-accent-rgb, 187, 170, 255), 0.3), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.ui-button-bar .referral-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 8px;
  min-height: 42px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  text-decoration: none;
  user-select: none;
  touch-action: manipulation;
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #4d3800;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ui-button-bar .referral-btn .referral-icon {
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ui-button-bar .referral-btn .referral-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  font-weight: 700;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ui-button-bar .referral-btn:hover {
  padding: 6px 12px;
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffb347, #ff9500);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.5);
}
.ui-button-bar .referral-btn:hover .referral-icon {
  transform: scale(1.1);
  animation: referral-sparkle 0.8s ease-in-out;
}
.ui-button-bar .referral-btn:hover .referral-text {
  max-width: 100px;
  opacity: 1;
  margin-left: 0.5rem;
}
.ui-button-bar .referral-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .ui-button-bar .referral-btn .referral-text {
    display: none !important;
  }
  .ui-button-bar .referral-btn:hover {
    padding: 6px 8px !important;
  }
}
.ui-button-bar .login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 8px;
  min-height: 42px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  text-decoration: none;
  user-select: none;
  touch-action: manipulation;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(var(--color-accent-rgb), 0.2);
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ui-button-bar .login-btn .login-icon {
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ui-button-bar .login-btn .login-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  font-weight: 600;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ui-button-bar .login-btn:hover {
  padding: 6px 12px;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--color-accent-rgb), 0.3);
}
.ui-button-bar .login-btn:hover .login-icon {
  transform: scale(1.1);
}
.ui-button-bar .login-btn:hover .login-text {
  max-width: 80px;
  opacity: 1;
  margin-left: 0.5rem;
}
@media (max-width: 640px) {
  .ui-button-bar .login-btn .login-text {
    display: none !important;
  }
  .ui-button-bar .login-btn:hover {
    padding: 6px 8px !important;
  }
}
.ui-button-bar .create-note-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 8px;
  min-height: 42px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  text-decoration: none;
  user-select: none;
  touch-action: manipulation;
  background: linear-gradient(135deg, #00ff88, #00cc44);
  color: #003d1a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 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);
}
.ui-button-bar .create-note-btn .create-note-icon {
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ui-button-bar .create-note-btn .create-note-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  font-weight: 700;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ui-button-bar .create-note-btn:hover {
  padding: 6px 12px;
  transform: translateY(-2px);
  background: linear-gradient(135deg, #00cc44, #00aa33);
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.4);
}
.ui-button-bar .create-note-btn:hover .create-note-icon {
  transform: scale(1.1);
  animation: create-note-sparkle 0.8s ease-in-out;
}
.ui-button-bar .create-note-btn:hover .create-note-text {
  max-width: 120px;
  opacity: 1;
  margin-left: 0.5rem;
}
@media (max-width: 640px) {
  .ui-button-bar .create-note-btn .create-note-text {
    display: none !important;
  }
  .ui-button-bar .create-note-btn:hover {
    padding: 6px 8px !important;
  }
}
.ui-button-bar .dashboard-btn, .ui-button-bar .feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 8px;
  min-height: 42px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  text-decoration: none;
  user-select: none;
  touch-action: manipulation;
  cursor: pointer;
  border: none;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 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);
}
.ui-button-bar .dashboard-btn .dashboard-icon, .ui-button-bar .dashboard-btn .feedback-icon, .ui-button-bar .feedback-btn .dashboard-icon, .ui-button-bar .feedback-btn .feedback-icon {
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ui-button-bar .dashboard-btn .dashboard-text, .ui-button-bar .dashboard-btn .feedback-text, .ui-button-bar .feedback-btn .dashboard-text, .ui-button-bar .feedback-btn .feedback-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  font-weight: 600;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ui-button-bar .dashboard-btn:hover, .ui-button-bar .feedback-btn:hover {
  padding: 6px 12px;
}
.ui-button-bar .dashboard-btn:hover .dashboard-icon, .ui-button-bar .dashboard-btn:hover .feedback-icon, .ui-button-bar .feedback-btn:hover .dashboard-icon, .ui-button-bar .feedback-btn:hover .feedback-icon {
  transform: scale(1.1);
}
.ui-button-bar .dashboard-btn:hover .dashboard-text, .ui-button-bar .dashboard-btn:hover .feedback-text, .ui-button-bar .feedback-btn:hover .dashboard-text, .ui-button-bar .feedback-btn:hover .feedback-text {
  max-width: 100px;
  opacity: 1;
  margin-left: 0.5rem;
}
.ui-button-bar .dashboard-btn.dashboard-btn--free {
  background: var(--color-bg-alt);
  color: var(--color-fg);
  border: 1px solid var(--color-border);
}
.ui-button-bar .dashboard-btn.dashboard-btn--free:hover {
  background: var(--color-accent-bg);
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.ui-button-bar .dashboard-btn.dashboard-btn--plus {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ui-button-bar .dashboard-btn.dashboard-btn--plus:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  transform: translateY(-1px);
}
.ui-button-bar .dashboard-btn.dashboard-btn--pro {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.ui-button-bar .dashboard-btn.dashboard-btn--pro:hover {
  background: linear-gradient(135deg, #e879f9, #ec4899);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}
.ui-button-bar .feedback-btn {
  background: var(--color-bg-alt);
  color: var(--color-fg-muted);
  border: 1px solid var(--color-border);
}
.ui-button-bar .feedback-btn:hover {
  background: var(--color-accent-bg);
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.ui-button-bar .feedback-btn:hover .feedback-icon {
  animation: feedback-wiggle 0.6s ease-in-out;
}
.ui-button-bar .feedback-btn:active {
  transform: translateY(0);
}
.ui-button-bar .feedback-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .ui-button-bar .dashboard-btn .dashboard-text, .ui-button-bar .dashboard-btn .feedback-text, .ui-button-bar .feedback-btn .dashboard-text, .ui-button-bar .feedback-btn .feedback-text {
    display: none !important;
  }
  .ui-button-bar .dashboard-btn:hover, .ui-button-bar .feedback-btn:hover {
    padding: 6px 8px !important;
  }
}

.bottom-right-stack {
  position: fixed;
  bottom: 6rem;
  right: 1.75rem;
  z-index: 9997;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
@media (max-width: 768px) {
  .bottom-right-stack {
    bottom: 70px;
    right: 1rem;
    gap: 6px;
  }
}

.blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  user-select: none;
  touch-action: manipulation;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-btn .blog-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.blog-btn .blog-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  font-size: 0.875rem;
  font-weight: 600;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-btn:hover {
  width: 120px;
  transform: translateY(-2px) translateX(-10px);
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
}
.blog-btn:hover .blog-icon {
  transform: scale(1.1);
}
.blog-btn:hover .blog-text {
  max-width: 60px;
  opacity: 1;
  margin-left: 0.5rem;
}
@media (max-width: 640px) {
  .blog-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .blog-btn:hover {
    width: 44px !important;
    transform: translateY(-1px);
  }
  .blog-btn:hover .blog-text {
    display: none !important;
  }
}

.roadmap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  user-select: none;
  touch-action: manipulation;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.roadmap-btn .roadmap-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.roadmap-btn .roadmap-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  font-size: 0.875rem;
  font-weight: 600;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.roadmap-btn:hover {
  width: 140px;
  transform: translateY(-2px) translateX(-15px);
  background: linear-gradient(135deg, #e879f9, #ec4899);
  box-shadow: 0 4px 16px rgba(240, 147, 251, 0.5);
}
.roadmap-btn:hover .roadmap-icon {
  transform: scale(1.1);
}
.roadmap-btn:hover .roadmap-text {
  max-width: 80px;
  opacity: 1;
  margin-left: 0.5rem;
}
@media (max-width: 640px) {
  .roadmap-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .roadmap-btn:hover {
    width: 44px !important;
    transform: translateY(-1px);
  }
  .roadmap-btn:hover .roadmap-text {
    display: none !important;
  }
}

.visitenkarte-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  user-select: none;
  touch-action: manipulation;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.visitenkarte-btn .visitenkarte-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.visitenkarte-btn .visitenkarte-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  font-size: 0.875rem;
  font-weight: 600;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.visitenkarte-btn:hover {
  width: 160px;
  transform: translateY(-2px) translateX(-20px);
  background: linear-gradient(135deg, #209cff, #68e0cf);
  box-shadow: 0 4px 16px rgba(79, 172, 254, 0.5);
}
.visitenkarte-btn:hover .visitenkarte-icon {
  transform: scale(1.1);
}
.visitenkarte-btn:hover .visitenkarte-text {
  max-width: 100px;
  opacity: 1;
  margin-left: 0.5rem;
}
@media (max-width: 640px) {
  .visitenkarte-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .visitenkarte-btn:hover {
    width: 44px !important;
    transform: translateY(-1px);
  }
  .visitenkarte-btn:hover .visitenkarte-text {
    display: none !important;
  }
}

.github-circle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-fg);
  color: var(--color-panel);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.github-circle .github-logo {
  width: 1.8rem;
  height: 1.8rem;
  transition: transform 0.2s ease;
}
.github-circle:hover {
  border-radius: 1rem;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  background: var(--color-accent);
}
.github-circle:hover .github-logo {
  transform: scale(1.1);
}
.github-circle:active {
  transform: scale(0.95);
}
@media (max-width: 768px) {
  .github-circle {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }
  .github-circle .github-logo {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@keyframes translation-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}
@keyframes feedback-wiggle {
  0% {
    transform: scale(1.1) rotate(0deg);
  }
  25% {
    transform: scale(1.15) rotate(-2deg);
  }
  50% {
    transform: scale(1.1) rotate(2deg);
  }
  75% {
    transform: scale(1.15) rotate(-1deg);
  }
  100% {
    transform: scale(1.1) rotate(0deg);
  }
}
@keyframes create-note-sparkle {
  0% {
    transform: scale(1.1) rotate(0deg);
  }
  25% {
    transform: scale(1.2) rotate(-5deg);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
  }
  75% {
    transform: scale(1.2) rotate(-2deg);
  }
  100% {
    transform: scale(1.1) rotate(0deg);
  }
}
@keyframes referral-sparkle {
  0% {
    transform: scale(1.1) rotate(0deg);
  }
  25% {
    transform: scale(1.2) rotate(-3deg);
  }
  50% {
    transform: scale(1.15) rotate(3deg);
  }
  75% {
    transform: scale(1.2) rotate(-1deg);
  }
  100% {
    transform: scale(1.1) rotate(0deg);
  }
}
[data-theme=dark] .github-circle {
  background: var(--color-panel);
  color: var(--color-fg);
}
[data-theme=dark] .github-circle:hover {
  background: var(--color-accent-light);
  color: var(--color-bg);
}
[data-theme=dark] .ui-button-bar .referral-btn:hover {
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
}
[data-theme=dark] .ui-button-bar .dashboard-btn:hover, [data-theme=dark] .ui-button-bar .feedback-btn:hover {
  box-shadow: 0 2px 8px rgba(var(--color-accent-rgb), 0.2);
}
[data-theme=dark] .blog-btn:hover {
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.6);
}
[data-theme=dark] .roadmap-btn:hover {
  box-shadow: 0 4px 16px rgba(240, 147, 251, 0.6);
}
[data-theme=dark] .visitenkarte-btn:hover {
  box-shadow: 0 4px 16px rgba(79, 172, 254, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .translation-progress-badge {
    transition: none;
  }
  .translation-progress-badge .badge-icon {
    animation: none;
  }
  .translation-progress-badge:hover .badge-icon {
    transform: none;
    animation: none;
  }
  .ui-button-bar .referral-btn, .ui-button-bar .login-btn, .ui-button-bar .create-note-btn, .ui-button-bar .dashboard-btn, .ui-button-bar .feedback-btn {
    transition: background 0.2s ease !important;
  }
  .ui-button-bar .referral-btn .referral-icon, .ui-button-bar .referral-btn .login-icon, .ui-button-bar .referral-btn .create-note-icon, .ui-button-bar .referral-btn .dashboard-icon, .ui-button-bar .referral-btn .feedback-icon, .ui-button-bar .login-btn .referral-icon, .ui-button-bar .login-btn .login-icon, .ui-button-bar .login-btn .create-note-icon, .ui-button-bar .login-btn .dashboard-icon, .ui-button-bar .login-btn .feedback-icon, .ui-button-bar .create-note-btn .referral-icon, .ui-button-bar .create-note-btn .login-icon, .ui-button-bar .create-note-btn .create-note-icon, .ui-button-bar .create-note-btn .dashboard-icon, .ui-button-bar .create-note-btn .feedback-icon, .ui-button-bar .dashboard-btn .referral-icon, .ui-button-bar .dashboard-btn .login-icon, .ui-button-bar .dashboard-btn .create-note-icon, .ui-button-bar .dashboard-btn .dashboard-icon, .ui-button-bar .dashboard-btn .feedback-icon, .ui-button-bar .feedback-btn .referral-icon, .ui-button-bar .feedback-btn .login-icon, .ui-button-bar .feedback-btn .create-note-icon, .ui-button-bar .feedback-btn .dashboard-icon, .ui-button-bar .feedback-btn .feedback-icon {
    transition: none !important;
    animation: none !important;
  }
  .ui-button-bar .referral-btn .referral-text, .ui-button-bar .referral-btn .login-text, .ui-button-bar .referral-btn .create-note-text, .ui-button-bar .referral-btn .dashboard-text, .ui-button-bar .referral-btn .feedback-text, .ui-button-bar .login-btn .referral-text, .ui-button-bar .login-btn .login-text, .ui-button-bar .login-btn .create-note-text, .ui-button-bar .login-btn .dashboard-text, .ui-button-bar .login-btn .feedback-text, .ui-button-bar .create-note-btn .referral-text, .ui-button-bar .create-note-btn .login-text, .ui-button-bar .create-note-btn .create-note-text, .ui-button-bar .create-note-btn .dashboard-text, .ui-button-bar .create-note-btn .feedback-text, .ui-button-bar .dashboard-btn .referral-text, .ui-button-bar .dashboard-btn .login-text, .ui-button-bar .dashboard-btn .create-note-text, .ui-button-bar .dashboard-btn .dashboard-text, .ui-button-bar .dashboard-btn .feedback-text, .ui-button-bar .feedback-btn .referral-text, .ui-button-bar .feedback-btn .login-text, .ui-button-bar .feedback-btn .create-note-text, .ui-button-bar .feedback-btn .dashboard-text, .ui-button-bar .feedback-btn .feedback-text {
    transition: opacity 0.2s ease !important;
  }
  .ui-button-bar .referral-btn:hover, .ui-button-bar .login-btn:hover, .ui-button-bar .create-note-btn:hover, .ui-button-bar .dashboard-btn:hover, .ui-button-bar .feedback-btn:hover {
    transform: none !important;
  }
  .ui-button-bar .referral-btn:hover .referral-icon, .ui-button-bar .referral-btn:hover .login-icon, .ui-button-bar .referral-btn:hover .create-note-icon, .ui-button-bar .referral-btn:hover .dashboard-icon, .ui-button-bar .referral-btn:hover .feedback-icon, .ui-button-bar .login-btn:hover .referral-icon, .ui-button-bar .login-btn:hover .login-icon, .ui-button-bar .login-btn:hover .create-note-icon, .ui-button-bar .login-btn:hover .dashboard-icon, .ui-button-bar .login-btn:hover .feedback-icon, .ui-button-bar .create-note-btn:hover .referral-icon, .ui-button-bar .create-note-btn:hover .login-icon, .ui-button-bar .create-note-btn:hover .create-note-icon, .ui-button-bar .create-note-btn:hover .dashboard-icon, .ui-button-bar .create-note-btn:hover .feedback-icon, .ui-button-bar .dashboard-btn:hover .referral-icon, .ui-button-bar .dashboard-btn:hover .login-icon, .ui-button-bar .dashboard-btn:hover .create-note-icon, .ui-button-bar .dashboard-btn:hover .dashboard-icon, .ui-button-bar .dashboard-btn:hover .feedback-icon, .ui-button-bar .feedback-btn:hover .referral-icon, .ui-button-bar .feedback-btn:hover .login-icon, .ui-button-bar .feedback-btn:hover .create-note-icon, .ui-button-bar .feedback-btn:hover .dashboard-icon, .ui-button-bar .feedback-btn:hover .feedback-icon {
    animation: none !important;
    transform: none !important;
  }
  .blog-btn, .roadmap-btn, .visitenkarte-btn {
    transition: background 0.2s ease !important;
  }
  .blog-btn .blog-icon, .blog-btn .roadmap-icon, .blog-btn .visitenkarte-icon, .roadmap-btn .blog-icon, .roadmap-btn .roadmap-icon, .roadmap-btn .visitenkarte-icon, .visitenkarte-btn .blog-icon, .visitenkarte-btn .roadmap-icon, .visitenkarte-btn .visitenkarte-icon {
    transition: none !important;
    animation: none !important;
  }
  .blog-btn .blog-text, .blog-btn .roadmap-text, .blog-btn .visitenkarte-text, .roadmap-btn .blog-text, .roadmap-btn .roadmap-text, .roadmap-btn .visitenkarte-text, .visitenkarte-btn .blog-text, .visitenkarte-btn .roadmap-text, .visitenkarte-btn .visitenkarte-text {
    transition: opacity 0.2s ease !important;
  }
  .blog-btn:hover, .roadmap-btn:hover, .visitenkarte-btn:hover {
    transform: none !important;
  }
  .blog-btn:hover .blog-icon, .blog-btn:hover .roadmap-icon, .blog-btn:hover .visitenkarte-icon, .roadmap-btn:hover .blog-icon, .roadmap-btn:hover .roadmap-icon, .roadmap-btn:hover .visitenkarte-icon, .visitenkarte-btn:hover .blog-icon, .visitenkarte-btn:hover .roadmap-icon, .visitenkarte-btn:hover .visitenkarte-icon {
    animation: none !important;
    transform: none !important;
  }
}
body.reduce-motion .translation-progress-badge {
  transition: none !important;
}
body.reduce-motion .translation-progress-badge .badge-icon {
  animation: none !important;
}
body.reduce-motion .translation-progress-badge:hover .badge-icon {
  transform: none !important;
  animation: none !important;
}
body.reduce-motion .ui-button-bar .referral-btn, body.reduce-motion .ui-button-bar .login-btn, body.reduce-motion .ui-button-bar .create-note-btn, body.reduce-motion .ui-button-bar .dashboard-btn, body.reduce-motion .ui-button-bar .feedback-btn {
  transition: background 0.2s ease !important;
}
body.reduce-motion .ui-button-bar .referral-btn .referral-icon, body.reduce-motion .ui-button-bar .referral-btn .login-icon, body.reduce-motion .ui-button-bar .referral-btn .create-note-icon, body.reduce-motion .ui-button-bar .referral-btn .dashboard-icon, body.reduce-motion .ui-button-bar .referral-btn .feedback-icon, body.reduce-motion .ui-button-bar .login-btn .referral-icon, body.reduce-motion .ui-button-bar .login-btn .login-icon, body.reduce-motion .ui-button-bar .login-btn .create-note-icon, body.reduce-motion .ui-button-bar .login-btn .dashboard-icon, body.reduce-motion .ui-button-bar .login-btn .feedback-icon, body.reduce-motion .ui-button-bar .create-note-btn .referral-icon, body.reduce-motion .ui-button-bar .create-note-btn .login-icon, body.reduce-motion .ui-button-bar .create-note-btn .create-note-icon, body.reduce-motion .ui-button-bar .create-note-btn .dashboard-icon, body.reduce-motion .ui-button-bar .create-note-btn .feedback-icon, body.reduce-motion .ui-button-bar .dashboard-btn .referral-icon, body.reduce-motion .ui-button-bar .dashboard-btn .login-icon, body.reduce-motion .ui-button-bar .dashboard-btn .create-note-icon, body.reduce-motion .ui-button-bar .dashboard-btn .dashboard-icon, body.reduce-motion .ui-button-bar .dashboard-btn .feedback-icon, body.reduce-motion .ui-button-bar .feedback-btn .referral-icon, body.reduce-motion .ui-button-bar .feedback-btn .login-icon, body.reduce-motion .ui-button-bar .feedback-btn .create-note-icon, body.reduce-motion .ui-button-bar .feedback-btn .dashboard-icon, body.reduce-motion .ui-button-bar .feedback-btn .feedback-icon {
  transition: none !important;
  animation: none !important;
}
body.reduce-motion .ui-button-bar .referral-btn:hover, body.reduce-motion .ui-button-bar .login-btn:hover, body.reduce-motion .ui-button-bar .create-note-btn:hover, body.reduce-motion .ui-button-bar .dashboard-btn:hover, body.reduce-motion .ui-button-bar .feedback-btn:hover {
  transform: none !important;
}
body.reduce-motion .ui-button-bar .referral-btn:hover .referral-icon, body.reduce-motion .ui-button-bar .referral-btn:hover .login-icon, body.reduce-motion .ui-button-bar .referral-btn:hover .create-note-icon, body.reduce-motion .ui-button-bar .referral-btn:hover .dashboard-icon, body.reduce-motion .ui-button-bar .referral-btn:hover .feedback-icon, body.reduce-motion .ui-button-bar .login-btn:hover .referral-icon, body.reduce-motion .ui-button-bar .login-btn:hover .login-icon, body.reduce-motion .ui-button-bar .login-btn:hover .create-note-icon, body.reduce-motion .ui-button-bar .login-btn:hover .dashboard-icon, body.reduce-motion .ui-button-bar .login-btn:hover .feedback-icon, body.reduce-motion .ui-button-bar .create-note-btn:hover .referral-icon, body.reduce-motion .ui-button-bar .create-note-btn:hover .login-icon, body.reduce-motion .ui-button-bar .create-note-btn:hover .create-note-icon, body.reduce-motion .ui-button-bar .create-note-btn:hover .dashboard-icon, body.reduce-motion .ui-button-bar .create-note-btn:hover .feedback-icon, body.reduce-motion .ui-button-bar .dashboard-btn:hover .referral-icon, body.reduce-motion .ui-button-bar .dashboard-btn:hover .login-icon, body.reduce-motion .ui-button-bar .dashboard-btn:hover .create-note-icon, body.reduce-motion .ui-button-bar .dashboard-btn:hover .dashboard-icon, body.reduce-motion .ui-button-bar .dashboard-btn:hover .feedback-icon, body.reduce-motion .ui-button-bar .feedback-btn:hover .referral-icon, body.reduce-motion .ui-button-bar .feedback-btn:hover .login-icon, body.reduce-motion .ui-button-bar .feedback-btn:hover .create-note-icon, body.reduce-motion .ui-button-bar .feedback-btn:hover .dashboard-icon, body.reduce-motion .ui-button-bar .feedback-btn:hover .feedback-icon {
  animation: none !important;
  transform: none !important;
}
body.reduce-motion .blog-btn, body.reduce-motion .roadmap-btn, body.reduce-motion .visitenkarte-btn {
  transition: background 0.2s ease !important;
}
body.reduce-motion .blog-btn .blog-icon, body.reduce-motion .blog-btn .roadmap-icon, body.reduce-motion .blog-btn .visitenkarte-icon, body.reduce-motion .roadmap-btn .blog-icon, body.reduce-motion .roadmap-btn .roadmap-icon, body.reduce-motion .roadmap-btn .visitenkarte-icon, body.reduce-motion .visitenkarte-btn .blog-icon, body.reduce-motion .visitenkarte-btn .roadmap-icon, body.reduce-motion .visitenkarte-btn .visitenkarte-icon {
  transition: none !important;
  animation: none !important;
}
body.reduce-motion .blog-btn:hover, body.reduce-motion .roadmap-btn:hover, body.reduce-motion .visitenkarte-btn:hover {
  transform: none !important;
}
body.reduce-motion .blog-btn:hover .blog-icon, body.reduce-motion .blog-btn:hover .roadmap-icon, body.reduce-motion .blog-btn:hover .visitenkarte-icon, body.reduce-motion .roadmap-btn:hover .blog-icon, body.reduce-motion .roadmap-btn:hover .roadmap-icon, body.reduce-motion .roadmap-btn:hover .visitenkarte-icon, body.reduce-motion .visitenkarte-btn:hover .blog-icon, body.reduce-motion .visitenkarte-btn:hover .roadmap-icon, body.reduce-motion .visitenkarte-btn:hover .visitenkarte-icon {
  animation: none !important;
  transform: none !important;
}

/* 🛡️ prism SECURITY BADGE MODULE STYLES v3.4.0 */
.prism-security-badge {
  position: fixed;
  top: 1em;
  right: 1em;
  background: var(--color-btn-back-bg);
  color: var(--color-btn-back-text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
  white-space: nowrap;
  max-width: 200px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  user-select: none;
  font-family: "Inter", "Segoe UI", sans-serif;
  opacity: 1;
}
.prism-security-badge.badge-error {
  background: var(--color-status-error);
  color: white;
  animation: prismErrorBadgePulse 1.5s infinite;
}
.prism-security-badge.badge-warning, .prism-security-badge.badge-healthy {
  background: var(--color-btn-back-bg);
  color: var(--color-btn-back-text);
}
.prism-security-badge.collapsed {
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
}
.prism-security-badge:hover, .prism-security-badge.show-text {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  max-width: 200px;
  width: auto;
  font-size: 0.8rem;
  box-shadow: var(--shadow-lg);
}
.prism-security-badge.badge-healthy:hover, .prism-security-badge.badge-healthy.show-text {
  background: var(--color-btn-back-hover);
  color: var(--color-btn-back-text-hover);
}
.prism-security-badge.badge-warning:hover, .prism-security-badge.badge-warning.show-text {
  background: var(--color-btn-back-hover);
  color: var(--color-btn-back-text-hover);
}
.prism-security-badge.badge-error:hover, .prism-security-badge.badge-error.show-text {
  background: var(--color-status-error);
  color: white;
  box-shadow: 0 6px 24px var(--color-status-error-shadow);
}
.prism-security-badge.active {
  animation: prismPulse 2s infinite;
}
.prism-security-badge.recovered {
  animation: prismRecoveryShine 1s ease-out;
}

/* 🚦 BADGE HEALTH STATUS STATES */
/* 🎬 ERROR BADGE ANIMATION */
@keyframes prismErrorBadgePulse {
  0%, 100% {
    box-shadow: var(--shadow-md);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 20px var(--color-status-error-shadow);
    transform: scale(1.02);
  }
}
/* 🎯 COLLAPSED STATE */
/* 🎭 HOVER EXPAND EFFECT */
/* 🌟 STATUS STATES */
/* 🎬 KEYFRAME ANIMATIONS */
@keyframes prismPulse {
  0% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: var(--shadow-lg);
  }
  100% {
    box-shadow: var(--shadow-md);
  }
}
@keyframes prismRecoveryShine {
  0% {
    box-shadow: var(--shadow-md);
    transform: scale(1);
  }
  50% {
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
  }
  100% {
    box-shadow: var(--shadow-md);
    transform: scale(1);
  }
}
/* 🎭 TEXT TRANSITION */
.prism-badge-text {
  transition: all var(--transition-fast);
  overflow: hidden;
  margin-left: 0.5rem;
  opacity: 1;
  width: auto;
  max-width: 150px;
}

.prism-security-badge.collapsed .prism-badge-text {
  opacity: 0;
  width: 0;
  margin-left: 0;
  max-width: 0;
}

.prism-badge-icon {
  transition: all var(--transition-fast);
  display: inline-block;
  flex-shrink: 0;
}

/* 📊 STATUS DROPDOWN PANEL */
.prism-status-dropdown {
  position: fixed;
  top: 4em;
  right: 1em;
  background: var(--color-panel);
  color: var(--color-fg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  min-width: 280px;
  max-width: 320px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  font-family: "Inter", "Segoe UI", sans-serif;
}
.prism-status-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 📋 STATUS HEADER */
.prism-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.prism-status-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-fg);
  margin: 0;
}

.prism-status-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-fg-muted);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--transition-fast);
}
.prism-status-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-fg);
}

/* 📈 STATUS LIST */
.prism-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prism-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
}
.prism-status-item:last-child {
  border-bottom: none;
}
.prism-status-item:hover {
  background: var(--color-bg-alt);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 6px;
}

.prism-status-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prism-status-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-fg);
  line-height: 1.3;
}

.prism-status-detail {
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  margin-top: 0.1rem;
  line-height: 1.2;
}

/* 🔴 STATUS DOTS - ENHANCED WITH PULSE ANIMATIONS */
.prism-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-fast);
}
.prism-status-dot.healthy {
  background: var(--color-status-healthy);
  box-shadow: 0 0 0 2px var(--color-status-healthy-shadow);
  animation: prismHealthyPulse 3s infinite;
}
.prism-status-dot.warning {
  background: var(--color-status-warning);
  box-shadow: 0 0 0 2px var(--color-status-warning-shadow);
  animation: prismWarningPulse 2s infinite;
}
.prism-status-dot.error {
  background: var(--color-status-error);
  box-shadow: 0 0 0 2px var(--color-status-error-shadow);
  animation: prismErrorPulse 1.5s infinite;
}
.prism-status-dot.unknown {
  background: var(--color-status-unknown);
  box-shadow: 0 0 0 2px var(--color-status-unknown-shadow);
  animation: prismUnknownPulse 4s infinite;
}

/* 🎬 ENHANCED STATUS DOT ANIMATIONS */
@keyframes prismHealthyPulse {
  0%, 80%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px var(--color-status-healthy-shadow);
  }
  40% {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--color-status-healthy-shadow);
  }
}
@keyframes prismWarningPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px var(--color-status-warning-shadow);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px var(--color-status-warning-shadow);
  }
}
@keyframes prismErrorPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px var(--color-status-error-shadow);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px var(--color-status-error-shadow);
  }
}
@keyframes prismUnknownPulse {
  0%, 90%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px var(--color-status-unknown-shadow);
    opacity: 0.8;
  }
  45% {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--color-status-unknown-shadow);
    opacity: 1;
  }
}
/* 🕐 LAST UPDATED */
.prism-status-footer {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.7rem;
  color: var(--color-fg-subtle);
  text-align: center;
}

/* 📊 DEBUG PANEL STYLES */
.prism-debug-panel {
  position: fixed;
  top: 60px;
  right: 10px;
  background: var(--toast-info-bg);
  color: var(--toast-info-color);
  border: 1px solid var(--toast-info-border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  z-index: 999;
  max-width: 300px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.prism-debug-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.prism-debug-toggle {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.prism-debug-toggle:hover {
  color: var(--color-error);
}

.prism-debug-content div {
  margin: 0.2rem 0;
}

.prism-debug-actions {
  margin: 0.5rem 0 0 1rem;
  padding: 0;
  list-style: none;
}
.prism-debug-actions li {
  margin: 0.1rem 0;
  color: var(--color-success);
}

/* 📱 MOBILE OPTIMIZATION */
@media (max-width: 600px) {
  .prism-security-badge {
    top: 1em;
    right: 1em;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
  .prism-security-badge.collapsed {
    padding: 0.4rem;
    font-size: 1rem;
    width: 35px;
    height: 35px;
    min-width: 35px;
    max-width: 35px;
  }
  .prism-status-dropdown {
    top: 3.5em;
    right: 0.5em;
    left: 0.5em;
    min-width: auto;
    max-width: none;
  }
  .prism-debug-panel {
    top: 50px;
    right: 5px;
    max-width: calc(100vw - 20px);
    font-size: 0.7rem;
  }
}
/* 🛡️ PRISM SECURITY BADGE MODULE STYLES v3.7.0 - ENHANCED PERFORMANCE SYSTEM */
.prism-security-badge {
  position: fixed;
  top: 1em;
  right: 1em;
  background: var(--color-btn-back-bg);
  color: var(--color-btn-back-text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
  white-space: nowrap;
  max-width: 200px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  user-select: none;
  font-family: "Inter", "Segoe UI", sans-serif;
  opacity: 1;
}
.prism-security-badge.badge-optimal {
  background: linear-gradient(135deg, #00ff88, #00cc44);
  color: #003d1a;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
  animation: prismOptimalGlow 3s infinite;
}
.prism-security-badge.badge-excellent {
  background: linear-gradient(135deg, #44ff44, #22cc22);
  color: #003d00;
  box-shadow: 0 0 12px rgba(68, 255, 68, 0.4);
  animation: prismExcellentPulse 2.5s infinite;
}
.prism-security-badge.badge-good {
  background: linear-gradient(135deg, #88ff88, #44cc44);
  color: #1a4d1a;
  box-shadow: 0 0 8px rgba(136, 255, 136, 0.3);
}
.prism-security-badge.badge-fair {
  background: linear-gradient(135deg, #ffcc44, #ff9944);
  color: #4d2600;
  box-shadow: 0 0 8px rgba(255, 204, 68, 0.4);
  animation: prismFairWarning 2s infinite;
}
.prism-security-badge.badge-slow {
  background: linear-gradient(135deg, #ff6644, #ff4422);
  color: white;
  box-shadow: 0 0 8px rgba(255, 102, 68, 0.5);
  animation: prismSlowAlert 1.8s infinite;
}
.prism-security-badge.badge-critical {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
  animation: prismCriticalAlert 1s infinite;
}
.prism-security-badge.badge-error {
  background: var(--color-status-error);
  color: white;
  animation: prismErrorBadgePulse 1.5s infinite;
}
.prism-security-badge.badge-warning, .prism-security-badge.badge-healthy {
  background: var(--color-btn-back-bg);
  color: var(--color-btn-back-text);
}
.prism-security-badge.collapsed {
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
}
.prism-security-badge:hover, .prism-security-badge.show-text {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  max-width: 200px;
  width: auto;
  font-size: 0.8rem;
  box-shadow: var(--shadow-lg);
}
.prism-security-badge.badge-optimal:hover, .prism-security-badge.badge-optimal.show-text {
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.7);
  transform: translateY(-2px);
}
.prism-security-badge.badge-excellent:hover, .prism-security-badge.badge-excellent.show-text {
  box-shadow: 0 6px 24px rgba(68, 255, 68, 0.6);
  transform: translateY(-2px);
}
.prism-security-badge.badge-good:hover, .prism-security-badge.badge-good.show-text {
  box-shadow: 0 6px 20px rgba(136, 255, 136, 0.5);
  transform: translateY(-1px);
}
.prism-security-badge.badge-fair:hover, .prism-security-badge.badge-fair.show-text {
  box-shadow: 0 6px 20px rgba(255, 204, 68, 0.6);
  transform: translateY(-1px);
}
.prism-security-badge.badge-slow:hover, .prism-security-badge.badge-slow.show-text {
  box-shadow: 0 6px 24px rgba(255, 102, 68, 0.7);
  transform: translateY(-1px);
}
.prism-security-badge.badge-critical:hover, .prism-security-badge.badge-critical.show-text {
  box-shadow: 0 8px 32px rgba(255, 0, 0, 0.8);
  transform: translateY(-2px);
}
.prism-security-badge.active {
  animation: prismPulse 2s infinite;
}
.prism-security-badge.recovered {
  animation: prismRecoveryShine 1s ease-out;
}

/* ✅ NEW: Enhanced Performance Level Animations */
@keyframes prismOptimalGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
    transform: scale(1.02);
  }
}
@keyframes prismExcellentPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(68, 255, 68, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 18px rgba(68, 255, 68, 0.6);
    transform: scale(1.01);
  }
}
@keyframes prismFairWarning {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 204, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 204, 68, 0.7);
  }
}
@keyframes prismSlowAlert {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 102, 68, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 102, 68, 0.8);
    transform: scale(1.03);
  }
}
@keyframes prismCriticalAlert {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 0, 0, 0.9);
    transform: scale(1.05);
  }
}
/* 🎬 ERROR BADGE ANIMATION - ENHANCED */
@keyframes prismErrorBadgePulse {
  0%, 100% {
    box-shadow: var(--shadow-md);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 20px var(--color-status-error-shadow);
    transform: scale(1.02);
  }
}
/* 🎬 EXISTING KEYFRAME ANIMATIONS */
@keyframes prismPulse {
  0% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: var(--shadow-lg);
  }
  100% {
    box-shadow: var(--shadow-md);
  }
}
@keyframes prismRecoveryShine {
  0% {
    box-shadow: var(--shadow-md);
    transform: scale(1);
  }
  50% {
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
  }
  100% {
    box-shadow: var(--shadow-md);
    transform: scale(1);
  }
}
/* 🎭 TEXT TRANSITION */
.prism-badge-text {
  transition: all var(--transition-fast);
  overflow: hidden;
  margin-left: 0.5rem;
  opacity: 1;
  width: auto;
  max-width: 150px;
}

.prism-security-badge.collapsed .prism-badge-text {
  opacity: 0;
  width: 0;
  margin-left: 0;
  max-width: 0;
}

.prism-badge-icon {
  transition: all var(--transition-fast);
  display: inline-block;
  flex-shrink: 0;
}

/* 📊 STATUS DROPDOWN PANEL - ENHANCED with Performance Metrics */
.prism-status-dropdown {
  position: fixed;
  top: 4em;
  right: 1em;
  background: var(--color-panel);
  color: var(--color-fg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  min-width: 320px;
  max-width: 380px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  font-family: "Inter", "Segoe UI", sans-serif;
}
.prism-status-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 📋 STATUS HEADER */
.prism-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.prism-status-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-fg);
  margin: 0;
}

.prism-status-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-fg-muted);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--transition-fast);
}
.prism-status-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-fg);
}

/* 📈 STATUS LIST - ENHANCED */
.prism-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prism-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
}
.prism-status-item:last-child {
  border-bottom: none;
}
.prism-status-item:hover {
  background: var(--color-bg-alt);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 6px;
}

.prism-status-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.prism-status-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.prism-status-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-fg);
  line-height: 1.3;
}

.prism-status-detail {
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  margin-top: 0.1rem;
  line-height: 1.2;
}

/* ✅ NEW: Performance Indicators */
.prism-performance-indicator {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  text-align: center;
}
.prism-performance-indicator.optimal {
  background: rgba(0, 255, 136, 0.2);
  color: #00cc44;
}
.prism-performance-indicator.excellent {
  background: rgba(68, 255, 68, 0.2);
  color: #22cc22;
}
.prism-performance-indicator.good {
  background: rgba(136, 255, 136, 0.2);
  color: #44cc44;
}
.prism-performance-indicator.fair {
  background: rgba(255, 204, 68, 0.2);
  color: #cc8800;
}
.prism-performance-indicator.slow {
  background: rgba(255, 102, 68, 0.2);
  color: #cc4400;
}
.prism-performance-indicator.critical {
  background: rgba(255, 0, 0, 0.2);
  color: #cc0000;
}

/* Rest of existing styles... */
.github-circle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-fg);
  color: var(--color-panel);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.github-circle .github-logo {
  width: 1.8rem;
  height: 1.8rem;
  transition: transform 0.2s ease;
}
.github-circle:hover {
  border-radius: 1rem;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  background: var(--color-accent);
}
.github-circle:hover .github-logo {
  transform: scale(1.1);
}
.github-circle:active {
  transform: scale(0.95);
}
@media (max-width: 768px) {
  .github-circle {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }
  .github-circle .github-logo {
    width: 1.5rem;
    height: 1.5rem;
  }
}

[data-theme=dark] .github-circle {
  background: var(--color-panel);
  color: var(--color-fg);
}
[data-theme=dark] .github-circle:hover {
  background: var(--color-accent-light);
  color: var(--color-bg);
}

/* =============================================================================
   TIP OF THE DAY COMPONENT
   ============================================================================= */
.tip-of-the-day {
  position: fixed;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  max-width: 400px;
  width: calc(100vw - 2rem);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: var(--transition-normal);
}
.tip-of-the-day.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 768px) {
  .tip-of-the-day {
    bottom: 6rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    transform: none;
    max-width: none;
  }
  .tip-of-the-day.show {
    transform: none;
  }
}

.tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.tip-header .tip-icon {
  color: var(--color-accent);
  font-size: 1.125rem;
}
.tip-header .tip-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0;
}
.tip-header .tip-close {
  background: none;
  border: none;
  color: var(--color-fg-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1;
}
.tip-header .tip-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-fg);
}

.tip-content {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-fg);
  margin: 0;
}
.tip-content kbd {
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
}

.tip-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.75rem;
}
.tip-actions .tip-counter {
  color: var(--color-fg-muted);
}
.tip-actions .tip-button {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}
.tip-actions .tip-button:hover {
  background: var(--color-bg-alt);
}

.decrypt-text {
  position: relative;
  overflow: hidden;
}
.decrypt-text[data-state=encrypted] .decrypt-layer {
  opacity: 1;
}
.decrypt-text[data-state=encrypted] .clear-layer {
  opacity: 0;
}
.decrypt-text[data-state=decrypted] .decrypt-layer {
  opacity: 0;
}
.decrypt-text[data-state=decrypted] .clear-layer {
  opacity: 1;
}

.decrypt-layer,
.clear-layer {
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.crypto-char {
  display: inline-block;
  animation: cryptoFlicker 0.1s infinite;
}

@keyframes cryptoFlicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.decrypt-transition .crypto-char {
  animation: decryptChar 0.8s ease-out forwards;
}

@keyframes decryptChar {
  0% {
    opacity: 1;
    transform: scale(1) rotateX(0deg);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.2) rotateX(90deg);
  }
  100% {
    opacity: 0;
    transform: scale(1) rotateX(180deg);
  }
}
:root {
  --overlay-bg-subtle: rgba(var(--color-bg-rgb, 7, 37, 54), 0.85);
  --overlay-glass: rgba(255, 255, 255, 0.08);
  --overlay-border: rgba(var(--color-accent-rgb, 187, 170, 255), 0.2);
  --banner-gradient-elegant: linear-gradient(135deg,
    rgba(var(--color-accent-rgb, 187, 170, 255), 0.15) 0%,
    rgba(var(--color-accent-rgb, 187, 170, 255), 0.25) 50%,
    rgba(var(--color-accent-rgb, 187, 170, 255), 0.15) 100%
  );
  --banner-construction: linear-gradient(135deg,
    rgba(255, 193, 7, 0.2) 0%,
    rgba(255, 152, 0, 0.3) 50%,
    rgba(255, 193, 7, 0.2) 100%
  );
  --banner-maintenance: linear-gradient(135deg,
    rgba(244, 67, 54, 0.2) 0%,
    rgba(233, 30, 99, 0.3) 50%,
    rgba(244, 67, 54, 0.2) 100%
  );
  --overlay-duration: 400ms;
  --overlay-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pricing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--overlay-duration) var(--overlay-easing);
  border-radius: inherit;
  overflow: hidden;
  backdrop-filter: blur(0px);
  z-index: 100;
}
.pricing-overlay--active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  backdrop-filter: blur(8px);
}

.pricing-overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-overlay-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-bg-subtle);
  backdrop-filter: blur(2px);
  transition: all var(--overlay-duration) var(--overlay-easing);
}

.pricing-overlay-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2.5rem;
  background: var(--banner-gradient-elegant);
  border: 1px solid var(--overlay-border);
  border-radius: var(--radius-2xl, 1.5rem);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--color-fg);
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  text-align: center;
  min-height: 70px;
  transform: translateY(20px) scale(0.95);
  transition: all var(--overlay-duration) var(--overlay-easing);
}
.pricing-overlay-banner::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.3) 0%, transparent 50%, rgba(var(--color-accent-rgb), 0.3) 100%);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--overlay-duration) ease;
}
.pricing-overlay--active .pricing-overlay-banner {
  transform: translateY(0) scale(1);
}
.pricing-overlay--active .pricing-overlay-banner::before {
  opacity: 0.98;
}
@media (max-width: 768px) {
  .pricing-overlay-banner {
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    border-radius: var(--radius-xl, 1rem);
    font-size: 0.9375rem;
  }
}

.pricing-overlay-icon {
  font-size: 1.5em;
  flex-shrink: 0;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.pricing-overlay--active .pricing-overlay-icon {
  animation: gentle-pulse 3s ease-in-out infinite;
}
@media (max-width: 768px) {
  .pricing-overlay-icon {
    font-size: 1.25em;
  }
}

.pricing-overlay-message {
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
@media (max-width: 480px) {
  .pricing-overlay-message {
    font-size: 0.875em;
  }
}

.pricing-overlay-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: rgba(var(--color-error-rgb, 244, 67, 54), 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.pricing-overlay-close:hover {
  background: rgba(var(--color-error-rgb, 244, 67, 54), 1);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.pricing-overlay-close:active {
  transform: scale(0.95);
}

.pricing-overlay--custom .pricing-overlay-banner {
  background: var(--banner-gradient-elegant);
}

.pricing-overlay--construction .pricing-overlay-banner {
  background: var(--banner-construction);
  border-color: rgba(255, 193, 7, 0.3);
}
.pricing-overlay--construction .pricing-overlay-banner::before {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.4) 0%, transparent 50%, rgba(255, 152, 0, 0.4) 100%);
}

.pricing-overlay--maintenance .pricing-overlay-banner {
  background: var(--banner-maintenance);
  border-color: rgba(244, 67, 54, 0.3);
}
.pricing-overlay--maintenance .pricing-overlay-banner::before {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.4) 0%, transparent 50%, rgba(233, 30, 99, 0.4) 100%);
}

.pricing-overlay--coming-soon .pricing-overlay-banner {
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.2) 0%, rgba(var(--color-accent-rgb), 0.35) 50%, rgba(var(--color-accent-rgb), 0.2) 100%);
  border-color: rgba(var(--color-accent-rgb), 0.4);
}
.pricing-overlay--coming-soon .pricing-overlay-banner::before {
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.5) 0%, transparent 50%, rgba(var(--color-accent-rgb), 0.5) 100%);
}

.pricing-overlay-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  filter: grayscale(0.3);
}
.pricing-overlay-disabled:hover, .pricing-overlay-disabled:focus, .pricing-overlay-disabled:active {
  transform: none !important;
  box-shadow: none !important;
}

.pricing-overlay-card-disabled {
  filter: grayscale(0.2) brightness(0.8);
  opacity: 0.7;
  transform: scale(0.98);
  transition: all var(--overlay-duration) ease;
}
.pricing-overlay-card-disabled:hover {
  transform: scale(0.98) !important;
  box-shadow: none !important;
}
.pricing-overlay-card-disabled .popular-badge,
.pricing-overlay-card-disabled .current-plan-badge {
  opacity: 0.4;
}
.pricing-overlay-card-disabled .plan-cta {
  background: var(--color-fg-muted) !important;
  color: var(--color-bg) !important;
}

@keyframes gentle-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}
@keyframes elegant-fade-in {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}
@keyframes subtle-shimmer {
  0%, 100% {
    background-position: -200% center;
  }
  50% {
    background-position: 200% center;
  }
}
.pricing-overlay--active .pricing-overlay-banner {
  animation: elegant-fade-in var(--overlay-duration) var(--overlay-easing);
}

[data-theme=dark] {
  --overlay-bg-subtle: rgba(7, 37, 54, 0.9);
  --overlay-glass: rgba(255, 255, 255, 0.05);
}
[data-theme=dark] .pricing-overlay-background {
  background: rgba(7, 37, 54, 0.85);
}
[data-theme=dark] .pricing-overlay-banner {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
[data-theme=dark] .pricing-overlay-card-disabled {
  filter: grayscale(0.4) brightness(0.6);
}

[data-theme=light] {
  --overlay-bg-subtle: rgba(246, 242, 255, 0.9);
  --overlay-glass: rgba(0, 0, 0, 0.05);
}
[data-theme=light] .pricing-overlay-background {
  background: rgba(246, 242, 255, 0.85);
}
[data-theme=light] .pricing-overlay-banner {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-color: rgba(var(--color-accent-rgb), 0.3);
}
[data-theme=light] .pricing-overlay-card-disabled {
  filter: grayscale(0.2) brightness(0.9);
}

@media (prefers-reduced-motion: reduce) {
  .pricing-overlay,
  .pricing-overlay-banner,
  .pricing-overlay-background,
  .pricing-overlay-icon {
    animation: none !important;
    transition-duration: 0.1s !important;
  }
  .pricing-overlay-banner {
    transform: none !important;
  }
}
body.reduce-motion .pricing-overlay,
body.reduce-motion .pricing-overlay-banner,
body.reduce-motion .pricing-overlay-background,
body.reduce-motion .pricing-overlay-icon {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 480px) {
  .pricing-overlay-banner {
    padding: 1rem;
    gap: 0.5rem;
    margin: 0 0.5rem;
  }
  .pricing-overlay-banner::before {
    border-radius: var(--radius-lg);
  }
  .pricing-overlay-close {
    top: -0.25rem;
    right: -0.25rem;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.875rem;
  }
}
.pricing-section {
  position: relative;
}

.pricing-card {
  transition: all var(--overlay-duration) ease;
}

.pricing-overlay-visible .pricing-card {
  transition: all var(--overlay-duration) ease;
}

.pricing-card.featured.pricing-overlay-card-disabled {
  transform: scale(0.98) !important;
}

:root {
  --feedback-modal-z: 10000;
  --feedback-overlay-bg: rgba(0, 0, 0, 0.7);
  --feedback-modal-bg: var(--color-panel);
  --feedback-modal-border: var(--color-border);
  --feedback-modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  --feedback-modal-radius: var(--radius-xl);
  --feedback-input-bg: var(--color-bg-alt);
  --feedback-input-border: var(--color-border);
  --feedback-input-focus: var(--color-accent);
  --feedback-button-primary: var(--color-accent);
  --feedback-button-secondary: var(--color-bg-alt);
  --feedback-success-color: var(--security-optimal, #00ff88);
  --feedback-error-color: var(--security-critical, #ff4444);
  --feedback-animation-duration: 0.3s;
  --feedback-animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --feedback-mobile-padding: 1rem;
  --feedback-touch-target: 44px;
  --feedback-mobile-font-size: 16px;
}

.feedback-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--feedback-overlay-bg);
  backdrop-filter: blur(8px);
  z-index: var(--feedback-modal-z);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--feedback-animation-duration) var(--feedback-animation-easing), visibility var(--feedback-animation-duration) var(--feedback-animation-easing);
}
.feedback-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.feedback-modal-overlay.active {
  cursor: pointer;
}
.feedback-modal-overlay.active .feedback-modal-container {
  cursor: default;
}
@media (max-width: 768px) {
  .feedback-modal-overlay {
    padding: 0;
    align-items: flex-end;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .feedback-modal-overlay.mobile-bottom .feedback-modal-container {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: calc(100vh - env(safe-area-inset-top, 0));
  }
}
@media (max-width: 390px) and (max-height: 667px) {
  .feedback-modal-overlay .feedback-modal-container {
    max-height: 95vh;
  }
}

.feedback-modal-container {
  background: var(--feedback-modal-bg);
  border: 1px solid var(--feedback-modal-border);
  border-radius: var(--feedback-modal-radius);
  box-shadow: var(--feedback-modal-shadow);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--feedback-animation-duration) var(--feedback-animation-easing), opacity var(--feedback-animation-duration) var(--feedback-animation-easing);
  position: relative;
  display: flex;
  flex-direction: column;
}
.feedback-modal-overlay.active .feedback-modal-container {
  transform: translateY(0) scale(1);
}
@media (max-width: 768px) {
  .feedback-modal-container {
    max-width: 100%;
    margin: 0;
    border-radius: 1rem 1rem 0 0;
    max-height: 85vh;
  }
  .feedback-modal-overlay.mobile-bottom .feedback-modal-container {
    transform: translateY(100%);
  }
  .feedback-modal-overlay.active .feedback-modal-overlay.mobile-bottom .feedback-modal-container {
    transform: translateY(0);
  }
}
@media (max-width: 768px) and (orientation: landscape) {
  .feedback-modal-container {
    max-height: 90vh;
    border-radius: var(--feedback-modal-radius);
  }
}

.feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--feedback-modal-border);
  background: var(--feedback-modal-bg);
  flex-shrink: 0;
}
.feedback-modal-header .feedback-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.feedback-modal-header .feedback-modal-title .title-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 2px 4px rgba(var(--color-accent-rgb), 0.3));
}
.feedback-modal-header .feedback-modal-close {
  background: none;
  border: none;
  color: var(--color-fg-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-base);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--feedback-touch-target);
  min-height: var(--feedback-touch-target);
}
.feedback-modal-header .feedback-modal-close:hover {
  background: var(--feedback-button-secondary);
  color: var(--color-fg);
  transform: scale(1.1);
}
.feedback-modal-header .feedback-modal-close:active {
  transform: scale(0.95);
}
@media (max-width: 768px) {
  .feedback-modal-header {
    padding: var(--feedback-mobile-padding) 1.25rem;
  }
  .feedback-modal-header .feedback-modal-title {
    font-size: 1.25rem;
    gap: 0.5rem;
  }
  .feedback-modal-header .feedback-modal-title .title-icon {
    font-size: 1.5rem;
  }
  .feedback-modal-header .feedback-modal-close {
    font-size: 1.25rem;
    padding: 0.75rem;
  }
}

.feedback-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .feedback-modal-body {
    padding: var(--feedback-mobile-padding);
    max-height: none;
  }
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .feedback-form {
    gap: 1.25rem;
  }
}
.feedback-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feedback-form .form-group label {
  font-weight: 600;
  color: var(--color-fg);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .feedback-form .form-group label {
    font-size: var(--feedback-mobile-font-size);
  }
}
.feedback-form .form-group label .required {
  color: var(--feedback-error-color);
  font-size: 0.875rem;
}
.feedback-form .form-group label .optional {
  color: var(--color-fg-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}
.feedback-form .form-group.error .form-input, .feedback-form .form-group.error .form-textarea, .feedback-form .form-group.error .form-select {
  border-color: var(--feedback-error-color);
  box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.1);
}
.feedback-form .form-group.error .error-message {
  color: var(--feedback-error-color);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@media (max-width: 768px) {
  .feedback-form .form-group.error .error-message {
    font-size: 0.875rem;
  }
}
.feedback-form .form-group.error .error-message::before {
  content: "⚠️";
  font-size: 0.75rem;
}

.form-input,
.form-textarea,
.form-select {
  background: var(--feedback-input-bg);
  border: 1px solid var(--feedback-input-border);
  border-radius: var(--radius-base);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--color-fg);
  transition: all var(--transition-fast);
  font-family: inherit;
  min-height: var(--feedback-touch-target);
}
@media (max-width: 768px) {
  .form-input,
  .form-textarea,
  .form-select {
    font-size: var(--feedback-mobile-font-size);
    padding: 1rem;
    border-radius: 0.75rem;
  }
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--feedback-input-focus);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.1);
}
.form-input::placeholder,
.form-textarea::placeholder,
.form-select::placeholder {
  color: var(--color-fg-muted);
}
@media (max-width: 768px) {
  .form-input::placeholder,
  .form-textarea::placeholder,
  .form-select::placeholder {
    font-size: var(--feedback-mobile-font-size);
  }
}
.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .form-textarea {
    min-height: 100px;
    max-height: 200px;
  }
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
  padding-right: 3rem;
}
.form-select option {
  background: var(--feedback-modal-bg);
  color: var(--color-fg);
}
@media (max-width: 768px) {
  .form-select option {
    font-size: var(--feedback-mobile-font-size);
  }
}

.char-counter {
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  text-align: right;
  margin-top: 0.25rem;
}
@media (max-width: 768px) {
  .char-counter {
    font-size: 0.8125rem;
  }
}

.field-help small {
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .field-help small {
    font-size: 0.8125rem;
  }
}

.rating-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rating-container .rating-stars {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.rating-container .rating-stars .star {
  font-size: 2rem;
  color: var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  min-width: var(--feedback-touch-target);
  min-height: var(--feedback-touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rating-container .rating-stars .star:hover, .rating-container .rating-stars .star.active {
  color: #ffc107;
  transform: scale(1.1);
  filter: drop-shadow(0 2px 8px rgba(255, 193, 7, 0.4));
}
.rating-container .rating-stars .star:active {
  transform: scale(0.9);
}
.rating-container .rating-stars .rating-label {
  margin-left: 1rem;
  font-size: 0.9375rem;
  color: var(--color-fg-muted);
  font-weight: 500;
}
@media (max-width: 768px) {
  .rating-container .rating-stars .rating-label {
    margin-left: 0;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}
@media (max-width: 768px) {
  .rating-container .rating-stars {
    justify-content: center;
  }
  .rating-container .rating-stars .star {
    font-size: 1.75rem;
    min-width: 40px;
    min-height: 40px;
  }
}

.screenshot-section {
  background: var(--feedback-input-bg);
  border: 1px solid var(--feedback-input-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}
@media (max-width: 768px) {
  .screenshot-section {
    padding: var(--feedback-mobile-padding);
    border-radius: 0.75rem;
  }
}
.screenshot-section.auto-capture-enabled {
  border-color: var(--feedback-button-primary);
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.05) 0%, rgba(var(--color-accent-rgb), 0.02) 100%);
  box-shadow: 0 0 0 1px rgba(var(--color-accent-rgb), 0.15);
}
.screenshot-section .screenshot-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .screenshot-section .screenshot-checkbox-container {
    gap: 0.75rem;
    align-items: center;
  }
}
.screenshot-section .screenshot-checkbox-container .checkbox-wrapper {
  position: relative;
  flex-shrink: 0;
}
.screenshot-section .screenshot-checkbox-container .checkbox-wrapper input[type=checkbox] {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--feedback-input-border);
  border-radius: var(--radius-sm);
  background: var(--feedback-input-bg);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  min-width: var(--feedback-touch-target);
  min-height: var(--feedback-touch-target);
}
@media (max-width: 768px) {
  .screenshot-section .screenshot-checkbox-container .checkbox-wrapper input[type=checkbox] {
    width: 1.5rem;
    height: 1.5rem;
  }
}
.screenshot-section .screenshot-checkbox-container .checkbox-wrapper input[type=checkbox]:checked {
  background: var(--feedback-button-primary);
  border-color: var(--feedback-button-primary);
}
.screenshot-section .screenshot-checkbox-container .checkbox-wrapper input[type=checkbox]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
}
@media (max-width: 768px) {
  .screenshot-section .screenshot-checkbox-container .checkbox-wrapper input[type=checkbox]:checked::after {
    font-size: 1rem;
  }
}
.screenshot-section .screenshot-checkbox-container .checkbox-wrapper input[type=checkbox]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.2);
}
.screenshot-section .screenshot-checkbox-container .checkbox-wrapper input[type=checkbox]:hover {
  border-color: var(--feedback-button-primary);
}
.screenshot-section .screenshot-checkbox-container .checkbox-label-container {
  flex: 1;
}
.screenshot-section .screenshot-checkbox-container .checkbox-label-container .checkbox-label {
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-fg);
  font-size: 1rem;
}
@media (max-width: 768px) {
  .screenshot-section .screenshot-checkbox-container .checkbox-label-container .checkbox-label {
    font-size: var(--feedback-mobile-font-size);
    flex-wrap: wrap;
  }
}
.screenshot-section .screenshot-checkbox-container .checkbox-label-container .checkbox-label .auto-icon {
  font-size: 1.125rem;
  color: var(--feedback-button-primary);
  animation: camera-pulse 2s ease-in-out infinite;
}
.screenshot-section .screenshot-checkbox-container .checkbox-label-container .checkbox-description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .screenshot-section .screenshot-checkbox-container .checkbox-label-container .checkbox-description {
    font-size: 0.8125rem;
  }
}
.screenshot-section .screenshot-info {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(var(--color-accent-rgb), 0.03);
  border: 1px solid rgba(var(--color-accent-rgb), 0.1);
  border-radius: var(--radius-base);
}
@media (max-width: 768px) {
  .screenshot-section .screenshot-info {
    padding: 0.75rem;
    border-radius: 0.5rem;
  }
}
.screenshot-section .screenshot-info.visible {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}
.screenshot-section .screenshot-info .info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.screenshot-section .screenshot-info .info-header .automation-icon {
  font-size: 1.25rem;
  color: var(--feedback-button-primary);
}
.screenshot-section .screenshot-info .info-header .info-title {
  font-weight: 600;
  color: var(--color-fg);
  font-size: 0.875rem;
  margin: 0;
}
@media (max-width: 768px) {
  .screenshot-section .screenshot-info .info-header .info-title {
    font-size: 0.8125rem;
  }
}
.screenshot-section .screenshot-info .info-text {
  font-size: 0.8125rem;
  color: var(--color-fg-muted);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .screenshot-section .screenshot-info .info-text {
    font-size: 0.75rem;
  }
}
.screenshot-section .screenshot-info .privacy-note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(var(--color-accent-rgb), 0.1);
}
.screenshot-section .screenshot-info .privacy-note .privacy-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-fg-subtle);
}
.screenshot-section .screenshot-info .privacy-note .privacy-text .privacy-icon {
  font-size: 0.875rem;
  color: var(--feedback-button-primary);
}
.screenshot-section .screenshot-preview {
  display: none;
  margin-top: 1rem;
}
.screenshot-section .screenshot-preview.visible {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}
.screenshot-section .screenshot-preview .preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.screenshot-section .screenshot-preview .preview-header .success-icon {
  color: var(--feedback-success-color);
  font-size: 1.125rem;
}
.screenshot-section .screenshot-preview .preview-header .preview-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-fg);
  margin: 0;
}
@media (max-width: 768px) {
  .screenshot-section .screenshot-preview .preview-header .preview-title {
    font-size: 0.8125rem;
  }
}
.screenshot-section .screenshot-preview .preview-container {
  position: relative;
  border-radius: var(--radius-base);
  overflow: hidden;
  border: 2px solid var(--feedback-success-color);
  display: inline-block;
  max-width: 100%;
}
.screenshot-section .screenshot-preview .preview-container img {
  max-width: 250px;
  max-height: 150px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .screenshot-section .screenshot-preview .preview-container img {
    max-width: 200px;
    max-height: 120px;
  }
}
@media (max-width: 390px) {
  .screenshot-section .screenshot-preview .preview-container img {
    max-width: 150px;
    max-height: 90px;
  }
}
.screenshot-section .screenshot-preview .preview-container .preview-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
}
.screenshot-section .screenshot-preview .preview-container .preview-info .screenshot-size {
  font-weight: 600;
}

.feedback-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--feedback-modal-border);
  background: var(--feedback-modal-bg);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-shrink: 0;
}
.feedback-modal-footer .btn {
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-base);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  text-decoration: none;
  min-height: var(--feedback-touch-target);
}
.feedback-modal-footer .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.feedback-modal-footer .btn.btn-secondary {
  background: var(--feedback-button-secondary);
  color: var(--color-fg);
  border: 1px solid var(--feedback-input-border);
}
.feedback-modal-footer .btn.btn-secondary:hover:not(:disabled) {
  background: var(--color-bg);
  transform: translateY(-1px);
}
.feedback-modal-footer .btn.btn-primary {
  background: var(--feedback-button-primary);
  color: white;
}
.feedback-modal-footer .btn.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--color-accent-rgb), 0.3);
}
.feedback-modal-footer .btn.btn-primary.loading {
  position: relative;
  color: transparent;
}
.feedback-modal-footer .btn.btn-primary.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@media (max-width: 768px) {
  .feedback-modal-footer {
    padding: var(--feedback-mobile-padding);
    flex-direction: column-reverse;
    gap: 0.75rem;
    padding-bottom: calc(var(--feedback-mobile-padding) + env(safe-area-inset-bottom, 0));
  }
  .feedback-modal-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: var(--feedback-mobile-font-size);
    border-radius: 0.75rem;
  }
}

.feedback-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
@media (max-width: 768px) {
  .feedback-success {
    padding: var(--feedback-mobile-padding);
  }
}
.feedback-success.active {
  display: block;
}
.feedback-success .success-icon {
  font-size: 4rem;
  color: var(--feedback-success-color);
  margin-bottom: 1rem;
  animation: bounce 0.6s ease-in-out;
}
@media (max-width: 768px) {
  .feedback-success .success-icon {
    font-size: 3rem;
  }
}
.feedback-success .success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .feedback-success .success-title {
    font-size: 1.25rem;
  }
}
.feedback-success .success-message {
  color: var(--color-fg-muted);
  line-height: 1.5;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .feedback-success .success-message {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }
}
.feedback-success .success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
@media (max-width: 768px) {
  .feedback-success .success-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes camera-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}
[data-theme=dark] {
  --feedback-overlay-bg: rgba(0, 0, 0, 0.8);
  --feedback-modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
[data-theme=dark] .feedback-modal-container {
  box-shadow: var(--feedback-modal-shadow), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
[data-theme=dark] .screenshot-section.auto-capture-enabled {
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.08) 0%, rgba(var(--color-accent-rgb), 0.03) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .feedback-modal-overlay,
  .feedback-modal-container,
  .btn,
  .star,
  .screenshot-section {
    transition: none !important;
    animation: none !important;
  }
  .feedback-modal-container {
    transform: none !important;
  }
  .success-icon,
  .auto-icon {
    animation: none !important;
  }
}
@media (prefers-contrast: high) {
  .feedback-modal-container {
    border-width: 2px;
  }
  .form-input,
  .form-textarea,
  .form-select {
    border-width: 2px;
  }
  .btn {
    border-width: 2px;
  }
}
[dir=rtl] .feedback-modal-header .feedback-modal-title .title-icon {
  transform: scaleX(-1);
}
[dir=rtl] .rating-stars .rating-label {
  margin-left: 0;
  margin-right: 1rem;
}
@media (max-width: 768px) {
  [dir=rtl] .rating-stars .rating-label {
    margin-right: 0;
    margin-left: 0;
  }
}
[dir=rtl] .form-select {
  background-position: left 0.75rem center;
  padding-left: 3rem;
  padding-right: 1rem;
}

@media (max-width: 320px) {
  .feedback-modal-container {
    max-height: 95vh;
  }
  .feedback-modal-body {
    padding: 0.75rem;
  }
  .feedback-form {
    gap: 1rem;
  }
  .form-input,
  .form-textarea,
  .form-select {
    padding: 0.75rem;
    font-size: 14px;
  }
  .screenshot-preview .preview-container img {
    max-width: 120px;
    max-height: 72px;
  }
}
@supports (-webkit-touch-callout: none) {
  .form-input,
  .form-textarea,
  .form-select {
    font-size: max(16px, 1rem);
  }
  .feedback-modal-overlay {
    height: -webkit-fill-available;
  }
  .feedback-modal-container {
    margin-bottom: env(safe-area-inset-bottom, 0);
  }
}
.feedback-error {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: var(--radius-base);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.3s ease-out;
}
@media (max-width: 768px) {
  .feedback-error {
    padding: 0.75rem;
    border-radius: 0.5rem;
  }
  .feedback-error .error-icon {
    font-size: 1rem;
  }
  .feedback-error .error-text {
    font-size: 0.875rem;
  }
}
.feedback-error.fadeout {
  animation: fadeOut 0.3s ease-out forwards;
}

.form-group.loading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
}
.form-group.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--color-accent-rgb), 0.1);
  border-radius: var(--radius-base);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================================
   MAIN LOGIN CONTAINER - FULLSCREEN SPLIT
   ============================================================================= */
.login-page {
  border-radius: var(--radius-2xl);
  min-height: 100vh;
  display: flex;
  font-family: var(--font-primary);
  background: var(--color-bg);
  overflow: hidden;
  flex-direction: column;
}
@media (min-width: 768px) {
  .login-page {
    flex-direction: row;
  }
}

/* =============================================================================
   LEFT SIDE - LOGIN FORM (unchanged)
   ============================================================================= */
.login-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--color-panel);
  width: 100%;
  min-height: 60vh;
}
@media (min-width: 768px) {
  .login-left {
    width: 50%;
    min-height: 100vh;
    padding: 4rem;
  }
}
@media (min-width: 1200px) {
  .login-left {
    padding: 6rem;
  }
}

.login-form-container {
  width: 100%;
  max-width: 400px;
}

.login-header {
  margin-bottom: 2rem;
  text-align: left;
}
.login-header .login-logo {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: block;
}
.login-header .login-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.login-header .login-subtitle {
  font-size: 1rem;
  color: var(--color-fg-muted);
  font-weight: 400;
  line-height: 1.5;
}

/* =============================================================================
   FORM STYLING (unchanged)
   ============================================================================= */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: var(--color-fg);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-alt);
  color: var(--color-fg);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-fast);
}
.form-input::placeholder {
  color: var(--color-fg-muted);
  opacity: 0.7;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb, 106, 53, 255), 0.1);
}
.form-input:hover:not(:focus) {
  border-color: var(--color-border-strong);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  margin-top: 0.25rem;
}

/* =============================================================================
   CHECKBOX STYLING (unchanged)
   ============================================================================= */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.checkbox-wrapper {
  position: relative;
}
.checkbox-wrapper input[type=checkbox] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkbox-wrapper .checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  cursor: pointer;
}
.checkbox-wrapper .checkbox-custom::after {
  content: "✓";
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition-fast);
}
.checkbox-wrapper input[type=checkbox]:checked + .checkbox-custom {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.checkbox-wrapper input[type=checkbox]:checked + .checkbox-custom::after {
  opacity: 1;
  transform: scale(1);
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--color-fg);
  cursor: pointer;
  user-select: none;
}
.checkbox-label .security-highlight {
  color: var(--color-accent);
  font-weight: 500;
}

/* =============================================================================
   LOGIN BUTTON (unchanged)
   ============================================================================= */
.login-button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
  margin-top: 0.5rem;
}
.login-button:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}
.login-button:active {
  transform: translateY(0);
}
.login-button:disabled {
  background: var(--color-fg-muted);
  cursor: not-allowed;
  transform: none;
}

/* =============================================================================
   FORM FOOTER (unchanged)
   ============================================================================= */
.form-footer {
  margin-top: 1.5rem;
  text-align: center;
}
.form-footer .footer-link {
  font-size: 0.875rem;
  color: var(--color-fg-muted);
}
.form-footer .footer-link a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.form-footer .footer-link a:hover {
  text-decoration: underline;
}
.form-footer .security-note {
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* =============================================================================
   RIGHT SIDE - REDESIGNED MINIMAL VERSION
   ============================================================================= */
.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
  min-height: 40vh;
}
@media (min-width: 768px) {
  .login-right {
    width: 50%;
    min-height: 100vh;
    padding: 4rem;
  }
}
.login-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(var(--color-accent-rgb, 106, 53, 255), 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(var(--color-accent-rgb, 106, 53, 255), 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.login-right-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 480px;
}

/* =============================================================================
   HERO MESSAGE SECTION
   ============================================================================= */
.hero-section {
  margin-bottom: 3rem;
}
.hero-section .hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: 20px;
  font-size: 2.5rem;
  animation: subtle-pulse 4s ease-in-out infinite;
}
@media (min-width: 768px) {
  .hero-section .hero-icon {
    width: 96px;
    height: 96px;
    font-size: 3rem;
    border-radius: 24px;
  }
}
.hero-section .hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 1rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .hero-section .hero-title {
    font-size: 2.5rem;
  }
}
.hero-section .hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-fg-muted);
  line-height: 1.5;
  font-weight: 400;
}
@media (min-width: 768px) {
  .hero-section .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* =============================================================================
   TRUST INDICATOR
   ============================================================================= */
.trust-indicator {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.trust-indicator .trust-icon {
  width: 40px;
  height: 40px;
  background: var(--color-success);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
}
.trust-indicator .trust-content {
  text-align: left;
}
.trust-indicator .trust-content .trust-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-fg);
  margin-bottom: 0.25rem;
}
.trust-indicator .trust-content .trust-description {
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  line-height: 1.4;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
@keyframes subtle-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb, 106, 53, 255), 0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(var(--color-accent-rgb, 106, 53, 255), 0);
  }
}
/* =============================================================================
   RESPONSIVE OPTIMIZATIONS
   ============================================================================= */
@media (max-width: 767px) {
  .login-left {
    padding: 1.5rem;
  }
  .login-right {
    padding: 2rem 1.5rem;
  }
  .login-header .login-title {
    font-size: 1.5rem;
  }
  .hero-section .hero-title {
    font-size: 1.75rem;
  }
  .hero-section .hero-subtitle {
    font-size: 1rem;
  }
}
/* =============================================================================
   DARK MODE SUPPORT
   ============================================================================= */
[data-theme=dark] .login-right {
  background: var(--color-bg);
}
[data-theme=dark] .login-right::before {
  background: radial-gradient(circle at 20% 80%, rgba(var(--color-accent-rgb, 106, 53, 255), 0.12) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(var(--color-accent-rgb, 106, 53, 255), 0.08) 0%, transparent 50%);
}

/* =============================================================================
   STATUS MESSAGES (unchanged)
   ============================================================================= */
.login-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: center;
}
.login-status.success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border: 1px solid var(--color-success);
}
.login-status.error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border: 1px solid var(--color-error);
}
.login-status.loading {
  background: var(--color-info-bg);
  color: var(--color-info-text);
  border: 1px solid var(--color-info);
}

/* =============================================================================
   LOADING SPINNER (unchanged)
   ============================================================================= */
.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
  margin-right: 0.5rem;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.login-button.loading .button-spinner {
  display: inline-block;
}

:root {
  --landing-hero-height: 100vh;
  --landing-section-padding: 6rem 0;
  --landing-card-radius: 1.5rem;
  --landing-grid-gap: 2rem;
  --grid-size: 20px;
  --grid-stroke: 1px;
  --grid-color: rgba(var(--color-accent-rgb, 106, 53, 255), 0.08);
  --dot-size: 1.5px;
  --dot-spacing: 18px;
  --dot-color: rgba(var(--color-accent-rgb, 106, 53, 255), 0.12);
  --security-optimal: #00ff88;
  --security-critical: #ff4444;
}
@media (max-width: 768px) {
  :root {
    --landing-hero-height: 90vh;
    --landing-section-padding: 4rem 0;
    --grid-size: 15px;
    --dot-spacing: 12px;
  }
}

.hero-section {
  min-height: var(--landing-hero-height);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 1rem 3rem;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 50%, var(--color-panel) 100%);
}
.hero-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(var(--color-accent-rgb, 106, 53, 255), 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(var(--color-accent-rgb, 106, 53, 255), 0.08) 0%, transparent 50%);
  animation: security-pulse 8s ease-in-out infinite;
}

.math-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.4;
  background-image: linear-gradient(var(--grid-color) var(--grid-stroke), transparent var(--grid-stroke)), linear-gradient(90deg, var(--grid-color) var(--grid-stroke), transparent var(--grid-stroke));
  background-size: var(--grid-size) var(--grid-size);
  animation: grid-pulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.dot-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.4;
  background-image: radial-gradient(circle, var(--dot-color) var(--dot-size), transparent var(--dot-size));
  background-size: var(--dot-spacing) var(--dot-spacing);
  animation: dot-drift 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.floating-security-emojis {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.floating-emoji {
  position: absolute;
  font-size: 2rem;
  opacity: 0;
  animation: float-up 20s linear infinite;
  animation-delay: var(--delay, 0s);
  animation-fill-mode: forwards;
  left: calc(10% + var(--x-offset, 0%) * 80%);
  transform: translateY(100vh);
}
.floating-emoji:nth-child(1) {
  color: var(--security-optimal);
  left: 15%;
  animation-duration: 18s;
}
.floating-emoji:nth-child(2) {
  color: #44aaff;
  left: 35%;
  animation-duration: 22s;
}
.floating-emoji:nth-child(3) {
  color: #ffaa44;
  left: 55%;
  animation-duration: 20s;
}
.floating-emoji:nth-child(4) {
  color: #aa44ff;
  left: 75%;
  animation-duration: 16s;
}
.floating-emoji:nth-child(5) {
  color: var(--security-critical);
  left: 85%;
  animation-duration: 24s;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-accent-bg);
  color: var(--color-accent);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border: 1px solid rgba(var(--color-accent-rgb, 106, 53, 255), 0.3);
  animation: badge-float 3s ease-in-out infinite;
}
.hero-badge .badge-icon {
  font-size: 1.125rem;
  animation: spin 4s linear infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-title .hero-highlight {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 70%, var(--color-accent) 100%);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 6s ease-in-out infinite;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  color: var(--color-fg-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.hero-subtitle strong {
  color: var(--color-accent);
  font-weight: 700;
}

.security-demo {
  background: var(--color-panel);
  border-radius: var(--landing-card-radius);
  padding: 3rem;
  margin-bottom: 3rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.security-demo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 50%, var(--color-accent) 100%);
  animation: security-scan 3s linear infinite;
}
.security-demo.scanning::before {
  animation-duration: 2s;
  background: linear-gradient(90deg, transparent, var(--security-optimal), var(--security-optimal), transparent);
}
@media (max-width: 768px) {
  .security-demo {
    padding: 2rem 1.5rem;
  }
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.demo-header h3 {
  margin: 0;
  color: var(--color-fg);
  font-size: 1.5rem;
  font-weight: 700;
}
@media (max-width: 768px) {
  .demo-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

.security-level .level-badge {
  background: linear-gradient(135deg, var(--security-optimal) 0%, #00cc44 100%);
  color: #003d1a;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  animation: level-pulse 2s ease-in-out infinite;
}

.encryption-showcase {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .encryption-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.plaintext-box,
.encrypted-box {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 2px solid var(--color-border);
  transition: all var(--transition-fast);
  position: relative;
}
.plaintext-box label,
.encrypted-box label {
  display: block;
  font-weight: 600;
  color: var(--color-fg);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plaintext-box:hover,
.encrypted-box:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.plaintext-box {
  border-color: var(--security-critical);
}
.plaintext-box input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: var(--color-fg);
  padding: 0.5rem 0;
}
.plaintext-box input:focus {
  outline: none;
}
.plaintext-box input.warning {
  border-bottom: 2px solid var(--security-critical) !important;
  animation: input-warning 0.3s ease;
}
.plaintext-box .char-counter {
  position: absolute;
  bottom: -1.5rem;
  right: 0;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
}
.plaintext-box .char-counter.warning {
  color: var(--security-critical);
  font-weight: 600;
}
.plaintext-box .security-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--security-critical);
  font-weight: 600;
}

.encrypted-box {
  border-color: var(--security-optimal);
}
.encrypted-box .encrypted-output {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0.75rem;
  border-radius: var(--radius-base);
  word-break: break-all;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}
.encrypted-box .security-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--security-optimal);
  font-weight: 600;
}

.encryption-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.encryption-arrow .arrow-icon {
  font-size: 2rem;
  color: var(--color-accent);
  animation: pulse 2s infinite;
}
.encryption-arrow .crypto-algorithm {
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .encryption-arrow .arrow-icon {
    transform: rotate(90deg);
  }
}

.performance-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .performance-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.metric {
  text-align: center;
}
.metric .metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}
.metric .metric-label {
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  font-weight: 500;
}

.metric-explanation {
  margin-top: 0.25rem;
  font-size: 0.9em;
  color: var(--color-fg-muted);
  text-align: center;
  min-height: 1.5em;
}
.metric-explanation .big-number {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--color-accent);
  letter-spacing: 0.01em;
  word-break: break-all;
  display: inline-block;
  vertical-align: middle;
  animation: fade-in-up 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.metric-explanation .compare {
  margin-top: 0.15em;
  display: block;
  font-size: 0.9em;
  color: var(--color-fg-muted);
  font-style: italic;
  animation: fade-in-up 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 1.125rem;
  min-width: 200px;
  justify-content: center;
}
.cta-primary .cta-icon,
.cta-secondary .cta-icon {
  font-size: 1.25rem;
}
@media (max-width: 768px) {
  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 300px;
  }
}

.global-cancel-note {
  margin: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cta-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(var(--color-accent-rgb, 106, 53, 255), 0.3);
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-accent-rgb, 106, 53, 255), 0.4);
  text-decoration: none !important;
}

.cta-secondary {
  background: var(--color-panel);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cta-secondary:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.trust-indicators {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) {
  .trust-indicators {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .trust-indicators {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}
.trust-item .trust-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.trust-item span:last-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-fg);
  text-align: center;
}
.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.trust-item:hover .trust-icon {
  transform: scale(1.1);
}

.features-section,
.security-section,
.pricing-section {
  padding: var(--landing-section-padding);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (min-width: 1200px) {
  .section-container {
    max-width: 1400px;
  }
}
@media (min-width: 1600px) {
  .section-container {
    max-width: 1600px;
  }
}
@media (max-width: 768px) {
  .section-container {
    padding: 0 1rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 3rem;
  }
}

.section-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--color-fg);
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--color-fg-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--landing-grid-gap);
}
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.feature-card {
  background: var(--color-panel);
  border-radius: var(--landing-card-radius);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(var(--color-accent-rgb, 106, 53, 255), 0.15);
  border-color: var(--color-accent);
}
.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(var(--color-accent-rgb, 106, 53, 255), 0.6));
}
.feature-card:hover .hover-dots {
  opacity: 1;
}
@media (max-width: 768px) {
  .feature-card {
    padding: 2rem 1.5rem;
  }
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-fg);
  line-height: 1.3;
}

.feature-description {
  color: var(--color-fg-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.feature-tags .tag {
  background: var(--color-accent-bg);
  color: var(--color-accent);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(var(--color-accent-rgb, 106, 53, 255), 0.2);
}

.hover-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.hover-dots .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: dot-pulse 1.2s ease-in-out infinite;
  opacity: 0;
}

.feature-card.security-core .feature-icon {
  color: #00ff88;
}

.feature-card.destruct .feature-icon {
  color: #ff4444;
}

.feature-card.files .feature-icon {
  color: #44aaff;
}

.feature-card.prism-monitoring .feature-icon {
  color: #9333ea;
}

.feature-card.anonymous .feature-icon {
  color: #aa44ff;
}

.feature-card.power-tools .feature-icon {
  color: #44ffaa;
}

.feature-card.multi-platform .feature-icon {
  color: #00aaff;
}

.feature-card.advanced-security .feature-icon {
  color: #ff6600;
}

.security-section {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-panel) 100%);
}

.crypto-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .crypto-stack {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.crypto-layer {
  background: var(--color-panel);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  text-align: center;
  transition: all var(--transition-fast);
}
.crypto-layer:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.crypto-layer .layer-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}
.crypto-layer .layer-title {
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.crypto-layer .layer-description {
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.crypto-layer .layer-strength .strength-bar {
  width: 100%;
  height: 8px;
  background: var(--color-bg-alt);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.crypto-layer .layer-strength .strength-bar .strength-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 2s ease-out;
}
.crypto-layer .layer-strength .strength-bar .strength-fill.authentication-strength {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  width: 95%;
}
.crypto-layer .layer-strength .strength-bar .strength-fill.key-strength {
  background: linear-gradient(90deg, #10b981, #059669);
  width: 98%;
}
.crypto-layer .layer-strength .strength-bar .strength-fill.encryption-strength {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
  width: 100%;
}
.crypto-layer .layer-strength .strength-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crypto-layer.authentication .layer-icon {
  color: #3b82f6;
}

.crypto-layer.key-derivation .layer-icon {
  color: #10b981;
}

.crypto-layer.encryption .layer-icon {
  color: #8b5cf6;
}

.security-guarantees {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 1921px) {
  .security-guarantees {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1600px;
    margin: 0 auto;
  }
}
@media (min-width: 1024px) and (max-width: 1920px) {
  .security-guarantees {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .security-guarantees {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 767px) {
  .security-guarantees {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  min-width: 0;
}
@media (min-width: 1024px) {
  .guarantee-item {
    padding: 1.75rem;
  }
}
@media (max-width: 1023px) {
  .guarantee-item {
    padding: 1.5rem;
  }
}
@media (max-width: 767px) {
  .guarantee-item {
    padding: 1.25rem;
  }
}
.guarantee-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 30px rgba(var(--color-accent-rgb), 0.15);
  border-color: var(--color-accent);
}
.guarantee-item:hover .guarantee-icon {
  transform: scale(1.1);
}
.guarantee-item .guarantee-icon {
  font-size: clamp(2rem, 3vw, 2.5rem);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
@media (max-width: 767px) {
  .guarantee-item .guarantee-icon {
    font-size: 2rem;
  }
}
.guarantee-item .guarantee-content .guarantee-title {
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 0.75rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.2;
}
.guarantee-item .guarantee-content .guarantee-description {
  color: var(--color-fg-muted);
  line-height: 1.4;
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
}

.pricing-section {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-panel) 100%);
}
@media (max-width: 768px) {
  .pricing-section {
    overflow: hidden;
  }
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.billing-toggle .billing-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-fg-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.billing-toggle .billing-label.active {
  color: var(--color-accent);
  transform: scale(1.05);
}
.billing-toggle .billing-label .savings-badge {
  display: inline-block;
  background: linear-gradient(135deg, #00ff88, #00cc44);
  color: #003d1a;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
  animation: savings-pulse 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 32px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.toggle-label:hover {
  background: var(--color-accent-bg);
}

.toggle-slider {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-label {
  background: var(--color-accent);
}
.toggle-input:checked + .toggle-label .toggle-slider {
  transform: translateX(28px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
@media (max-width: 1100px) {
  .pricing-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 1rem 2rem 1rem;
    margin: 0 -1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .pricing-grid::-webkit-scrollbar {
    display: none;
  }
  .pricing-grid::before {
    content: "←  →";
    position: absolute;
    bottom: 0rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: var(--color-fg-muted);
    opacity: 0.7;
    animation: fade-in-out 3s ease-in-out infinite;
    z-index: 1;
  }
}
@media (max-width: 480px) {
  .pricing-grid {
    padding: 0 0.5rem;
    margin: 0 -0.5rem;
  }
}

.pricing-card {
  background: var(--color-panel);
  border-radius: var(--landing-card-radius);
  padding: 2.5rem;
  border: 2px solid var(--color-border);
  position: relative;
  overflow: visible;
  transition: all 0.4s ease;
}
@media (max-width: 768px) {
  .pricing-card {
    flex: 0 0 85% !important;
    scroll-snap-align: center;
    padding: 2rem 1.5rem;
  }
  .pricing-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -0.5rem;
    top: 20%;
    height: 60%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(var(--color-accent-rgb), 0.3), transparent);
    border-radius: 1px;
  }
}
@media (max-width: 480px) {
  .pricing-card {
    flex: 0 0 90% !important;
  }
}
.pricing-card.featured {
  border-color: var(--color-accent);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(var(--color-accent-rgb, 106, 53, 255), 0.2);
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .pricing-card.featured {
    transform: none;
    margin-top: 1rem;
  }
}
.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(var(--color-accent-rgb, 106, 53, 255), 0.15);
  border-color: var(--color-accent);
}
.pricing-card:hover.featured {
  transform: translateY(-10px) scale(1.05);
}
@media (max-width: 768px) {
  .pricing-card:hover.featured {
    transform: translateY(-5px);
  }
}

.popular-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(var(--color-accent-rgb, 106, 53, 255), 0.4);
  animation: badge-glow 3s ease-in-out infinite;
  white-space: nowrap;
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-light);
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}
.plan-price .currency {
  font-size: 1.5rem;
  vertical-align: top;
}
.plan-price .amount {
  transition: all 0.3s ease;
}
.plan-price .amount.crypto-animating {
  font-family: var(--font-mono) !important;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(var(--color-accent-rgb), 0.3);
}
.plan-price .period {
  font-size: 1rem;
  color: var(--color-fg-muted);
  font-weight: 500;
}

.yearly-note {
  text-align: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(var(--security-optimal-rgb, 0, 255, 136), 0.1);
  border-radius: var(--radius-base);
}
.yearly-note .yearly-total {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-fg-muted);
  margin-bottom: 0.25rem;
}
.yearly-note .yearly-savings {
  display: block;
  font-size: 0.8125rem;
  color: var(--security-optimal);
  font-weight: 600;
}
.yearly-note .yearly-savings::before {
  content: "💰 ";
}

.plan-description {
  color: var(--color-fg-muted);
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}
.plan-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9375rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.plan-features li:last-child {
  border-bottom: none;
}
.plan-features li.feature-included {
  color: var(--color-fg);
}
.plan-features li.feature-included::before {
  content: "✓";
  color: var(--security-optimal);
  font-weight: 700;
  margin-right: 0.75rem;
  width: 1rem;
  flex-shrink: 0;
}
.plan-features li.feature-limited {
  color: var(--color-fg-muted);
}
.plan-features li.feature-limited::before {
  content: "⚡";
  margin-right: 0.75rem;
  width: 1rem;
  flex-shrink: 0;
}

.plan-cta {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 700;
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.plan-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}
.plan-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.plan-cta:hover::before {
  left: 100%;
}

.pricing-card.free .plan-name {
  color: var(--color-fg-muted);
}
.pricing-card.free .plan-cta {
  background: var(--color-fg-muted);
}
.pricing-card.free .plan-cta:hover {
  background: var(--color-fg);
}

.pricing-card.pro .plan-name {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pricing-card.pro .plan-price {
  color: #8b5cf6;
}
.pricing-card.pro .plan-cta {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.pricing-card.pro .plan-cta:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.landing-footer-section {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
@media (max-width: 768px) {
  .footer-content {
    padding: 0 1rem;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
}
.footer-brand .brand-icon {
  font-size: 2rem;
}
.footer-brand .brand-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-links a {
  color: var(--color-fg-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--color-accent);
}
@media (max-width: 768px) {
  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.footer-note {
  color: var(--color-fg-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer-note p {
  margin: 0.5rem 0;
}
.footer-note a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}
.footer-note a:hover {
  text-decoration: underline;
}
.footer-note .security-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--color-fg-subtle);
  font-style: italic;
}

@keyframes security-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
@keyframes grid-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.01);
  }
}
@keyframes dot-drift {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.4;
  }
  50% {
    transform: translate(5px, -5px);
    opacity: 0.6;
  }
}
@keyframes gradient-flow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes security-scan {
  0% {
    transform: translateX(-100%);
    box-shadow: 0 0 20px var(--security-optimal);
  }
  50% {
    box-shadow: 0 0 40px var(--security-optimal);
  }
  100% {
    transform: translateX(100vw);
    box-shadow: 0 0 20px var(--security-optimal);
  }
}
@keyframes level-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
    transform: scale(1.02);
  }
}
@keyframes savings-pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.6);
    transform: scale(1.05);
  }
}
@keyframes badge-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(var(--color-accent-rgb, 106, 53, 255), 0.4);
  }
  50% {
    box-shadow: 0 6px 16px rgba(var(--color-accent-rgb, 106, 53, 255), 0.6);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes float-up {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0.1;
  }
  95% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}
@keyframes dot-pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-in-out {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}
@keyframes input-warning {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}
[data-theme=dark] {
  --grid-color: rgba(var(--color-accent-rgb, 187, 170, 255), 0.12);
  --dot-color: rgba(var(--color-accent-rgb, 187, 170, 255), 0.15);
}
[data-theme=dark] .floating-emoji {
  opacity: 0.08;
}
[data-theme=dark] .security-demo,
[data-theme=dark] .feature-card,
[data-theme=dark] .crypto-layer,
[data-theme=dark] .guarantee-item,
[data-theme=dark] .pricing-card,
[data-theme=dark] .trust-item {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
[data-theme=dark] .security-demo:hover,
[data-theme=dark] .feature-card:hover,
[data-theme=dark] .crypto-layer:hover,
[data-theme=dark] .guarantee-item:hover,
[data-theme=dark] .pricing-card:hover,
[data-theme=dark] .trust-item:hover {
  box-shadow: 0 20px 40px rgba(var(--color-accent-rgb, 106, 53, 255), 0.2);
}
[data-theme=dark] .plaintext-box,
[data-theme=dark] .encrypted-box {
  background: var(--color-bg);
}
[data-theme=dark] .plaintext-box:hover,
[data-theme=dark] .encrypted-box:hover {
  background: var(--color-bg-alt);
}
[data-theme=dark] .dot-pattern {
  background-image: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.15) var(--dot-size), transparent var(--dot-size));
}

body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
}
body.reduce-motion .hero-section,
body.reduce-motion .section-container {
  scroll-behavior: auto !important;
}
body.reduce-motion .floating-emoji {
  animation: none !important;
  opacity: 0.02 !important;
  position: static !important;
  transform: none !important;
  display: none !important;
}
body.reduce-motion .floating-security-emojis {
  display: none !important;
}
body.reduce-motion .hero-highlight {
  animation: none !important;
  background: var(--color-accent) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
body.reduce-motion .math-grid-pattern,
body.reduce-motion .dot-pattern,
body.reduce-motion .hero-background::before,
body.reduce-motion .badge-icon,
body.reduce-motion .arrow-icon,
body.reduce-motion .level-badge,
body.reduce-motion .savings-badge,
body.reduce-motion .security-demo::before,
body.reduce-motion .popular-badge {
  animation: none !important;
}
body.reduce-motion .plan-price .amount.crypto-animating {
  transition: none !important;
  animation: none !important;
}

@media (max-width: 480px) {
  .hero-section {
    padding: 4rem 0.75rem 2rem;
  }
  .security-demo {
    padding: 1.5rem 1rem;
  }
  .encryption-showcase {
    gap: 1rem;
  }
  .performance-metrics {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .features-grid {
    gap: 1rem;
  }
  .feature-card {
    padding: 1.5rem 1rem;
  }
  .crypto-stack {
    gap: 1rem;
  }
  .crypto-layer {
    padding: 1.5rem 1rem;
  }
  .guarantee-item {
    padding: 1rem;
    gap: 0.75rem;
    flex-direction: column;
    text-align: center;
  }
  .trust-indicators {
    grid-template-columns: 1fr;
  }
  .billing-toggle {
    flex-direction: column;
    gap: 1rem;
  }
}
@media (prefers-contrast: high) {
  .feature-card,
  .crypto-layer,
  .guarantee-item,
  .pricing-card {
    border-width: 3px;
  }
  .cta-primary,
  .cta-secondary,
  .plan-cta {
    border: 2px solid currentColor;
  }
}
.cta-pricing {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.9em 1.7em;
  margin-bottom: 1.5rem;
  font-size: 1.07rem;
  font-weight: 700;
  background: rgba(var(--color-accent-rgb, 106, 53, 255), 0.1);
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-lg, 1.5rem);
  box-shadow: 0 2px 12px rgba(var(--color-accent-rgb, 106, 53, 255), 0.08);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.14s;
  position: relative;
  z-index: 2;
}
.cta-pricing .cta-icon {
  font-size: 1.22em;
  vertical-align: -0.08em;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5333333333));
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-pricing:hover, .cta-pricing:focus {
  background: linear-gradient(90deg, var(--color-accent-bg, #f3e8ff) 60%, #e0e7ff 100%);
  color: var(--color-accent-hover, #5a2fff);
  border-color: var(--color-accent-hover, #5a2fff);
  box-shadow: 0 6px 24px rgba(var(--color-accent-rgb, 106, 53, 255), 0.16);
  transform: translateY(-2px) scale(1.04);
  text-decoration: none !important;
}
.cta-pricing:hover .cta-icon, .cta-pricing:focus .cta-icon {
  transform: scale(1.12) rotate(-10deg);
  filter: drop-shadow(0 2px 8px var(--color-accent));
}
.cta-pricing:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(var(--color-accent-rgb, 106, 53, 255), 0.1);
}
@media (max-width: 768px) {
  .cta-pricing {
    width: 100%;
    max-width: 340px;
    font-size: 1.02rem;
    justify-content: center;
    margin-top: 1.1rem;
  }
}

.landing-hidden {
  display: none !important;
}

.landing-visible {
  display: block !important;
}

.landing-fade-in {
  animation: fade-in-up 0.6s ease-out;
}

.landing-pulse {
  animation: pulse 2s infinite;
}

.landing-glow {
  box-shadow: 0 0 20px rgba(var(--color-accent-rgb, 106, 53, 255), 0.4);
}

.content-wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.explainable-term {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--color-accent);
  transition: all var(--transition-fast);
}
.explainable-term:hover {
  color: var(--color-accent);
  border-bottom-style: solid;
}
.explainable-term::after {
  content: "💡";
  position: absolute;
  top: -0.5rem;
  right: -0.75rem;
  font-size: 0.75rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-fast);
  pointer-events: none;
}
.explainable-term:hover::after {
  opacity: 0.7;
  transform: scale(1);
}

.explanation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.explanation-modal.active {
  opacity: 1;
  visibility: visible;
}
.explanation-modal .explanation-content {
  background: var(--color-panel);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border: 2px solid var(--color-accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.explanation-modal .explanation-content .explanation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.explanation-modal .explanation-content .explanation-header .explanation-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
}
.explanation-modal .explanation-content .explanation-header .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-fg-muted);
  padding: 0.5rem;
  border-radius: var(--radius-base);
  transition: all var(--transition-fast);
}
.explanation-modal .explanation-content .explanation-header .close-btn:hover {
  background: var(--color-bg-alt);
  color: var(--color-fg);
}
.explanation-modal .explanation-content .explanation-body .explanation-text {
  color: var(--color-fg);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.explanation-modal .explanation-content .explanation-body .why-important {
  background: var(--color-accent-bg);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-base);
  padding: 1rem;
}
.explanation-modal .explanation-content .explanation-body .why-important .why-title {
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.explanation-modal .explanation-content .explanation-body .why-important .why-text {
  color: var(--color-fg-muted);
  line-height: 1.5;
  font-size: 0.9375rem;
  margin: 0;
}
.explanation-modal.active .explanation-content {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .explanation-modal {
    padding: 1rem;
  }
  .explanation-modal .explanation-content {
    padding: 1.5rem;
    max-height: 90vh;
  }
  .explanation-modal .explanation-content .explanation-header .explanation-title {
    font-size: 1.25rem;
  }
}
.enterprise-announcement {
  margin: 4rem auto 0 auto;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-accent) 0%, #8b5cf6 35%, #3b82f6 70%, var(--color-accent) 100%);
  background-size: 300% 300%;
  animation: enterprise-gradient-flow 8s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  box-shadow: 0 20px 40px rgba(var(--color-accent-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.enterprise-announcement::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-accent), #8b5cf6, #3b82f6, var(--color-accent));
  background-size: 400% 400%;
  border-radius: 2rem;
  z-index: -1;
  animation: enterprise-border-glow 6s linear infinite;
  opacity: 0.7;
}
.enterprise-announcement:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 30px 60px rgba(var(--color-accent-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.enterprise-announcement:hover .coming-soon-badge {
  animation-duration: 1s;
}
.enterprise-announcement:hover .enterprise-cta {
  background: rgb(255, 255, 255);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}
@media (max-width: 768px) {
  .enterprise-announcement {
    margin: 3rem 1rem 0 1rem;
    border-radius: 1.5rem;
  }
  .enterprise-announcement::before {
    border-radius: 1.5rem;
  }
}

.announcement-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) {
  .announcement-content {
    padding: 2rem 1.5rem;
    gap: 1.25rem;
  }
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  animation: enterprise-pulse 3s ease-in-out infinite;
}
.coming-soon-badge::before {
  content: "🚀";
  animation: rocket-bounce 2s ease-in-out infinite;
}
@media (max-width: 768px) {
  .coming-soon-badge {
    font-size: 0.8125rem;
    padding: 0.625rem 1.25rem;
  }
}

.announcement-text {
  text-align: center;
  color: white;
}
.announcement-text h3 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0.9) 50%, rgb(255, 255, 255) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 4s ease-in-out infinite;
}
.announcement-text p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin: 0;
  line-height: 1.6;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  max-width: 600px;
}

.enterprise-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-accent);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.enterprise-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}
.enterprise-cta:hover::before {
  left: 100%;
}
.enterprise-cta::after {
  content: "→";
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}
.enterprise-cta:hover::after {
  transform: translateX(4px);
}
@media (max-width: 768px) {
  .enterprise-cta {
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
  }
}

@keyframes enterprise-gradient-flow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes enterprise-border-glow {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.7;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}
@keyframes enterprise-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
}
@keyframes rocket-bounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-2px) rotate(-5deg);
  }
  75% {
    transform: translateY(-1px) rotate(5deg);
  }
}
@keyframes text-shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
[data-theme=dark] .enterprise-announcement {
  box-shadow: 0 20px 40px rgba(var(--color-accent-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
[data-theme=dark] .enterprise-announcement:hover {
  box-shadow: 0 30px 60px rgba(var(--color-accent-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.plan-note {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(var(--color-accent-rgb), 0.1);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  border-radius: var(--radius-base);
  text-align: center;
}
.plan-note small {
  font-size: 0.8125rem;
  color: var(--color-fg-muted);
  line-height: 1.4;
  font-style: italic;
}

@media (max-width: 480px) {
  .enterprise-announcement {
    margin: 2rem 0.5rem 0 0.5rem;
  }
  .enterprise-announcement .announcement-content {
    padding: 1.5rem 1rem;
  }
  .enterprise-announcement .announcement-text h3 {
    font-size: 1.75rem;
  }
  .enterprise-announcement .enterprise-cta {
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
  }
}
.security-page-root {
  --security-green: #00ff88;
  --security-red: #ff4444;
  --security-blue: #3b82f6;
  --security-purple: #8b5cf6;
  --security-orange: #f59e0b;
  --security-teal: #10b981;
  --security-gradient-optimal: linear-gradient(135deg, var(--security-green), #00cc44);
  --security-gradient-critical: linear-gradient(135deg, var(--security-red), #dc2626);
  --security-gradient-rainbow: linear-gradient(90deg,
      var(--security-green) 0%,
      var(--security-blue) 25%,
      var(--security-purple) 50%,
      var(--security-orange) 75%,
      var(--security-green) 100%
  );
  --security-section-gap: 8rem;
  --security-card-gap: 2rem;
  --security-border-radius: 1.5rem;
}
@media (max-width: 768px) {
  .security-page-root {
    --security-section-gap: 4rem;
    --security-card-gap: 1rem;
  }
}
.security-page-root .hero-section.security-hero {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 30%, rgba(0, 255, 136, 0.03) 70%, var(--color-panel) 100%);
}
.security-page-root .hero-section.security-hero .hero-background::before {
  background: radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}
.security-page-root .hero-section.security-hero .math-grid-pattern.security-grid {
  background-image: linear-gradient(rgba(0, 255, 136, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 136, 0.12) 1px, transparent 1px);
  background-size: 25px 25px;
  opacity: 0.4;
  animation: security-grid-flow 12s ease-in-out infinite;
}
.security-page-root .hero-section.security-hero .hero-badge.security-badge {
  background: var(--security-gradient-optimal);
  color: #003d1a;
  border: 1px solid rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  animation: security-badge-pulse 3s ease-in-out infinite;
}
.security-page-root .hero-section.security-hero .hero-badge.security-badge .badge-icon {
  animation: security-scan-sec 4s linear infinite;
}
.security-page-root .security-metrics {
  display: grid;
  gap: var(--security-card-gap);
  margin-top: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .security-page-root .security-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .security-page-root .security-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}
.security-page-root .metric-card {
  background: var(--color-panel);
  border-radius: var(--security-border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}
.security-page-root .metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--security-gradient-rainbow);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.security-page-root .metric-card:hover {
  transform: translateY(-12px) scale(1.03);
  border-color: var(--security-green);
  box-shadow: 0 25px 50px rgba(0, 255, 136, 0.15), 0 0 0 1px rgba(0, 255, 136, 0.1);
  will-change: auto;
}
.security-page-root .metric-card:hover::before {
  transform: translateX(0);
}
.security-page-root .metric-card:hover .metric-icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 15px currentColor);
}
.security-page-root .metric-card:hover .metric-value {
  text-shadow: 0 0 20px var(--security-green);
}
.security-page-root .metric-card .metric-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.security-page-root .metric-card .metric-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--security-green);
  margin-bottom: 0.5rem;
  line-height: 1;
  transition: all 0.3s ease;
  font-family: var(--font-mono, "Courier New", monospace);
}
.security-page-root .metric-card .metric-label {
  font-size: 0.9375rem;
  color: var(--color-fg-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (max-width: 480px) {
  .security-page-root .metric-card {
    padding: 1.5rem 1rem;
  }
  .security-page-root .metric-card .metric-icon {
    font-size: 2.5rem;
  }
  .security-page-root .metric-card .metric-value {
    font-size: 2rem;
  }
}
.security-page-root .zero-knowledge-section {
  padding: var(--security-section-gap) 0;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 50%, var(--color-bg) 100%);
}
.security-page-root .zk-flow-diagram {
  display: grid;
  gap: var(--security-card-gap);
  margin: 4rem 0;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .security-page-root .zk-flow-diagram {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1.5rem;
  }
}
.security-page-root .flow-step {
  background: var(--color-panel);
  border-radius: var(--security-border-radius);
  padding: 3rem 2rem;
  text-align: center;
  border: 2px solid var(--color-border);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}
.security-page-root .flow-step:hover {
  transform: translateY(-8px);
  will-change: auto;
}
.security-page-root .flow-step:hover .step-icon {
  transform: scale(1.15);
}
.security-page-root .flow-step .step-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}
.security-page-root .flow-step h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-fg);
}
.security-page-root .flow-step p {
  color: var(--color-fg-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.security-page-root .flow-step .step-security .security-level {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.security-page-root .flow-step .step-security .security-level.optimal {
  background: var(--security-gradient-optimal);
  color: #003d1a;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}
.security-page-root .flow-step .step-security .security-level.critical {
  background: var(--security-gradient-critical);
  color: white;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}
.security-page-root .flow-step.client-side {
  border-color: var(--security-green);
}
.security-page-root .flow-step.client-side:hover {
  border-color: var(--security-green);
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15);
}
.security-page-root .flow-step.server-side {
  border-color: var(--security-red);
}
.security-page-root .flow-step.server-side:hover {
  border-color: var(--security-red);
  box-shadow: 0 20px 40px rgba(255, 68, 68, 0.15);
}
.security-page-root .flow-step.recipient-side {
  border-color: var(--security-blue);
}
.security-page-root .flow-step.recipient-side:hover {
  border-color: var(--security-blue);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}
@media (max-width: 768px) {
  .security-page-root .flow-step {
    padding: 2rem 1.5rem;
  }
  .security-page-root .flow-step .step-icon {
    font-size: 3rem;
  }
}
.security-page-root .flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.security-page-root .flow-arrow .arrow-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  animation: arrow-float 3s ease-in-out infinite;
}
.security-page-root .flow-arrow .arrow-label {
  font-size: 0.8125rem;
  color: var(--color-fg-muted);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (max-width: 1024px) {
  .security-page-root .flow-arrow .arrow-icon {
    transform: rotate(90deg);
    font-size: 2rem;
  }
}
.security-page-root .mathematical-proof {
  background: var(--color-bg-alt);
  border-radius: var(--security-border-radius);
  padding: 3rem;
  margin-top: 4rem;
  border: 2px solid var(--color-accent);
  position: relative;
  overflow: hidden;
}
.security-page-root .mathematical-proof::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--security-gradient-rainbow);
  animation: rainbow-flow 4s linear infinite;
}
.security-page-root .mathematical-proof h3 {
  color: var(--color-accent);
  margin-bottom: 2rem;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.security-page-root .mathematical-proof .proof-formula {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  font-family: var(--font-mono, "Courier New", monospace);
  border: 1px solid var(--color-border);
  position: relative;
}
.security-page-root .mathematical-proof .proof-formula code {
  color: var(--security-green);
  font-size: 1.125rem;
  line-height: 2;
  display: block;
}
.security-page-root .mathematical-proof .proof-explanation {
  color: var(--color-fg-muted);
  line-height: 1.6;
  font-style: italic;
}
@media (max-width: 768px) {
  .security-page-root .mathematical-proof {
    padding: 2rem;
  }
  .security-page-root .mathematical-proof .proof-formula {
    padding: 1.5rem;
  }
  .security-page-root .mathematical-proof .proof-formula code {
    font-size: 1rem;
    line-height: 1.8;
  }
}
.security-page-root .cryptography-section {
  padding: var(--security-section-gap) 0;
  background: linear-gradient(135deg, var(--color-panel) 0%, var(--color-bg-alt) 100%);
}
.security-page-root .crypto-layers {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 4rem;
}
.security-page-root .crypto-layer-detailed {
  background: var(--color-panel);
  border-radius: var(--security-border-radius);
  padding: 3rem;
  border: 2px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}
.security-page-root .crypto-layer-detailed:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(var(--color-accent-rgb), 0.1);
  border-color: var(--color-accent);
  will-change: auto;
}
.security-page-root .crypto-layer-detailed .layer-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}
.security-page-root .crypto-layer-detailed .layer-header .layer-icon {
  font-size: 4rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.security-page-root .crypto-layer-detailed .layer-header .layer-info {
  flex: 1;
}
.security-page-root .crypto-layer-detailed .layer-header .layer-info h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-fg);
}
.security-page-root .crypto-layer-detailed .layer-header .layer-info .layer-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.security-page-root .crypto-layer-detailed .layer-header .layer-info .layer-specs .spec {
  background: var(--color-accent-bg);
  color: var(--color-accent);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  transition: all 0.2s ease;
}
.security-page-root .crypto-layer-detailed .layer-header .layer-info .layer-specs .spec:hover {
  background: var(--color-accent);
  color: white;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .security-page-root .crypto-layer-detailed .layer-header {
    flex-direction: column;
    text-align: center;
  }
  .security-page-root .crypto-layer-detailed .layer-header .layer-icon {
    font-size: 3rem;
  }
  .security-page-root .crypto-layer-detailed .layer-header .layer-info h3 {
    font-size: 1.5rem;
  }
}
.security-page-root .crypto-layer-detailed .layer-description {
  color: var(--color-fg-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}
.security-page-root .crypto-layer-detailed .layer-technical {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}
.security-page-root .crypto-layer-detailed .layer-technical h4 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.security-page-root .crypto-layer-detailed .layer-technical ul {
  list-style: none;
  padding: 0;
}
.security-page-root .crypto-layer-detailed .layer-technical ul li {
  padding: 0.75rem 0;
  position: relative;
  padding-left: 2rem;
  color: var(--color-fg-muted);
  border-bottom: 1px solid rgba(var(--color-border-rgb), 0.3);
  transition: all 0.2s ease;
}
.security-page-root .crypto-layer-detailed .layer-technical ul li:last-child {
  border-bottom: none;
}
.security-page-root .crypto-layer-detailed .layer-technical ul li:hover {
  color: var(--color-fg);
  padding-left: 2.5rem;
}
.security-page-root .crypto-layer-detailed .layer-technical ul li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  transition: all 0.2s ease;
}
.security-page-root .crypto-layer-detailed .layer-technical ul li:hover::before {
  transform: scale(1.2);
}
.security-page-root .crypto-layer-detailed .security-strength .strength-bar {
  width: 100%;
  height: 12px;
  background: var(--color-bg-alt);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--color-border);
}
.security-page-root .crypto-layer-detailed .security-strength .strength-bar .strength-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.security-page-root .crypto-layer-detailed .security-strength .strength-bar .strength-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: strength-shine 3s ease-in-out infinite;
}
.security-page-root .crypto-layer-detailed .security-strength .strength-bar .strength-fill.auth-strength {
  background: linear-gradient(90deg, var(--security-blue), #1d4ed8);
  width: 95%;
}
.security-page-root .crypto-layer-detailed .security-strength .strength-bar .strength-fill.kdf-strength {
  background: linear-gradient(90deg, var(--security-green), #00cc44);
  width: 98%;
}
.security-page-root .crypto-layer-detailed .security-strength .strength-bar .strength-fill.encryption-strength {
  background: linear-gradient(90deg, var(--security-purple), #7c3aed);
  width: 100%;
}
.security-page-root .crypto-layer-detailed .security-strength .strength-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.security-page-root .crypto-layer-detailed.authentication .layer-icon {
  color: var(--security-blue);
}
.security-page-root .crypto-layer-detailed.authentication .layer-icon:hover {
  filter: drop-shadow(0 0 15px var(--security-blue));
}
.security-page-root .crypto-layer-detailed.key-derivation .layer-icon {
  color: var(--security-green);
}
.security-page-root .crypto-layer-detailed.key-derivation .layer-icon:hover {
  filter: drop-shadow(0 0 15px var(--security-green));
}
.security-page-root .crypto-layer-detailed.encryption .layer-icon {
  color: var(--security-purple);
}
.security-page-root .crypto-layer-detailed.encryption .layer-icon:hover {
  filter: drop-shadow(0 0 15px var(--security-purple));
}
@media (max-width: 768px) {
  .security-page-root .crypto-layer-detailed {
    padding: 2rem 1.5rem;
  }
  .security-page-root .crypto-layer-detailed .layer-technical {
    padding: 1.5rem;
  }
}
.security-page-root .threat-model-section,
.security-page-root .audits-section,
.security-page-root .disclosure-section {
  padding: var(--security-section-gap) 0;
}
.security-page-root .threat-model-section {
  background: var(--color-bg);
}
.security-page-root .audits-section {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-panel) 100%);
}
.security-page-root .disclosure-section {
  background: var(--color-bg);
}
.security-page-root .threat-matrix {
  display: grid;
  gap: var(--security-card-gap);
  margin-top: 4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .security-page-root .threat-matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}
.security-page-root .threat-category {
  background: var(--color-panel);
  border-radius: var(--security-border-radius);
  padding: 2.5rem;
  border: 2px solid var(--color-border);
  transition: all 0.3s ease;
}
.security-page-root .threat-category:hover {
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(var(--color-accent-rgb), 0.1);
}
.security-page-root .threat-category h3 {
  color: var(--color-fg);
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
}
.security-page-root .threat-category .threat-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.security-page-root .threat-category .threat-item {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}
.security-page-root .threat-category .threat-item.protected {
  border-color: var(--security-green);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, transparent 100%);
}
.security-page-root .threat-category .threat-item.protected:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, transparent 100%);
  transform: translateY(-2px);
}
.security-page-root .threat-category .threat-item .threat-name {
  font-weight: 700;
  color: var(--color-fg);
  display: block;
  margin-bottom: 0.5rem;
}
.security-page-root .threat-category .threat-item .protection-status {
  color: var(--security-green);
  font-weight: 600;
  font-size: 0.9375rem;
  display: block;
  margin-bottom: 0.75rem;
}
.security-page-root .threat-category .threat-item .protection-method {
  color: var(--color-fg-muted);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}
.security-page-root .audit-grid {
  display: grid;
  gap: var(--security-card-gap);
  margin-top: 4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .security-page-root .audit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.security-page-root .audit-card {
  background: var(--color-panel);
  border-radius: var(--security-border-radius);
  padding: 3rem;
  border: 2px solid var(--color-border);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}
.security-page-root .audit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(var(--color-accent-rgb), 0.1);
  border-color: var(--color-accent);
  will-change: auto;
}
.security-page-root .audit-card:hover .audit-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 15px currentColor);
}
.security-page-root .audit-card .audit-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}
.security-page-root .audit-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-fg);
}
.security-page-root .audit-card p {
  color: var(--color-fg-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.security-page-root .audit-card .audit-links .audit-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.security-page-root .audit-card .audit-links .audit-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
  transform: translateX(4px);
}
.security-page-root .audit-card .audit-status .status-badge {
  background: var(--color-accent-bg);
  color: var(--color-accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  transition: all 0.2s ease;
}
.security-page-root .audit-card .audit-status .status-badge.current {
  background: var(--security-gradient-optimal);
  color: #003d1a;
  border-color: var(--security-green);
  animation: status-pulse 2s ease-in-out infinite;
}
.security-page-root .audit-card .audit-status .status-badge:hover {
  transform: scale(1.05);
}
.security-page-root .audit-card .compliance-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.security-page-root .audit-card .compliance-badges .compliance-badge {
  background: var(--color-accent-bg);
  color: var(--color-accent);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  transition: all 0.2s ease;
}
.security-page-root .audit-card .compliance-badges .compliance-badge:hover {
  background: var(--color-accent);
  color: white;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .security-page-root .audit-card {
    padding: 2rem 1.5rem;
  }
  .security-page-root .audit-card .audit-icon {
    font-size: 3rem;
  }
}
.security-page-root .disclosure-process {
  display: grid;
  gap: var(--security-card-gap);
  margin: 4rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .security-page-root .disclosure-process {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .security-page-root .disclosure-process {
    grid-template-columns: repeat(4, 1fr);
  }
}
.security-page-root .process-step {
  text-align: center;
  padding: 2rem 1rem;
  transition: all 0.3s ease;
}
.security-page-root .process-step:hover {
  transform: translateY(-4px);
}
.security-page-root .process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(var(--color-accent-rgb), 0.3);
}
.security-page-root .process-step .step-number {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem auto;
  transition: all 0.3s ease;
  position: relative;
}
.security-page-root .process-step .step-number::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--security-gradient-rainbow);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.security-page-root .process-step .step-number:hover::before {
  opacity: 1;
}
.security-page-root .process-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-fg);
}
.security-page-root .process-step p {
  color: var(--color-fg-muted);
  line-height: 1.5;
}
.security-page-root .security-contact {
  background: var(--color-panel);
  border-radius: var(--security-border-radius);
  padding: 3rem;
  margin-top: 4rem;
  border: 2px solid var(--color-accent);
  position: relative;
  overflow: hidden;
}
.security-page-root .security-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--security-gradient-rainbow);
  animation: rainbow-flow 4s linear infinite;
}
.security-page-root .security-contact h3 {
  color: var(--color-accent);
  margin-bottom: 2rem;
  font-size: 1.75rem;
  text-align: center;
}
.security-page-root .security-contact .contact-info {
  display: grid;
  gap: 1.5rem;
}
.security-page-root .security-contact .contact-info .contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.security-page-root .security-contact .contact-info .contact-item:hover {
  background: var(--color-bg);
  transform: translateY(-2px);
}
.security-page-root .security-contact .contact-info .contact-item.primary {
  border: 2px solid var(--security-green);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, transparent 100%);
}
.security-page-root .security-contact .contact-info .contact-item strong {
  color: var(--color-fg);
  min-width: 140px;
  font-weight: 700;
}
.security-page-root .security-contact .contact-info .contact-item code {
  background: var(--color-bg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-base);
  font-family: var(--font-mono, "Courier New", monospace);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  font-size: 0.9375rem;
}
.security-page-root .security-contact .contact-info .contact-item .response-guarantee {
  color: var(--security-green);
  font-weight: 700;
  font-size: 1.125rem;
}
@media (max-width: 768px) {
  .security-page-root .security-contact .contact-info .contact-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }
  .security-page-root .security-contact .contact-info .contact-item strong {
    min-width: auto;
  }
}
.security-page-root .security-contact .pgp-details {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}
.security-page-root .security-contact .pgp-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-accent);
  padding: 0.5rem;
  border-radius: var(--radius-base);
  transition: all 0.2s ease;
}
.security-page-root .security-contact .pgp-details summary:hover {
  background: var(--color-accent-bg);
}
.security-page-root .security-contact .pgp-details .contact-item.technical {
  margin-top: 1rem;
  flex-direction: column;
  align-items: flex-start;
}
.security-page-root .security-contact .pgp-details .contact-item.technical small {
  color: var(--color-fg-muted);
  font-style: italic;
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .security-page-root .security-contact {
    padding: 2rem;
  }
}
.security-page-root .security-footer-section {
  padding: 3rem 0 2rem;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
}
.security-page-root .security-footer-section .footer-security-note {
  text-align: center;
}
.security-page-root .security-footer-section .footer-security-note p {
  color: var(--color-fg-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}
@keyframes security-grid-flow {
  0%, 100% {
    opacity: 0.3;
    transform: translateZ(0) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateZ(0) scale(1.02);
  }
}
@keyframes security-badge-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
    transform: scale(1.02);
  }
}
@keyframes security-scan-sec {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes arrow-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-5px) scale(1.05);
    opacity: 1;
  }
}
@keyframes rainbow-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
@keyframes strength-shine {
  0%, 100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}
@keyframes status-pulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0, 255, 136, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
  }
}
.security-page-root [data-theme=dark] .hero-section.security-hero .math-grid-pattern.security-grid {
  background-image: linear-gradient(rgba(0, 255, 136, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 136, 0.08) 1px, transparent 1px);
}
.security-page-root [data-theme=dark] .metric-card,
.security-page-root [data-theme=dark] .flow-step,
.security-page-root [data-theme=dark] .crypto-layer-detailed,
.security-page-root [data-theme=dark] .threat-category,
.security-page-root [data-theme=dark] .audit-card {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.security-page-root [data-theme=dark] .metric-card:hover,
.security-page-root [data-theme=dark] .flow-step:hover,
.security-page-root [data-theme=dark] .crypto-layer-detailed:hover,
.security-page-root [data-theme=dark] .threat-category:hover,
.security-page-root [data-theme=dark] .audit-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}
.security-page-root [data-theme=dark] .mathematical-proof {
  background: rgba(0, 0, 0, 0.3);
}
.security-page-root [data-theme=dark] .mathematical-proof .proof-formula {
  background: rgba(0, 0, 0, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .security-page-root * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .security-page-root .metric-card:hover,
  .security-page-root .flow-step:hover,
  .security-page-root .crypto-layer-detailed:hover,
  .security-page-root .audit-card:hover {
    transform: none !important;
  }
  .security-page-root .floating-emoji {
    display: none !important;
  }
}
@media (prefers-contrast: high) {
  .security-page-root .metric-card,
  .security-page-root .flow-step,
  .security-page-root .crypto-layer-detailed,
  .security-page-root .threat-category,
  .security-page-root .audit-card {
    border-width: 3px !important;
  }
  .security-page-root .security-level,
  .security-page-root .status-badge,
  .security-page-root .compliance-badge {
    border: 2px solid currentColor !important;
  }
}
.security-page-root .mathematical-proof h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
}
.security-page-root .mathematical-proof .srp-flow {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.security-page-root .mathematical-proof .srp-flow li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.security-page-root .mathematical-proof .srp-flow li::before {
  counter-increment: step;
  content: counter(step);
  width: 2rem;
  height: 2rem;
  background: var(--security-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 1rem;
  flex-shrink: 0;
}
.security-page-root .mathematical-proof .srp-flow li .step-icon {
  font-size: 2rem;
  margin-right: 0.5rem;
}
.security-page-root .mathematical-proof .srp-flow li .step-body strong {
  display: block;
  margin-bottom: 0.25rem;
}
.security-page-root .mathematical-proof .srp-flow li .step-body code {
  font-family: var(--font-mono);
  background: var(--color-bg-alt);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.25rem;
}
.security-page-root .mathematical-proof .srp-flow li .step-body small {
  color: var(--color-fg-muted);
}
.security-page-root .mathematical-proof .proof-console {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  line-height: 1.4;
  margin-top: 2rem;
  white-space: pre-wrap;
}
@media (max-width: 480px) {
  .security-page-root :root {
    --security-section-gap: 3rem;
    --security-card-gap: 1rem;
    --security-border-radius: 1rem;
  }
  .security-page-root .hero-section.security-hero {
    padding: 4rem 1rem 2rem;
  }
  .security-page-root .zero-knowledge-section,
  .security-page-root .cryptography-section,
  .security-page-root .threat-model-section,
  .security-page-root .audits-section,
  .security-page-root .disclosure-section {
    padding: 3rem 0;
  }
  .security-page-root .mathematical-proof,
  .security-page-root .security-contact {
    margin-top: 2rem;
  }
}
.security-page-root .pgp-details .pgp-download-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.security-page-root .pgp-details .pgp-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--security-green), #00cc44);
  color: #003d1a;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.security-page-root .pgp-details .pgp-download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}
.security-page-root .pgp-details .pgp-download-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}
.security-page-root .pgp-details .pgp-download-btn:hover::before {
  left: 100%;
}
.security-page-root .pgp-details .pgp-download-btn:hover .download-icon {
  transform: scale(1.1) translateY(-2px);
}
.security-page-root .pgp-details .pgp-download-btn:active {
  transform: translateY(0) scale(0.98);
}
.security-page-root .pgp-details .pgp-download-btn .download-icon {
  font-size: 1.25rem;
  transition: all 0.3s ease;
}
@media (max-width: 480px) {
  .security-page-root .pgp-details .pgp-download-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
    justify-content: center;
  }
}
[data-theme=dark] .security-page-root .pgp-details .pgp-download-btn {
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.15);
}
[data-theme=dark] .security-page-root .pgp-details .pgp-download-btn:hover {
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.25);
}

.privacy-page-root .privacy-hero {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 30%, rgba(64, 224, 208, 0.1) 70%, var(--color-panel) 100%);
}
.privacy-page-root .privacy-hero .hero-background::before {
  background: radial-gradient(circle at 20% 80%, rgba(64, 224, 208, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}
.privacy-page-root .privacy-hero .hero-badge.privacy-badge {
  background: linear-gradient(90deg, #00c6a6, #3b82f6);
  color: #003d1a;
  border: 1px solid rgba(64, 224, 208, 0.4);
  box-shadow: 0 0 18px rgba(64, 224, 208, 0.15);
}
.privacy-page-root .privacy-hero .hero-badge.privacy-badge .badge-icon {
  animation: spin 6s linear infinite;
}
.privacy-page-root .privacy-section {
  padding: 6rem 0 2rem;
}
.privacy-page-root .privacy-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.privacy-page-root .privacy-principles-grid .principle-card {
  background: var(--color-panel);
  border-radius: var(--landing-card-radius);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s, border-color 0.3s;
  text-align: center;
}
.privacy-page-root .privacy-principles-grid .principle-card .principle-icon {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: #00c6a6;
}
.privacy-page-root .privacy-principles-grid .principle-card h3 {
  font-size: 1.25rem;
  color: var(--color-fg);
  font-weight: 700;
  margin-bottom: 1rem;
}
.privacy-page-root .privacy-principles-grid .principle-card p {
  color: var(--color-fg-muted);
  font-size: 1rem;
}
.privacy-page-root .privacy-principles-grid .principle-card:hover {
  border-color: #00c6a6;
  box-shadow: 0 0 18px rgba(64, 224, 208, 0.12);
}
.privacy-page-root .privacy-principles-grid .principle-card:hover .principle-icon {
  filter: drop-shadow(0 0 8px #00c6a6);
}
.privacy-page-root .privacy-details-section {
  padding: 4rem 0 2rem;
}
.privacy-page-root .privacy-details-section .privacy-details-list {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.privacy-page-root .privacy-details-section .privacy-details-list .privacy-detail {
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2rem 2rem 1.5rem 2rem;
  transition: border-color 0.3s;
}
.privacy-page-root .privacy-details-section .privacy-details-list .privacy-detail h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00c6a6;
  margin-bottom: 0.5rem;
}
.privacy-page-root .privacy-details-section .privacy-details-list .privacy-detail p {
  color: var(--color-fg-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.privacy-page-root .privacy-details-section .privacy-details-list .privacy-detail:hover {
  border-color: #00c6a6;
}
@media (max-width: 768px) {
  .privacy-page-root .privacy-section, .privacy-page-root .privacy-details-section {
    padding: 3rem 0 1rem;
  }
  .privacy-page-root .privacy-section .privacy-details-list, .privacy-page-root .privacy-details-section .privacy-details-list {
    gap: 1.25rem;
  }
  .privacy-page-root .privacy-section .privacy-details-list .privacy-detail, .privacy-page-root .privacy-details-section .privacy-details-list .privacy-detail {
    padding: 1.25rem 1rem;
  }
  .privacy-page-root .privacy-principles-grid {
    gap: 1rem;
  }
  .privacy-page-root .privacy-principles-grid .principle-card {
    padding: 1.5rem 1rem;
  }
}
.privacy-page-root .privacy-legal-section {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
  padding: 3rem 0 2rem;
}
.privacy-page-root .privacy-legal-section .privacy-legal-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-fg-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.privacy-page-root .privacy-legal-section .privacy-legal-content .privacy-legal-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-fg);
  font-weight: 700;
}
.privacy-page-root .privacy-legal-section .privacy-legal-content p {
  margin-bottom: 1.25rem;
}
.privacy-page-root .privacy-legal-section .privacy-legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
}
.privacy-page-root .privacy-legal-section .privacy-legal-content a:hover {
  color: var(--color-accent-hover, #008080);
  text-decoration: underline dashed;
}
.privacy-page-root .privacy-legal-section .privacy-legal-content strong {
  color: var(--color-fg);
  font-weight: 600;
}
.privacy-page-root .privacy-legal-section .privacy-legal-content small {
  font-size: 0.92rem;
  color: var(--color-fg-subtle, #888);
}

.imprint-page-root .hero-section.imprint-hero {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 50%, rgba(245, 158, 11, 0.04) 85%, var(--color-panel) 100%);
}
.imprint-page-root .hero-section.imprint-hero .hero-background::before {
  background: radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}
.imprint-page-root .hero-section.imprint-hero .hero-badge.imprint-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #fde68a 100%);
  color: #7c4700;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.12);
}
.imprint-page-root .hero-section.imprint-hero .hero-badge.imprint-badge .badge-icon {
  animation: spin 4s linear infinite;
}
.imprint-page-root .hero-section.imprint-hero .hero-highlight {
  background: linear-gradient(135deg, #f59e0b 0%, #fde68a 100%);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 6s ease-in-out infinite;
}
.imprint-page-root .imprint-legal-section {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  margin-top: 3rem;
  box-shadow: 0 6px 32px rgba(var(--color-accent-rgb, 106, 53, 255), 0.04);
}
.imprint-page-root .imprint-legal-section .imprint-legal-content {
  padding: 2.5rem 2rem;
  font-size: 1.05rem;
  color: var(--color-fg);
  border-radius: var(--radius-base);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
}
.imprint-page-root .imprint-legal-section .imprint-legal-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.imprint-page-root .imprint-legal-section .imprint-legal-content strong {
  color: var(--color-accent);
  font-weight: 700;
}
.imprint-page-root .imprint-legal-section .imprint-legal-content a {
  color: var(--color-accent);
  text-decoration: underline dotted;
}
.imprint-page-root .imprint-legal-section .imprint-legal-content a:hover {
  color: #f59e0b;
}
.imprint-page-root .imprint-legal-section .imprint-legal-content small {
  color: var(--color-fg-muted);
  font-size: 0.95em;
}
.imprint-page-root .imprint-disclaimer-section {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  margin-top: 2.5rem;
  box-shadow: 0 4px 20px rgba(var(--color-accent-rgb, 106, 53, 255), 0.03);
}
.imprint-page-root .imprint-disclaimer-section .imprint-disclaimer-content {
  padding: 2rem 2rem 1rem 2rem;
  color: var(--color-fg-muted);
  font-size: 0.97rem;
  border-radius: var(--radius-base);
}
.imprint-page-root .landing-footer-section {
  margin-top: 4rem;
}
@media (max-width: 768px) {
  .imprint-page-root .imprint-legal-content, .imprint-page-root .imprint-disclaimer-content {
    padding: 1.25rem 0.75rem;
  }
  .imprint-page-root .imprint-legal-section, .imprint-page-root .imprint-disclaimer-section {
    margin-top: 1.25rem;
    border-radius: var(--radius-lg);
  }
}

.terms-page-root .terms-hero {
  min-height: 60vh;
}
.terms-page-root .terms-hero .badge-icon {
  color: #f59e0b;
}
.terms-page-root .terms-hero .hero-highlight {
  color: #f59e0b;
}
.terms-page-root .terms-hero .terms-badge {
  background: linear-gradient(90deg, #f59e0b 40%, #fbbf24 100%);
  color: #222;
  border: 1px solid #f59e0b;
}
.terms-page-root .terms-section {
  padding: 4rem 0 2rem;
  background: var(--color-panel);
}
.terms-page-root .terms-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.terms-page-root .terms-section .section-title {
  color: #f59e0b;
  font-size: 2.25rem;
  font-weight: 800;
}
.terms-page-root .terms-section .section-subtitle {
  color: var(--color-fg-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}
.terms-page-root .terms-section .terms-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.terms-page-root .terms-section .terms-block {
  background: var(--color-bg-alt);
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.05);
  padding: 2rem 2rem 1.5rem;
  border-left: 6px solid #f59e0b;
}
.terms-page-root .terms-section .terms-block h3 {
  color: #f59e0b;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.terms-page-root .terms-section .terms-block p, .terms-page-root .terms-section .terms-block ul {
  color: var(--color-fg);
  line-height: 1.65;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}
.terms-page-root .terms-section .terms-block ul {
  margin-left: 1rem;
  list-style: disc;
}
.terms-page-root .terms-section .terms-block ul li {
  margin-bottom: 0.5rem;
}
.terms-page-root .terms-footer-note {
  background: var(--color-bg-alt);
  padding: 2rem 0 1rem;
  text-align: center;
  font-size: 0.97rem;
  color: var(--color-fg-muted);
}
.terms-page-root .terms-footer-note a {
  color: #f59e0b;
}

@media (max-width: 768px) {
  .terms-page-root .terms-section {
    padding: 2rem 0 1rem;
  }
  .terms-page-root .terms-section .terms-list {
    gap: 1.25rem;
  }
  .terms-page-root .terms-section .terms-block {
    padding: 1.25rem 1rem 1rem;
  }
  .terms-page-root .terms-footer-note {
    padding: 1rem 0 0.5rem;
  }
}
.about-page-root .about-hero {
  min-height: 55vh;
}
.about-page-root .about-hero .badge-icon {
  color: #10b981;
}
.about-page-root .about-hero .hero-highlight {
  color: #10b981;
}
.about-page-root .about-hero .about-badge {
  background: linear-gradient(90deg, #10b981 40%, #3b82f6 100%);
  color: #fff;
  border: 1px solid #10b981;
}
.about-page-root .about-section {
  padding: 4rem 0 2rem;
  background: var(--color-panel);
}
.about-page-root .about-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.about-page-root .about-section .section-title {
  color: #10b981;
  font-size: 2.25rem;
  font-weight: 800;
}
.about-page-root .about-section .section-subtitle {
  color: var(--color-fg-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}
.about-page-root .about-section .about-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.about-page-root .about-section .about-block {
  background: var(--color-bg-alt);
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.07);
  padding: 2rem 2rem 1.5rem;
  border-left: 6px solid #10b981;
}
.about-page-root .about-section .about-block h3 {
  color: #10b981;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.about-page-root .about-section .about-block p {
  color: var(--color-fg);
  line-height: 1.65;
  font-size: 1rem;
}
.about-page-root .about-section .about-block .about-link {
  display: inline-block;
  margin-top: 1rem;
  color: #3b82f6;
  font-weight: 700;
  text-decoration: underline;
}
.about-page-root .about-section .about-block .about-link:hover {
  color: #10b981;
}
.about-page-root .about-footer-note {
  background: var(--color-bg-alt);
  padding: 2rem 0 1rem;
  text-align: center;
  font-size: 0.97rem;
  color: var(--color-fg-muted);
}
.about-page-root .about-footer-note a {
  color: #10b981;
}

@media (max-width: 768px) {
  .about-page-root .about-section {
    padding: 2rem 0 1rem;
  }
  .about-page-root .about-section .about-content {
    gap: 1.25rem;
  }
  .about-page-root .about-section .about-block {
    padding: 1.25rem 1rem 1rem;
  }
  .about-page-root .about-footer-note {
    padding: 1rem 0 0.5rem;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════ */
/* 🎯 ZERONOTE CONTROL CENTER STYLES v3.3.0 - ENHANCED DRAG & DROP */
/* ═══════════════════════════════════════════════════════════════════════════ */
/* Revolutionary drag & drop with visual indicators, mobile touch support, enhanced UX */
/* Author: IamAngusU - 2025-07-07 15:30:00 UTC */
.control-center {
  background: var(--color-bg);
  color: var(--color-fg);
  padding: 2rem;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* ✨ NEW: Drag Ghost Element */
.drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 80px;
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8) rotate(5deg);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.drag-ghost.visible {
  opacity: 0.9;
  transform: scale(1) rotate(3deg);
}
.drag-ghost .ghost-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  height: 100%;
}
.drag-ghost .ghost-content .ghost-icon {
  font-size: 1.5rem;
  opacity: 0.8;
}
.drag-ghost .ghost-content .ghost-title {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drag-ghost .ghost-content .ghost-badge {
  background: var(--color-accent);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  animation: ghost-pulse 1s ease-in-out infinite;
}

/* ✨ NEW: Drop Zone Indicators */
.drop-indicators {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 2rem;
  z-index: 9999;
  pointer-events: none;
}
.drop-indicators .drop-indicator {
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.drop-indicators .drop-indicator.active {
  opacity: 1;
  transform: translateY(0);
}
.drop-indicators .drop-indicator.favorites {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), var(--color-bg));
}
.drop-indicators .drop-indicator.reorder {
  border-color: var(--color-info);
  background: linear-gradient(135deg, var(--color-info-bg), var(--color-bg));
}
.drop-indicators .drop-indicator .indicator-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.drop-indicators .drop-indicator .indicator-content .indicator-icon {
  font-size: 2rem;
  opacity: 0.8;
}
.drop-indicators .drop-indicator .indicator-content .indicator-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-fg);
  text-align: center;
  white-space: nowrap;
}

/* ✨ NEW: Enhanced Drag Instructions */
.drag-instructions {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-info-bg);
  color: var(--color-info);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-info);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  transition: all 0.3s ease;
}
.drag-instructions.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.drag-instructions .instructions-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.drag-instructions .instructions-content .instructions-icon {
  font-size: 1.5rem;
  animation: instructions-pulse 2s ease-in-out infinite;
}
.drag-instructions .instructions-content .instructions-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.drag-instructions .instructions-content .instructions-text strong {
  color: var(--color-accent);
  font-weight: 700;
}
.drag-instructions .instructions-content .instructions-text .desktop-hint, .drag-instructions .instructions-content .instructions-text .mobile-hint {
  font-size: 0.85rem;
  opacity: 0.9;
}
.drag-instructions .instructions-content .instructions-visual {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
}
.drag-instructions .instructions-content .instructions-visual .visual-element {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.drag-instructions .instructions-content .instructions-visual .visual-element.favorites {
  color: #ffd700;
  border-color: #ffd700;
}
.drag-instructions .instructions-content .instructions-visual .visual-element.reorder {
  color: var(--color-info);
  border-color: var(--color-info);
}

/* Header Section */
.control-header {
  margin-bottom: 3rem;
}
.control-header .user-greeting .greeting-text {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.control-header .user-greeting .greeting-text .username-display {
  color: var(--color-accent);
  font-family: "JetBrains Mono", "Courier New", monospace;
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border: 2px solid transparent;
  font-size: 0.7em;
}
.control-header .user-greeting .greeting-text .username-display:hover {
  background: var(--color-accent-bg);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.control-header .user-greeting .greeting-text .zk-indicator {
  font-size: 0.6em;
  opacity: 0.8;
  animation: pulse 2s infinite;
}
.control-header .user-greeting .user-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.control-header .user-greeting .user-meta .plan-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.control-header .user-greeting .user-meta .plan-info .plan-label {
  color: var(--color-fg-muted);
  font-weight: 500;
}
.control-header .user-greeting .user-meta .plan-info .plan-badge {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.control-header .user-greeting .user-meta .plan-info .plan-badge.plan-free {
  background: var(--color-bg-secondary);
  color: var(--color-fg-muted);
}
.control-header .user-greeting .user-meta .plan-info .plan-badge.plan-plus {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.control-header .user-greeting .user-meta .plan-info .plan-badge.plan-pro {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}
.control-header .user-greeting .user-meta .plan-info .plan-badge.plan-enterprise {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}
.control-header .user-greeting .user-meta .plan-info .upgrade-btn {
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.control-header .user-greeting .user-meta .plan-info .upgrade-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}
.control-header .user-greeting .user-meta .last-login {
  color: var(--color-fg-muted);
  font-size: 0.9rem;
}
.control-header .user-greeting .user-meta .last-login .login-time {
  color: var(--color-fg);
  font-weight: 500;
}

/* Stats Section */
.stats-section {
  margin-bottom: 3rem;
}
.stats-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.stats-section .stats-grid .stat-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  position: relative;
}
.stats-section .stats-grid .stat-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.stats-section .stats-grid .stat-card.loading {
  opacity: 0.6;
  pointer-events: none;
}
.stats-section .stats-grid .stat-card.error {
  border-color: var(--color-error);
  background: var(--color-error-bg);
}
.stats-section .stats-grid .stat-card .stat-icon {
  font-size: 2rem;
  opacity: 0.8;
}
.stats-section .stats-grid .stat-card .stat-content {
  flex: 1;
}
.stats-section .stats-grid .stat-card .stat-content .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stats-section .stats-grid .stat-card .stat-content .stat-label {
  color: var(--color-fg-muted);
  font-weight: 500;
  font-size: 0.85rem;
}
.stats-section .stats-grid .stat-card .stat-content .stat-progress {
  width: 100%;
  height: 4px;
  background: var(--color-bg);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.stats-section .stats-grid .stat-card .stat-content .stat-progress .progress-bar {
  height: 100%;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

/* ✨ NEW: Enhanced Action Categories with Drag & Drop */
.actions-center {
  margin-bottom: 3rem;
}
.actions-center .action-category {
  margin-bottom: 3rem;
  position: relative;
  /* ✨ NEW: Favorites Category Styling */
}
.actions-center .action-category.favorites-category {
  /* ✨ NEW: Enhanced Favorites Placeholder */
}
.actions-center .action-category.favorites-category .category-title {
  color: #ffd700;
}
.actions-center .action-category.favorites-category .category-title .category-badge {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #000;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
  animation: badge-glow 3s ease-in-out infinite;
}
.actions-center .action-category.favorites-category .favorites-grid {
  min-height: 140px;
  position: relative;
  border: 2px dashed transparent;
  border-radius: var(--radius-lg);
  padding: 1rem;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), transparent);
}
.actions-center .action-category.favorites-category .favorites-grid.valid-drop-zone {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  transform: scale(1.01);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
.actions-center .action-category.favorites-category .favorites-grid.drag-over {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  animation: drop-zone-pulse 0.5s ease-in-out infinite alternate;
}
.actions-center .action-category.favorites-category .favorites-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-fg-muted);
  transition: all 0.3s ease;
}
.actions-center .action-category.favorites-category .favorites-placeholder:hover {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.05);
}
.actions-center .action-category.favorites-category .favorites-placeholder .placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.actions-center .action-category.favorites-category .favorites-placeholder .placeholder-content .placeholder-animation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.actions-center .action-category.favorites-category .favorites-placeholder .placeholder-content .placeholder-animation .placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.6;
  animation: placeholder-bounce 2s ease-in-out infinite;
}
.actions-center .action-category.favorites-category .favorites-placeholder .placeholder-content .placeholder-animation .placeholder-sparkles {
  position: absolute;
}
.actions-center .action-category.favorites-category .favorites-placeholder .placeholder-content .placeholder-animation .placeholder-sparkles .sparkle {
  position: absolute;
  font-size: 1rem;
  opacity: 0;
  animation: sparkle-float 3s ease-in-out infinite;
}
.actions-center .action-category.favorites-category .favorites-placeholder .placeholder-content .placeholder-animation .placeholder-sparkles .sparkle:nth-child(1) {
  top: -10px;
  left: -15px;
  animation-delay: 0s;
}
.actions-center .action-category.favorites-category .favorites-placeholder .placeholder-content .placeholder-animation .placeholder-sparkles .sparkle:nth-child(2) {
  top: -15px;
  right: -10px;
  animation-delay: 1s;
}
.actions-center .action-category.favorites-category .favorites-placeholder .placeholder-content .placeholder-animation .placeholder-sparkles .sparkle:nth-child(3) {
  bottom: -10px;
  left: -10px;
  animation-delay: 2s;
}
.actions-center .action-category.favorites-category .favorites-placeholder .placeholder-content .placeholder-text {
  text-align: center;
}
.actions-center .action-category.favorites-category .favorites-placeholder .placeholder-content .placeholder-text .placeholder-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #ffd700;
}
.actions-center .action-category.favorites-category .favorites-placeholder .placeholder-content .placeholder-text .placeholder-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
}
.actions-center .action-category .category-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-fg);
  position: relative;
  /* ✨ NEW: Drag Handle Indicator */
}
.actions-center .action-category .category-title .category-icon {
  font-size: 1.3em;
  opacity: 0.8;
}
.actions-center .action-category .category-title .drag-handle-indicator {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-info-bg);
  color: var(--color-info);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.actions-center .action-category .category-title .drag-handle-indicator.visible {
  opacity: 1;
  transform: translateY(0);
}
.actions-center .action-category .category-title .drag-handle-indicator .handle-icon {
  font-size: 1rem;
  animation: handle-wiggle 1s ease-in-out infinite;
}
.actions-center .action-category .category-title .drag-handle-indicator .handle-text {
  white-space: nowrap;
}
.actions-center .action-category .action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.actions-center .action-category .action-grid.valid-drop-zone {
  background: rgba(var(--color-success-rgb, 56, 217, 169), 0.1);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 2px dashed var(--color-success);
  animation: grid-highlight 1s ease-in-out infinite alternate;
}
.actions-center .action-category .action-grid.drag-over {
  background: rgba(var(--color-accent-rgb, 0, 123, 255), 0.1);
  transform: scale(1.01);
  box-shadow: 0 0 20px rgba(var(--color-accent-rgb, 0, 123, 255), 0.3);
}

/* ✨ NEW: Enhanced Action Cards with Drag Handles */
.action-card {
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  /* ✨ NEW: Drag Handle */
  /* ✨ NEW: Long Press Hint for Mobile */
  /* ✨ ENHANCED: Favorite Card Styling */
  /* ✨ ENHANCED: Dragging State */
  /* ✨ ENHANCED: Drop Zone Indicators */
}
.action-card .drag-handle {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 24px;
  height: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
  z-index: 10;
}
.action-card .drag-handle:hover {
  background: var(--color-accent-bg);
  border-color: var(--color-accent);
  transform: scale(1);
}
.action-card .drag-handle:active {
  cursor: grabbing;
  transform: scale(0.95);
}
.action-card .drag-handle .handle-dots {
  color: var(--color-fg-muted);
  font-size: 0.8rem;
  line-height: 1;
  transform: rotate(90deg);
}
.action-card:hover .drag-handle {
  opacity: 1;
  transform: scale(1);
}
.action-card.long-press-hint {
  animation: long-press-shake 0.5s ease-in-out;
}
.action-card.long-press-hint::after {
  content: "Hold to drag";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-info-bg);
  color: var(--color-info);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 1000;
  animation: hint-fade-in 0.3s ease-out;
}
.action-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.action-card.active {
  border-color: var(--color-success);
}
.action-card.active .action-status {
  background: var(--color-success);
}
.action-card.active .action-status::after {
  content: "●";
  color: white;
}
.action-card.active:hover {
  border-color: var(--color-success);
  box-shadow: 0 12px 30px rgba(var(--color-success-rgb, 56, 217, 169), 0.3);
}
.action-card.coming-soon {
  opacity: 0.8;
  /* ✨ ENHANCED: Quarter Badges */
}
.action-card.coming-soon .action-status {
  background: var(--color-warning);
}
.action-card.coming-soon .action-status::after {
  content: "⏳";
}
.action-card.coming-soon .coming-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--color-warning), #ff8c00);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: quarter-pulse 3s ease-in-out infinite;
  z-index: 5;
}
.action-card.coming-soon:hover {
  border-color: var(--color-warning);
  transform: translateY(-1px);
}
.action-card.favorite-card {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), var(--color-bg-secondary));
}
.action-card.favorite-card .remove-favorite-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--color-error);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10;
}
.action-card.favorite-card .remove-favorite-btn:hover {
  background: var(--color-error-hover, #d32f2f);
  transform: scale(1.1);
}
.action-card.favorite-card:hover .remove-favorite-btn {
  opacity: 1;
}
.action-card.favorite-card:hover {
  border-color: #ffd700;
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.3);
}
.action-card.loading {
  pointer-events: none;
  opacity: 0.6;
}
.action-card.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: loading-shine 1s ease-in-out;
}
.action-card.dragging {
  opacity: 0.7;
  transform: rotate(3deg) scale(1.05);
  z-index: 1000;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: var(--color-accent);
  animation: drag-float 2s ease-in-out infinite;
}
.action-card.dragging .drag-handle {
  opacity: 1;
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}
.action-card.valid-drop-zone {
  border-color: var(--color-success);
  background: linear-gradient(135deg, var(--color-success-bg), var(--color-bg-secondary));
  transform: scale(1.02);
  animation: valid-drop-pulse 1s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(var(--color-success-rgb, 56, 217, 169), 0.4);
}
.action-card.invalid-drop-zone {
  border-color: var(--color-error);
  background: linear-gradient(135deg, var(--color-error-bg), var(--color-bg-secondary));
  opacity: 0.5;
  cursor: not-allowed;
  animation: invalid-shake 0.5s ease-in-out;
}
.action-card.active-drop-zone {
  border-color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-accent-bg), var(--color-bg-secondary));
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(var(--color-accent-rgb, 0, 123, 255), 0.5);
  animation: active-drop-glow 0.8s ease-in-out infinite alternate;
}
.action-card.drag-over {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(var(--color-accent-rgb, 0, 123, 255), 0.4);
}
.action-card .action-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.action-card .action-header .action-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}
.action-card .action-header .action-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}
.action-card .action-header .action-status.active {
  background: var(--color-success);
}
.action-card .action-header .action-status.coming-soon {
  background: var(--color-warning);
}
.action-card .action-content {
  margin-bottom: 1rem;
}
.action-card .action-content .action-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-fg);
}
.action-card .action-content .action-description {
  color: var(--color-fg-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.action-card .action-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.action-card .action-footer .action-stats {
  font-size: 0.85rem;
  color: var(--color-fg-muted);
  font-weight: 500;
}
.action-card .action-footer .setting-badges {
  display: flex;
  gap: 0.5rem;
}
.action-card .action-footer .setting-badges .badge {
  background: var(--color-info-bg);
  color: var(--color-info);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ✨ ENHANCED: Quick Access with Mobile Fixes */
.quick-access {
  margin-bottom: 3rem;
  /* ✨ FIXED: Mobile Responsive Wrapper */
}
.quick-access .quick-access-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.quick-access .quick-access-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-fg);
  margin: 0;
}
.quick-access .quick-access-header .customize-btn {
  padding: 0.5rem 1rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-fg);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}
.quick-access .quick-access-header .customize-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
  transform: translateY(-1px);
}
.quick-access .quick-actions-wrapper {
  overflow: hidden;
}
.quick-access .quick-actions-wrapper .quick-actions {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-bg-secondary);
  scroll-behavior: smooth;
  /* Custom scrollbar for webkit browsers */
}
.quick-access .quick-actions-wrapper .quick-actions::-webkit-scrollbar {
  height: 6px;
}
.quick-access .quick-actions-wrapper .quick-actions::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
  border-radius: 3px;
}
.quick-access .quick-actions-wrapper .quick-actions::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}
.quick-access .quick-actions-wrapper .quick-actions::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-hover);
}
.quick-access .quick-actions-wrapper .quick-actions .quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 140px;
}
.quick-access .quick-actions-wrapper .quick-actions .quick-action-btn:hover:not(.coming-soon) {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.quick-access .quick-actions-wrapper .quick-actions .quick-action-btn.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}
.quick-access .quick-actions-wrapper .quick-actions .quick-action-btn.coming-soon .quick-soon {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-warning);
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}
.quick-access .quick-actions-wrapper .quick-actions .quick-action-btn .quick-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.quick-access .quick-actions-wrapper .quick-actions .quick-action-btn .quick-title {
  font-weight: 600;
  color: var(--color-fg);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ✨ ENHANCED: Activity Card */
.stat-card.activity-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.stat-card.activity-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.stat-card.activity-card.active {
  border-color: var(--color-success);
  background: linear-gradient(135deg, var(--color-success-bg) 0%, var(--color-bg-secondary) 100%);
}
.stat-card.activity-card.active .stat-icon {
  color: var(--color-success);
}
.stat-card.activity-card.active .stat-number {
  color: var(--color-success);
}
.stat-card.activity-card.warning {
  border-color: var(--color-warning);
  background: linear-gradient(135deg, var(--color-warning-bg) 0%, var(--color-bg-secondary) 100%);
  animation: warning-pulse 2s ease-in-out infinite;
}
.stat-card.activity-card.warning .stat-icon {
  color: var(--color-warning);
}
.stat-card.activity-card.warning .stat-number {
  color: var(--color-warning);
  font-weight: 700;
}
.stat-card.activity-card.expired {
  border-color: var(--color-error);
  background: linear-gradient(135deg, var(--color-error-bg) 0%, var(--color-bg-secondary) 100%);
}
.stat-card.activity-card.expired .stat-icon {
  color: var(--color-error);
}
.stat-card.activity-card.expired .stat-number {
  color: var(--color-error);
  font-weight: 700;
}
.stat-card.activity-card .activity-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 8px;
  height: 8px;
}
.stat-card.activity-card .activity-indicator .activity-pulse {
  width: 100%;
  height: 100%;
  background: var(--color-success);
  border-radius: 50%;
  animation: activity-pulse 2s ease-in-out infinite;
}

/* Bottom Navigation */
.bottom-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.bottom-nav .logout-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--color-error);
  border: 2px solid var(--color-error);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.bottom-nav .logout-btn:hover {
  background: var(--color-error);
  color: white;
  transform: translateY(-2px);
}
.bottom-nav .logout-btn .logout-icon {
  font-size: 1.1rem;
}

/* Zero-Knowledge Info */
.zk-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-info-bg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-info);
}
.zk-info .zk-icon {
  font-size: 1.5rem;
  opacity: 0.8;
  margin-top: 0.2rem;
}
.zk-info .zk-text {
  color: var(--color-info-text);
  line-height: 1.6;
  margin: 0;
}
.zk-info .zk-text strong {
  color: var(--color-accent);
}

/* ✨ ENHANCED: Modals with Better UX */
.coming-soon-modal-overlay,
.quick-access-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s ease-out;
}

.coming-soon-modal,
.quick-access-modal {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 60%;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modal-bounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.coming-soon-modal .modal-header,
.quick-access-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.coming-soon-modal .modal-header h3,
.quick-access-modal .modal-header h3 {
  margin: 0;
  color: var(--color-fg);
  font-size: 1.5rem;
  font-weight: 700;
}
.coming-soon-modal .modal-header .close-btn,
.quick-access-modal .modal-header .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-fg-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.coming-soon-modal .modal-header .close-btn:hover,
.quick-access-modal .modal-header .close-btn:hover {
  background: var(--color-bg-secondary);
  color: var(--color-fg);
  transform: scale(1.1);
}
.coming-soon-modal .modal-content,
.quick-access-modal .modal-content {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--color-fg);
}
.coming-soon-modal .modal-content p,
.quick-access-modal .modal-content p {
  margin: 0.5rem 0;
}
.coming-soon-modal .modal-content .roadmap-info,
.quick-access-modal .modal-content .roadmap-info {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
}
.coming-soon-modal .modal-content .roadmap-info small,
.quick-access-modal .modal-content .roadmap-info small {
  color: var(--color-fg-muted);
}
.coming-soon-modal .modal-content .action-selector,
.quick-access-modal .modal-content .action-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
  max-height: 300px;
  overflow-y: auto;
}
.coming-soon-modal .modal-content .action-selector .action-option,
.quick-access-modal .modal-content .action-selector .action-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}
.coming-soon-modal .modal-content .action-selector .action-option:hover:not(.coming-soon),
.quick-access-modal .modal-content .action-selector .action-option:hover:not(.coming-soon) {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
  transform: translateY(-1px);
}
.coming-soon-modal .modal-content .action-selector .action-option.coming-soon,
.quick-access-modal .modal-content .action-selector .action-option.coming-soon {
  opacity: 0.5;
  cursor: not-allowed;
}
.coming-soon-modal .modal-content .action-selector .action-option input[type=checkbox],
.quick-access-modal .modal-content .action-selector .action-option input[type=checkbox] {
  margin: 0;
}
.coming-soon-modal .modal-content .action-selector .action-option .option-icon,
.quick-access-modal .modal-content .action-selector .action-option .option-icon {
  font-size: 1.2rem;
}
.coming-soon-modal .modal-content .action-selector .action-option .option-title,
.quick-access-modal .modal-content .action-selector .action-option .option-title {
  flex: 1;
  font-weight: 500;
  font-size: 0.9rem;
}
.coming-soon-modal .modal-content .action-selector .action-option .option-soon,
.quick-access-modal .modal-content .action-selector .action-option .option-soon {
  background: var(--color-warning);
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}
.coming-soon-modal .modal-actions,
.quick-access-modal .modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.coming-soon-modal .modal-actions .btn-primary, .coming-soon-modal .modal-actions .btn-secondary,
.quick-access-modal .modal-actions .btn-primary,
.quick-access-modal .modal-actions .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid;
}
.coming-soon-modal .modal-actions .btn-primary:hover, .coming-soon-modal .modal-actions .btn-secondary:hover,
.quick-access-modal .modal-actions .btn-primary:hover,
.quick-access-modal .modal-actions .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.coming-soon-modal .modal-actions .btn-primary,
.quick-access-modal .modal-actions .btn-primary {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}
.coming-soon-modal .modal-actions .btn-primary:hover,
.quick-access-modal .modal-actions .btn-primary:hover {
  background: var(--color-accent-hover, var(--color-accent));
}
.coming-soon-modal .modal-actions .btn-secondary,
.quick-access-modal .modal-actions .btn-secondary {
  background: transparent;
  color: var(--color-fg);
  border-color: var(--color-border);
}
.coming-soon-modal .modal-actions .btn-secondary:hover,
.quick-access-modal .modal-actions .btn-secondary:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
}

/* ✨ ENHANCED: Toast Messages */
.activity-reset-toast,
.order-saved-toast,
.customization-saved-toast,
.limit-toast,
.favorite-added-toast,
.favorite-removed-toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: toast-slide-in 0.3s ease-out;
  font-weight: 600;
}
.activity-reset-toast .toast-content,
.order-saved-toast .toast-content,
.customization-saved-toast .toast-content,
.limit-toast .toast-content,
.favorite-added-toast .toast-content,
.favorite-removed-toast .toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.activity-reset-toast .toast-content .toast-icon,
.order-saved-toast .toast-content .toast-icon,
.customization-saved-toast .toast-content .toast-icon,
.limit-toast .toast-content .toast-icon,
.favorite-added-toast .toast-content .toast-icon,
.favorite-removed-toast .toast-content .toast-icon {
  font-size: 1.2rem;
}
.activity-reset-toast.fade-out,
.order-saved-toast.fade-out,
.customization-saved-toast.fade-out,
.limit-toast.fade-out,
.favorite-added-toast.fade-out,
.favorite-removed-toast.fade-out {
  animation: toast-fade-out 0.3s ease-in forwards;
}

.activity-reset-toast,
.order-saved-toast,
.customization-saved-toast {
  background: var(--color-success);
  color: white;
}

.limit-toast {
  background: var(--color-warning);
  color: white;
}

.favorite-added-toast {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #000;
}

.favorite-removed-toast {
  background: var(--color-error);
  color: white;
}

/* ✨ NEW: Enhanced Animations */
@keyframes ghost-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}
@keyframes instructions-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
@keyframes handle-wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}
@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }
}
@keyframes placeholder-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes sparkle-float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateY(-40px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(0.5);
  }
}
@keyframes long-press-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}
@keyframes hint-fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes drag-float {
  0%, 100% {
    transform: rotate(3deg) scale(1.05) translateY(0);
  }
  50% {
    transform: rotate(2deg) scale(1.05) translateY(-5px);
  }
}
@keyframes drop-zone-pulse {
  from {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  }
  to {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.7);
  }
}
@keyframes valid-drop-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(var(--color-success-rgb, 56, 217, 169), 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(var(--color-success-rgb, 56, 217, 169), 0.6);
  }
}
@keyframes invalid-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
@keyframes active-drop-glow {
  from {
    box-shadow: 0 0 20px rgba(var(--color-accent-rgb, 0, 123, 255), 0.4);
  }
  to {
    box-shadow: 0 0 40px rgba(var(--color-accent-rgb, 0, 123, 255), 0.8);
  }
}
@keyframes grid-highlight {
  from {
    background: rgba(var(--color-success-rgb, 56, 217, 169), 0.05);
  }
  to {
    background: rgba(var(--color-success-rgb, 56, 217, 169), 0.15);
  }
}
@keyframes quarter-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.4);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}
@keyframes loading-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
@keyframes warning-pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 8px 25px rgba(var(--color-warning-rgb, 255, 166, 0), 0.3);
  }
}
@keyframes activity-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}
@keyframes modal-bounce {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-100px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes toast-fade-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
/* ✨ ENHANCED: Responsive Design for All Devices */
@media (max-width: 1200px) {
  .control-center {
    max-width: 100%;
    padding: 1.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .action-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .drag-instructions .instructions-visual {
    display: none;
  }
}
@media (max-width: 768px) {
  .control-center {
    padding: 1rem;
  }
  .control-header .user-greeting .greeting-text {
    font-size: 2rem;
  }
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }
  .action-grid {
    grid-template-columns: 1fr;
  }
  .user-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  /* ✨ ENHANCED: Mobile Drag Instructions */
  .drag-instructions {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 1rem;
  }
  .drag-instructions .instructions-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .drag-instructions .instructions-content .instructions-text {
    align-items: center;
  }
  /* ✨ ENHANCED: Mobile Drop Indicators */
  .drop-indicators {
    flex-direction: column;
    gap: 1rem;
  }
  .drop-indicators .drop-indicator {
    padding: 1rem;
  }
  .drop-indicators .drop-indicator .indicator-content .indicator-icon {
    font-size: 1.5rem;
  }
  .drop-indicators .drop-indicator .indicator-content .indicator-text {
    font-size: 0.8rem;
  }
  /* ✨ ENHANCED: Mobile Quick Access */
  .quick-access-wrapper .quick-actions {
    justify-content: flex-start;
  }
  .quick-access-wrapper .quick-actions .quick-action-btn {
    min-width: 120px;
    padding: 0.8rem 1rem;
  }
  .quick-access-wrapper .quick-actions .quick-action-btn .quick-title {
    font-size: 0.85rem;
  }
  /* ✨ ENHANCED: Mobile Favorites */
  .favorites-category .action-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .favorites-placeholder {
    height: 80px;
  }
  .favorites-placeholder .placeholder-content .placeholder-animation .placeholder-icon {
    font-size: 1.5rem;
  }
  .favorites-placeholder .placeholder-content .placeholder-text .placeholder-title {
    font-size: 1rem;
  }
  .favorites-placeholder .placeholder-content .placeholder-text .placeholder-subtitle {
    font-size: 0.8rem;
  }
  /* ✨ ENHANCED: Mobile Action Cards */
  .action-card .drag-handle {
    width: 30px;
    height: 30px;
    opacity: 1; /* Always visible on mobile */
  }
  .action-card .drag-handle .handle-dots {
    font-size: 1rem;
  }
  .action-card .coming-soon-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  .coming-soon-modal,
  .quick-access-modal {
    padding: 1.5rem;
    margin: 1rem;
  }
  .coming-soon-modal .action-selector,
  .quick-access-modal .action-selector {
    grid-template-columns: 1fr;
  }
  .coming-soon-modal .modal-actions,
  .quick-access-modal .modal-actions {
    flex-direction: column;
  }
  .coming-soon-modal .modal-actions .btn-primary, .coming-soon-modal .modal-actions .btn-secondary,
  .quick-access-modal .modal-actions .btn-primary,
  .quick-access-modal .modal-actions .btn-secondary {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .control-header .user-greeting .greeting-text {
    font-size: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .category-title {
    font-size: 1.25rem;
    flex-wrap: wrap;
  }
  .category-title .category-badge {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  .action-card {
    padding: 1rem;
  }
  .action-card .action-header .action-icon {
    font-size: 2rem;
  }
  .action-card .action-content .action-title {
    font-size: 1.1rem;
  }
  .action-card .coming-soon-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
  }
  /* ✨ ENHANCED: Ultra-mobile Quick Access */
  .quick-access-wrapper .quick-actions {
    gap: 0.75rem;
  }
  .quick-access-wrapper .quick-actions .quick-action-btn {
    min-width: 100px;
    padding: 0.75rem;
  }
  .quick-access-wrapper .quick-actions .quick-action-btn .quick-icon {
    font-size: 1rem;
  }
  .quick-access-wrapper .quick-actions .quick-action-btn .quick-title {
    font-size: 0.8rem;
    line-height: 1.2;
  }
  .quick-access-wrapper .quick-actions .quick-action-btn .quick-soon {
    top: -6px;
    right: -6px;
    padding: 0.15rem 0.3rem;
    font-size: 0.55rem;
  }
  /* ✨ ENHANCED: Mobile Ghost Element */
  .drag-ghost {
    width: 150px;
    height: 60px;
  }
  .drag-ghost .ghost-content {
    padding: 0.75rem;
  }
  .drag-ghost .ghost-content .ghost-icon {
    font-size: 1.2rem;
  }
  .drag-ghost .ghost-content .ghost-title {
    font-size: 0.8rem;
  }
  .drag-ghost .ghost-content .ghost-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
  }
  /* ✨ ENHANCED: Mobile Modal Responsiveness */
  .coming-soon-modal,
  .quick-access-modal {
    width: 95%;
    padding: 1rem;
  }
  .coming-soon-modal .modal-header h3,
  .quick-access-modal .modal-header h3 {
    font-size: 1.25rem;
  }
  .coming-soon-modal .modal-content,
  .quick-access-modal .modal-content {
    font-size: 0.9rem;
  }
  .coming-soon-modal .modal-content .action-selector,
  .quick-access-modal .modal-content .action-selector {
    max-height: 250px;
  }
  .coming-soon-modal .modal-content .action-selector .action-option,
  .quick-access-modal .modal-content .action-selector .action-option {
    padding: 0.5rem;
  }
  .coming-soon-modal .modal-content .action-selector .action-option .option-title,
  .quick-access-modal .modal-content .action-selector .action-option .option-title {
    font-size: 0.8rem;
  }
  .coming-soon-modal .modal-content .action-selector .action-option .option-icon,
  .quick-access-modal .modal-content .action-selector .action-option .option-icon {
    font-size: 1rem;
  }
}
/* ✨ ULTRA-SMALL SCREENS */
@media (max-width: 360px) {
  .control-center {
    padding: 0.75rem;
  }
  .control-header .user-greeting .greeting-text {
    font-size: 1.25rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .stats-grid .stat-card {
    padding: 1rem;
  }
  .stats-grid .stat-card .stat-icon {
    font-size: 1.5rem;
  }
  .stats-grid .stat-card .stat-content .stat-number {
    font-size: 1.25rem;
  }
  .action-card {
    padding: 0.75rem;
  }
  .action-card .action-header .action-icon {
    font-size: 1.75rem;
  }
  .action-card .action-content .action-title {
    font-size: 1rem;
  }
  .action-card .action-content .action-description {
    font-size: 0.8rem;
  }
  .action-card .drag-handle {
    width: 24px;
    height: 24px;
  }
  .quick-access-wrapper .quick-actions .quick-action-btn {
    min-width: 90px;
    padding: 0.6rem;
    flex-direction: column;
    gap: 0.25rem;
  }
  .quick-access-wrapper .quick-actions .quick-action-btn .quick-title {
    font-size: 0.7rem;
    text-align: center;
  }
  .drag-ghost {
    width: 120px;
    height: 50px;
  }
  .drag-ghost .ghost-content {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  .drag-ghost .ghost-content .ghost-title {
    font-size: 0.7rem;
  }
}
/* ✨ ENHANCED: Dark Theme Support */
[data-theme=dark] .coming-soon-modal-overlay,
[data-theme=dark] .quick-access-modal-overlay {
  background: rgba(0, 0, 0, 0.9);
}
[data-theme=dark] .drag-ghost {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
[data-theme=dark] .drop-indicators .drop-indicator {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
[data-theme=dark] .activity-reset-toast,
[data-theme=dark] .order-saved-toast,
[data-theme=dark] .customization-saved-toast,
[data-theme=dark] .limit-toast,
[data-theme=dark] .favorite-added-toast,
[data-theme=dark] .favorite-removed-toast {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
[data-theme=dark] .stat-card.activity-card.active {
  background: linear-gradient(135deg, rgba(56, 217, 169, 0.1) 0%, var(--color-bg-secondary) 100%);
}
[data-theme=dark] .stat-card.activity-card.warning {
  background: linear-gradient(135deg, rgba(255, 166, 0, 0.1) 0%, var(--color-bg-secondary) 100%);
}
[data-theme=dark] .stat-card.activity-card.expired {
  background: linear-gradient(135deg, rgba(250, 91, 123, 0.1) 0%, var(--color-bg-secondary) 100%);
}
[data-theme=dark] .action-card.active:hover {
  box-shadow: 0 12px 30px rgba(56, 217, 169, 0.2);
}
[data-theme=dark] .action-card.coming-soon:hover {
  box-shadow: 0 8px 20px rgba(255, 166, 0, 0.2);
}
[data-theme=dark] .action-card.favorite-card:hover {
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.2);
}
[data-theme=dark] .action-card.dragging {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}
[data-theme=dark] .favorites-category .favorites-grid.valid-drop-zone {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
}
[data-theme=dark] .favorites-category .favorites-grid.drag-over {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
}

/* ✨ ENHANCED: High Contrast Mode */
@media (prefers-contrast: high) {
  .action-card {
    border-width: 3px;
  }
  .action-card:hover {
    border-width: 3px;
  }
  .action-card.favorite-card {
    border-width: 3px;
    border-color: #b8860b;
  }
  .action-card .drag-handle {
    border-width: 2px;
    font-weight: 900;
  }
  .stat-card {
    border-width: 2px;
  }
  .coming-soon-badge,
  .quick-soon,
  .option-soon {
    border: 2px solid currentColor;
    font-weight: 800;
  }
  .category-badge {
    border: 2px solid #000;
    font-weight: 800;
  }
  .remove-favorite-btn {
    border: 2px solid white;
    font-weight: 800;
  }
  .drag-ghost {
    border-width: 3px;
  }
  .drop-indicators .drop-indicator {
    border-width: 3px;
  }
}
/* ✨ ENHANCED: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .action-card,
  .stat-card,
  .quick-action-btn {
    transition: none;
  }
  .action-card:hover,
  .stat-card:hover,
  .quick-action-btn:hover {
    transform: none;
  }
  .drag-ghost {
    transition: opacity 0.2s ease;
  }
  .drag-instructions {
    transition: opacity 0.2s ease;
  }
  .drop-indicators .drop-indicator {
    transition: opacity 0.2s ease;
  }
  /* Disable all complex animations */
  .pulse,
  .activity-pulse,
  .warning-pulse,
  .loading-shine,
  .quarter-pulse,
  .valid-drop-pulse,
  .placeholder-bounce,
  .sparkle-float,
  .drag-float,
  .drop-zone-pulse,
  .invalid-shake,
  .active-drop-glow,
  .grid-highlight,
  .ghost-pulse,
  .instructions-pulse,
  .handle-wiggle,
  .badge-glow {
    animation: none;
  }
  .modal-bounce {
    animation: fade-in 0.2s ease-out;
  }
  .toast-slide-in {
    animation: fade-in 0.2s ease-out;
  }
  .action-card.dragging {
    transform: none;
    opacity: 0.7;
  }
  .favorites-grid.drag-over {
    transform: none;
  }
}
/* ✨ ENHANCED: Print Styles */
@media print {
  .control-center {
    background: white;
    color: black;
    padding: 1rem;
  }
  .action-card,
  .stat-card {
    border: 1px solid #000;
    background: white;
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  .coming-soon-badge,
  .quick-soon,
  .remove-favorite-btn,
  .activity-indicator,
  .drag-handle,
  .drag-ghost,
  .drop-indicators,
  .drag-instructions {
    display: none;
  }
  .bottom-nav,
  .quick-access,
  .zk-info {
    display: none;
  }
  .category-title {
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }
}
/* ✨ ENHANCED: Focus Styles for Accessibility */
.action-card:focus,
.quick-action-btn:focus,
.customize-btn:focus,
.logout-btn:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.drag-handle:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.remove-favorite-btn:focus {
  outline: 2px solid var(--color-error);
  outline-offset: 1px;
}

/* ✨ ENHANCED: Keyboard Navigation */
.action-card[tabindex]:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb, 0, 123, 255), 0.25);
}

.drag-handle[tabindex]:focus {
  background: var(--color-accent-bg);
  border-color: var(--color-accent);
}

/* ✨ ENHANCED: Performance Optimizations */
.action-card,
.stat-card,
.quick-action-btn,
.drag-ghost,
.drop-indicators .drop-indicator {
  will-change: transform, box-shadow;
}

.action-card.dragging {
  will-change: transform, opacity;
}

/* Force GPU acceleration for smooth animations */
.modal-bounce,
.toast-slide-in,
.quarter-pulse,
.valid-drop-pulse,
.drag-float,
.drop-zone-pulse,
.active-drop-glow {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Smooth scrolling for modal content and quick actions */
.modal-content .action-selector,
.quick-actions-wrapper .quick-actions {
  scroll-behavior: smooth;
}

/* Plan-Badges */
.plan-requirement-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-badge-available {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.plan-badge-upgrade {
  background: rgba(251, 146, 60, 0.1);
  color: #ea580c;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.plan-badge-upgrade:hover {
  background: rgba(251, 146, 60, 0.2);
  transform: translateY(-1px);
}

.badge-icon {
  font-size: 0.7rem;
}

.badge-text {
  font-size: 0.7rem;
  font-weight: 600;
}

/* Gesperrte Cards */
.action-card.plan-locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.action-card.plan-locked:hover {
  transform: none;
}

.action-card.plan-locked .action-icon {
  filter: grayscale(50%);
}

/* Plan Upgrade Modal */
.plan-upgrade-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.plan-upgrade-modal {
  background: var(--color-panel);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-info {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.upgrade-benefits ul {
  list-style: none;
  padding: 0;
}

.upgrade-benefits li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.upgrade-benefits li:before {
  content: "✨";
  margin-right: 8px;
}

/* ✨ END OF ENHANCED CONTROL CENTER STYLES v3.3.0 */
/* 
 * ✅ REVOLUTIONARY ENHANCEMENTS IMPLEMENTED:
 * 🎨 Advanced drag & drop with visual ghost elements
 * 📱 Perfect mobile touch support with long-press activation
 * ✨ Beautiful visual indicators and drop zone highlights
 * 🎯 Snap-to-grid positioning and smooth animations
 * ⚡ Haptic feedback and audio cues for accessibility
 * 🔧 Enhanced drag handles with visual feedback
 * 🌟 Improved favorites system with animated placeholders
 * 📊 Advanced responsive design for all device sizes
 * 🎪 Modal improvements with better UX
 * 🔐 Zero-knowledge compliance maintained
 * 
 * Author: IamAngusU
 * Date: 2025-07-07 15:30:00 UTC
 * Status: Production Ready - Revolutionary UX
 */
/* ✨ ENHANCED REFERRAL STATS CARD STYLING */
.stat-card.referral-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), var(--color-bg-secondary));
  border-color: #10b981;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* ✨ Click feedback */
  /* ✨ Loading state für API calls */
  /* ✨ Error state */
}
.stat-card.referral-card:hover {
  border-color: #059669;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), var(--color-bg-secondary));
}
.stat-card.referral-card:active {
  transform: translateY(-2px) scale(1.01);
}
.stat-card.referral-card .stat-icon {
  color: #10b981;
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
  transition: all 0.2s ease;
}
.stat-card.referral-card:hover .stat-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.4));
}
.stat-card.referral-card .stat-number {
  color: #059669;
  font-weight: 800;
  font-size: 1.8rem;
  transition: color 0.2s ease;
}
.stat-card.referral-card:hover .stat-number {
  color: #047857;
}
.stat-card.referral-card .stat-label {
  color: #065f46;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.stat-card.referral-card .stat-sublabel {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 500;
  margin-top: 0.25rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.stat-card.referral-card:hover .stat-sublabel {
  opacity: 1;
  color: #059669;
}
.stat-card.referral-card .referral-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 8px;
  height: 8px;
}
.stat-card.referral-card .referral-indicator .referral-pulse {
  width: 100%;
  height: 100%;
  background: #10b981;
  border-radius: 50%;
  animation: referral-pulse 2s ease-in-out infinite;
}
.stat-card.referral-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #059669, #047857);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.stat-card.referral-card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, #059669, #047857, #065f46);
}
.stat-card.referral-card::after {
  content: "💰";
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 1rem;
  opacity: 0.6;
  animation: referral-float 3s ease-in-out infinite;
  transition: opacity 0.2s ease;
}
.stat-card.referral-card:hover::after {
  opacity: 0.8;
  animation-duration: 2s;
}
.stat-card.referral-card:focus {
  outline: 3px solid rgba(16, 185, 129, 0.3);
  outline-offset: 2px;
}
.stat-card.referral-card.loading {
  opacity: 0.8;
  pointer-events: none;
}
.stat-card.referral-card.loading .stat-number {
  animation: stat-loading-pulse 1.5s ease-in-out infinite;
}
.stat-card.referral-card.loading::after {
  content: "⏳";
  animation: spin 1s linear infinite;
}
.stat-card.referral-card.error {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), var(--color-bg-secondary));
}
.stat-card.referral-card.error .stat-icon {
  color: #f59e0b;
}
.stat-card.referral-card.error .stat-number {
  color: #d97706;
}
.stat-card.referral-card.error .stat-sublabel {
  color: #f59e0b;
}
.stat-card.referral-card.error::after {
  content: "⚠️";
  animation: none;
}

/* ✨ ENHANCED REFERRAL ANIMATIONS */
@keyframes referral-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}
@keyframes referral-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-3px) rotate(5deg);
    opacity: 0.8;
  }
}
@keyframes stat-loading-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* ✨ DARK THEME SUPPORT */
[data-theme=dark] .stat-card.referral-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), var(--color-bg-secondary));
}
[data-theme=dark] .stat-card.referral-card:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), var(--color-bg-secondary));
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.2);
}
[data-theme=dark] .stat-card.referral-card .stat-label {
  color: #6ee7b7;
}
[data-theme=dark] .stat-card.referral-card .stat-sublabel {
  color: #34d399;
}
[data-theme=dark] .stat-card.referral-card:hover .stat-sublabel {
  color: #10b981;
}
[data-theme=dark] .stat-card.referral-card.error {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), var(--color-bg-secondary));
}

/* ✨ MOBILE RESPONSIVE ENHANCEMENTS */
@media (max-width: 768px) {
  .stat-card.referral-card .stat-icon {
    font-size: 2rem;
  }
  .stat-card.referral-card .stat-number {
    font-size: 1.6rem;
  }
  .stat-card.referral-card .stat-sublabel {
    font-size: 0.7rem;
  }
  .stat-card.referral-card::after {
    font-size: 0.9rem;
  }
  .stat-card.referral-card:hover {
    transform: translateY(-2px) scale(1.01);
  }
}
@media (max-width: 480px) {
  .stat-card.referral-card .stat-icon {
    font-size: 1.8rem;
  }
  .stat-card.referral-card .stat-number {
    font-size: 1.4rem;
  }
  .stat-card.referral-card .stat-sublabel {
    font-size: 0.65rem;
  }
  .stat-card.referral-card .referral-indicator {
    width: 6px;
    height: 6px;
  }
}
/* ✨ HIGH CONTRAST MODE SUPPORT */
@media (prefers-contrast: high) {
  .stat-card.referral-card {
    border-width: 3px;
  }
  .stat-card.referral-card .stat-number {
    font-weight: 900;
  }
  .stat-card.referral-card .stat-label {
    font-weight: 700;
  }
  .stat-card.referral-card::before {
    height: 4px;
  }
}
/* ✨ REDUCED MOTION SUPPORT */
@media (prefers-reduced-motion: reduce) {
  .stat-card.referral-card {
    transition: none;
  }
  .stat-card.referral-card:hover {
    transform: none;
  }
  .stat-card.referral-card .stat-icon {
    transition: none;
  }
  .stat-card.referral-card:hover .stat-icon {
    transform: none;
  }
  .stat-card.referral-card .referral-pulse {
    animation: none;
  }
  .stat-card.referral-card::after {
    animation: none;
  }
  @keyframes referral-pulse {
    /* Disabled in reduced motion mode */
  }
  @keyframes referral-float {
    /* Disabled in reduced motion mode */
  }
}
.settings-section {
  background: var(--color-bg);
  color: var(--color-fg);
  padding: 2rem;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  /* ═══════════════════════════════════════════════════════════════════════════
     🎯 SETTINGS HEADER
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     📱 SETTINGS GRID
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     🃏 SETTINGS CARD BASE
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     👤 ACCOUNT OVERVIEW
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     🔐 COLLAPSIBLE PASSWORD SECTION
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     📱 ENHANCED DEVICE MANAGEMENT WITH NAME EDITING
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     🎛️ USER PREFERENCES SECTION
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     📊 USAGE SECTION
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     💾 EXPORT SECTION
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     🛡️ SECURITY SECTION (DEPRECATED - MOVED TO PREFERENCES)
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     🔄 LOADING & ERROR STATES
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     ⚠️ DANGER ZONE
     ═══════════════════════════════════════════════════════════════════════════ */
}
.settings-section .settings-header {
  margin-bottom: 3rem;
}
.settings-section .settings-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.settings-section .settings-header .header-content .header-text .settings-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.settings-section .settings-header .header-content .header-text .settings-title .title-icon {
  font-size: 0.9em;
  opacity: 0.8;
}
.settings-section .settings-header .header-content .header-text .settings-subtitle {
  font-size: 1.1rem;
  color: var(--color-fg-muted);
  margin: 0;
}
.settings-section .settings-header .header-content .back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-fg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.settings-section .settings-header .header-content .back-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
  transform: translateY(-1px);
}
.settings-section .settings-header .header-content .back-btn .back-icon {
  font-size: 1.2em;
}
.settings-section .settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.settings-section .settings-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}
.settings-section .settings-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.settings-section .settings-card .card-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.settings-section .settings-card .card-header .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.settings-section .settings-card .card-header .card-title .card-icon {
  font-size: 1.1em;
  opacity: 0.8;
}
.settings-section .settings-card .card-header .security-badge {
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.settings-section .settings-card .card-header .privacy-badge {
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.settings-section .settings-card .card-header .refresh-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-fg);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}
.settings-section .settings-card .card-header .refresh-btn:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
}
.settings-section .settings-card .card-header .refresh-btn.loading .refresh-icon {
  animation: spin 1s linear infinite;
}
.settings-section .settings-card .card-header .refresh-btn .refresh-icon {
  font-size: 0.9rem;
}
.settings-section .account-overview .account-info {
  padding: 2rem;
}
.settings-section .account-overview .account-info .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-light);
}
.settings-section .account-overview .account-info .info-item:last-child {
  border-bottom: none;
}
.settings-section .account-overview .account-info .info-item .info-label {
  font-weight: 600;
  color: var(--color-fg-muted);
}
.settings-section .account-overview .account-info .info-item .info-value {
  font-weight: 600;
}
.settings-section .account-overview .account-info .info-item .info-value.user-id {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-family: "JetBrains Mono", monospace;
}
.settings-section .account-overview .account-info .info-item .info-value.user-id:hover {
  background: var(--color-accent-bg);
}
.settings-section .account-overview .account-info .info-item .info-value.user-id .copy-indicator {
  opacity: 0.6;
  font-size: 0.9em;
}
.settings-section .account-overview .account-info .info-item .info-value .plan-badge {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}
.settings-section .account-overview .account-info .info-item .info-value .plan-badge.plan-free {
  background: var(--color-bg);
  color: var(--color-fg-muted);
  border: 1px solid var(--color-border);
}
.settings-section .account-overview .account-info .info-item .info-value .plan-badge.plan-plus {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.settings-section .account-overview .account-info .info-item .info-value .plan-badge.plan-pro {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}
.settings-section .account-overview .account-info .info-item .info-value .plan-badge.plan-enterprise {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}
.settings-section .password-section {
  grid-column: 1/-1;
  /* ✅ COLLAPSED STATE */
  /* ✅ EXPANDED STATE */
  /* ✅ COLLAPSED CONTENT */
  /* ✅ EXPANDED CONTENT */
}
.settings-section .password-section.collapsed .password-collapsed {
  display: block;
}
.settings-section .password-section.collapsed .password-expanded {
  display: none;
}
.settings-section .password-section.expanded .password-collapsed {
  display: none;
}
.settings-section .password-section.expanded .password-expanded {
  display: block;
}
.settings-section .password-section .password-collapsed {
  padding: 2rem;
  text-align: center;
}
.settings-section .password-section .password-collapsed .expand-password-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(var(--color-accent-rgb, 106, 53, 255), 0.3);
}
.settings-section .password-section .password-collapsed .expand-password-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--color-accent-rgb, 106, 53, 255), 0.4);
}
.settings-section .password-section .password-collapsed .expand-password-btn:active {
  transform: translateY(-1px);
}
.settings-section .password-section .password-collapsed .expand-password-btn .btn-icon {
  font-size: 1.2em;
}
.settings-section .password-section .password-collapsed .expand-password-btn .expand-icon {
  font-size: 0.9em;
  opacity: 0.8;
  transition: transform 0.2s ease;
}
.settings-section .password-section .password-collapsed .password-hint {
  margin-top: 1rem;
  color: var(--color-fg-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.settings-section .password-section .password-expanded {
  padding: 2rem;
}
.settings-section .password-section .password-expanded .password-form .form-group {
  margin-bottom: 1.5rem;
}
.settings-section .password-section .password-expanded .password-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-fg);
}
.settings-section .password-section .password-expanded .password-form .form-group .input-group {
  position: relative;
}
.settings-section .password-section .password-expanded .password-form .form-group .input-group input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-fg);
  font-size: 1rem;
  transition: all 0.2s ease;
}
.settings-section .password-section .password-expanded .password-form .form-group .input-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-bg);
}
.settings-section .password-section .password-expanded .password-form .form-group .input-group input:invalid {
  border-color: var(--color-error);
}
.settings-section .password-section .password-expanded .password-form .form-group .input-group .toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.settings-section .password-section .password-expanded .password-form .form-group .input-group .toggle-password:hover {
  opacity: 1;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-strength {
  margin-top: 0.5rem;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-strength .strength-bar {
  height: 4px;
  background: var(--color-bg);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-strength .strength-bar .strength-fill {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-strength .strength-bar.very-weak .strength-fill {
  background: #ff4757;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-strength .strength-bar.weak .strength-fill {
  background: #ff6b7a;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-strength .strength-bar.okay .strength-fill {
  background: #ffa502;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-strength .strength-bar.good .strength-fill {
  background: #2ed573;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-strength .strength-bar.strong .strength-fill {
  background: #1e90ff;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-strength .strength-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-strength .strength-text .strength-label {
  font-weight: 600;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-strength .strength-text .strength-feedback {
  color: var(--color-fg-muted);
}
.settings-section .password-section .password-expanded .password-form .form-group .password-match {
  margin-top: 0.5rem;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-match .match-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.settings-section .password-section .password-expanded .password-form .form-group .password-match .match-indicator.match {
  color: var(--color-success);
}
.settings-section .password-section .password-expanded .password-form .form-group .password-match .match-indicator.no-match {
  color: var(--color-error);
}
.settings-section .password-section .password-expanded .password-form .form-group .password-match .match-indicator .match-icon {
  font-size: 1rem;
}
.settings-section .password-section .password-expanded .password-form .form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.settings-section .password-section .password-expanded .password-form .form-actions .collapse-btn {
  flex: 0 0 auto;
  padding: 1rem 1.5rem;
  background: var(--color-bg);
  color: var(--color-fg-muted);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.settings-section .password-section .password-expanded .password-form .form-actions .collapse-btn:hover {
  border-color: var(--color-fg-muted);
  background: var(--color-bg-alt);
}
.settings-section .password-section .password-expanded .password-form .form-actions .submit-btn {
  flex: 1;
  padding: 1rem 2rem;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}
.settings-section .password-section .password-expanded .password-form .form-actions .submit-btn:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.settings-section .password-section .password-expanded .password-form .form-actions .submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.settings-section .password-section .password-expanded .password-form .form-actions .submit-btn.loading .btn-text, .settings-section .password-section .password-expanded .password-form .form-actions .submit-btn.loading .btn-icon {
  opacity: 0;
}
.settings-section .password-section .password-expanded .password-form .form-actions .submit-btn.loading .btn-loader {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.settings-section .password-section .password-expanded .password-form .form-actions .submit-btn .btn-loader {
  display: none;
}
.settings-section .password-section .password-expanded .password-form .form-result {
  margin-top: 1rem;
}
.settings-section .password-section .password-expanded .password-form .form-result .result-success, .settings-section .password-section .password-expanded .password-form .form-result .result-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.settings-section .password-section .password-expanded .password-form .form-result .result-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}
.settings-section .password-section .password-expanded .password-form .form-result .result-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}
.settings-section .password-section .password-expanded .password-form .form-result .result-icon {
  font-size: 1.2rem;
}
.settings-section .devices-section .devices-container {
  padding: 2rem;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-bg);
  scroll-behavior: smooth;
  position: relative;
}
.settings-section .devices-section .devices-container::-webkit-scrollbar {
  width: 8px;
}
.settings-section .devices-section .devices-container::-webkit-scrollbar-track {
  background: var(--color-bg);
  border-radius: 4px;
}
.settings-section .devices-section .devices-container::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
  transition: background 0.2s ease;
}
.settings-section .devices-section .devices-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}
.settings-section .devices-section .devices-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 8px;
  height: 20px;
  background: linear-gradient(transparent, var(--color-bg-secondary));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.settings-section .devices-section .devices-container.has-more::after {
  opacity: 1;
}
.settings-section .devices-section .devices-container .device-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  position: relative;
}
.settings-section .devices-section .devices-container .device-card:last-child {
  margin-bottom: 0.5rem;
}
.settings-section .devices-section .devices-container .device-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-accent-rgb, 106, 53, 255), 0.1);
}
.settings-section .devices-section .devices-container .device-card.primary {
  border-color: var(--color-success);
  background: var(--color-success-bg);
}
.settings-section .devices-section .devices-container .device-card.primary::before {
  content: "👑";
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-success);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(var(--color-success-rgb, 56, 217, 169), 0.3);
}
.settings-section .devices-section .devices-container .device-card.blocked {
  opacity: 0.6;
  background: var(--color-error-bg);
  border-color: var(--color-error);
}
.settings-section .devices-section .devices-container .device-card.blocked::before {
  content: "🚫";
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-error);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(var(--color-error-rgb, 250, 91, 123), 0.3);
}
.settings-section .devices-section .devices-container .device-card .device-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info {
  flex: 1;
  /* ✅ DEVICE NAME EDITING CONTAINER */
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container {
  position: relative;
  margin-bottom: 0.5rem;
  /* ✅ NAME EDIT FORM */
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .device-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .device-name .name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .device-name .edit-name-btn {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .device-name .edit-name-btn:hover {
  background: var(--color-accent-bg);
  opacity: 1 !important;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .device-name .edit-name-btn .edit-icon {
  font-size: 0.875rem;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container:hover .edit-name-btn {
  opacity: 0.6;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .name-edit-form.hidden {
  display: none;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .name-edit-form .name-input {
  width: 100%;
  max-width: 200px;
  padding: 0.5rem;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-fg);
  font-size: 1rem;
  font-weight: 700;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .name-edit-form .name-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-bg);
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .name-edit-form .edit-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .name-edit-form .edit-actions .save-btn, .settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .name-edit-form .edit-actions .cancel-btn {
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .name-edit-form .edit-actions .save-btn:hover:not(:disabled), .settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .name-edit-form .edit-actions .cancel-btn:hover:not(:disabled) {
  transform: scale(1.1);
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .name-edit-form .edit-actions .save-btn:disabled, .settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .name-edit-form .edit-actions .cancel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .name-edit-form .edit-actions .save-btn {
  background: var(--color-success);
  color: white;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-name-container .name-edit-form .edit-actions .cancel-btn {
  background: var(--color-error);
  color: white;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-badges .badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  /* ✅ REMOVED: .trusted and .untrusted badges */
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-badges .badge.primary {
  background: var(--color-success);
  color: white;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-badges .badge.status-active {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.settings-section .devices-section .devices-container .device-card .device-header .device-info .device-badges .badge.status-blocked {
  background: var(--color-error-bg);
  color: var(--color-error);
}
.settings-section .devices-section .devices-container .device-card .device-header .device-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-actions .device-btn {
  padding: 0.5rem 1rem;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  white-space: nowrap;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-actions .device-btn.set-primary {
  border-color: var(--color-success);
  color: var(--color-success);
}
.settings-section .devices-section .devices-container .device-card .device-header .device-actions .device-btn.set-primary:hover:not(:disabled) {
  background: var(--color-success);
  color: white;
  transform: translateY(-1px);
}
.settings-section .devices-section .devices-container .device-card .device-header .device-actions .device-btn.block {
  border-color: var(--color-error);
  color: var(--color-error);
}
.settings-section .devices-section .devices-container .device-card .device-header .device-actions .device-btn.block:hover:not(:disabled) {
  background: var(--color-error);
  color: white;
  transform: translateY(-1px);
}
.settings-section .devices-section .devices-container .device-card .device-header .device-actions .device-btn.unblock {
  border-color: var(--color-success);
  color: var(--color-success);
}
.settings-section .devices-section .devices-container .device-card .device-header .device-actions .device-btn.unblock:hover:not(:disabled) {
  background: var(--color-success);
  color: white;
  transform: translateY(-1px);
}
.settings-section .devices-section .devices-container .device-card .device-header .device-actions .device-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
.settings-section .devices-section .devices-container .device-card .device-header .device-actions .device-btn .btn-icon {
  margin-right: 0.25rem;
}
.settings-section .devices-section .devices-container .device-card .device-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}
.settings-section .devices-section .devices-container .device-card .device-stats .stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}
.settings-section .devices-section .devices-container .device-card .device-stats .stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--color-fg-muted);
}
.settings-section .devices-section .devices-container .device-card .device-stats .stat-item .stat-value {
  font-weight: 600;
  font-size: 0.85rem;
  font-family: "JetBrains Mono", monospace;
}
.settings-section .devices-section .devices-container .empty-state, .settings-section .devices-section .devices-container .error-state {
  text-align: center;
  padding: 3rem;
  color: var(--color-fg-muted);
}
.settings-section .devices-section .devices-container .empty-state .empty-icon, .settings-section .devices-section .devices-container .empty-state .error-icon, .settings-section .devices-section .devices-container .error-state .empty-icon, .settings-section .devices-section .devices-container .error-state .error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.settings-section .preferences-section {
  grid-column: 1/-1;
}
.settings-section .preferences-section .preferences-container {
  padding: 2rem;
}
.settings-section .preferences-section .preferences-container .preferences-groups {
  display: grid;
  gap: 2rem;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(var(--color-accent-rgb, 106, 53, 255), 0.08);
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-header {
  padding: 1.5rem 2rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-header .group-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--color-fg);
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-header .group-description {
  color: var(--color-fg-muted);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences {
  padding: 1rem 2rem 2rem 2rem;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-light);
  gap: 2rem;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item:last-child {
  border-bottom: none;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-info {
  flex: 1;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-info .pref-title {
  font-weight: 600;
  color: var(--color-fg);
  margin: 0;
  cursor: pointer;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control {
  flex-shrink: 0;
  /* ✅ TOGGLE CONTROLS */
  /* ✅ SELECT CONTROLS */
  /* ✅ NUMBER INPUTS */
  /* ✅ TEXT INPUTS */
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control:has(input[type=checkbox]) .toggle-label {
  position: relative;
  width: 50px;
  height: 24px;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control:has(input[type=checkbox]) .toggle-label .toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--color-fg-muted);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control:has(input[type=checkbox]) .toggle-label:hover {
  border-color: var(--color-accent);
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control:has(input[type=checkbox]) input[type=checkbox] {
  display: none;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control:has(input[type=checkbox]) input[type=checkbox]:checked + .toggle-label {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control:has(input[type=checkbox]) input[type=checkbox]:checked + .toggle-label .toggle-slider {
  transform: translateX(26px);
  background: white;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control select {
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-fg);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-bg);
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control input[type=number] {
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-fg);
  font-size: 0.9375rem;
  width: 80px;
  text-align: center;
  transition: all 0.2s ease;
  /* Remove spinner arrows */
  -moz-appearance: textfield;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control input[type=number]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-bg);
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control input[type=number]::-webkit-outer-spin-button, .settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control input[type=text] {
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-fg);
  font-size: 0.9375rem;
  min-width: 120px;
  transition: all 0.2s ease;
}
.settings-section .preferences-section .preferences-container .preferences-groups .preference-group .group-preferences .preference-item .pref-control input[type=text]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-bg);
}
.settings-section .usage-section .usage-container {
  padding: 2rem;
}
.settings-section .usage-section .usage-container .usage-stats .usage-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
}
.settings-section .usage-section .usage-container .usage-stats .usage-item:last-child {
  border-bottom: none;
}
.settings-section .usage-section .usage-container .usage-stats .usage-item .usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.settings-section .usage-section .usage-container .usage-stats .usage-item .usage-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.settings-section .usage-section .usage-container .usage-stats .usage-item .usage-header .usage-value {
  font-weight: 700;
  color: var(--color-accent);
}
.settings-section .usage-section .usage-container .usage-stats .usage-item .usage-progress .progress-bar {
  width: 100%;
  height: 6px;
  background: var(--color-bg);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.settings-section .usage-section .usage-container .usage-stats .usage-item .usage-progress .progress-bar .progress-fill {
  height: 100%;
  background: var(--color-accent);
  transition: width 0.3s ease;
  border-radius: 3px;
}
.settings-section .usage-section .usage-container .usage-stats .usage-item .usage-progress .progress-text {
  font-size: 0.85rem;
  color: var(--color-fg-muted);
}
.settings-section .usage-section .usage-container .usage-stats .usage-item .unlimited-badge {
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}
.settings-section .usage-section .usage-container .usage-stats .usage-item .usage-detail {
  font-size: 0.85rem;
  color: var(--color-fg-muted);
  margin-top: 0.5rem;
}
.settings-section .export-section .export-options {
  padding: 2rem;
}
.settings-section .export-section .export-options .export-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
  gap: 2rem;
}
.settings-section .export-section .export-options .export-item:last-child {
  border-bottom: none;
}
.settings-section .export-section .export-options .export-item .export-info {
  flex: 1;
}
.settings-section .export-section .export-options .export-item .export-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.settings-section .export-section .export-options .export-item .export-info p {
  color: var(--color-fg-muted);
  margin: 0;
  line-height: 1.5;
}
.settings-section .export-section .export-options .export-item .export-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.settings-section .export-section .export-options .export-item .export-btn:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}
.settings-section .export-section .export-options .export-item .export-btn.secondary {
  background: var(--color-bg);
  color: var(--color-fg);
  border: 1px solid var(--color-border);
}
.settings-section .export-section .export-options .export-item .export-btn.secondary:hover:not(:disabled) {
  background: var(--color-bg-secondary);
  border-color: var(--color-accent);
}
.settings-section .export-section .export-options .export-item .export-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.settings-section .export-section .export-options .export-item .export-btn .btn-icon {
  font-size: 1rem;
}
.settings-section .export-section .privacy-notice {
  margin: 2rem;
  margin-bottom: 0;
  padding: 1.5rem;
  background: var(--color-info-bg);
  border: 1px solid var(--color-info);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.settings-section .export-section .privacy-notice .notice-icon {
  font-size: 1.5rem;
  opacity: 0.8;
}
.settings-section .export-section .privacy-notice .notice-text {
  color: var(--color-info-text);
  line-height: 1.6;
}
.settings-section .export-section .privacy-notice .notice-text strong {
  color: var(--color-accent);
}
.settings-section .security-section {
  display: none;
}
.settings-section .loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--color-fg-muted);
}
.settings-section .loading-state .loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.settings-section .danger-zone {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--color-error-bg);
  border: 2px solid var(--color-error);
  border-radius: var(--radius-xl);
}
.settings-section .danger-zone .danger-header {
  margin-bottom: 1.5rem;
}
.settings-section .danger-zone .danger-header .danger-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-error);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.settings-section .danger-zone .danger-header .danger-title .danger-icon {
  font-size: 1.2em;
}
.settings-section .danger-zone .danger-header .danger-subtitle {
  color: var(--color-error-text);
  margin: 0;
  font-weight: 500;
}
.settings-section .danger-zone .danger-actions .danger-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--color-error);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.settings-section .danger-zone .danger-actions .danger-btn:hover:not(:disabled) {
  background: var(--color-error-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}
.settings-section .danger-zone .danger-actions .danger-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.settings-section .danger-zone .danger-actions .danger-btn .btn-icon {
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎬 ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   📱 RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .settings-section .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .settings-section {
    padding: 1rem;
    /* ✅ MOBILE: Better device name editing */
  }
  .settings-section .settings-header .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .settings-section .settings-card .card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .settings-section .settings-card .password-collapsed,
  .settings-section .settings-card .password-expanded .password-form,
  .settings-section .settings-card .preferences-container,
  .settings-section .settings-card .devices-container,
  .settings-section .settings-card .usage-container,
  .settings-section .settings-card .export-options {
    padding: 1.5rem;
  }
  .settings-section .settings-card .preferences-container .preference-group .group-preferences {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
  .settings-section .devices-section .devices-container {
    max-height: 360px;
  }
  .settings-section .export-item,
  .settings-section .preference-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .settings-section .export-item .export-btn,
  .settings-section .export-item .pref-control,
  .settings-section .preference-item .export-btn,
  .settings-section .preference-item .pref-control {
    align-self: stretch;
    justify-content: center;
  }
  .settings-section .device-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .settings-section .device-header .device-actions {
    align-self: stretch;
    justify-content: flex-end;
  }
  .settings-section .device-stats {
    grid-template-columns: 1fr;
  }
  .settings-section .danger-zone {
    padding: 1.5rem;
  }
  .settings-section .password-section .password-collapsed .expand-password-btn {
    max-width: none;
  }
  .settings-section .password-section .password-expanded .form-actions {
    flex-direction: column;
  }
  .settings-section .password-section .password-expanded .form-actions .collapse-btn {
    order: 2;
  }
  .settings-section .password-section .password-expanded .form-actions .submit-btn {
    order: 1;
  }
  .settings-section .device-name-container .name-edit-form .name-input {
    max-width: 100%;
  }
  .settings-section .device-name-container .device-name .name-text {
    max-width: 120px;
  }
}
@media (max-width: 480px) {
  .settings-section .settings-header .header-text .settings-title {
    font-size: 2rem;
  }
  .settings-section .settings-grid {
    gap: 1.5rem;
  }
  .settings-section .devices-section .devices-container {
    max-height: 300px;
  }
  .settings-section .device-stats .stat-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .settings-section .preference-item .pref-control input[type=number] {
    width: 60px;
  }
  .settings-section .preference-item .pref-control input[type=text],
  .settings-section .preference-item .pref-control select {
    min-width: 100px;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   ♿ ACCESSIBILITY ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-contrast: high) {
  .settings-section .settings-card,
  .settings-section .preference-group,
  .settings-section .device-card {
    border-width: 3px;
  }
  .settings-section .toggle-label,
  .settings-section .export-btn,
  .settings-section .device-btn,
  .settings-section .submit-btn {
    border: 2px solid currentColor;
  }
}
@media (prefers-reduced-motion: reduce) {
  .settings-section * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   🌙 DARK THEME ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme=dark] .settings-section .settings-card,
[data-theme=dark] .settings-section .preference-group,
[data-theme=dark] .settings-section .device-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
[data-theme=dark] .settings-section .settings-card:hover,
[data-theme=dark] .settings-section .preference-group:hover,
[data-theme=dark] .settings-section .device-card:hover {
  box-shadow: 0 20px 40px rgba(var(--color-accent-rgb, 106, 53, 255), 0.2);
}
[data-theme=dark] .settings-section .password-collapsed .expand-password-btn {
  box-shadow: 0 4px 16px rgba(var(--color-accent-rgb, 106, 53, 255), 0.4);
}
[data-theme=dark] .settings-section .password-collapsed .expand-password-btn:hover {
  box-shadow: 0 8px 25px rgba(var(--color-accent-rgb, 106, 53, 255), 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */
.hidden {
  display: none !important;
}

.loading {
  pointer-events: none;
  opacity: 0.7;
}

.subscription-section {
  background: var(--color-bg);
  color: var(--color-fg);
  padding: 2rem;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  /* ═══════════════════════════════════════════════════════════════════════════
     🎯 SUBSCRIPTION HEADER
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     📱 SUBSCRIPTION GRID
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     🃏 SUBSCRIPTION CARD BASE
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     💳 CURRENT PLAN SECTION
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     💰 BILLING INFORMATION
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     ⚙️ PLAN ACTIONS
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     📊 SUBSCRIPTION HISTORY
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     🔒 ZERO-KNOWLEDGE PRIVACY SECTION
     ═══════════════════════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════════════════════
     🔄 LOADING & ERROR STATES
     ═══════════════════════════════════════════════════════════════════════════ */
}
.subscription-section .subscription-header {
  margin-bottom: 3rem;
}
.subscription-section .subscription-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.subscription-section .subscription-header .header-content .header-text .subscription-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--color-fg) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subscription-section .subscription-header .header-content .header-text .subscription-title .title-icon {
  font-size: 0.9em;
  opacity: 0.8;
  animation: payment-pulse 3s ease-in-out infinite;
}
.subscription-section .subscription-header .header-content .header-text .subscription-subtitle {
  font-size: 1.1rem;
  color: var(--color-fg-muted);
  margin: 0;
}
.subscription-section .subscription-header .header-content .back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-fg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.subscription-section .subscription-header .header-content .back-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-accent-bg), transparent);
  transition: left 0.5s ease;
}
.subscription-section .subscription-header .header-content .back-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--color-accent-rgb, 106, 53, 255), 0.2);
}
.subscription-section .subscription-header .header-content .back-btn:hover::before {
  left: 100%;
}
.subscription-section .subscription-header .header-content .back-btn .back-icon {
  font-size: 1.2em;
  transition: transform 0.2s ease;
}
.subscription-section .subscription-header .header-content .back-btn:hover .back-icon {
  transform: translateX(-3px);
}
.subscription-section .subscription-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.subscription-section .subscription-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}
.subscription-section .subscription-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.subscription-section .subscription-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(var(--color-accent-rgb, 106, 53, 255), 0.15);
}
.subscription-section .subscription-card:hover::before {
  opacity: 1;
}
.subscription-section .subscription-card .card-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-alt) 100%);
}
.subscription-section .subscription-card .card-header .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.subscription-section .subscription-card .card-header .card-title .card-icon {
  font-size: 1.1em;
  opacity: 0.8;
  padding: 0.5rem;
  background: var(--color-accent-bg);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}
.subscription-section .subscription-card .card-header .plan-status .status-badge {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.subscription-section .subscription-card .card-header .plan-status .status-badge.active {
  background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-hover, var(--color-success)) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(var(--color-success-rgb, 56, 217, 169), 0.3);
  animation: success-glow 2s ease-in-out infinite alternate;
}
.subscription-section .subscription-card .card-header .plan-status .status-badge.cancelled {
  background: linear-gradient(135deg, var(--color-error) 0%, var(--color-error-hover, var(--color-error)) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(var(--color-error-rgb, 250, 91, 123), 0.3);
}
.subscription-section .subscription-card .card-header .plan-status .status-badge.free {
  background: var(--color-bg);
  color: var(--color-fg-muted);
  border: 1px solid var(--color-border);
}
.subscription-section .current-plan {
  grid-column: 1/-1;
}
.subscription-section .current-plan .plan-info {
  padding: 2rem;
  /* ✅ PLANNED CHANGE NOTIFICATION */
  /* ✅ CANCELLATION NOTICE */
}
.subscription-section .current-plan .plan-info .plan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: all 0.2s ease;
}
.subscription-section .current-plan .plan-info .plan-item:last-child {
  border-bottom: none;
}
.subscription-section .current-plan .plan-info .plan-item:hover {
  background: var(--color-accent-bg);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: var(--radius-md);
}
.subscription-section .current-plan .plan-info .plan-item .plan-label {
  font-weight: 600;
  color: var(--color-fg-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.subscription-section .current-plan .plan-info .plan-item .plan-label::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
}
.subscription-section .current-plan .plan-info .plan-item .plan-value {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-fg);
}
.subscription-section .current-plan .plan-info .planned-change-notice {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 166, 0, 0.1) 0%, rgba(255, 166, 0, 0.05) 100%);
  border: 2px solid var(--color-warning);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  animation: planned-change-pulse 4s ease-in-out infinite;
}
.subscription-section .current-plan .plan-info .planned-change-notice::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 166, 0, 0.1), transparent);
  animation: planned-change-sweep 3s ease-in-out infinite;
}
.subscription-section .current-plan .plan-info .planned-change-notice .change-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.subscription-section .current-plan .plan-info .planned-change-notice .change-header .change-icon {
  font-size: 1.5rem;
  animation: change-bounce 2s ease-in-out infinite;
}
.subscription-section .current-plan .plan-info .planned-change-notice .change-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-warning);
  text-shadow: 0 0 20px rgba(255, 166, 0, 0.3);
}
.subscription-section .current-plan .plan-info .planned-change-notice .change-content {
  line-height: 1.6;
}
.subscription-section .current-plan .plan-info .planned-change-notice .change-content p {
  margin: 0 0 0.75rem 0;
  color: var(--color-fg);
}
.subscription-section .current-plan .plan-info .planned-change-notice .change-content p strong {
  color: var(--color-warning);
  font-weight: 700;
}
.subscription-section .current-plan .plan-info .planned-change-notice .change-content .change-details {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 166, 0, 0.1);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-warning);
}
.subscription-section .current-plan .plan-info .planned-change-notice .change-content .change-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
}
.subscription-section .current-plan .plan-info .planned-change-notice .change-content .change-details .detail-row .detail-label {
  color: var(--color-fg-muted);
  font-size: 0.9rem;
}
.subscription-section .current-plan .plan-info .planned-change-notice .change-content .change-details .detail-row .detail-value {
  font-weight: 700;
  color: var(--color-warning);
}
.subscription-section .current-plan .plan-info .planned-change-notice .retention-notice {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(var(--color-info-rgb, 59, 130, 246), 0.1);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-info);
  font-size: 0.9rem;
  color: var(--color-info-text);
}
.subscription-section .current-plan .plan-info .planned-change-notice .retention-notice .notice-icon {
  display: inline-block;
  margin-right: 0.5rem;
}
.subscription-section .current-plan .plan-info .cancellation-notice {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(250, 91, 123, 0.1) 0%, rgba(250, 91, 123, 0.05) 100%);
  border: 2px solid var(--color-error);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.subscription-section .current-plan .plan-info .cancellation-notice .notice-icon {
  font-size: 1.5rem;
  color: var(--color-error);
  margin-top: 0.2rem;
}
.subscription-section .current-plan .plan-info .cancellation-notice .notice-text {
  flex: 1;
  color: var(--color-error-text);
  line-height: 1.6;
}
.subscription-section .current-plan .plan-info .cancellation-notice .notice-text strong {
  color: var(--color-error);
}
.subscription-section .current-plan .free-plan-info {
  padding: 2rem;
  text-align: center;
}
.subscription-section .current-plan .free-plan-info .upgrade-prompt {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--color-accent-bg) 0%, var(--color-success-bg) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-accent);
}
.subscription-section .current-plan .free-plan-info .upgrade-prompt p {
  margin: 0 0 1rem 0;
  font-weight: 600;
  color: var(--color-fg);
}
.subscription-section .current-plan .free-plan-info .upgrade-prompt .upgrade-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: all 0.2s ease;
}
.subscription-section .current-plan .free-plan-info .upgrade-prompt .upgrade-link:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}
.subscription-section .current-plan .free-plan-info .upgrade-prompt .upgrade-link::after {
  content: "→";
  transition: transform 0.2s ease;
}
.subscription-section .current-plan .free-plan-info .upgrade-prompt .upgrade-link:hover::after {
  transform: translateX(3px);
}
.subscription-section .billing-info .billing-details {
  padding: 2rem;
  /* ✅ ZERO-KNOWLEDGE GUARANTEE */
}
.subscription-section .billing-info .billing-details .billing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border-light);
  gap: 1rem;
  transition: all 0.2s ease;
}
.subscription-section .billing-info .billing-details .billing-item:last-child {
  border-bottom: none;
}
.subscription-section .billing-info .billing-details .billing-item:hover {
  background: var(--color-accent-bg);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: var(--radius-md);
}
.subscription-section .billing-info .billing-details .billing-item .billing-label {
  font-weight: 600;
  color: var(--color-fg-muted);
  flex-shrink: 0;
}
.subscription-section .billing-info .billing-details .billing-item .billing-value {
  text-align: right;
  flex: 1;
}
.subscription-section .billing-info .billing-details .billing-item .billing-value .payment-method {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  font-weight: 600;
}
.subscription-section .billing-info .billing-details .billing-item .billing-value .payment-method::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: security-pulse 2s ease-in-out infinite;
}
.subscription-section .billing-info .billing-details .billing-item .billing-value .update-payment-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-fg);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}
.subscription-section .billing-info .billing-details .billing-item .billing-value .update-payment-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
  transform: translateY(-1px);
}
.subscription-section .billing-info .billing-details .billing-item .billing-value .update-payment-btn .external-icon {
  font-size: 0.8rem;
  opacity: 0.7;
}
.subscription-section .billing-info .billing-details .billing-item .billing-value .subscription-id {
  background: var(--color-bg);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  display: inline-block;
  margin-bottom: 0.25rem;
}
.subscription-section .billing-info .billing-details .billing-item .billing-value .zero-knowledge-note {
  display: block;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  font-style: italic;
}
.subscription-section .billing-info .billing-details .zero-knowledge-notice {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid var(--color-info);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.subscription-section .billing-info .billing-details .zero-knowledge-notice::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  animation: security-sweep 6s infinite;
}
.subscription-section .billing-info .billing-details .zero-knowledge-notice .security-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.subscription-section .billing-info .billing-details .zero-knowledge-notice .security-header .security-icon {
  font-size: 1.3rem;
  color: var(--color-info);
}
.subscription-section .billing-info .billing-details .zero-knowledge-notice .security-header h4 {
  margin: 0;
  font-weight: 700;
  color: var(--color-info);
}
.subscription-section .billing-info .billing-details .zero-knowledge-notice .security-text {
  font-size: 0.9rem;
  color: var(--color-info-text);
  line-height: 1.5;
  margin: 0;
}
.subscription-section .billing-info .billing-details .no-billing-info {
  text-align: center;
  padding: 3rem;
  color: var(--color-fg-muted);
}
.subscription-section .billing-info .billing-details .no-billing-info .info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.subscription-section .billing-info .billing-details .no-billing-info p {
  margin: 0.5rem 0;
  line-height: 1.6;
}
.subscription-section .plan-actions .actions-list {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.subscription-section .plan-actions .actions-list .action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border: 2px solid;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.subscription-section .plan-actions .actions-list .action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}
.subscription-section .plan-actions .actions-list .action-btn:hover::before {
  left: 100%;
}
.subscription-section .plan-actions .actions-list .action-btn .btn-icon {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.subscription-section .plan-actions .actions-list .action-btn.upgrade-btn {
  background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-hover, var(--color-success)) 100%);
  border-color: var(--color-success);
  color: white;
  box-shadow: 0 4px 16px rgba(var(--color-success-rgb, 56, 217, 169), 0.3);
}
.subscription-section .plan-actions .actions-list .action-btn.upgrade-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--color-success-rgb, 56, 217, 169), 0.4);
}
.subscription-section .plan-actions .actions-list .action-btn.upgrade-btn:hover .btn-icon {
  transform: translateY(-2px);
}
.subscription-section .plan-actions .actions-list .action-btn.stripe-btn {
  background: var(--color-bg);
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.subscription-section .plan-actions .actions-list .action-btn.stripe-btn:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--color-accent-rgb, 106, 53, 255), 0.3);
}
.subscription-section .plan-actions .actions-list .action-btn.danger-btn {
  background: var(--color-bg);
  border-color: var(--color-error);
  color: var(--color-error);
}
.subscription-section .plan-actions .actions-list .action-btn.danger-btn:hover {
  background: var(--color-error);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--color-error-rgb, 250, 91, 123), 0.3);
}
.subscription-section .plan-actions .actions-list .action-btn.reactivate-btn {
  background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-hover, var(--color-info)) 100%);
  border-color: var(--color-info);
  color: white;
  box-shadow: 0 4px 16px rgba(var(--color-info-rgb, 59, 130, 246), 0.3);
}
.subscription-section .plan-actions .actions-list .action-btn.reactivate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--color-info-rgb, 59, 130, 246), 0.4);
}
.subscription-section .plan-actions .actions-list .action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.subscription-section .history-section {
  grid-column: 1/-1;
}
.subscription-section .history-section .history-list {
  padding: 2rem;
  max-height: 600px;
  overflow-y: auto;
}
.subscription-section .history-section .history-list::-webkit-scrollbar {
  width: 8px;
}
.subscription-section .history-section .history-list::-webkit-scrollbar-track {
  background: var(--color-bg);
  border-radius: 4px;
}
.subscription-section .history-section .history-list::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
  transition: background 0.2s ease;
}
.subscription-section .history-section .history-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}
.subscription-section .history-section .history-list .history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}
.subscription-section .history-section .history-list .history-item:last-child {
  margin-bottom: 0;
}
.subscription-section .history-section .history-list .history-item:hover {
  border-color: var(--color-accent);
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(var(--color-accent-rgb, 106, 53, 255), 0.1);
}
.subscription-section .history-section .history-list .history-item .history-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.subscription-section .history-section .history-list .history-item .history-icon:has-text("✅") {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.subscription-section .history-section .history-list .history-item .history-icon:has-text("❌") {
  background: var(--color-error-bg);
  color: var(--color-error);
}
.subscription-section .history-section .history-list .history-item .history-icon:has-text("🏁") {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}
.subscription-section .history-section .history-list .history-item .history-content {
  flex: 1;
}
.subscription-section .history-section .history-list .history-item .history-content .history-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--color-fg);
}
.subscription-section .history-section .history-list .history-item .history-content .history-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.subscription-section .history-section .history-list .history-item .history-content .history-status.status-active {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.subscription-section .history-section .history-list .history-item .history-content .history-status.status-cancelled {
  background: var(--color-error-bg);
  color: var(--color-error);
}
.subscription-section .history-section .history-list .history-item .history-content .history-status.status-ended {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}
.subscription-section .history-section .history-list .history-item .history-content .history-dates {
  font-size: 0.85rem;
  color: var(--color-fg-muted);
  font-family: "JetBrains Mono", monospace;
}
.subscription-section .history-section .history-list .no-history {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-fg-muted);
}
.subscription-section .history-section .history-list .no-history .history-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.subscription-section .history-section .history-list .no-history p {
  margin: 0.5rem 0;
  line-height: 1.6;
}
.subscription-section .zero-knowledge-info .zero-knowledge-content {
  padding: 2rem;
}
.subscription-section .zero-knowledge-info .zero-knowledge-content .privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: all 0.2s ease;
}
.subscription-section .zero-knowledge-info .zero-knowledge-content .privacy-item:last-child {
  border-bottom: none;
}
.subscription-section .zero-knowledge-info .zero-knowledge-content .privacy-item:hover {
  background: var(--color-accent-bg);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: var(--radius-md);
}
.subscription-section .zero-knowledge-info .zero-knowledge-content .privacy-item .privacy-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-bg);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  flex-shrink: 0;
  position: relative;
}
.subscription-section .zero-knowledge-info .zero-knowledge-content .privacy-item .privacy-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  opacity: 0;
  animation: security-pulse 3s ease-in-out infinite;
}
.subscription-section .zero-knowledge-info .zero-knowledge-content .privacy-item .privacy-text {
  flex: 1;
}
.subscription-section .zero-knowledge-info .zero-knowledge-content .privacy-item .privacy-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--color-fg);
}
.subscription-section .zero-knowledge-info .zero-knowledge-content .privacy-item .privacy-text p {
  margin: 0;
  color: var(--color-fg-muted);
  line-height: 1.6;
}
.subscription-section .loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--color-fg-muted);
}
.subscription-section .loading-state .loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: 50%;
  animation: spinner-spin 1s linear infinite;
}
.subscription-section .error-state {
  text-align: center;
  padding: 3rem;
  color: var(--color-error);
}
.subscription-section .error-state .error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}
.subscription-section .error-state h3 {
  color: var(--color-error);
  margin-bottom: 1rem;
}
.subscription-section .error-state p {
  color: var(--color-error-text);
  margin: 0;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎬 ADVANCED ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes payment-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}
@keyframes success-glow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(var(--color-success-rgb, 56, 217, 169), 0.3);
  }
  50% {
    box-shadow: 0 4px 16px rgba(var(--color-success-rgb, 56, 217, 169), 0.6);
  }
}
@keyframes planned-change-pulse {
  0%, 100% {
    border-color: var(--color-warning);
    box-shadow: 0 4px 16px rgba(255, 166, 0, 0.2);
  }
  50% {
    border-color: var(--color-warning-hover, var(--color-warning));
    box-shadow: 0 4px 16px rgba(255, 166, 0, 0.4);
  }
}
@keyframes planned-change-sweep {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
@keyframes change-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes security-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.1;
    transform: scale(1.2);
  }
}
@keyframes security-sweep {
  0% {
    left: -100%;
  }
  33% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
@keyframes spinner-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   📱 RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .subscription-section .subscription-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .subscription-section {
    padding: 1rem;
  }
  .subscription-section .subscription-header {
    margin-bottom: 2rem;
  }
  .subscription-section .subscription-header .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .subscription-section .subscription-header .header-content .header-text .subscription-title {
    font-size: 2rem;
  }
  .subscription-section .subscription-header .header-content .back-btn {
    align-self: stretch;
    justify-content: center;
  }
  .subscription-section .subscription-grid {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }
  .subscription-section .subscription-card .card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .subscription-section .subscription-card .plan-info,
  .subscription-section .subscription-card .billing-details,
  .subscription-section .subscription-card .actions-list,
  .subscription-section .subscription-card .history-list,
  .subscription-section .subscription-card .zero-knowledge-content {
    padding: 1.5rem;
  }
  .subscription-section .current-plan .planned-change-notice {
    margin: 1.5rem 0;
    padding: 1rem;
  }
  .subscription-section .current-plan .planned-change-notice .change-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .subscription-section .current-plan .planned-change-notice .change-header h4 {
    font-size: 1.1rem;
  }
  .subscription-section .current-plan .planned-change-notice .change-details .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .subscription-section .billing-info .billing-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .subscription-section .billing-info .billing-item .billing-value {
    align-self: stretch;
    text-align: left;
  }
  .subscription-section .billing-info .billing-item .billing-value .update-payment-btn {
    width: 100%;
    justify-content: center;
  }
  .subscription-section .plan-actions .actions-list {
    gap: 0.75rem;
  }
  .subscription-section .plan-actions .actions-list .action-btn {
    padding: 1rem;
    font-size: 0.95rem;
  }
  .subscription-section .history-section .history-list {
    max-height: 400px;
  }
  .subscription-section .history-section .history-list .history-item {
    padding: 1rem;
    gap: 0.75rem;
  }
  .subscription-section .history-section .history-list .history-item:hover {
    transform: none;
  }
  .subscription-section .history-section .history-list .history-item .history-icon {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  .subscription-section .history-section .history-list .history-item .history-content .history-title {
    font-size: 1rem;
  }
  .subscription-section .history-section .history-list .history-item .history-content .history-dates {
    font-size: 0.8rem;
    word-break: break-all;
  }
  .subscription-section .zero-knowledge-info .privacy-item {
    padding: 1rem 0;
  }
  .subscription-section .zero-knowledge-info .privacy-item .privacy-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .subscription-section .zero-knowledge-info .privacy-item .privacy-text h3 {
    font-size: 1rem;
  }
  .subscription-section .zero-knowledge-info .privacy-item .privacy-text p {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .subscription-section .subscription-header .header-text .subscription-title {
    font-size: 1.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .subscription-section .subscription-grid {
    gap: 1rem;
  }
  .subscription-section .subscription-card .card-header {
    padding: 1rem 1rem 0.75rem 1rem;
  }
  .subscription-section .subscription-card .card-header .card-title {
    font-size: 1.1rem;
  }
  .subscription-section .subscription-card .plan-info,
  .subscription-section .subscription-card .billing-details,
  .subscription-section .subscription-card .actions-list,
  .subscription-section .subscription-card .history-list,
  .subscription-section .subscription-card .zero-knowledge-content {
    padding: 1rem;
  }
  .subscription-section .current-plan .plan-item {
    padding: 1rem 0;
  }
  .subscription-section .current-plan .plan-item:hover {
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .subscription-section .current-plan .plan-item .plan-label,
  .subscription-section .current-plan .plan-item .plan-value {
    font-size: 0.9rem;
  }
  .subscription-section .planned-change-notice .change-content .change-details {
    padding: 0.75rem;
  }
  .subscription-section .planned-change-notice .change-content .change-details .detail-row .detail-label,
  .subscription-section .planned-change-notice .change-content .change-details .detail-row .detail-value {
    font-size: 0.85rem;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   ♿ ACCESSIBILITY ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-contrast: high) {
  .subscription-section .subscription-card,
  .subscription-section .planned-change-notice,
  .subscription-section .cancellation-notice,
  .subscription-section .zero-knowledge-notice {
    border-width: 3px;
  }
  .subscription-section .action-btn,
  .subscription-section .update-payment-btn {
    border-width: 3px;
  }
  .subscription-section .status-badge,
  .subscription-section .history-status {
    border: 2px solid currentColor;
  }
}
@media (prefers-reduced-motion: reduce) {
  .subscription-section * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .subscription-section .subscription-card:hover {
    transform: none;
  }
  .subscription-section .action-btn:hover {
    transform: none;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   🌙 DARK THEME ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme=dark] .subscription-section .subscription-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
[data-theme=dark] .subscription-section .subscription-card:hover {
  box-shadow: 0 20px 60px rgba(var(--color-accent-rgb, 106, 53, 255), 0.3);
}
[data-theme=dark] .subscription-section .planned-change-notice {
  background: linear-gradient(135deg, rgba(255, 166, 0, 0.2) 0%, rgba(255, 166, 0, 0.05) 100%);
  box-shadow: 0 8px 32px rgba(255, 166, 0, 0.1);
}
[data-theme=dark] .subscription-section .zero-knowledge-notice {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.05) 100%);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}
[data-theme=dark] .subscription-section .action-btn.upgrade-btn {
  box-shadow: 0 4px 16px rgba(var(--color-success-rgb, 56, 217, 169), 0.4);
}
[data-theme=dark] .subscription-section .action-btn.upgrade-btn:hover {
  box-shadow: 0 8px 30px rgba(var(--color-success-rgb, 56, 217, 169), 0.6);
}
[data-theme=dark] .subscription-section .action-btn.reactivate-btn {
  box-shadow: 0 4px 16px rgba(var(--color-info-rgb, 59, 130, 246), 0.4);
}
[data-theme=dark] .subscription-section .action-btn.reactivate-btn:hover {
  box-shadow: 0 8px 30px rgba(var(--color-info-rgb, 59, 130, 246), 0.6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */
.hidden {
  display: none !important;
}

.loading {
  pointer-events: none;
  opacity: 0.7;
}

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

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   🧠 SMART UI STATES - CONTEXT-AWARE ACTIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.plan-actions .actions-list {
  /* ✅ SMART SPACING FOR HIDDEN ELEMENTS */
  /* ✅ PLAN-SPECIFIC LAYOUTS */
}
.plan-actions .actions-list .action-btn {
  /* ✅ DISABLED STATE */
  /* ✅ HIDDEN STATE */
  /* ✅ NOT AVAILABLE STATE */
  /* ✅ HIGHEST TIER STATE */
  /* ✅ ALTERNATIVE ACTION STATE */
  /* ✅ REACTIVATE BUTTON STATE */
  /* ✅ FREE PLAN RESTRICTIONS */
}
.plan-actions .actions-list .action-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.8);
  position: relative;
}
.plan-actions .actions-list .action-btn.disabled::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(var(--color-border-rgb, 200, 200, 200), 0.1) 10px, rgba(var(--color-border-rgb, 200, 200, 200), 0.1) 20px);
  border-radius: var(--radius-lg);
}
.plan-actions .actions-list .action-btn.hidden {
  display: none !important;
}
.plan-actions .actions-list .action-btn.not-available {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
  background: var(--color-bg) !important;
  color: var(--color-fg-muted) !important;
  border-color: var(--color-border) !important;
}
.plan-actions .actions-list .action-btn.not-available .btn-icon {
  opacity: 0.5;
}
.plan-actions .actions-list .action-btn.not-available::before {
  content: "🚫";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.7;
}
.plan-actions .actions-list .action-btn.max-tier {
  background: linear-gradient(135deg, var(--color-success-bg) 0%, var(--color-accent-bg) 100%) !important;
  border-color: var(--color-success) !important;
  color: var(--color-success) !important;
  cursor: default;
  pointer-events: none;
  position: relative;
}
.plan-actions .actions-list .action-btn.max-tier .btn-icon::before {
  content: "👑";
}
.plan-actions .actions-list .action-btn.max-tier::after {
  content: "You have the highest plan";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--color-success);
  font-weight: 600;
  white-space: nowrap;
}
.plan-actions .actions-list .action-btn.max-tier span:last-child::after {
  content: " ✨";
}
.plan-actions .actions-list .action-btn.alternative-action {
  background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-hover, var(--color-info)) 100%);
  border-color: var(--color-info);
  color: white;
  box-shadow: 0 4px 16px rgba(var(--color-info-rgb, 59, 130, 246), 0.3);
}
.plan-actions .actions-list .action-btn.alternative-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--color-info-rgb, 59, 130, 246), 0.4);
}
.plan-actions .actions-list .action-btn.alternative-action .btn-icon {
  animation: alternative-pulse 2s ease-in-out infinite;
}
.plan-actions .actions-list .action-btn.reactivate-btn {
  background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-hover, var(--color-warning)) 100%);
  border-color: var(--color-warning);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 166, 0, 0.3);
  animation: reactivate-glow 3s ease-in-out infinite;
}
.plan-actions .actions-list .action-btn.reactivate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 166, 0, 0.5);
}
.plan-actions .actions-list .action-btn.reactivate-btn .btn-icon {
  animation: reactivate-bounce 1.5s ease-in-out infinite;
}
.plan-actions .actions-list .action-btn.free-plan-only {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-fg-muted);
  opacity: 0.7;
  cursor: help;
  pointer-events: none;
}
.plan-actions .actions-list .action-btn.free-plan-only::after {
  content: "Requires paid plan";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--color-fg-muted);
  font-style: italic;
  white-space: nowrap;
}
.plan-actions .actions-list .action-btn.hidden + .action-btn {
  margin-top: 0;
}
.plan-actions .actions-list.free-plan .upgrade-btn {
  order: 1;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-success) 100%);
  animation: upgrade-pulse 4s ease-in-out infinite;
}
.plan-actions .actions-list.free-plan .upgrade-btn::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-accent), var(--color-success), var(--color-accent));
  border-radius: var(--radius-lg);
  z-index: -1;
  animation: upgrade-border-glow 2s linear infinite;
}
.plan-actions .actions-list.free-plan .stripe-btn,
.plan-actions .actions-list.free-plan .danger-btn {
  display: none;
}
.plan-actions .actions-list.plus-plan .upgrade-btn .btn-icon::before {
  content: "🚀";
}
.plan-actions .actions-list.plus-plan .upgrade-btn span:last-child::after {
  content: " to Pro";
}
.plan-actions .actions-list.pro-monthly .upgrade-btn {
  background: linear-gradient(135deg, var(--color-info) 0%, var(--color-accent) 100%);
}
.plan-actions .actions-list.pro-monthly .upgrade-btn .btn-icon::before {
  content: "📅";
}
.plan-actions .actions-list.pro-monthly .upgrade-btn span:last-child::before {
  content: "Switch to ";
}
.plan-actions .actions-list.pro-monthly .upgrade-btn span:last-child::after {
  content: " Yearly (Save 17%)";
}
.plan-actions .actions-list.pro-yearly .upgrade-btn {
  display: none;
}
.plan-actions .actions-list.pro-yearly .max-tier-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--color-success-bg) 0%, var(--color-accent-bg) 100%);
  border: 2px solid var(--color-success);
  border-radius: var(--radius-lg);
  color: var(--color-success);
  font-weight: 700;
  margin-bottom: 1rem;
}
.plan-actions .actions-list.pro-yearly .max-tier-notice .crown-icon {
  font-size: 1.2rem;
  animation: crown-float 3s ease-in-out infinite;
}
.plan-actions .actions-list.cancelled-plan .danger-btn {
  display: none;
}
.plan-actions .actions-list.cancelled-plan .reactivate-btn {
  display: flex;
  order: 1;
}
.plan-actions .actions-list.cancelled-plan .upgrade-btn,
.plan-actions .actions-list.cancelled-plan .stripe-btn {
  opacity: 0.5;
  pointer-events: none;
}

/* ✅ SMART ANIMATIONS */
@keyframes alternative-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@keyframes reactivate-glow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(255, 166, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 16px rgba(255, 166, 0, 0.6);
  }
}
@keyframes reactivate-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@keyframes upgrade-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(var(--color-accent-rgb, 106, 53, 255), 0.3);
  }
  50% {
    box-shadow: 0 8px 30px rgba(var(--color-success-rgb, 56, 217, 169), 0.5);
  }
}
@keyframes upgrade-border-glow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes crown-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
/* ✅ RESPONSIVE SMART STATES */
@media (max-width: 768px) {
  .plan-actions .actions-list.pro-yearly .max-tier-notice {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .plan-actions .actions-list.pro-yearly .max-tier-notice .crown-icon {
    font-size: 1.5rem;
  }
  .plan-actions .actions-list .action-btn.max-tier::after, .plan-actions .actions-list .action-btn.free-plan-only::after {
    position: static;
    transform: none;
    margin-top: 0.5rem;
    display: block;
  }
}
/* ✅ DARK THEME SMART STATES */
[data-theme=dark] .plan-actions .actions-list .action-btn.disabled::after {
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px);
}
[data-theme=dark] .plan-actions .actions-list .action-btn.max-tier {
  background: linear-gradient(135deg, rgba(56, 217, 169, 0.2) 0%, rgba(106, 53, 255, 0.2) 100%) !important;
  box-shadow: 0 4px 16px rgba(56, 217, 169, 0.3);
}
[data-theme=dark] .plan-actions .actions-list.free-plan .upgrade-btn::before {
  background: linear-gradient(45deg, rgba(106, 53, 255, 0.8), rgba(56, 217, 169, 0.8), rgba(106, 53, 255, 0.8));
  box-shadow: 0 0 20px rgba(106, 53, 255, 0.5);
}

@media print {
  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    background: transparent !important;
    color: black !important;
  }
  html, body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.4;
    padding: 0;
    margin: 0;
  }
  nav, footer, .theme-toggle-btn, .language-toggle-btn, .feedback-btn, .no-print {
    display: none !important;
  }
  a::after {
    content: " (" attr(href) ")";
    font-size: 90%;
  }
  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
  table {
    page-break-inside: avoid;
  }
}
body {
  background: var(--color-bg);
  color: var(--color-fg);
  margin: 0;
  padding: 0;
  transition: var(--transition-normal);
}

/*# sourceMappingURL=main.css.map */
