/* A25A Portal — unique design layer over anyshopai */

:root {
  --a25a-green: #10b981;
  --a25a-green-dark: #059669;
  --a25a-green-darker: #047857;
  --a25a-green-light: #d1fae5;
  --a25a-green-glow: rgba(16, 185, 129, 0.35);
  --a25a-ink: #0c1222;
  --a25a-ink-soft: #151d2e;
  --a25a-surface: #f8faf9;
  --a25a-border: rgba(16, 185, 129, 0.12);
  --a25a-radius: 1rem;
  --a25a-radius-lg: 1.25rem;
}

/* Green defaults when admin primary is still blue */
body.a25a-portal {
  --color-primary: var(--a25a-green);
  --color-background: #f5f5f5;
  --color-dark-blue-header: var(--a25a-ink-soft);
  background: #f5f5f5;
}

body.a25a-portal .hover\:bg-blue-700:hover,
body.a25a-portal .active\:bg-blue-800:active {
  background-color: var(--a25a-green-dark) !important;
}

body.a25a-portal .shadow-blue-100 {
  --tw-shadow-color: rgba(16, 185, 129, 0.15);
}

body.a25a-portal .btn-primary:hover,
body.a25a-portal .btn.btn-primary:hover {
  background-color: var(--a25a-green-dark);
  border-color: var(--a25a-green-dark);
}

/* ── Header ── */
body.a25a-portal .a25a-header-main {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--a25a-border);
  box-shadow: 0 1px 0 rgba(16, 185, 129, 0.06);
}

body.a25a-portal .a25a-logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--a25a-green) 0%, var(--a25a-green-darker) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px var(--a25a-green-glow);
  flex-shrink: 0;
}

body.a25a-portal .a25a-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
  white-space: nowrap;
}

body.a25a-portal .a25a-nav-pill:hover {
  color: var(--a25a-green-dark);
  background: var(--a25a-green-light);
}

body.a25a-portal .a25a-nav-pill i {
  font-size: 1rem;
}

body.a25a-portal #catalog-menu-toggle {
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px var(--a25a-green-glow);
}

body.a25a-portal .a25a-top-bar {
  background: var(--a25a-ink);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

/* ── Hero ── */
.a25a-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--a25a-radius-lg);
  background: linear-gradient(145deg, var(--a25a-ink) 0%, #0f1a12 50%, var(--a25a-ink-soft) 100%);
  color: #fff;
  margin-bottom: 2rem;
}

.a25a-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, var(--a25a-green-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.a25a-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

.a25a-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
}

@media (min-width: 1024px) {
  .a25a-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 3.5rem 3rem;
    align-items: center;
  }
}

.a25a-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.a25a-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--a25a-green);
  animation: a25a-pulse 2s ease-in-out infinite;
}

@keyframes a25a-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.a25a-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.a25a-hero-title span {
  background: linear-gradient(90deg, #6ee7b7, var(--a25a-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.a25a-hero-text {
  font-size: 1rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.a25a-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.a25a-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.a25a-btn-primary {
  background: var(--a25a-green);
  color: #fff;
  box-shadow: 0 4px 20px var(--a25a-green-glow);
}

.a25a-btn-primary:hover {
  background: var(--a25a-green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.a25a-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.a25a-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.a25a-hero-visual {
  display: none;
}

@media (min-width: 1024px) {
  .a25a-hero-visual {
    display: block;
  }
}

.a25a-hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.a25a-hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--a25a-radius);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s;
}

.a25a-hero-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.a25a-hero-card:nth-child(1) { grid-column: 1 / -1; }

.a25a-hero-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--a25a-green);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.a25a-hero-card-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.a25a-hero-card-text {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

/* ── Product types bento ── */
.a25a-types-section {
  margin-bottom: 2.5rem;
}

.a25a-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.a25a-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--a25a-ink);
}

.a25a-section-sub {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.a25a-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .a25a-bento {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.a25a-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  border-radius: var(--a25a-radius-lg);
  background: #fff;
  border: 1px solid #e8f0ec;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.25s;
  min-height: 160px;
}

.a25a-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--type-color, var(--a25a-green));
  opacity: 0;
  transition: opacity 0.25s;
}

.a25a-type-card:hover {
  border-color: var(--type-color, var(--a25a-green));
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--type-color, var(--a25a-green));
  transform: translateY(-3px);
}

.a25a-type-card:hover::before {
  opacity: 1;
}

.a25a-type-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--type-color, var(--a25a-green)) 12%, white);
  color: var(--type-color, var(--a25a-green));
}

.a25a-type-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--a25a-ink);
}

.a25a-type-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
  flex: 1;
}

.a25a-type-arrow {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--type-color, var(--a25a-green));
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── Stats strip ── */
.a25a-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .a25a-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.a25a-stat {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--a25a-radius);
  background: #fff;
  border: 1px solid #e8f0ec;
}

.a25a-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--a25a-green-dark);
  letter-spacing: -0.02em;
}

.a25a-stat-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* ── CTA seller ── */
.a25a-seller-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--a25a-radius-lg);
  padding: 2rem 1.5rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .a25a-seller-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.5rem;
  }
}

.a25a-seller-cta-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--a25a-ink);
  letter-spacing: -0.02em;
}

.a25a-seller-cta-text {
  font-size: 0.875rem;
  color: #475569;
  margin-top: 0.35rem;
  max-width: 28rem;
}

/* ── Product cards override ── */
body.a25a-portal .product-card-wrapper {
  border-color: #e8f0ec;
  border-radius: var(--a25a-radius-lg) !important;
}

body.a25a-portal .product-card-wrapper:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.08);
}

/* ── Footer ── */
body.a25a-portal .a25a-footer {
  background: var(--a25a-ink);
  border-top: 1px solid rgba(16, 185, 129, 0.12);
}

body.a25a-portal .a25a-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--a25a-green), transparent);
}

/* ── Section wrappers (reuse admin blocks) ── */
.a25a-block {
  background: #fff;
  border: 1px solid #e8f0ec;
  border-radius: var(--a25a-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .a25a-block {
    padding: 2rem;
  }
}

.a25a-block-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--a25a-ink);
  margin-bottom: 1.25rem;
}

/* ── Dark theme ── */
body.a25a-portal.theme-dark .a25a-header-main {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: rgba(16, 185, 129, 0.1);
}

body.a25a-portal.theme-dark .a25a-type-card,
body.a25a-portal.theme-dark .a25a-stat,
body.a25a-portal.theme-dark .a25a-block {
  background: var(--gray-50);
  border-color: var(--gray-200);
}

body.a25a-portal.theme-dark .a25a-section-title,
body.a25a-portal.theme-dark .a25a-type-name,
body.a25a-portal.theme-dark .a25a-block-title {
  color: var(--gray-800);
}

body.a25a-portal.theme-dark .a25a-seller-cta {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

body.a25a-portal.theme-dark .a25a-seller-cta-title {
  color: #ecfdf5;
}

body.a25a-portal.theme-dark .a25a-seller-cta-text {
  color: #a7f3d0;
}

/* ── Account layout ── */
.a25a-account-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 80px);
}

.a25a-account-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--a25a-ink);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(16, 185, 129, 0.1);
}

.a25a-account-sidebar-head {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.a25a-account-sidebar-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.a25a-account-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.a25a-account-sidebar-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--a25a-green);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.a25a-account-sidebar-name {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.a25a-account-sidebar-role {
  font-size: 0.7rem;
  color: #64748b;
}

.a25a-account-nav {
  flex: 1;
  padding: 0.75rem 0.5rem;
}

.a25a-account-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  padding: 0.75rem 0.75rem 0.35rem;
}

.a25a-account-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 0.15rem;
}

.a25a-account-nav-item i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.a25a-account-nav-item:hover {
  background: rgba(16, 185, 129, 0.08);
  color: #6ee7b7;
}

.a25a-account-nav-item.is-active {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-left: 2px solid var(--a25a-green);
  margin-left: -2px;
}

.a25a-account-nav-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.a25a-account-sidebar-foot {
  padding: 0.75rem 0.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.a25a-account-main {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: var(--a25a-surface);
}

.a25a-account-content {
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .a25a-account-layout {
    flex-direction: column;
  }
  .a25a-account-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem;
  }
  .a25a-account-sidebar-head,
  .a25a-account-sidebar-foot {
    display: none;
  }
  .a25a-account-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.25rem;
    padding: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .a25a-account-nav-label {
    display: none;
  }
  .a25a-account-nav-item span {
    display: none;
  }
  .a25a-account-nav-item {
    padding: 0.65rem;
    flex-shrink: 0;
  }
  .a25a-account-main {
    padding: 1rem;
  }
}

/* Account hero */
.a25a-account-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--a25a-radius-lg);
  background: linear-gradient(145deg, var(--a25a-ink) 0%, #0f1a12 100%);
  color: #fff;
  margin-bottom: 1.5rem;
  padding: 1.75rem;
}

.a25a-account-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.a25a-account-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.a25a-account-hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
}

.a25a-account-hero-text {
  color: #94a3b8;
  font-size: 0.875rem;
  max-width: 28rem;
}

.a25a-account-hero-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.a25a-btn-ghost-on-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
}

.a25a-btn-ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.a25a-btn-ghost-light {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.a25a-btn-ghost-light:hover {
  border-color: var(--a25a-green);
  color: var(--a25a-green-dark);
}

/* Account stats */
.a25a-account-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .a25a-account-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.a25a-account-stat-card {
  background: #fff;
  border: 1px solid #e8f0ec;
  border-radius: var(--a25a-radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  border-top: 3px solid var(--stat-color, var(--a25a-green));
}

.a25a-account-stat-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.a25a-account-stat-icon {
  font-size: 1.25rem;
  color: var(--stat-color, var(--a25a-green));
  margin-bottom: 0.5rem;
}

.a25a-account-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--a25a-ink);
  letter-spacing: -0.02em;
}

.a25a-account-stat-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}

/* Quick access */
.a25a-account-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .a25a-account-quick {
    grid-template-columns: repeat(3, 1fr);
  }
}

.a25a-account-quick-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #f8faf9;
  border: 1px solid #e8f0ec;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}

.a25a-account-quick-item i {
  font-size: 1.25rem;
}

.a25a-account-quick-item:hover {
  border-color: var(--a25a-green);
  background: #ecfdf5;
}

/* Lists */
.a25a-account-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.a25a-account-list-item:last-child {
  border-bottom: none;
}

.a25a-account-list-item:hover {
  background: #f8faf9;
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 0.5rem;
}

.a25a-dl-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #ecfdf5;
  color: var(--a25a-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Page head */
.a25a-page-head {
  margin-bottom: 1.5rem;
}

.a25a-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--a25a-ink);
}

.a25a-page-sub {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Empty states */
.a25a-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
}

.a25a-empty-lg {
  padding: 3rem 1.5rem;
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: var(--a25a-radius-lg);
}

.a25a-empty > i,
.a25a-empty-icon-wrap i {
  font-size: 2.5rem;
  color: #cbd5e1;
  display: block;
  margin-bottom: 0.75rem;
}

.a25a-empty-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--empty-color, var(--a25a-green)) 12%, white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.a25a-empty-icon-wrap i {
  font-size: 1.75rem;
  color: var(--empty-color, var(--a25a-green));
  margin: 0;
}

/* Download cards */
.a25a-dl-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.a25a-dl-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e8f0ec;
  border-radius: var(--a25a-radius);
  flex-wrap: wrap;
}

.a25a-dl-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #ecfdf5;
  color: var(--a25a-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.a25a-dl-card-body {
  flex: 1;
  min-width: 0;
}

.a25a-dl-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.a25a-dl-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* Table */
.a25a-table {
  width: 100%;
  border-collapse: collapse;
}

.a25a-table th {
  text-align: left;
  padding: 0.85rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8faf9;
  border-bottom: 1px solid #e8f0ec;
}

.a25a-table td {
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
}

.a25a-table tr:hover td {
  background: #fafcfb;
}

.a25a-badge {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.a25a-badge-green {
  background: #ecfdf5;
  color: #047857;
}

.a25a-alert {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.a25a-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.a25a-product-type-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* ══════════════════════════════════════════
   REG.RU STYLE — Header, Homepage, Footer
   ══════════════════════════════════════════ */

.a25a-header-reg-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.a25a-header-reg {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.a25a-header-reg-top {
  padding: 0.85rem 0;
  border-bottom: 1px solid #eee;
}

.a25a-header-reg-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.a25a-header-reg-brand {
  display: none;
  flex-direction: column;
}

@media (min-width: 640px) {
  .a25a-header-reg-brand { display: flex; }
}

.a25a-header-reg-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #1a1a1a;
  line-height: 1.2;
}

.a25a-header-reg-slogan {
  font-size: 0.7rem;
  color: #888;
}

.a25a-header-reg-top .a25a-header-reg-container {
  flex-wrap: nowrap;
}

.a25a-header-reg-logo-img {
  height: 2.5rem;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

@media (min-width: 1024px) {
  .a25a-header-reg-logo-img {
    height: 2.75rem;
    max-width: 220px;
  }
}

.a25a-header-reg-search-row {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 0;
}

.a25a-header-catalog-btn,
body.a25a-portal #catalog-menu-toggle.a25a-header-catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  align-self: stretch;
  padding: 0 1.15rem;
  background: var(--a25a-green);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--a25a-green-glow);
  transition: background 0.2s;
}

.a25a-header-catalog-btn:hover,
body.a25a-portal #catalog-menu-toggle.a25a-header-catalog-btn:hover {
  background: var(--a25a-green-dark);
  color: #fff;
}

.a25a-header-reg-search-row .a25a-header-reg-search {
  flex: 1;
  max-width: none;
  margin: 0;
}

.a25a-header-reg-search {
  display: flex;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  transition: border-color 0.2s;
}

.a25a-header-reg-search:focus-within {
  border-color: var(--a25a-green);
  background: #fff;
}

.a25a-header-reg-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}

.a25a-header-reg-search button {
  background: var(--a25a-green);
  color: #fff;
  border: none;
  padding: 0 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.a25a-header-reg-search button:hover {
  background: var(--a25a-green-dark);
}

.a25a-header-reg-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: auto;
}

.a25a-header-reg-phone {
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a1a1a;
  text-decoration: none;
}

.a25a-header-reg-phone:hover { color: var(--a25a-green-dark); }

.a25a-header-reg-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.a25a-header-reg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  color: #475569;
  text-decoration: none;
  border: 2px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--a25a-radius);
  background: #fff;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.a25a-header-reg-icons #cart-button {
  border: 2px solid rgba(16, 185, 129, 0.22);
  background: #fff;
}

.a25a-header-reg-icon:hover,
.a25a-header-reg-icons #cart-button:hover {
  color: var(--a25a-green-dark);
  background: #f0fdf4;
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 2px 10px var(--a25a-green-glow);
}

.a25a-header-reg-icon i,
.a25a-header-reg-icons #cart-button i {
  font-size: 1.35rem;
  line-height: 1;
}

.a25a-header-reg-burger {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  padding: 0.25rem;
  cursor: pointer;
}

.a25a-header-reg-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.a25a-header-reg-nav .a25a-header-reg-container {
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}

.a25a-header-reg-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
}

.a25a-header-reg-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.a25a-header-reg-menu-item:hover,
.a25a-header-reg-menu-item.is-active {
  color: var(--a25a-green-dark);
  border-bottom-color: var(--a25a-green);
}

.a25a-header-reg-menu-catalog {
  font-weight: 600;
  color: var(--a25a-green-dark);
}

.a25a-header-reg-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-size: 0.8rem;
}

/* ── Hero ── */
.a25a-reg-hero {
  position: relative;
  margin: -2rem -1rem 0;
  padding: 3rem 1.25rem 8rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .a25a-reg-hero {
    margin: -2rem -1.5rem 0;
    padding: 4rem 2rem 9rem;
    border-radius: 0 0 24px 24px;
  }
}

.a25a-reg-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
  z-index: 0;
}

.a25a-reg-hero-bg::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 10%;
  width: 50%;
  height: 80%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="none" stroke="%2310b981" stroke-width="0.5" opacity="0.15"/><circle cx="100" cy="100" r="50" fill="none" stroke="%2310b981" stroke-width="0.5" opacity="0.1"/></svg>') no-repeat center/contain;
  opacity: 0.6;
}

.a25a-reg-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.a25a-reg-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.a25a-reg-hero-title span {
  color: var(--a25a-green-dark);
}

.a25a-reg-hero-sub {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.a25a-reg-hero-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto 1.25rem;
  border: 2px solid #ddd;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s;
}

.a25a-reg-hero-search:focus-within {
  border-color: var(--a25a-green);
}

.a25a-reg-hero-search input {
  flex: 1;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  outline: none;
  min-width: 0;
}

.a25a-reg-hero-search button {
  background: var(--a25a-green);
  color: #fff;
  border: none;
  padding: 0 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.a25a-reg-hero-search button:hover { background: var(--a25a-green-dark); }

.a25a-reg-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.a25a-reg-tag {
  padding: 0.4rem 1rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: all 0.15s;
}

.a25a-reg-tag:hover {
  border-color: var(--a25a-green);
  color: var(--a25a-green-dark);
  background: #f0fdf4;
}

/* Floating cards */
.a25a-reg-hero-float {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: -4rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .a25a-reg-hero-float {
    grid-template-columns: 1fr 1.2fr;
    margin-top: -5rem;
  }
}

.a25a-reg-float-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

.a25a-reg-float-card--accent {
  border-color: var(--a25a-green);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.12);
}

.a25a-reg-float-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  color: #1a1a1a;
}

.a25a-reg-float-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.a25a-reg-float-links--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.a25a-reg-float-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #444;
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.15s;
}

.a25a-reg-float-links a i {
  color: var(--a25a-green);
  font-size: 1rem;
}

.a25a-reg-float-links a:hover { color: var(--a25a-green-dark); }

/* ── Сделаем за вас ── */
.a25a-reg-section {
  margin: 2rem -1rem 2rem;
  background: #ebebeb;
  border-radius: 20px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .a25a-reg-section { margin: 2rem -1.5rem 2rem; border-radius: 24px; }
}

.a25a-reg-section-banner {
  background: linear-gradient(135deg, #bbf7d0 0%, #86efac 50%, #4ade80 100%);
  padding: 2rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .a25a-reg-section-banner { padding: 2.5rem 2rem; }
}

.a25a-reg-section-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.a25a-reg-section-banner p {
  font-size: 0.95rem;
  color: #333;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

.a25a-reg-section-body {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .a25a-reg-section-body { padding: 2rem; }
}

.a25a-reg-row {
  margin-bottom: 2rem;
}

.a25a-reg-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.a25a-reg-row-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
}

.a25a-reg-row-head a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--a25a-green-dark);
  text-decoration: none;
  white-space: nowrap;
}

.a25a-reg-row-head a:hover { text-decoration: underline; }

.a25a-reg-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .a25a-reg-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .a25a-reg-cards { grid-template-columns: repeat(3, 1fr); }
}

.a25a-reg-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.2s, transform 0.2s;
}

.a25a-reg-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.a25a-reg-card-visual {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.a25a-reg-card-visual--green { background: #ecfdf5; color: var(--a25a-green); }
.a25a-reg-card-visual--blue { background: #eff6ff; color: #3b82f6; }
.a25a-reg-card-visual--purple { background: #f5f3ff; color: #8b5cf6; }
.a25a-reg-card-visual--teal { background: #f0fdfa; color: #14b8a6; }
.a25a-reg-card-visual--dark { background: #f1f5f9; color: #334155; }

.a25a-reg-card-visual--img {
  height: 160px;
  padding: 1rem;
  background: #fafafa;
}

.a25a-reg-card-visual--img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.a25a-reg-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.a25a-reg-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.a25a-reg-card-text {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.45;
  flex: 1;
}

.a25a-reg-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f0f0f0;
}

.a25a-reg-card-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.a25a-reg-card-old {
  font-size: 0.8rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.a25a-reg-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--a25a-green-dark);
  background: #ecfdf5;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.a25a-reg-card-foot > i {
  color: #ccc;
  font-size: 1.1rem;
  transition: color 0.15s, transform 0.15s;
}

.a25a-reg-card:hover .a25a-reg-card-foot > i {
  color: var(--a25a-green);
  transform: translateX(3px);
}

/* CTA banner */
.a25a-reg-cta-banner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .a25a-reg-cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
  }
}

.a25a-reg-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.a25a-reg-cta-text strong {
  font-size: 1.05rem;
  color: #1a1a1a;
}

.a25a-reg-cta-text span {
  font-size: 0.875rem;
  color: #555;
}

.a25a-reg-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.a25a-reg-cta-btn:hover {
  background: #333;
  color: #fff;
}

.a25a-reg-cta-btn--dark {
  background: var(--a25a-green-dark);
}

.a25a-reg-cta-btn--dark:hover {
  background: var(--a25a-green-darker);
}

/* White sections */
.a25a-reg-white-section {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #eee;
}

.a25a-reg-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .a25a-reg-categories { grid-template-columns: repeat(4, 1fr); }
}

.a25a-reg-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #333;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 0.75rem;
  border-radius: 12px;
  transition: background 0.15s;
}

.a25a-reg-category:hover { background: #f0fdf4; color: var(--a25a-green-dark); }

.a25a-reg-category-img {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a25a-reg-category-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.a25a-reg-news {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .a25a-reg-news { grid-template-columns: repeat(2, 1fr); }
}

.a25a-reg-news-item {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  padding: 0.75rem;
  border-radius: 12px;
  transition: background 0.15s;
}

.a25a-reg-news-item:hover { background: #f9fafb; }

.a25a-reg-news-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.a25a-reg-news-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.a25a-reg-news-item p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

.a25a-reg-seller-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  background: #1a1a1a;
  color: #fff;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .a25a-reg-seller-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.a25a-reg-seller-bar strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.a25a-reg-seller-bar span {
  font-size: 0.85rem;
  color: #aaa;
}

/* Form */
.a25a-reg-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.a25a-reg-form-sub {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.a25a-reg-form input,
.a25a-reg-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  outline: none;
}

.a25a-reg-form input:focus,
.a25a-reg-form textarea:focus {
  border-color: var(--a25a-green);
}

.a25a-reg-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .a25a-reg-form-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}

.a25a-reg-form-privacy {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 1rem;
}

/* ── Footer reg.ru style ── */
.a25a-reg-footer {
  margin-top: auto;
}

.a25a-reg-footer-main {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 3rem 0 2rem;
}

.a25a-reg-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .a25a-reg-footer-container {
    grid-template-columns: 1.4fr repeat(4, 1fr);
  }
}

.a25a-reg-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.a25a-reg-footer-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.a25a-reg-footer-slogan {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.a25a-reg-footer-phone {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.a25a-reg-footer-phone:hover { color: var(--a25a-green-dark); }

.a25a-reg-footer-email {
  display: block;
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
  margin-bottom: 1rem;
}

.a25a-reg-footer-email:hover { color: var(--a25a-green-dark); }

.a25a-reg-footer-social {
  display: flex;
  gap: 0.75rem;
  font-size: 1.35rem;
}

.a25a-reg-footer-social a {
  color: #999;
  transition: color 0.15s;
}

.a25a-reg-footer-social a:hover { color: var(--a25a-green); }

.a25a-reg-footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.a25a-reg-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.a25a-reg-footer-col li { margin-bottom: 0.5rem; }

.a25a-reg-footer-col a {
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
  transition: color 0.15s;
}

.a25a-reg-footer-col a:hover { color: var(--a25a-green-dark); }

.a25a-reg-footer-callback {
  margin-top: 1rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border: 2px solid var(--a25a-green);
  background: transparent;
  color: var(--a25a-green-dark);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.a25a-reg-footer-callback:hover {
  background: var(--a25a-green);
  color: #fff;
}

.a25a-reg-footer-bottom {
  background: #1a1a1a;
  color: #888;
  padding: 1rem 0;
  font-size: 0.8rem;
}

.a25a-reg-footer-bottom .a25a-reg-footer-container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Social auth buttons */
.a25a-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  border: 2px solid transparent;
}

.a25a-social-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.a25a-social-btn--vk {
  background: #0077ff;
  color: #fff;
}

.a25a-social-btn--tg {
  background: #229ed9;
  color: #fff;
}

.a25a-social-btn--max {
  background: #7c3aed;
  color: #fff;
}

@media (min-width: 768px) {
  .a25a-reg-footer-bottom .a25a-reg-footer-container {
    flex-direction: row;
    justify-content: space-between;
    grid-template-columns: unset;
  }
}

#a25a-register-standard[data-a25a-collapsed="1"],
#a25a-login-standard[data-a25a-collapsed="1"],
#a25a-register-standard[hidden],
#a25a-register-standard.a25a-register-collapsed,
#a25a-register-standard.hidden {
  display: none !important;
}

#a25a-client-error.hidden,
#a25a-agree-error.hidden {
  display: none;
}

/* Auth pages — login, register, forgotten */
body.a25a-portal .a25a-auth-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--color-background, #f5f5f5);
}

@media (min-width: 640px) {
  body.a25a-portal .a25a-auth-page {
    padding: 1.25rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  body.a25a-portal .a25a-auth-page {
    padding: 1.5rem 2rem 2rem;
  }
}

body.a25a-portal .a25a-auth-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1140px;
  min-height: min(820px, calc(100vh - 7rem));
  margin: 0 auto;
  background: #fff;
  border-radius: var(--a25a-radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

@media (min-width: 1024px) {
  body.a25a-portal .a25a-auth-shell {
    flex-direction: row;
  }
}

body.a25a-portal .a25a-auth-panel {
  width: 100%;
  flex: 1;
  background: #fff;
}

@media (min-width: 1024px) {
  body.a25a-portal .a25a-auth-panel {
    width: 50%;
  }
}

body.a25a-portal .a25a-auth-aside {
  display: none;
  width: 50%;
  background: var(--a25a-ink-soft);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  body.a25a-portal .a25a-auth-aside {
    display: block;
  }
}

body.a25a-portal #a25a-vk-oauth {
  border-radius: 12px;
  overflow: hidden;
}

body.a25a-portal #a25a-vk-oauth iframe,
body.a25a-portal #a25a-vk-oauth > div {
  border-radius: 12px !important;
}
