:root {
  --shopify-green: #008060;
  --shopify-green-dark: #004c3f;
  --shopify-green-light: #e3f1df;
  --primary: #2563eb;
  --primary-light: #eff6ff;
  --bg-main: #f6f6f7;
  --bg-card: #ffffff;
  --text-dark: #202223;
  --text-sub: #6d7175;
  --border-color: #e1e3e5;
  --success: #10b981;
  --warning: #f59e0b;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  min-height: 100vh;
}

/* HEADER */
.app-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #008060, #10b981);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0,128,96,0.25);
}

.brand h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
}

.subtitle {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LANGUAGE SWITCHER */
.lang-switcher {
  display: flex;
  background: #f1f2f4;
  padding: 3px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 16px;
  cursor: pointer;
  color: var(--text-sub);
  transition: all 0.2s;
}

.lang-btn.active {
  background: white;
  color: var(--shopify-green-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.store-badge {
  background: #f1f2f4;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
}

.gdpr-badge {
  background: #e6f4ea;
  color: #137333;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #ceead6;
}

/* NAVIGATION */
.app-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.nav-btn:hover {
  color: var(--shopify-green);
}

.nav-btn.active {
  color: var(--shopify-green);
  border-bottom-color: var(--shopify-green);
}

/* MAIN CONTENT */
.main-content {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 24px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* STEPPER */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.step-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.step-badge.active {
  background: var(--shopify-green-light);
  border-color: var(--shopify-green);
  color: var(--shopify-green-dark);
  font-weight: 700;
}

.step-num {
  width: 26px;
  height: 26px;
  background: var(--shopify-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.step-text {
  font-size: 14px;
  font-weight: 600;
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--shopify-green);
  margin: 0 8px;
}

/* STEP SECTIONS */
.step-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-tag-badge {
  display: inline-block;
  background: #f0fdf4;
  color: var(--shopify-green);
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-multi {
  font-size: 11px;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.section-title p {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 4px;
}

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

/* CARDS GRID (TEK SATIR DÜZENİ) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.dest-grid {
  grid-template-columns: repeat(3, 1fr);
}

.schedule-grid {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
  .cards-grid, .schedule-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.choice-card {
  background: #fdfdfd;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  user-select: none;
  min-height: 140px;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: #b4c2b9;
  box-shadow: var(--shadow-md);
}

.choice-card.selected {
  border-color: var(--shopify-green);
  background: #f0fdf4;
  box-shadow: 0 0 0 2px var(--shopify-green);
}

.card-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: transparent;
  transition: all 0.2s;
}

.choice-card.selected .card-checkbox {
  background: var(--shopify-green);
  border-color: var(--shopify-green);
  color: white;
}

.card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.choice-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.2;
}

.choice-card p {
  font-size: 11.5px;
  color: var(--text-sub);
  line-height: 1.35;
}

/* DYNAMIC DESTINATION INPUTS */
.dest-inputs-wrapper {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dest-input-box {
  background: #f9fafb;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dest-input-box label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.styled-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: white;
  transition: border-color 0.2s;
}

.styled-input:focus {
  border-color: var(--shopify-green);
  box-shadow: 0 0 0 3px rgba(0,128,96,0.15);
}

.dest-input-box small {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 6px;
}

/* CUSTOM TIME PANEL */
.custom-time-panel {
  margin-top: 24px;
  background: #f8fafc;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e8f0;
}

.time-control-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .time-control-group {
    grid-template-columns: 1fr;
  }
}

.time-picker-box label, .days-picker-box label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.time-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.styled-time-input {
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--shopify-green-dark);
  background: white;
  border: 2px solid var(--shopify-green);
  border-radius: 8px;
  outline: none;
  width: 150px;
  cursor: pointer;
}

.quick-time-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-time-chip {
  background: white;
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-time-chip:hover {
  background: var(--shopify-green-light);
  border-color: var(--shopify-green);
  color: var(--shopify-green-dark);
}

.days-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.day-chip {
  background: white;
  border: 1.5px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
}

.day-chip.selected {
  background: var(--shopify-green);
  border-color: var(--shopify-green);
  color: white;
  box-shadow: 0 2px 6px rgba(0,128,96,0.3);
}

/* SUMMARY & ACTION BAR */
.wizard-summary-bar {
  background: #111827;
  color: white;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: sticky;
  bottom: 20px;
  z-index: 90;
  gap: 16px;
}

.summary-details {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.summary-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.summary-tags-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.summary-tag {
  background: rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}

.summary-arrow {
  color: #9ca3af;
  font-size: 16px;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* BUTTONS */
.btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--shopify-green);
  color: white;
}

.btn-primary:hover {
  background: #006e52;
}

.btn-secondary {
  background: #374151;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-outline {
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

.btn-outline:hover {
  background: #f3f4f6;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.btn-danger:hover {
  background: #fecaca;
}

/* AUTOMATIONS LIST */
.automations-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.automation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.auto-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auto-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  padding: 4px 8px;
  background: #f3f4f6;
  border-radius: 6px;
  color: var(--text-sub);
}

.tag.tag-data {
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 600;
}

.tag.tag-dest {
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
}

.tag.tag-time {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.auto-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* TOGGLE SWITCH */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--shopify-green);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* TABLE */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.styled-table th {
  background: #f9fafb;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border-color);
}

.styled-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.badge-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-status.success {
  background: #dcfce7;
  color: #15803d;
}

.badge-status.error {
  background: #fee2e2;
  color: #b91c1c;
}

/* GDPR CARDS */
.gdpr-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.gdpr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.gdpr-badge-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.gdpr-badge-status.success {
  background: #e6f4ea;
  color: #137333;
}

.gdpr-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.gdpr-card code {
  display: block;
  background: #f4f6f8;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #c026d3;
  margin-bottom: 10px;
  word-break: break-all;
}

.gdpr-card p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: white;
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: popIn 0.25s ease-out;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 18px 24px;
  background: #f9fafb;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-sub);
}

.modal-body {
  padding: 24px;
  max-height: 450px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

/* PLAN BADGE & TRIAL BANNER */
.plan-badge {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.45);
}

.trial-banner {
  background: linear-gradient(90deg, #ecfdf5, #dbeafe);
  border-bottom: 1px solid #93c5fd;
  padding: 10px 24px;
  font-size: 13px;
  color: #1e3a8a;
}

.trial-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn-upgrade-sm {
  background: #2563eb;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-upgrade-sm:hover {
  background: #1d4ed8;
}

/* PRICING MODAL HERO */
.pricing-modal-box {
  max-width: 520px;
}

.pricing-card-hero {
  text-align: center;
  padding: 8px 12px;
}

.plan-tag-highlight {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.plan-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 4px 0 8px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.price-val {
  font-size: 38px;
  font-weight: 900;
  color: #008060;
}

.price-period {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.plan-hero-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.plan-features-list {
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-feature-item {
  font-size: 13px;
  color: #334155;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-subscribe-hero {
  width: 100%;
  background: #008060;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 128, 96, 0.35);
  transition: all 0.2s ease;
}

.btn-subscribe-hero:hover {
  background: #006e52;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 128, 96, 0.45);
}

.billing-note {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 10px;
}
