/* =====================================================
   LUMORA ACCOUNT PAGE
   Theme: Editorial / Premium Bookstore
   Fonts: DM Serif Display + Manrope
===================================================== */


/* ================= ROOT VARIABLES ================= */

:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --surface-soft: #f1f3ed;
  --surface-muted: #e9eee7;

  --green: #214d3c;
  --green-dark: #16382c;
  --green-soft: #dce9df;

  --cream: #f4e8d0;
  --cream-dark: #e8d4b0;

  --orange: #c9844b;
  --orange-light: #e7b27c;

  --text: #1c2923;
  --text-soft: #68736d;
  --text-muted: #929b94;

  --border: #dfe4dc;
  --border-dark: #ccd5ca;

  --shadow-sm: 0 8px 25px rgba(28, 41, 35, 0.05);
  --shadow-md: 0 18px 45px rgba(28, 41, 35, 0.08);
  --shadow-lg: 0 30px 70px rgba(28, 41, 35, 0.12);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;

  --container: 1235px;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;

  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --bg: #0f1410;
  --surface: #1a2420;
  --surface-soft: #222e28;
  --surface-muted: #2a3a30;
  --green: #5cb88a;
  --green-dark: #4a9a72;
  --green-soft: #1e2d24;
  --cream: #2e2518;
  --cream-dark: #3a3020;
  --orange: #e8b06a;
  --orange-light: #f0c98a;
  --text: #e4ebe6;
  --text-soft: #9aa8a0;
  --text-muted: #b0bbb3;
  --border: #2a3a30;
  --border-dark: #3a4a40;
  --shadow-sm: 0 8px 25px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
  background: var(--bg);
}

[data-theme="dark"] .site-header {
  background: rgba(15, 20, 16, 0.88);
  border-bottom-color: rgba(228, 235, 230, 0.06);
}

[data-theme="dark"] .nav-icon:hover {
  color: var(--green);
  transform: translateY(-2px);
}

[data-theme="dark"] .primary-button {
  background: var(--green);
  color: var(--cream);
}

[data-theme="dark"] .primary-button:hover {
  background: var(--green-dark);
}

[data-theme="dark"] .profile-card {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .account-panel {
  background: rgba(26, 36, 32, 0.88);
  border-color: var(--border);
}

[data-theme="dark"] .input-wrapper input,
[data-theme="dark"] .input-wrapper textarea,
[data-theme="dark"] .form-group textarea {
  background: #1a2420;
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .input-wrapper input:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--green);
  background: #1e2d24;
}

[data-theme="dark"] .account-cta {
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(92, 184, 138, 0.15),
      transparent 32%
    ),
    linear-gradient(125deg, #0f1a15, #1a2420);
}

[data-theme="dark"] .site-footer {
  background: #0a0f0b;
  border-top-color: var(--border);
}


/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 5% 15%,
      rgba(220, 233, 223, 0.65),
      transparent 27%
    ),
    radial-gradient(
      circle at 95% 45%,
      rgba(244, 232, 208, 0.48),
      transparent 25%
    ),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(33, 77, 60, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 77, 60, 0.025) 1px, transparent 1px);
  background-size: 45px 45px;
  z-index: -1;
}

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

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

button {
  cursor: pointer;
}

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

.container {
  width: min(var(--container), calc(100% - 112px));
  margin-inline: auto;
}


/* ================= HEADER ================= */

.site-header {
  height: 85px;
  background: rgba(250, 250, 247, 0.88);
  border-bottom: 1px solid rgba(28, 41, 35, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 11px;
  font-size: 17px;
  transform: rotate(-3deg);
  box-shadow: 0 7px 18px rgba(33, 77, 60, 0.15);
}

.brand-name {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--text);
}

.brand-name span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: 45px;
}

.nav-links a {
  position: relative;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-icon {
  position: relative;
  color: var(--text);
  font-size: 17px;
  transition:
    color var(--transition),
    transform var(--transition);
}

.nav-icon:hover {
  color: var(--green);
  transform: translateY(-2px);
}

/* Theme Toggle */
.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--green);
  border-color: var(--line);
  background: var(--paper);
  transform: translateY(-2px);
}

.theme-toggle i {
  font-size: 1rem;
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle:active i {
  transform: rotate(30deg) scale(0.85);
}

.active-icon {
  color: var(--green);
}

.cart-icon {
  display: flex;
  align-items: center;
}

.cart-count {
  position: absolute;
  top: -11px;
  right: -12px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--orange);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 21px;
}


/* ================= HERO ================= */

.account-hero {
  position: relative;
  padding: 78px 0 75px;
  overflow: hidden;
  border-bottom: 1px solid rgba(33, 77, 60, 0.06);
}

.account-hero::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(33, 77, 60, 0.1);
  border-radius: 50%;
  right: -90px;
  top: -180px;
}

.account-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(201, 132, 75, 0.13);
  border-radius: 50%;
  right: 100px;
  top: -110px;
}

.account-hero .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.hero-content {
  max-width: 700px;
  animation: fadeUp 0.7s ease both;
}

.eyebrow,
.panel-eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-content h1 {
  margin-top: 17px;
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -2.8px;
  font-weight: 400;
  max-width: 700px;
}

.hero-content h1 em {
  color: var(--green);
  font-style: italic;
}

.hero-content p {
  max-width: 560px;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.9;
}

.hero-decoration {
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--green);
  border: 1px solid rgba(33, 77, 60, 0.14);
  border-radius: 50%;
  transform: rotate(-8deg);
  animation: slowFloat 5s ease-in-out infinite;
}

.hero-decoration i:first-child {
  font-size: 38px;
}

.hero-decoration i:last-child {
  position: absolute;
  right: 26px;
  bottom: 33px;
  font-size: 22px;
  color: var(--orange);
}

.hero-decoration span {
  position: absolute;
  width: 70px;
  height: 1px;
  background: var(--orange);
  transform: rotate(45deg);
}


/* ================= ACCOUNT SECTION ================= */

.account-section {
  padding: 55px 0 90px;
}

.account-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  align-items: start;
  gap: 35px;
}


/* ================= SIDEBAR ================= */

.account-sidebar {
  position: sticky;
  top: 110px;
}

.profile-card {
  position: relative;
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -65px;
  top: -65px;
  border-radius: 50%;
  background: var(--green-soft);
}

.profile-avatar {
  position: relative;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 24px;
  background: var(--green);
  color: #ffffff;
  font-family: var(--serif);
  font-size: 34px;
  box-shadow: 0 12px 25px rgba(33, 77, 60, 0.2);
}

.profile-summary {
  position: relative;
}

.profile-summary h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.7px;
}

.profile-summary p {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  word-break: break-word;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 19px;
  padding: 8px 11px;
  border-radius: 100px;
  background: var(--cream);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.member-badge i {
  color: var(--orange);
}


/* ================= ACCOUNT MENU ================= */

.account-menu {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 22px;
}

.account-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.account-menu-item span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-menu-item span i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.account-menu-item > i {
  font-size: 10px;
  opacity: 0.5;
}

.account-menu-item:hover {
  color: var(--green);
  background: rgba(220, 233, 223, 0.45);
  transform: translateX(3px);
}

.account-menu-item.active {
  color: var(--green);
  background: var(--green-soft);
  border-color: #c9ddce;
}

.account-menu-item.active > i {
  opacity: 1;
  color: var(--green);
}


/* ================= SIDEBAR NOTE ================= */

.sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 25px;
  padding: 18px;
  border: 1px solid #eadcc5;
  border-radius: 15px;
  background: linear-gradient(135deg, #fffaf0, #f6ead7);
}

.sidebar-note > i {
  color: var(--orange);
  font-size: 16px;
  margin-top: 3px;
}

.sidebar-note strong {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.sidebar-note p {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.7;
}

.logout-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: transparent;
  color: #9a5e51;
  font-size: 12px;
  font-weight: 800;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.logout-button:hover {
  background: #fff0ed;
  border-color: #e8c6bd;
  transform: translateY(-2px);
}


/* ================= CONTENT PANELS ================= */

.account-content {
  min-width: 0;
}

.account-panel {
  display: none;
  padding: 36px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: panelIn 0.45s ease both;
}

.account-panel.active-panel {
  display: block;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -1px;
}

.panel-heading p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.panel-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 19px;
}


/* ================= FORMS ================= */

.account-form {
  padding-top: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px 20px;
}

.form-group {
  min-width: 0;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 9px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper > i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
  transition: color var(--transition);
}

.input-wrapper input,
.input-wrapper textarea,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  background: #fbfcfa;
  color: var(--text);
  font-size: 12px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.input-wrapper input {
  height: 50px;
  padding: 0 16px 0 43px;
}

.form-group textarea {
  padding: 16px;
  resize: vertical;
  line-height: 1.7;
}

.input-wrapper input::placeholder,
.form-group textarea::placeholder {
  color: #a6ada7;
}

.input-wrapper input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(33, 77, 60, 0.07);
}

.input-wrapper:focus-within > i {
  color: var(--green);
}

.password-wrapper input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 13px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
}

.password-toggle:hover {
  color: var(--green);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.form-note i {
  color: var(--green);
}

.primary-button,
.secondary-button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.primary-button {
  padding: 14px 20px;
  border: 0;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 9px 20px rgba(33, 77, 60, 0.15);
}

.primary-button:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(33, 77, 60, 0.22);
}

.secondary-button {
  padding: 14px 21px;
  background: var(--green);
  color: #ffffff;
}

.secondary-button:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
}

.success-message,
.error-message {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.success-message {
  color: #286646;
  background: #e6f3e8;
  border: 1px solid #c5e2ca;
}

.error-message {
  color: #9b4f43;
  background: #fff0ed;
  border: 1px solid #edc9c1;
}

.success-message.show,
.error-message.show {
  display: flex;
  animation: fadeUp 0.3s ease both;
}


/* ================= ORDERS EMPTY STATE ================= */

.orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 65px 20px 35px;
}

.empty-illustration {
  width: 85px;
  height: 85px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
  font-size: 29px;
  animation: slowFloat 4s ease-in-out infinite;
}

.orders-empty h3 {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
}

.orders-empty p {
  max-width: 400px;
  margin: 12px auto 25px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.8;
}


/* ================= PREFERENCES ================= */

.preference-list {
  padding-top: 12px;
}

.preference-item {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px 0;
  border-bottom: 1px solid var(--border);
}

.preference-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--green);
  font-size: 16px;
}

.preference-content {
  flex: 1;
}

.preference-content h3 {
  font-size: 13px;
  font-weight: 800;
}

.preference-content p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.7;
}


/* ================= TOGGLE SWITCH ================= */

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 25px;
  flex-shrink: 0;
}

.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 50px;
  background: #d5dcd4;
  transition: background var(--transition);
}

.slider::before {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.13);
  transition: transform var(--transition);
}

.switch input:checked + .slider {
  background: var(--green);
}

.switch input:checked + .slider::before {
  transform: translateX(21px);
}

.preference-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.preference-save-row > span {
  color: var(--text-muted);
  font-size: 10px;
}


/* ================= SECURITY ================= */

.security-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 25px;
  padding: 16px;
  border-radius: 13px;
  background: #f4f7f1;
  border: 1px solid var(--border);
}

.security-info i {
  color: var(--green);
  margin-top: 2px;
}

.security-info p {
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.7;
}


/* ================= CTA ================= */

.account-cta-section {
  padding: 0 0 90px;
}

.account-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 45px 50px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(91, 128, 84, 0.35),
      transparent 32%
    ),
    linear-gradient(125deg, #173d2f, #254d3d);
  color: #ffffff;
  overflow: hidden;
}

.account-cta::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -100px;
  bottom: -210px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.account-cta::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: 70px;
  bottom: -125px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-icon {
  position: relative;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  font-size: 23px;
  transform: rotate(-8deg);
}

.cta-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.cta-content .eyebrow {
  color: var(--orange-light);
}

.cta-content h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -1px;
}

.cta-content h2 em {
  color: var(--cream);
  font-style: italic;
}

.cta-content p {
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.7;
}

.cta-button {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 15px 21px;
  background: #ffffff;
  color: var(--green);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}


/* ================= FOOTER ================= */

.site-footer {
  padding: 65px 0 25px;
  border-top: 1px solid var(--border);
  background: #f0f3ed;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 245px;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.8;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-column h3 {
  margin-bottom: 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.footer-column a,
.footer-column span {
  color: var(--text-soft);
  font-size: 11px;
  transition: color var(--transition);
}

.footer-column a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
}


/* ================= TOAST ================= */

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 50px);
  padding: 14px 18px;
  border: 1px solid #c8e2ce;
  border-radius: 13px;
  background: #e9f7eb;
  color: #286646;
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 800;
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.toast i {
  font-size: 14px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}


/* ================= ANIMATIONS ================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@keyframes slowFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-9px) rotate(-4deg);
  }
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1050px) {
  .container {
    width: min(var(--container), calc(100% - 60px));
  }

  .nav-links {
    gap: 20px;
    margin-right: 20px;
  }

  .account-layout {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 25px;
  }

  .account-panel {
    padding: 28px;
  }

  .account-cta {
    padding: 38px;
  }
}


@media (max-width: 800px) {
  .site-header {
    height: 75px;
  }

  .container {
    width: calc(100% - 40px);
  }

  .nav-links {
    position: absolute;
    top: 75px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    margin: 0;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity var(--transition),
      visibility var(--transition),
      transform var(--transition);
  }

  .nav-links.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px;
    border-radius: 10px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--green-soft);
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-actions {
    gap: 19px;
  }

  .account-hero {
    padding: 55px 0;
  }

  .hero-content h1 {
    font-size: clamp(44px, 10vw, 65px);
  }

  .hero-decoration {
    display: none;
  }

  .account-section {
    padding: 35px 0 65px;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .profile-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 20px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
    margin: 0;
    border-radius: 19px;
    font-size: 28px;
  }

  .profile-summary {
    flex: 1;
  }

  .member-badge {
    margin-top: 0;
  }

  .account-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .account-menu-item {
    padding: 14px 12px;
  }

  .account-menu-item > i {
    display: none;
  }

  .sidebar-note {
    display: none;
  }

  .logout-button {
    width: auto;
    padding-inline: 22px;
    margin-top: 15px;
  }

  .account-panel {
    padding: 25px;
  }

  .account-cta {
    flex-wrap: wrap;
    padding: 35px 28px;
  }

  .cta-content {
    min-width: calc(100% - 90px);
  }

  .cta-button {
    margin-left: 85px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}


@media (max-width: 560px) {
  .brand-name {
    font-size: 24px;
  }

  .brand-icon {
    width: 35px;
    height: 35px;
  }

  .nav-actions {
    gap: 16px;
  }

  .nav-icon {
    font-size: 16px;
  }

  .account-hero {
    padding: 45px 0;
  }

  .hero-content h1 {
    font-size: 45px;
    letter-spacing: -1.8px;
  }

  .hero-content p {
    font-size: 13px;
  }

  .account-menu {
    grid-template-columns: 1fr 1fr;
  }

  .account-menu-item {
    font-size: 10px;
  }

  .account-menu-item span {
    gap: 8px;
  }

  .account-panel {
    padding: 21px 17px;
    border-radius: 21px;
  }

  .panel-heading {
    padding-bottom: 22px;
  }

  .panel-heading h2 {
    font-size: 30px;
  }

  .panel-heading p {
    font-size: 11px;
  }

  .panel-symbol {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    font-size: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .form-group.full-width {
    grid-column: auto;
  }

  .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .preference-item {
    align-items: flex-start;
  }

  .preference-content h3 {
    font-size: 12px;
  }

  .preference-content p {
    font-size: 10px;
  }

  .preference-save-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .preference-save-row .primary-button {
    width: 100%;
  }

  .account-cta {
    display: block;
    padding: 30px 24px;
  }

  .cta-icon {
    margin-bottom: 22px;
  }

  .cta-content h2 {
    font-size: 30px;
  }

  .cta-button {
    width: 100%;
    margin: 25px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    line-height: 1.6;
  }

  .toast {
    right: 15px;
    bottom: 15px;
    max-width: calc(100% - 30px);
  }
}