/*
Theme Name: Storm Electronics
Theme URI: https://storm-electronics.pl
Author: Storm Electronics
Author URI: https://storm-electronics.pl
Description: Nowoczesny, techniczny motyw WordPress dla wysyłkowego serwisu elektroniki z perfekcyjną responsywnością mobilną (kompaktowe logo, zawijanie tekstu w zakładkach RMA, wyważona typografia), ergonomicznym ciemnym motywem oraz zoptymalizowanym skalowaniem dla monitorów 2K i 4K.
Version: 1.6.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storm-electronics
*/

:root {
  --bg-main: #070b12;
  --bg-card: rgba(13, 20, 36, 0.72);
  --bg-card-hover: rgba(18, 28, 49, 0.82);
  --bg-input: #0a0f1d;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(6, 182, 212, 0.32);
  --border-cyan-glow: #06b6d4;
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #22d3ee;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-heading: 'Syne', var(--font-main);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-glow: 0 0 35px rgba(6, 182, 212, 0.16);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Złota szerokość kontenera dla naturalnych proporcji */
  --container-max-width: 1240px;
  --container-padding: 24px;
}

@media (min-width: 1920px) {
  :root {
    --container-max-width: 1320px;
    --container-padding: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
  }
}

@media (max-width: 380px) {
  :root {
    --container-padding: 12px;
  }
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--accent-cyan-light);
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ==================== HEADER (Minimalist: Logo + CTA) ==================== */
.storm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 11, 18, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
  transition: var(--transition);
}

.storm-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.storm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 20px;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
  transition: var(--transition);
  flex-shrink: 0;
}

.storm-brand:hover .brand-icon-box {
  transform: rotate(5deg) scale(1.05);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

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

.brand-sub {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.header-action {
  flex-shrink: 0;
}

/* Primary CTA Button */
.btn-storm-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #070b12;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-storm-primary:hover, .btn-storm-primary:active {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #040810;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.6);
}

.btn-storm-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-storm-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-storm-secondary:hover, .btn-storm-secondary:active {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-2px);
}

.btn-storm-secondary:active {
  transform: translateY(0);
}

/* Header na telefonach - Logo pomniejszone, przycisk mieści się cały */
@media (max-width: 768px) {
  .storm-header {
    padding: 10px 0;
  }
  .storm-header .header-inner {
    gap: 8px;
  }
  .storm-brand {
    gap: 8px;
  }
  .brand-icon-box {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
  }
  .brand-name {
    font-size: 14.5px;
    letter-spacing: -0.3px;
  }
  .brand-sub {
    display: none; /* Schowany podtytuł dla maksymalnego miejsca w poziomie */
  }
  .header-action .btn-storm-primary {
    padding: 8px 14px;
    font-size: 12px;
    gap: 6px;
    min-height: 36px;
  }
}

@media (max-width: 380px) {
  .storm-header .header-inner {
    gap: 6px;
  }
  .brand-icon-box {
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 6px;
  }
  .brand-name {
    font-size: 13.5px;
  }
  .header-action .btn-storm-primary {
    padding: 7px 11px;
    font-size: 11px;
    gap: 5px;
    min-height: 34px;
  }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--border-cyan);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  max-width: 100%;
}

/* Wyważony, elegancki rozmiar czcionki tytułu */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.7vw, 42px);
  font-weight: 800;
  line-height: 1.22;
  margin: 0 auto 18px;
  letter-spacing: -0.6px;
  max-width: 880px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 80%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.62;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 45px;
  padding-top: 35px;
  border-top: 1px solid var(--border-glass);
}

.stat-item {
  text-align: center;
  min-width: 130px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.stat-num span {
  color: var(--accent-cyan);
}

.stat-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 6px;
}

/* Hero na telefonach - Pomniejszony tytuł zgodnie z życzeniem */
@media (max-width: 768px) {
  .hero-section {
    padding: 38px 0 26px;
  }
  .hero-pill {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 14px;
    line-height: 1.3;
  }
  .hero-title {
    font-size: clamp(20px, 5.2vw, 25px); /* Wyraźnie pomniejszona czcionka na telefonie */
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
    padding: 0 4px;
  }
  .hero-lead {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 22px;
    padding: 0 4px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-cta-group .btn-storm-primary,
  .hero-cta-group .btn-storm-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 14px;
  }
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
  }
  .stat-item {
    min-width: auto;
  }
  .stat-num {
    font-size: 22px;
  }
  .stat-desc {
    font-size: 10px;
    letter-spacing: 0.2px;
    line-height: 1.25;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 19px;
  }
  .stat-num {
    font-size: 19px;
  }
  .stat-desc {
    font-size: 9px;
  }
}

/* ==================== BENTO GRID ==================== */
.bento-section-wrap {
  padding-bottom: 30px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 45px;
}

.section-badge {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  max-width: 800px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  margin-bottom: 75px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent-cyan);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 19.5px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.3;
}

.bento-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Bento na telefonach */
@media (max-width: 768px) {
  .section-title-wrap {
    margin-bottom: 26px;
  }
  .section-badge {
    font-size: 10.5px;
    letter-spacing: 1.4px;
  }
  .section-title {
    font-size: clamp(21px, 5.5vw, 26px);
    line-height: 1.25;
  }
  .bento-grid {
    gap: 14px;
    margin-bottom: 45px;
  }
  .bento-card {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .bento-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-bottom: 12px;
  }
  .bento-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }
  .bento-card p {
    font-size: 13.5px;
    line-height: 1.55;
  }
}

/* ==================== WORKFLOW SECTION (4 Steps) ==================== */
.workflow-section {
  padding: 65px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(13, 20, 36, 0.4);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

@media (min-width: 1100px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--accent-cyan);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
}

.step-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 14px 0 8px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .workflow-section {
    padding: 38px 0;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step-card {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .step-number {
    font-size: 24px;
    top: 14px;
    right: 14px;
  }
  .step-card h4 {
    font-size: 16px;
    margin: 8px 0 6px;
  }
  .step-card p {
    font-size: 13.5px;
    line-height: 1.5;
  }
}

/* ==================== APP CONTAINERS & FORMS ==================== */
.rma-section-wrap {
  padding: 65px 0 30px;
}

.rma-wrapper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-glow);
  margin-bottom: 70px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* Zakładki RMA - Z ZAWIJANIEM TEKSTU */
.nav-tabs-custom {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.nav-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: normal; /* Zawijanie tekstu na przyciskach */
  line-height: 1.3;
  text-align: center;
  word-break: normal;
  flex: 1 1 auto;
}

.nav-tab-btn.active {
  background: rgba(6, 182, 212, 0.16);
  color: var(--accent-cyan);
  border-color: var(--border-cyan);
}

/* Tabsy na telefonach - Pełne zawijanie tekstu, wygodny dotykowy układ */
@media (max-width: 768px) {
  .rma-section-wrap {
    padding: 32px 0 20px;
  }
  .rma-wrapper-card {
    padding: 20px 14px;
    border-radius: 14px;
    margin-bottom: 35px;
  }
  .nav-tabs-custom {
    display: flex;
    flex-direction: column; /* Na telefonie ułożenie pionowe z zawijaniem tekstu */
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 20px;
  }
  .nav-tab-btn {
    width: 100%;
    white-space: normal !important; /* Wymuszone zawijanie tekstu */
    text-align: left;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.35;
    min-height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-tab-btn.active {
    background: rgba(6, 182, 212, 0.16);
    border-color: var(--accent-cyan);
  }
}

.form-row, .rma-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .form-row, .rma-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 14px;
    margin-bottom: 14px;
  }
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* Zapobieganie auto-zoomowaniu w iOS Safari: font-size 16px */
.form-control-storm {
  width: 100%;
  padding: 12px 14px;
  min-height: 48px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 16px !important;
  font-family: inherit;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-control-storm:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
}

textarea.form-control-storm {
  min-height: 95px;
  resize: vertical;
}

.rma-form-inner-box {
  background: var(--bg-card, rgba(13,20,36,0.7));
  border: 1px solid var(--border-glass, rgba(255,255,255,0.08));
  padding: 26px;
  border-radius: 14px;
}

@media (max-width: 640px) {
  .rma-form-inner-box {
    padding: 18px 12px;
    border-radius: 12px;
  }
}

/* ==================== PLOMBA QR PREVIEW ==================== */
.niimbot-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: #04070e;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-glass);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.niimbot-label-box {
  width: 320px;
  max-width: 100%;
  height: 192px;
  background: #ffffff;
  color: #000000;
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  user-select: none;
  flex-shrink: 0;
}

.niimbot-text {
  width: 60%;
  font-size: 10px;
  line-height: 1.25;
}

.niimbot-text .title {
  font-size: 12px;
  font-weight: 900;
  border-bottom: 1px solid #000;
  padding-bottom: 3px;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.niimbot-text .rma {
  font-size: 14px;
  font-weight: 900;
  color: #000;
}

.niimbot-text .warranty {
  display: inline-block;
  background: #000;
  color: #fff;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  margin-top: 5px;
  font-size: 9px;
}

.niimbot-qr {
  width: 36%;
  text-align: center;
}

.niimbot-qr img {
  width: 90px;
  height: 90px;
  display: block;
  margin: 0 auto;
}

.niimbot-qr span {
  font-size: 8px;
  font-weight: 800;
  display: block;
  margin-top: 3px;
}

@media (max-width: 480px) {
  .niimbot-preview-wrap {
    padding: 16px 10px;
  }
  .niimbot-label-box {
    width: 290px;
    height: 175px;
    padding: 11px;
  }
  .niimbot-qr img {
    width: 75px;
    height: 75px;
  }
}

/* ==================== FOOTER ==================== */
.storm-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  background: #05080e;
  padding: 45px 0 25px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-glass);
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  padding-top: 22px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-emerald);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .storm-footer {
    padding: 32px 0 20px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding-bottom: 18px;
  }
  .footer-brand-side p {
    text-align: center;
    margin: 0 auto;
    font-size: 12px;
  }
  .footer-status-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-status-side p {
    text-align: center !important;
  }
  .footer-copy {
    padding-top: 16px;
    font-size: 11.5px;
  }
}

/* AJAX Status Result Styling */
.storm-status-card {
  padding: 24px;
}

.storm-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 640px) {
  .storm-status-card {
    padding: 16px 12px;
  }
  .storm-status-grid {
    grid-template-columns: 1fr;
  }
}

/* Fix autofill white background in Chrome / Edge */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0a0f1d inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #fff !important;
}

/* Wyrównanie pól wyszukiwarki statusu */
.rma-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.rma-search-row .form-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 0;
}

.rma-search-row .form-group label {
  min-height: 38px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 8px;
}

/* Płynne skalowanie siatki kafelków statusu */
.storm-status-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px;
}

@media (max-width: 640px) {
  .rma-search-row {
    grid-template-columns: 1fr !important;
  }
  .rma-search-row .form-group label {
    min-height: auto;
  }
  .storm-status-grid {
    grid-template-columns: 1fr !important;
  }
}
