/* NomadStay - Mobile Style */
:root {
  --bg-primary: #090d16;
  --bg-card: #131c2e;
  --bg-input: #0a1120;
  --border-color: #23324d;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-emerald: #10b981;
  --accent-cyan: #38bdf8;
  --accent-red: #ef4444;
  --accent-orange: #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(15, 23, 42, 0.9);
  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 { flex-shrink: 0;
  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;
}

.brand { min-width: 0;
  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.3);
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

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

/* 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: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Inputs */
.form-input { min-width: 0;
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
}
.form-input:focus { border-color: var(--accent-emerald); }

.form-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

/* Trip Rows */
.trip-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  background: var(--bg-input);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.trip-row input {
  flex: 1;
}

.btn-remove-trip {
  background: none;
  border: none;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}
.btn-remove-trip:hover {
  color: var(--accent-red);
}

.btn-add {
  background: #1e293b;
  border: 1px dashed #475569;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-add:hover {
  background: #334155;
  color: #fff;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: transform 0.15s;
}
.btn-primary:active { transform: translateY(1px); }

/* Result Card */
.result-card {
  background: linear-gradient(180deg, #132238, #0e1726);
  border: 1px solid var(--accent-emerald);
  box-shadow: 0 8px 24px -10px rgba(16, 185, 129, 0.25);
}

.result-header { margin-bottom: 14px; }

.result-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.result-stat:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.result-label {
  font-size: 13px;
  color: #94a3b8;
}
.result-val {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.highlight-red { color: var(--accent-red); }
.highlight-orange { color: var(--accent-orange); }

/* Global Mobile Layout Fixes */
input, select, textarea { min-width: 0; }
.brand > div { min-width: 0; }

.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; }
