/* ==========================================================================
   KRD Web – Premium crypto startup design
   Dark theme, yellow accent, Inter, smooth transitions, glassmorphism
   ========================================================================== */
:root {
  --bg-deep: #0A0E18;
  --bg-main: #0F172A;
  --bg-card: #1E293B;
  --accent: #facc15;
  --accent-hover: #fde047;
  --accent-glow: rgba(250, 204, 21, 0.25);
  --primary: #7B68EE;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-height: 80px;
  --transition: 0.3s ease;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 60px rgba(250, 204, 21, 0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

/* ==========================================================================
   Landing – Navbar (premium Web3 / fintech)
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 14, 24, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 1000;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.nav__logo,
.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: opacity 180ms ease-in-out;
}
.nav__logo:hover,
.nav-logo:hover {
  opacity: 0.92;
  color: var(--accent);
}

.nav__links,
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  position: relative;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 10px 0;
  line-height: 1.2;
  transition: color 180ms ease-in-out;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease-in-out;
  border-radius: 1px;
}
.nav__link:hover {
  color: var(--accent-hover);
}
.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__link--active {
  color: var(--accent);
}
.nav__link--active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Language switcher – segmented toggle */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-right: 4px;
}
.lang-switcher__track {
  display: inline-flex;
  position: relative;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.lang-switcher__slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: rgba(250, 204, 21, 0.15);
  border-radius: 7px;
  transition: transform 200ms ease-in-out;
  pointer-events: none;
}
.lang-switcher[data-lang="ku"] .lang-switcher__slider {
  transform: translateX(100%);
}
.lang-switcher__btn {
  position: relative;
  z-index: 1;
  min-width: 36px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 7px;
  cursor: pointer;
  transition: color 180ms ease-in-out;
}
.lang-switcher__btn:hover {
  color: var(--text);
}
.lang-switcher__btn--active {
  color: var(--accent);
}

.nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.nav__btn--primary {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #0A0E18;
  box-shadow: var(--shadow-soft);
}
.nav__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(250, 204, 21, 0.35);
  color: #0A0E18;
}

.nav .btn-login {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: var(--bg-deep);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.nav .btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(250, 204, 21, 0.35);
  color: var(--bg-deep);
  text-decoration: none;
}

/* Nav KRD balance – wallet chip */
.nav-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.nav-balance:hover {
  background: rgba(250, 204, 21, 0.14);
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav-balance__icon {
  font-size: 0.6rem;
  opacity: 0.92;
  line-height: 1;
}
.nav-balance__value {
  font-variant-numeric: tabular-nums;
}
.nav-balance__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* Profile = secondary, Logout = minimal danger */
.nav-user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-user a[href="/profile"] {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  text-decoration: none;
}
.nav-user a[href="/profile"]:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  text-decoration: none;
}
.nav-user__name {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.2;
}
.nav-user .btn-logout {
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 200ms ease, color 200ms ease;
}
.nav-user .btn-logout:hover {
  border-color: rgba(248, 113, 113, 0.55);
  color: #f87171;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

/* Legacy nav (other pages) */
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   Landing – Hero (centered, powerful)
   ========================================================================== */
.landing {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 48px 24px 64px;
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__glow--top {
  width: 120%;
  height: 60%;
  top: -20%;
  left: -10%;
  background: radial-gradient(ellipse at 50% 0%, rgba(250, 204, 21, 0.06) 0%, transparent 60%);
}
.hero__glow--center {
  width: 80%;
  height: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(250, 204, 21, 0.04) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero__cta {
  display: inline-block;
}

/* ==========================================================================
   Buttons (gradient, hover)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  font-family: var(--font-sans);
}
.btn--primary {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #0A0E18;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(250, 204, 21, 0.3);
  color: #0A0E18;
  text-decoration: none;
}
.btn--lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
  border-radius: 14px;
}

/* ==========================================================================
   Sections (spacing, typography)
   ========================================================================== */
.section {
  padding: 80px 24px;
  position: relative;
}

.section__inner {
  max-width: 720px;
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.section__title--highlight {
  margin-top: 40px;
  margin-bottom: 12px;
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

.section__link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
  transition: color var(--transition), transform var(--transition);
}
.section__link:hover {
  color: var(--accent-hover);
  transform: translateX(4px);
}

/* ==========================================================================
   Cards (glassmorphism, hover)
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(250, 204, 21, 0.12);
}

.card--glass {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Legacy card (other pages) */
.card h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   CTA block (gradient, glow)
   ========================================================================== */
.cta-block {
  position: relative;
  text-align: center;
  padding: 96px 24px;
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(15, 23, 42, 0.97) 100%);
  overflow: hidden;
}

.cta-block__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(250, 204, 21, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-block__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.cta-block__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.cta-block__tagline {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.cta-block .btn {
  margin-top: 8px;
}

/* Legacy hero/section (fallback) */
.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero .btn-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-deep);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.hero .btn-cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: var(--bg-deep);
}
.section h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--text);
}
.section p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.cta-block h2 {
  margin-bottom: 12px;
}
.cta-block .btn-cta {
  margin-top: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 48px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer__links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
.footer__links a,
.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.footer__links a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.footer__copy {
  margin: 0;
  opacity: 0.85;
}

/* ==========================================================================
   Responsive – Tablet & Mobile
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  .nav {
    padding: 0 18px;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    background: rgba(10, 14, 24, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__links .nav__link,
  .nav__links .nav__btn,
  .nav__links .nav-user a,
  .nav__links .nav-user .btn-logout {
    width: 100%;
    justify-content: center;
    padding: 14px;
    text-align: center;
  }
  .nav__links .nav-user {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .nav__links .nav-balance {
    justify-content: center;
    margin-bottom: 4px;
  }
  .nav__links .nav-user__name {
    text-align: center;
    padding: 8px 0 4px;
  }
  .nav__link::after {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .page {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 32px;
  }

  .auth-page {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 24px;
  }

  .auth-box {
    margin: 0 8px;
  }

  .section {
    padding: 56px 20px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 36px;
  }

  .card {
    padding: 24px;
  }

  .cta-block {
    padding: 64px 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 32px 16px 48px;
  }
  .hero__title {
    font-size: 1.75rem;
  }
  .btn--lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   Auth pages (unchanged structure, use new accent)
   ========================================================================== */
.auth-page {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-height) 24px 40px;
}
.auth-box {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}
.auth-box h1 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-muted);
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--bg-main);
  border-radius: 8px;
  background: var(--bg-main);
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}
.auth-box button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: var(--bg-deep);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.auth-box button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(250, 204, 21, 0.3);
}
.auth-box .switch {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
}
.auth-box .switch a {
  color: var(--accent);
}
.error-msg {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.success-msg {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* ==========================================================================
   News / Marketplace / Profile (unchanged)
   ========================================================================== */
.page {
  padding-top: var(--nav-height);
  min-height: 100vh;
  padding: calc(var(--nav-height) + 24px) 24px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.page--marketplace {
  max-width: 1200px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(10, 14, 24, 0.97) 30%, var(--bg-deep) 100%);
  min-height: 100vh;
}
.page--marketplace .page__title {
  margin-bottom: 40px;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.page h1,
.page__title {
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.news-list .item,
.market-list .item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Marketplace page – premium fintech UI (elite, modern)
   ========================================================================== */
.market-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}
.market-list__empty,
.news-list__empty {
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
  padding: 48px 24px;
}
.market-list__empty {
  grid-column: 1 / -1;
}
.market-list .market-card.item {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  overflow: hidden;
  opacity: 0;
  animation: market-card-fade-in 0.5s ease forwards;
}
.market-list .market-card.item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.18),
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  border-color: rgba(255, 255, 255, 0.08);
}
.market-list .market-card.item:active {
  transition-duration: 0.1s;
  transform: translateY(-4px) scale(1.01);
}
@keyframes market-card-fade-in {
  to {
    opacity: 1;
  }
}
/* Out of stock: badge top-right + subtle overlay */
.market-list .item__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.market-list .item__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 14, 24, 0.35);
  pointer-events: none;
  border-radius: 20px;
  transition: background 300ms ease;
}
.market-list .market-card.item--out-of-stock:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.market-list .item__img-wrap {
  margin: -28px -28px 24px -28px;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-main);
}
.market-list .item__img-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0;
  max-height: none;
  transition: transform 300ms ease;
}
.market-list .market-card.item:hover .item__img-wrap img {
  transform: scale(1.03);
}
.market-list .item__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 0;
  min-height: 0;
}
.market-list .item__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.market-list .item__subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.market-list .item__description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.market-list .item__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 8px 0 20px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.market-list .item__btn.btn-buy {
  display: inline-block;
  text-align: center;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 300ms ease, transform 300ms ease, box-shadow 300ms ease;
  margin-top: auto;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.2);
}
.market-list .item__btn.btn-buy:hover {
  background: var(--accent-hover);
  color: var(--bg-deep);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.3);
}
.market-list .item__btn.btn-buy:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}
.market-list .item__out-of-stock {
  margin-top: auto;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  letter-spacing: 0.02em;
}
.market-list .item__remove {
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 0.85rem;
}
@media (max-width: 1024px) {
  .market-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}
@media (max-width: 600px) {
  .market-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .market-list .market-card.item {
    padding: 22px;
    border-radius: 18px;
  }
  .market-list .item__img-wrap {
    margin: -22px -22px 20px -22px;
  }
  .market-list .item__img-wrap img {
    height: 160px;
  }
  .market-list .item__price {
    font-size: 1.25rem;
    margin: 6px 0 16px 0;
  }
}
.item-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(250, 204, 21, 0.2);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.news-list .item h3,
.market-list .item h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.news-list .item .meta,
.market-list .item .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.news-list .item .content,
.market-list .item .description {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.market-list .item .price {
  color: var(--accent);
  font-weight: 700;
  margin-top: 8px;
}
.market-list .item img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  max-height: 200px;
  object-fit: cover;
}

/* ==========================================================================
   News page – premium announcement UI (admin-only publish)
   ========================================================================== */
.page--news {
  max-width: 1000px;
  padding: calc(var(--nav-height) + 32px) 24px 64px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(15, 23, 42, 0.4) 40%, var(--bg-deep) 100%);
  min-height: 100vh;
  animation: news-page-fade-in 0.5s ease;
}
@keyframes news-page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.news-hero {
  text-align: center;
  margin-bottom: 48px;
  padding: 32px 0 40px;
}
.news-hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.2;
}
.news-hero__subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

.news-admin {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
}
.news-admin__btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: var(--bg-deep);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.news-admin__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.3);
}
.news-admin__btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(0, 0, 0, 0.12);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  opacity: 0;
  animation: news-card-fade-in 0.5s ease forwards;
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  border-color: rgba(255, 255, 255, 0.12);
}
.news-card:active {
  transition-duration: 0.1s;
  transform: translateY(-3px);
}
@keyframes news-card-fade-in {
  to { opacity: 1; }
}
.news-card__img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--bg-main);
  overflow: hidden;
  flex-shrink: 0;
}
.news-card__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}
.news-card:hover .news-card__img-wrap img {
  transform: scale(1.05);
}
.news-card__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.news-card__img-placeholder-text {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(250, 204, 21, 0.35);
}
.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
  gap: 10px;
}
.news-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.news-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}
.news-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  line-height: 1.5;
  flex: 1;
}
.news-card__btn {
  align-self: flex-start;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: var(--accent);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 300ms ease, border-color 300ms ease, transform 300ms ease;
}
.news-card__btn:hover {
  background: rgba(250, 204, 21, 0.12);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.news-card__btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}
.news-card__admin {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.news-card__admin-btn {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 300ms ease, background 300ms ease;
  background: var(--bg-main);
  color: var(--text);
}
.news-card__admin-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.news-card__admin-btn--danger {
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
}
.news-card__admin-btn--danger:hover {
  background: rgba(220, 38, 38, 0.35);
}

.news-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  animation: news-empty-float 4s ease-in-out infinite;
}
@keyframes news-empty-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.news-empty__icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: 0.9;
}
.news-empty__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}
.news-empty__subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}
.news-modal__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.news-modal__box--read {
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}
.news-modal__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
}
.news-modal__date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}
.news-modal__body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 24px;
  white-space: pre-wrap;
}
.news-form__group {
  margin-bottom: 20px;
}
.news-form__group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.news-form__input,
.news-form__textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 300ms ease;
}
.news-form__input:focus,
.news-form__textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.news-form__textarea {
  resize: vertical;
  min-height: 120px;
}
.news-form__image-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.news-form__file {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.news-form__image-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.news-form__uploading {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
}
.news-form__preview {
  margin-top: 12px;
}
.news-form__preview img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
}
.news-form__remove-img {
  padding: 6px 12px;
  font-size: 0.8125rem;
  background: var(--bg-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: color 300ms ease, border-color 300ms ease;
}
.news-form__remove-img:hover {
  color: var(--text);
  border-color: var(--text-muted);
}
.news-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.news-modal__btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: transform 300ms ease, background 300ms ease;
}
.news-modal__btn--primary {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: var(--bg-deep);
}
.news-modal__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.3);
}
.news-modal__btn--secondary {
  background: var(--bg-main);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.news-modal__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.news-modal__btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

@media (max-width: 600px) {
  .page--news {
    padding: calc(var(--nav-height) + 24px) 16px 48px;
  }
  .news-hero__title {
    font-size: 1.625rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .news-card__body {
    padding: 20px;
  }
}

.admin-actions__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: var(--bg-deep);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.admin-actions__link:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  color: var(--bg-deep);
  text-decoration: none;
}
.admin-actions {
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-actions button {
  padding: 10px 18px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: var(--bg-deep);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.admin-actions button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.admin-actions button.danger {
  background: #dc2626;
  color: #fff;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 480px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
}
.modal h2 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}
.modal .form-group {
  margin-bottom: 16px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.modal-actions button {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.modal-actions .btn-primary {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: var(--bg-deep);
}
.modal-actions .btn-secondary {
  background: var(--bg-main);
  color: var(--text);
}

.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 480px;
  box-shadow: var(--shadow-soft);
}
.profile-card h2 {
  margin-bottom: 8px;
  color: var(--text);
}
.profile-card .role {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.profile-card .field {
  margin-bottom: 12px;
  color: var(--text-muted);
}
.profile-card .field strong {
  color: var(--text);
  margin-right: 8px;
}

/* ==========================================================================
   Profile Dashboard – Premium crypto style
   ========================================================================== */
.profile-dashboard {
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 32px) 24px 64px;
  animation: profileFadeIn 0.5s ease-out;
}
@keyframes profileFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-dashboard .profile-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  margin-bottom: 32px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.profile-dashboard .profile-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(250, 204, 21, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.profile-header__left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}
.profile-header__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #b45309 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--bg-deep);
  flex-shrink: 0;
  border: 3px solid rgba(250, 204, 21, 0.4);
  box-shadow: 0 0 24px var(--accent-glow);
}
.profile-header__info h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}
.profile-header__tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 8px 0;
  line-height: 1.4;
}
.profile-header__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(250, 204, 21, 0.18);
  color: var(--accent);
  border: 1px solid rgba(250, 204, 21, 0.3);
}
.profile-header__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.profile-header__right {
  text-align: right;
  flex-shrink: 0;
}
.profile-header__balance-wrap {
  position: relative;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-header__balance-wrap::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.15) 0%, transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.profile-header__balance-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px var(--accent-glow);
  display: block;
  line-height: 1.2;
}
.profile-header__balance-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.profile-header__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.profile-header__actions .btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.profile-header__actions .btn-sm--primary {
  background: var(--accent);
  color: var(--bg-deep);
}
.profile-header__actions .btn-sm--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.profile-header__actions .btn-sm--ghost {
  background: transparent;
  color: var(--text-muted);
}
.profile-header__actions .btn-sm--ghost:hover {
  color: var(--accent);
}

.profile-dashboard .section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}
.profile-dashboard .stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.profile-dashboard .stat-card {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.profile-dashboard .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 0 40px rgba(250, 204, 21, 0.06);
  border-color: rgba(250, 204, 21, 0.12);
}
.profile-dashboard .stat-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(250, 204, 21, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--accent);
}
.profile-dashboard .stat-card__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.profile-dashboard .stat-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.profile-dashboard .stat-card__desc {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.3;
}
.profile-dashboard .stat-card--rank .stat-card__icon {
  color: var(--rank-color, var(--accent));
}
.profile-dashboard .profile-rank-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-main);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  min-width: 160px;
}
.profile-dashboard .profile-rank-select:focus {
  outline: none;
  border-color: var(--accent);
}

.profile-dashboard .activity-card {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.profile-dashboard .activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.profile-dashboard .activity-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9375rem;
  transition: background 0.15s ease;
}
.profile-dashboard .activity-list li:last-child {
  border-bottom: none;
}
.profile-dashboard .activity-list li:hover {
  background: rgba(255, 255, 255, 0.02);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}
.profile-dashboard .activity-list .activity-amount--plus {
  color: #4ade80;
  font-weight: 600;
}
.profile-dashboard .activity-list .activity-amount--minus {
  color: #f87171;
  font-weight: 600;
}
.profile-dashboard .activity-list .activity-desc {
  color: var(--text-muted);
}

.profile-dashboard .settings-card {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.profile-dashboard .settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-dashboard .settings-row:last-child {
  border-bottom: none;
}
.profile-dashboard .settings-row__label {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.profile-dashboard .settings-row__value {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}
.profile-dashboard .settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-dashboard .settings-actions .btn {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.profile-dashboard .settings-actions .btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-dashboard .settings-actions .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.profile-dashboard .security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #4ade80;
  font-weight: 500;
}
.profile-dashboard .security-badge::before {
  content: '✓';
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.2);
  text-align: center;
  line-height: 18px;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .profile-dashboard {
    padding-left: 16px;
    padding-right: 16px;
  }
  .profile-dashboard .profile-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .profile-dashboard .profile-header__right {
    width: 100%;
    text-align: left;
  }
  .profile-dashboard .profile-header__actions {
    justify-content: flex-start;
  }
  .profile-dashboard .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .profile-dashboard .stat-cards {
    grid-template-columns: 1fr;
  }
  .profile-header__avatar {
    width: 80px;
    height: 80px;
    font-size: 1.75rem;
  }
}

/* PIN success modal – premium style */
.pin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.pin-modal__box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.pin-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}
.pin-modal__card-name {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}
.pin-modal__pin-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px 18px;
  background: var(--bg-main);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pin-modal__pin {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-family: ui-monospace, monospace;
}
.pin-modal__copy {
  padding: 8px 14px;
  background: var(--accent);
  color: var(--bg-deep);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}
.pin-modal__copy:hover {
  background: var(--accent-hover);
  color: var(--bg-deep);
}
.pin-modal__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}
.pin-modal__done {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: var(--bg-deep);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.pin-modal__done:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Admin cards page */
.admin-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.admin-card-row {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-card-row__main,
.admin-card-row__pin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.admin-card-row__pin {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-cards-input {
  padding: 10px 14px;
  background: var(--bg-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9375rem;
  min-width: 140px;
}
.admin-card-name { flex: 1; min-width: 180px; }
.admin-card-price { width: 100px; }
.admin-card-stock {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.admin-cards-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: var(--bg-deep);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--transition);
}
.admin-cards-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.admin-pin-input { flex: 1; min-width: 160px; }
.admin-card-row__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-main);
  flex-shrink: 0;
}
.admin-card-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-card-photo-label {
  cursor: pointer;
  margin: 0;
}
.admin-cards-btn--secondary {
  background: var(--bg-main);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.admin-cards-btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.admin-cards-btn--danger {
  background: #dc2626;
  color: #fff;
}
.admin-cards-btn--danger:hover {
  background: #b91c1c;
  color: #fff;
}
.admin-cards-add {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-cards-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.admin-cards-form .admin-cards-input { flex: 1; min-width: 200px; }
.admin-cards-form .admin-cards-input[type="number"] { width: 120px; flex: none; }
