/* RentTrueCost - Mobile Rental Outflow Assistant */
:root {
  --bg-primary: #0a0e17;
  --bg-card: #121826;
  --bg-input: #0e1320;
  --border-color: #1f293d;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-blue: #38bdf8;
  --accent-amber: #f59e0b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 40px;
}

/* Header */
header {
  background: rgba(18, 24, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-switcher {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn.active {
  background: #10b981;
  color: #fff;
}

.currency-picker {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

.header-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}

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

.brand-icon {
  font-size: 20px;
  background: linear-gradient(135deg, #059669, #10b981);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Container */
.container {
  max-width: 580px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Comparison Summary Card */
.comparison-card {
  background: linear-gradient(135deg, #162438, #10192a);
  border: 1px solid #283a58;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.winner-banner {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.summary-col {
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.summary-col.winner {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.col-tag {
  font-size: 11px;
  font-weight: 750;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.col-price {
  font-size: 22px;
  font-weight: 900;
  font-family: monospace;
  color: #fff;
}

.col-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Room Edit Tabs */
.room-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.room-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.room-tab-btn.active {
  background: #1e293b;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Form Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.input-label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-field-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 10px;
  width: 140px;
}

.input-field {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: monospace;
  width: 100%;
  text-align: right;
  outline: none;
}

.input-unit {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
  white-space: nowrap;
}

/* Details Breakdown */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-label { color: #94a3b8; }
.breakdown-val { font-family: monospace; font-weight: 700; color: #f1f5f9; }

/* Ad slots */
.ad-mobile-slot {
  margin: 12px 0;
  text-align: center;
}

.ad-mobile-box {
  min-height: 90px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-subtext {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 4px;
}
