/* MegaAkce Standalone CSS – High Performance & Hardware Accelerated */

:root {
  --primary: #FF3B30;
  --primary-hover: #E02B20;
  --primary-light: #FFF1F0;
  --secondary: #FF7A00;
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --success: #10B981;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 12px 30px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography & Utilities */
a {
  color: inherit;
  text-decoration: none;
}

.green-text {
  color: var(--success);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 800;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  font-family: inherit;
  transform: translateZ(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 59, 48, 0.4);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-md {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.15rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
}

.btn-full {
  width: 100%;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.btn-zasilkovna {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: #FFF1F2;
  border: 2px dashed #E11D48;
  color: #BE123C;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-zasilkovna:hover {
  background-color: #FFE4E6;
}

/* Optimized Lightweight Button Pulse */
.pulse-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pulse-button:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 59, 48, 0.45);
}

/* Top Bar */
.top-bar {
  background: linear-gradient(90deg, #FF3B30 0%, #FF7A00 100%);
  color: #ffffff;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-accent {
  color: var(--primary);
}

.logo-badge {
  background: #090D16;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-benefit {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 768px) {
  .header-benefit { display: none; }
}

/* User Auth in Header */
.auth-header-btn {
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s;
}

.auth-header-btn:hover {
  background: #E2E8F0;
}

.auth-header-logged {
  position: relative;
}

.user-logged-pill {
  background: var(--primary-light);
  border: 1px solid #FECACA;
  color: var(--primary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 250px;
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  z-index: 200;
}

.user-dropdown-menu.show {
  display: flex;
}

.dropdown-header-info {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dropdown-item {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--bg-main);
  color: var(--primary);
}

.dropdown-item-admin {
  background: #F5F3FF;
  color: #6D28D9;
}
.dropdown-item-admin:hover {
  background: #EDE9FE;
  color: #5B21B6;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 999;
  transform: translateZ(0);
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateZ(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-main);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.modal-close-btn:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.75rem;
}

.modal-tab-btn {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.modal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.alert-box {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.alert-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.alert-success {
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #166534;
}

/* Order Cards in Modal */
.order-modal-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-new { background: #FEF3C7; color: #92400E; }
.status-v_reseni { background: #DBEAFE; color: #1E40AF; }
.status-vyreseno { background: #DCFCE7; color: #166534; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3.5rem;
  align-items: center;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #ffffff;
  border: 1px solid var(--border);
  padding-top: 85%;
  transform: translateZ(0);
}

.product-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.deal-badge-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(255, 59, 48, 0.4);
}

.discount-badge-hero {
  background: #090D16;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 9999px;
  width: fit-content;
}

.unboxing-box {
  margin-top: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.unboxing-icon {
  font-size: 1.8rem;
}

.unboxing-title {
  font-weight: 800;
  font-size: 0.95rem;
}

.unboxing-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.stars {
  color: #F59E0B;
  font-size: 1.1rem;
}

.rating-score {
  font-weight: 800;
  font-size: 0.95rem;
}

.rating-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.98rem;
}

.check-icon {
  color: var(--success);
  font-weight: 900;
  font-size: 1.1rem;
}

.hero-cta-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trust-micro-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Features Section */
.features-section {
  background: #ffffff;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-top: 0.4rem;
}

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

.feature-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.feature-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Order / Bundle Section */
.order-section {
  padding: 5rem 0;
}

.order-container {
  max-width: 820px;
}

.order-card {
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

.order-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.bundle-pill {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 9999px;
}

.order-card-header h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-top: 0.6rem;
  margin-bottom: 0.3rem;
}

.order-card-header p {
  color: var(--text-muted);
}

.bundle-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.bundle-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.bundle-item input {
  display: none;
}

.bundle-radio-custom {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  margin-right: 1rem;
  flex-shrink: 0;
  background: #fff;
}

.bundle-item.active {
  border: 2px solid var(--primary);
  background-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.bundle-item.active .bundle-radio-custom {
  border: 6px solid var(--primary);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #FF7A00;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 9999px;
}

.bundle-name {
  font-size: 1.1rem;
  font-weight: 800;
}

.bundle-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.badge-gray {
  background: #E2E8F0;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 9999px;
}

.badge-gold {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 800;
}

.bundle-pricing {
  text-align: right;
}

.price-current {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-save {
  font-size: 0.78rem;
  color: var(--success);
  font-weight: 700;
}

/* Checkout Form inside Landing */
.form-section-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 2rem 0 1rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.shipping-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.shipping-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.shipping-card.selected {
  border: 2px solid #E11D48;
  background-color: #FFF1F2;
}

.shipping-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.radio-label input {
  accent-color: #E11D48;
  width: 18px;
  height: 18px;
}

.small-muted {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.shipping-price {
  font-weight: 900;
  font-size: 1.05rem;
}

.zasilkovna-selector-box {
  margin-top: 1rem;
}

.selected-branch-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #FDA4AF;
  border-radius: var(--radius-md);
  padding: 1rem;
}

.branch-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E11D48;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

.branch-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #BE123C;
  text-transform: uppercase;
}

.branch-name {
  font-weight: 800;
  font-size: 0.98rem;
}

.branch-address {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.home-address-inputs {
  margin-top: 1rem;
}

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

.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.input-field {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #ffffff;
}

.input-field:focus {
  border-color: var(--primary);
}

/* Order Summary Box */
.order-summary-box {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.summary-line.total-line {
  border-top: 2px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
  align-items: baseline;
}

.total-price {
  color: var(--primary);
}

.guarantee-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Reviews Section */
.reviews-section {
  background: #ffffff;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

.review-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.75rem 0 1rem 0;
}

.reviewer {
  font-size: 0.85rem;
  font-weight: 800;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
}

.faq-container {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.faq-item h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Footer */
.site-footer {
  background: #090D16;
  color: #94A3B8;
  padding: 4rem 0 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 640px) {
  .order-card { padding: 1.5rem; }
  .form-row.two-cols { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.9rem; }
  .bundle-item { flex-direction: column; align-items: flex-start; }
  .bundle-pricing { text-align: left; margin-top: 0.5rem; }
}
