:root {
  --bg-dark: #0a0b10;
  --bg-card: rgba(20, 21, 33, 0.55);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-active: rgba(99, 102, 241, 0.4);
  
  /* Palette */
  --primary: #6366f1;       /* Indigo */
  --primary-hover: #4f46e5;
  --accent: #10b981;        /* Emerald */
  --accent-hover: #059669;
  --danger: #ef4444;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  
  --font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background animated glow */
.bg-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--primary) 0%, rgba(99, 102, 241, 0) 70%);
  top: -10%;
  left: -10%;
  animation: float 20s infinite alternate;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--accent) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: -10%;
  right: -10%;
  animation: float-reverse 25s infinite alternate;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.2); }
}

@keyframes float-reverse {
  0% { transform: translate(0, 0) scale(1.2); }
  100% { transform: translate(-100px, -50px) scale(0.9); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

/* Main Container */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

body.super-active {
  background: #090a0f;
}

body.super-active .app-container {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.super-active .main-header {
  display: none;
}

body.super-active .bg-glow {
  opacity: 0.22;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo .highlight {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.icon-logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.45));
  animation: pulse-slow 3s infinite;
}

.icon-logo.full-brand-logo {
  width: 112px;
  height: 58px;
  filter: none;
  animation: none;
}

.icon-logo.logo-mark {
  width: 2.75rem;
  height: 3.25rem;
  filter: none;
  animation: none;
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* Role Selector Toggle */
.role-selector {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.25rem;
  border-radius: 12px;
  display: flex;
  backdrop-filter: blur(5px);
}

.role-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Glassmorphism Card base style */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Grid systems */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.owner-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .owner-grid {
    grid-template-columns: 1fr;
  }
}

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

/* Auth / Login View Card */
.auth-card {
  max-width: 440px;
  margin: 4.5rem auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(20, 21, 33, 0.7) 0%, rgba(10, 11, 18, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px;
  text-align: center;
}

.auth-card h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(120deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.5rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.form-group-inline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 700;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

input:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.35);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.helper-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #6366f1 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #34d399 100%);
  color: white;
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

/* Loyalty Card Widget styling */
.loyalty-card-widget {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 230px;
  overflow: hidden;
  justify-content: space-between;
}

.loyalty-card-widget::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.card-brand {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
}

.card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: 6px;
  position: relative;
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 18px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 3px;
}

.card-holder-info, .card-token-info {
  z-index: 1;
}

.holder-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-holder-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 2px;
}

.card-token-info h4 {
  font-family: monospace;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: #a5b4fc;
}

.card-stats {
  display: flex;
  gap: 2rem;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Progress Widget */
.progress-widget {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.progress-container {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.progress-bar-bg {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  height: 12px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255,255,255,0.03);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(99,102,241,0.5);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.bonus-tag {
  color: var(--accent);
}

/* Stamps Grid */
.stamps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: auto;
}

.stamp {
  aspect-ratio: 1;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stamp.filled {
  background: radial-gradient(circle, var(--primary) 0%, var(--primary-hover) 100%);
  border: 2px solid var(--primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.stamp.filled-reward {
  background: radial-gradient(circle, var(--accent) 0%, var(--accent-hover) 100%);
  border: 2px solid var(--accent);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* QR / Barcode Widget */
.qr-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
}

.qr-container {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  width: 100%;
  max-width: 260px;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.barcode-display {
  width: 100%;
  height: 70px;
}

.barcode-simulation {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2px;
  background: white;
}

.barcode-bar {
  background-color: black;
  flex-grow: 1;
}

.barcode-text {
  color: var(--bg-dark);
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-top: 0.5rem;
}

/* Mobile client dashboard */
body.client-dashboard-active {
  background:
    radial-gradient(circle at 16% 4%, rgba(99, 102, 241, 0.16), transparent 28rem),
    radial-gradient(circle at 84% 92%, rgba(16, 185, 129, 0.12), transparent 24rem),
    var(--bg-dark);
}

body.client-dashboard-active .main-header {
  display: none;
}

body.client-dashboard-active .app-container {
  max-width: 430px;
  padding: 1.15rem 0.85rem 1.15rem;
}

.client-phone-shell {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.client-data-meta,
.client-history-storage {
  display: none;
}

.client-qr-card,
.client-progress-card,
.client-actions-card {
  background: rgba(15, 18, 29, 0.82);
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.client-qr-card {
  min-height: 420px;
  justify-content: flex-start;
  padding: 2rem 1.95rem 1.8rem;
}

.client-qr-card h3 {
  font-size: 1.18rem;
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.client-qr-card .subtitle {
  font-size: 0.7rem;
  margin-bottom: 0;
}

.client-qr-card .qr-container {
  width: min(260px, 100%);
  max-width: 260px;
  margin: 2.75rem auto 0;
  padding: 2rem 1.1rem 1.45rem;
  border-radius: 15px;
  gap: 1.2rem;
}

.client-qr-card #client-qr-display {
  width: min(205px, 100%);
  aspect-ratio: 1;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
  background: white;
  padding: 0;
}

.client-qr-card .barcode-text {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18rem;
  margin-top: 0;
}

.client-progress-card {
  min-height: 240px;
  padding: 2.65rem 2rem 1.75rem;
}

.client-reward-copy {
  display: none;
}

.client-progress-card .progress-container {
  margin: 0 0 1.55rem;
}

.client-progress-card .progress-bar-bg {
  height: 10px;
  margin-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
}

.client-progress-card .progress-labels {
  align-items: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.client-progress-card #progress-text {
  color: #fff;
}

.client-progress-card .bonus-tag {
  color: var(--accent);
  text-align: right;
}

.client-progress-card .stamps-grid {
  gap: 0.65rem;
}

.client-progress-card .stamp {
  min-width: 0;
  font-size: 0.95rem;
  border-width: 2px;
  background: rgba(255, 255, 255, 0.01);
}

.client-progress-card .stamp.filled {
  background: radial-gradient(circle at 50% 38%, #7468ff 0%, #554fee 78%);
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.38), inset 0 1px 6px rgba(255, 255, 255, 0.15);
}

.client-progress-card .stamp.filled-reward {
  background: radial-gradient(circle at 50% 38%, #1fd9a0 0%, #0ba66d 78%);
  border-color: rgba(52, 211, 153, 0.9);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.32), inset 0 1px 6px rgba(255, 255, 255, 0.15);
}

.client-actions-card {
  padding: 0.85rem;
}

.client-bottom-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.client-bottom-actions .btn {
  min-height: 46px;
  padding: 0.65rem 0.35rem;
  border-radius: 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.client-bottom-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.client-pin-form {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.client-pin-form h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.client-pin-form .subtitle {
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.client-pin-form input {
  text-align: center;
  letter-spacing: 0.55rem;
  font-size: 1.12rem;
}

.client-pin-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1rem;
}

@media (max-width: 380px) {
  body.client-dashboard-active .app-container {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .client-qr-card {
    min-height: 390px;
    padding: 1.9rem 1.55rem;
  }

  .client-qr-card .qr-container {
    margin-top: 2.6rem;
  }

  .client-progress-card {
    min-height: 232px;
    padding: 2.35rem 1.55rem 1.55rem;
  }

  .client-bottom-actions {
    grid-template-columns: 1fr;
  }
}

/* Tables styling */
.table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.history-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.history-table td {
  padding: 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.history-table tr:last-child td {
  border-bottom: none;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-add {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
}

.badge-sub {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.badge-token {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-family: monospace;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state .large-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* OWNER DASHBOARD */
.owner-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.owner-header-subtitle {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.owner-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.owner-mode-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.owner-mode-tab {
  min-height: 36px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.owner-mode-tab.active {
  background: var(--primary);
  color: #fff;
}

.owner-mode-panel {
  animation: fadeIn 0.2s ease-out;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.55fr);
  gap: 1.5rem;
  align-items: start;
}

.service-client-picker,
.service-workspace {
  min-width: 0;
}

.service-client-picker .widget-header {
  align-items: flex-start;
  gap: 1rem;
}

.service-client-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 520px;
  overflow-y: auto;
}

.service-client-row {
  width: 100%;
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-family: var(--font-family);
  text-align: left;
  cursor: pointer;
}

.service-client-row:hover,
.service-client-row.selected {
  border-color: rgba(129, 140, 248, 0.65);
  background: rgba(99, 102, 241, 0.14);
}

.service-client-row strong,
.service-client-row small {
  display: block;
}

.service-client-row small {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-family: monospace;
}

.service-client-row-stats {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: right;
}

.service-client-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
}

.service-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-stats {
  display: flex;
  gap: 1rem;
}

.service-action-section {
  padding-top: 1.25rem;
}

.service-action-section + .service-action-section {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-action-section h4 {
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1rem;
}

.service-reward-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-action-btn {
  min-height: 108px;
}

@media (max-width: 900px) {
  .owner-header-bar,
  .owner-header-actions,
  .service-client-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-header-actions {
    justify-content: flex-start;
  }

  .owner-mode-tabs {
    width: 100%;
  }

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

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.search-box {
  margin-bottom: 1rem;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

/* Client List inside Owner View */
.client-list-container {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.client-list-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.client-list-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.client-list-item.selected {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--border-active);
}

.client-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.client-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.client-item-stats {
  display: flex;
  gap: 0.75rem;
}

.client-item-stats .stat-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: var(--text-muted);
}

.client-item-stats .stat-badge strong {
  color: white;
}

/* Client Details Panel */
.client-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.client-detail-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.client-detail-stats {
  display: flex;
  gap: 1.5rem;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mini-stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.mini-stat .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.actions-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.actions-section h4, .detail-history-section h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  color: #fff;
}

.action-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
}

.action-card h5 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.client-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.client-link-row input {
  min-width: 0;
  font-size: 0.85rem;
}

.owner-client-share {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 0.85rem;
}

.owner-client-qr-box {
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  border-radius: 10px;
  background: #fff;
}

.owner-client-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.owner-client-share-main {
  min-width: 0;
}

.client-share-actions {
  justify-content: flex-start;
  margin-top: 0.75rem;
}

.reward-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.reward-action-btn {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  min-height: 92px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.16);
  color: var(--text-main);
  font-family: var(--font-family);
  cursor: pointer;
}

.reward-action-btn:hover {
  border-color: rgba(129, 140, 248, 0.55);
  background: rgba(99, 102, 241, 0.25);
}

.reward-action-icon {
  font-size: 1.35rem;
}

.reward-action-label {
  font-weight: 700;
}

.reward-action-delta {
  color: var(--text-muted);
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .client-link-row {
    grid-template-columns: 1fr;
  }

  .owner-client-share {
    grid-template-columns: 1fr;
  }

  .owner-client-qr-box {
    width: min(180px, 100%);
    justify-self: center;
  }

  .reward-actions-grid {
    grid-template-columns: 1fr;
  }
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s;
}

.modal-content {
  width: 100%;
  max-width: 480px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: white;
}

.btn-group-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-group-row button {
  flex: 1;
}

.input-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.terms-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.85rem;
  margin-top: 0.25rem;
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.35;
  text-transform: none;
  cursor: pointer;
}

.terms-consent input {
  width: 18px;
  height: 18px;
  margin: 0.1rem 0 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.terms-consent span {
  min-width: 0;
}

/* View Helpers */
.hidden {
  display: none !important;
}

/* Toast System styling */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 200;
  max-width: 320px;
}

.toast {
  background: rgba(20, 21, 33, 0.9);
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slide-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success {
  border-left-color: var(--accent);
}

.toast.error {
  border-left-color: var(--danger);
}

@keyframes slide-in {
  from { transform: translateX(120%); }
  to { transform: translateX(0); }
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 1rem;
}

.toast-close:hover {
  color: white;
}

/* Spinner do widoku oczekiwania */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Sekcja próśb o rejestrację w panelu właściciela */
.owner-requests-section {
  background: rgba(99, 102, 241, 0.04);
  border: 1px dashed rgba(99, 102, 241, 0.25);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.requests-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 0.5rem;
}

.request-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.request-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
}

.request-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.request-info strong {
  font-family: monospace;
  color: #a5b4fc;
}
.request-actions {
  display: flex;
  gap: 0.5rem;
}

.request-actions .btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 8px;
  flex: 1;
}

/* --- LANDING PAGE MARKETING ONEPAGE --- */

body.landing-active .main-header {
  display: none !important;
}

body.landing-active {
  background: #13131b;
}

body.landing-active .bg-glow {
  display: none;
}

body.landing-active .app-container {
  max-width: none;
  width: 100%;
  padding: 0;
}

.landing-page {
  --landing-bg: #13131b;
  --landing-surface: #1e1e2e;
  --landing-surface-high: #292932;
  --landing-surface-highest: #34343d;
  --landing-text: #e4e1ed;
  --landing-muted: #94a3b8;
  --landing-variant: #c7c4d7;
  --landing-primary: #6366f1;
  --landing-primary-soft: #a5b4fc;
  --landing-border: rgba(255, 255, 255, 0.1);
  display: block;
  width: 100%;
  min-height: 100vh;
  margin-top: 0;
  color: var(--landing-text);
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(19, 19, 27, 0) 360px),
    var(--landing-bg);
  animation: fadeIn 0.6s ease-out;
}

.landing-page a {
  text-decoration: none;
}

.landing-page .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

.landing-nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 24px;
  background: rgba(19, 19, 27, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.landing-nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}
.landing-nav-logo .owner-logo-u {
  width: 32px;
}
.landing-nav-logo .owner-logo-text {
  font-size: 1.05rem;
  letter-spacing: 0.22em;
}

.landing-footer-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  justify-content: center;
}
.landing-footer-logo .owner-logo-u {
  width: 36px;
}
.landing-footer-logo .owner-logo-text {
  font-size: 1.15rem;
  letter-spacing: 0.22em;
}

.main-header-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}
.main-header-logo .owner-logo-u {
  width: 36px;
}
.main-header-logo .owner-logo-text {
  font-size: 1.15rem;
  letter-spacing: 0.22em;
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}

.btn-lang {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-lang:hover {
  color: #fff;
}

.btn-lang.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}

.landing-brand,
.landing-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #c0c1ff;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 14px rgba(99, 102, 241, 0.42));
}

.brand-mark.full-brand-logo {
  width: 124px;
  height: 58px;
  border-radius: 0;
  filter: none;
}

.brand-mark.logo-mark {
  width: 2.5rem;
  height: 3.15rem;
  border-radius: 0;
  filter: none;
}

.landing-footer-brand .brand-mark.logo-mark {
  width: 3rem;
  height: 3.75rem;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.landing-links a,
.landing-footer-links a {
  color: var(--landing-variant);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-links a:hover,
.landing-footer-links a:hover {
  color: #fff;
}

.landing-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 8px;
  color: #fff;
  background: #6366f1;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.landing-login:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.landing-main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 100px 24px 24px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.85fr);
  gap: 48px;
  align-items: center;
  min-height: min(720px, calc(100vh - 100px));
  padding: 48px 0;
}

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
    padding-top: 32px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .hero-content {
    align-items: flex-start;
  }
}

.landing-badge,
.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #c0c1ff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.landing-badge {
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(30, 30, 46, 0.72);
}

.landing-badge span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.85);
}

.hero-title {
  max-width: 760px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
  color: #fff;
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.05rem;
    line-height: 1.2;
  }
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, #6366f1 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0;
  color: var(--landing-variant);
  font-size: 1.125rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
}

.landing-page .btn {
  border-radius: 8px;
  letter-spacing: 0;
}

.landing-page .btn-primary {
  background: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.landing-page .btn-primary:hover {
  background: #5855eb;
}

.landing-page .btn-secondary {
  background: rgba(30, 30, 46, 0.86);
  border: 1px solid rgba(99, 102, 241, 0.45);
}

.landing-page .btn-secondary:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(165, 180, 252, 0.65);
}

.btn-large {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

.quick-access-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--landing-border);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(30, 30, 46, 0.68);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.quick-access-card h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.quick-access-card p {
  color: var(--landing-variant);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.landing-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

.landing-input-wrap {
  position: relative;
}

.landing-input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 3rem 0 1rem;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.1);
  background: #1e1e2e;
  text-transform: lowercase;
  font-weight: 600;
}

.landing-input-wrap .material-symbols-outlined {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--landing-muted);
}

.landing-section {
  padding: 56px 0;
  scroll-margin-top: 96px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.section-header h2 {
  max-width: 760px;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

@media (max-width: 600px) {
  .section-header h2 {
    font-size: 1.5rem;
  }
}

.steps-grid-landing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 800px) {
  .steps-grid-landing {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.step-card-landing {
  min-height: 260px;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  background: rgba(30, 30, 46, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card-landing:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
}

.step-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: #1e1e2e;
  color: #6366f1;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.18);
}

.step-icon .material-symbols-outlined {
  font-size: 2rem;
}

.step-number {
  position: absolute;
  top: 1.35rem;
  right: 1.4rem;
  color: rgba(255, 255, 255, 0.05);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.step-card-landing h3 {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-card-landing p {
  color: var(--landing-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pricing-toggle-wrapper {
  width: max-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0.25rem;
  margin: -1rem auto 3rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(30, 30, 46, 0.92);
  cursor: pointer;
}

.toggle-label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--landing-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

#billing-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#billing-toggle:not(:checked) ~ #label-monthly,
#billing-toggle:checked ~ #label-yearly,
.toggle-label.active {
  background: #6366f1;
  color: #fff;
}

.pricing-grid-landing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pricing-grid-landing {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 450px;
    margin: 0 auto;
  }
}

.pricing-card-landing {
  min-height: 560px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(30, 30, 46, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card-landing:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
}

.pricing-card-landing.popular {
  transform: translateY(-16px);
  border-color: #6366f1;
  background: linear-gradient(180deg, #1e1e2e 0%, #13131b 100%);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.16);
}

.pricing-card-landing.popular:hover {
  transform: translateY(-20px);
  border-color: #818cf8;
}

.popular-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #6366f1;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.plan-desc {
  min-height: 1.35rem;
  color: var(--landing-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-height: 86px;
  margin-bottom: 1.75rem;
}

.price-num {
  color: #fff;
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.price-text {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.15;
}

.price-details {
  color: var(--landing-muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.enterprise-price {
  align-items: center;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--landing-variant);
  line-height: 1.35;
}

.pricing-card-landing.popular .plan-features li {
  color: #fff;
}

.plan-features .material-symbols-outlined {
  flex: 0 0 auto;
  color: #6366f1;
  font-size: 1.15rem;
}

.plan-features li.disabled {
  color: rgba(148, 163, 184, 0.55);
}

.plan-btn {
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.highlight-btn {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.highlight-btn:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  min-height: 210px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(30, 30, 46, 0.56);
}

.feature-card > .material-symbols-outlined {
  color: #a5b4fc;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.feature-card p {
  color: var(--landing-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.security-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 16px 0 56px;
  padding: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 12px;
  background: #1e1e2e;
}

.security-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #6366f1;
  background: #171725;
}

.security-banner h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.security-banner p {
  color: var(--landing-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.security-banner a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #a5b4fc;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.landing-footer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  padding: 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d15;
  color: var(--landing-muted);
  font-size: 0.85rem;
}

.landing-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.landing-footer-box p {
  margin: 0;
}

@media (max-width: 900px) {
  .landing-links {
    display: none;
  }

  .landing-nav {
    height: 68px;
    padding: 0 16px;
  }

  .landing-main {
    padding: 84px 16px 16px;
  }

  .quick-access-card {
    max-width: none;
  }

  .pricing-card-landing.popular,
  .pricing-card-landing.popular:hover {
    transform: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .security-banner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .landing-footer-box {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .landing-brand span:last-child {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .landing-login {
    width: 40px;
    padding: 0;
    font-size: 0;
  }

  .landing-login .material-symbols-outlined {
    font-size: 1.25rem;
  }

  .landing-main {
    padding-top: 76px;
  }

  .hero-section {
    gap: 1.4rem;
    padding: 24px 0 28px;
  }

  .hero-content {
    gap: 1rem;
  }

  .landing-badge {
    max-width: 100%;
    font-size: 0.66rem;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.18;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .btn-large {
    min-height: 50px;
    padding: 0.75rem 1.1rem;
  }

  .quick-access-card {
    padding: 1.25rem;
  }

  .quick-access-card h3 {
    font-size: 1.32rem;
  }

  .quick-access-card p {
    font-size: 0.93rem;
    margin-bottom: 1rem;
  }

  .landing-form {
    gap: 0.75rem;
  }

  .landing-input-wrap input {
    height: 48px;
  }

  .pricing-toggle-wrapper {
    width: 100%;
  }

  .toggle-label {
    padding: 0 0.75rem;
    font-size: 0.82rem;
  }

  .pricing-card-landing {
    min-height: auto;
    padding: 1.5rem;
  }

  .price-num {
    font-size: 2.15rem;
  }
}


/* =========================================
   SUPER ADMIN — Complete Redesign
   ========================================= */

/* ---- Login Screen ---- */
.super-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.super-login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
}

.super-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.super-logo-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}

.super-logo-icon.full-brand-logo {
  width: 168px;
  height: 158px;
  filter: none;
}

.super-logo-icon.logo-mark {
  width: 2.65rem;
  height: 3.35rem;
  filter: none;
}

.super-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.super-login-title {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a5b4fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

/* ---- Dashboard Layout ---- */
#super-dashboard-view {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.08), transparent 34rem),
    radial-gradient(circle at 0 0, rgba(99, 102, 241, 0.08), transparent 30rem),
    var(--bg-dark);
}

/* ---- Sticky Topbar ---- */
.super-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.75rem max(1.5rem, calc((100vw - 1600px) / 2 + 1.5rem));
  background: rgba(15, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.super-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.super-topbar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a5b4fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.super-topbar-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  display: block;
  margin-top: 0.1rem;
}

.super-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.super-add-btn {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.super-add-btn:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

/* ---- Drawer ---- */
.super-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.super-drawer.hidden {
  display: none;
}

.super-drawer-inner {
  width: 100%;
  max-width: 560px;
  height: 100vh;
  overflow-y: auto;
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.super-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
}

.super-drawer-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #a5b4fc;
  margin: 0;
}

.super-drawer-form {
  padding: 1.5rem 1.75rem 2rem;
  flex: 1;
}

.super-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
}

.super-form-grid .form-group {
  margin-bottom: 0;
}

.super-form-grid .form-group:nth-child(1),
.super-form-grid .form-group:nth-child(3) {
  grid-column: 1 / -1;
}

/* ---- Stats Bar ---- */
.super-stats-bar {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.super-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}

.super-stat-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.super-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.super-stat-num.super-stat-green { color: #22c55e; }
.super-stat-num.super-stat-yellow { color: #f59e0b; }
.super-stat-num.super-stat-red { color: #ef4444; }

.super-stat-lbl {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.25rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.super-admin-security {
  width: calc(100% - 3rem);
  max-width: 1600px;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(680px, 1.6fr);
  gap: 1.25rem;
  align-items: end;
  padding: 1.25rem;
  border-radius: 12px;
}

.super-admin-security-copy h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #f8fafc;
}

.super-admin-security-copy .subtitle {
  margin-bottom: 0;
}

.super-security-kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.super-admin-password-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) minmax(190px, 1fr) minmax(190px, 1fr) max-content;
  gap: 0.75rem;
  align-items: end;
}

.super-admin-password-form .form-group {
  margin-bottom: 0;
}

.super-admin-password-form .btn {
  min-height: 46px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .super-admin-security {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .super-admin-password-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .super-admin-password-form .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ---- Main Area ---- */
.super-companies-main {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.super-companies-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.super-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}

/* ---- Filter Bar ---- */
.super-filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.super-search,
.super-filter-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.super-search {
  min-width: 220px;
}

.super-search:focus,
.super-filter-select:focus {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.06);
}

.super-filter-select option {
  background: #1a1a2e;
  color: #fff;
}

/* ---- Company Cards Grid ---- */
.super-companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

/* ---- Company Card ---- */
.super-company-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

.super-company-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), transparent 60%);
  pointer-events: none;
}

.super-company-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.company-card-blocked {
  border-color: rgba(239, 68, 68, 0.15) !important;
  background: rgba(239, 68, 68, 0.025) !important;
}

.company-card-blocked::before {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), transparent 60%) !important;
}

/* Card Head */
.company-card-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.company-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.company-card-title-block {
  flex: 1;
  min-width: 0;
}

.company-card-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-card-id {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.company-card-status {
  flex-shrink: 0;
  font-size: 0.7rem;
}

/* Card Meta Grid */
.company-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.company-card-meta-full {
  grid-column: 1 / -1;
}

.company-card-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.meta-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.meta-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-val {
  display: block;
  font-size: 0.8rem;
  color: #e2e8f0;
  font-weight: 500;
  margin-top: 0.1rem;
  word-break: break-all;
}

/* Days Remaining */
.company-card-days {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  margin-left: 0.25rem;
}

.days-green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.days-yellow { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.days-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* Card Actions */
.company-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.company-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.company-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.company-action-btn.company-action-success {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.2);
}

.company-action-btn.company-action-success:hover {
  background: rgba(34, 197, 94, 0.1);
}

.company-action-btn.company-action-warn {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.2);
}

.company-action-btn.company-action-warn:hover {
  background: rgba(245, 158, 11, 0.1);
}

.company-action-btn.company-action-danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.company-action-btn.company-action-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Badge pending */
.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .super-topbar {
    padding: 0.75rem 1rem;
  }

  .super-topbar-title { font-size: 0.95rem; }
  .super-topbar-sub { display: none; }

  .super-stats-bar {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .super-stat-num { font-size: 1.3rem; }
  .super-stat-lbl { font-size: 0.6rem; }

  .super-admin-security {
    width: calc(100% - 2rem);
    grid-template-columns: 1fr;
    margin-top: 1rem;
    padding: 1rem;
  }

  .super-admin-password-form {
    grid-template-columns: 1fr;
  }

  .super-admin-password-form .btn {
    width: 100%;
  }

  .super-companies-main {
    padding: 1rem;
    gap: 1rem;
  }

  .super-companies-grid {
    grid-template-columns: 1fr;
  }

  .super-companies-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .super-filter-bar {
    width: 100%;
  }

  .super-search { min-width: 0; width: 100%; }
  .super-filter-select { width: 100%; }

  .super-drawer-inner {
    max-width: 100%;
  }

  .super-form-grid {
    grid-template-columns: 1fr;
  }

  .super-form-grid .form-group:nth-child(1),
  .super-form-grid .form-group:nth-child(3) {
    grid-column: auto;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .super-admin-security {
    grid-template-columns: 1fr;
  }

  .super-admin-password-form {
    grid-template-columns: 1fr 1fr;
  }

  .super-admin-password-form .form-group:first-child,
  .super-admin-password-form .btn {
    grid-column: 1 / -1;
  }

  .super-companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =========================================
   GOOGLE OAUTH — Owner Login Button
   ========================================= */

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn-google:active {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(0);
}

.btn-google svg {
  flex-shrink: 0;
}

/* Separator 'lub' miedzy Google a formularzem */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* =============================================
   KONFIGURACJA SZYBKICH AKCJI (OWNER EDITOR)
   ============================================= */

.owner-actions-config-card {
  margin-top: 1.5rem;
}

.actions-config-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.actions-config-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.actions-config-header .subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.reward-actions-editor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.action-editor-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.action-editor-row:hover,
.action-editor-row:focus-within {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.05);
}

.action-editor-preview {
  flex-shrink: 0;
}

.action-editor-icon {
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text-main);
  cursor: text;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  padding: 0;
}

.action-editor-icon:focus {
  outline: none;
  border-color: var(--primary);
}

.action-editor-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.action-editor-field-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.action-editor-field-row label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.action-editor-label {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  transition: border-color 0.2s;
}

.action-editor-label:focus {
  outline: none;
  border-color: var(--primary);
}

.action-editor-nums {
  flex-direction: row !important;
  gap: 0.5rem !important;
}

.action-editor-nums > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.action-editor-visits,
.action-editor-points {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: var(--text-main);
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  transition: border-color 0.2s;
}

.action-editor-visits:focus,
.action-editor-points:focus {
  outline: none;
  border-color: var(--primary);
}

@media (max-width: 600px) {
  .reward-actions-editor {
    grid-template-columns: 1fr;
  }
  .actions-config-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Styling overrides for premium authentication cards */
.auth-card .form-group {
  margin-top: 0.5rem;
  margin-bottom: 0;
  gap: 1.25rem;
}

.auth-card input {
  width: 100%;
}

.auth-card .btn-primary {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  margin-top: 0.5rem;
}

.auth-card .btn-primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

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

.auth-card .helper-text {
  font-size: 0.54rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
  margin-top: 1.5rem;
  text-align: center;
}

/* --- Usprawnienia Responsywności Paneli --- */

/* Globalne dopasowania formularzy na telefonach */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .form-col {
    width: 100%;
  }
}

/* Panel Obsługi (Service Panel) */
@media (max-width: 900px) {
  .service-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .service-client-list {
    max-height: 220px; /* Krótsza lista na telefonie, żeby od razu było widać wybrany profil poniżej */
  }
  
  .widget-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    text-align: center;
  }
  
  .widget-header > div:last-child {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
  }
  
  .widget-header button,
  .widget-header .btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .service-client-summary {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  
  .service-stats {
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
  }
  
  /* Szybkie akcje w 2 kolumnach zamiast 1 na telefonach (wygląda jak wygodne kafelki) */
  .reward-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  
  .reward-action-btn {
    min-height: 80px;
    padding: 0.65rem;
  }
  
  .reward-action-icon {
    font-size: 1.2rem;
  }
}

/* Panel Klienta (Client Panel) */
@media (max-width: 480px) {
  body.client-dashboard-active .app-container {
    padding: 0.75rem 0.6rem;
  }
  
  .client-phone-shell {
    gap: 0.85rem;
  }
  
  .client-qr-card {
    min-height: auto !important;
    padding: 1.5rem 1.25rem;
  }
  
  .client-qr-card .qr-container {
    margin-top: 1.5rem;
    padding: 1.5rem 1rem 1.2rem;
  }
  
  .client-progress-card {
    min-height: auto !important;
    padding: 1.5rem 1.25rem;
  }
  
  .stamps-grid {
    gap: 0.5rem;
  }
  
  .client-progress-card .stamp {
    font-size: 0.85rem;
  }
}

/* --- Centrowanie i Logo w Panelu Logowania Właściciela --- */

/* Ukryj stary nagłówek strefy na ekranie logowania */
body:has(#owner-auth-view:not(.hidden)) .main-header {
  display: none;
}

/* Pełny ekran (100vh) dla logowania właściciela */
.owner-auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
}

.owner-logo-html {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

/* Poziome warianty logo w paskach i nagłówkach (nadpisanie domyślnego pionu) */
.owner-logo-html.landing-nav-logo,
.owner-logo-html.landing-footer-logo,
.owner-logo-html.main-header-logo {
  flex-direction: row;
  margin-bottom: 0;
}

.owner-logo-u {
  width: 76px;
  height: auto;
  display: block;
}

.owner-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800; /* grubszy napis */
  letter-spacing: 0.28em;
  text-indent: 0.28em; /* centrowanie ze względu na letter-spacing */
  text-transform: uppercase;
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.owner-logo-text .os-suffix {
  font-weight: 900;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 480px) {
  .owner-auth-wrapper {
    padding: 1.5rem 1rem;
  }
  .owner-logo-u {
    width: 60px;
  }
  .owner-logo-text {
    font-size: 1.2rem;
  }
}
