/* Account event cards: consistent sizing */
.event-card {
  width: 260px;
  min-width: 260px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.event-card .event-description {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Horizontal lists styling per section */
.account-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  flex-wrap: nowrap;
}
.account-strip { scrollbar-width: none; }
.account-strip::-webkit-scrollbar { height: 0; }
.account-strip.show-scrollbar { scrollbar-width: thin; }
.account-strip.show-scrollbar::-webkit-scrollbar { height: 8px; }
 .account-strip.planned .event-card { background: rgba(75, 77, 241, 0.16); box-shadow: inset 0 0 0 1px rgba(75,77,241,0.18); }
.account-strip.created .event-card { background: rgba(52, 184, 140, 0.16); box-shadow: inset 0 0 0 1px rgba(52,184,140,0.18); }

/* Section separators matching tints */
.user-content .section-title { position: relative; padding-bottom: 6px; }
#planned-title::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: rgba(75,77,241,0.55);
}
#created-title::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: rgba(52,184,140,0.55);
}
/* Icon button active state cues */
.btn.btn-icon.active {
  background: var(--primary);
  color: white;
}
.btn.btn-icon.btn-secondary.active {
  background: var(--primary);
  color: white;
}
.btn.btn-icon {
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
/* Ensure neutral look when not active */
.btn.btn-icon:not(.active) {
  background: var(--surface-light);
  color: var(--text-primary, inherit);
}
.btn.btn-icon.btn-secondary:not(.active) {
  background: var(--surface-light);
  color: var(--text-primary, inherit);
}
.btn.btn-icon:focus { outline: none; box-shadow: none; }

/* Calendar modal */
.dtp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.dtp-day, .dtp-weekday {
  text-align: center;
  padding: 8px 0;
  border-radius: var(--radius-sm);
}
.dtp-weekday { color: var(--text-secondary); font-weight: 600; }
.dtp-day { background: var(--surface-light); cursor: pointer; }
.dtp-day:hover { background: var(--primary-light, #e5e7ff); }
.dtp-day.selected { background: var(--primary); color: #fff; }
.dtp-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.dtp-footer { display:flex; gap:8px; justify-content:flex-end; margin-top:12px; }
.dtp-time { display:flex; gap:8px; margin-top:10px; align-items:center; }
:root {
    /* shadcn-like dark tokens */
    --primary: #6366F1;          /* indigo-500 */
    --primary-dark: #4F46E5;     /* indigo-600 */
    --primary-light: #818CF8;    /* indigo-400 */
    --secondary: #EC4899;        /* pink-500 */
    --secondary-light: #F472B6;  /* pink-400 */
    --accent: #8B5CF6;           /* violet-500 */
    --success: #10B981;          /* emerald-500 */
    --danger: #EF4444;           /* red-500 */
    --warning: #F59E0B;          /* amber-500 */

    --background: #09090b;       /* zinc-950 */
    --surface: #111113;          /* near zinc-900 */
    --surface-light: #18181b;    /* zinc-900 */
    --text: #FAFAFA;             /* white-ish */
    --text-secondary: #A1A1AA;   /* zinc-400 */
    --border: #27272a;           /* zinc-800 */

    --shadow: 0 2px 10px rgba(0,0,0,0.35);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.45);
    --glow: 0 0 0 rgba(0,0,0,0);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; letter-spacing: -0.5px; }
.logo-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; box-shadow: var(--glow); transform: rotate(-5deg); transition: var(--transition); }
.logo:hover .logo-icon { transform: rotate(0deg) scale(1.05); box-shadow: 0 0 20px rgba(99, 102, 241, 0.35); }

.app { min-height: 100vh; display: flex; flex-direction: column; }

.header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 20px; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.header-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-buttons { display: flex; gap: 12px; align-items: center; }

.btn { padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--surface-light); color: var(--text); position: relative; overflow: hidden; }
.btn:hover { background: #1f1f23; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.active { background: #1f1f23; color: var(--text); border-color: var(--border); }
.btn-primary { background: var(--primary); color: white; border-color: transparent; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 0 0 6px rgba(79,70,229,0.15); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: white; border-color: transparent; }
.btn-success { background: var(--success); color: white; border-color: transparent; }
.btn-icon { padding: 10px; border-radius: 50%; min-width: 44px; min-height: 44px; justify-content: center; }

.view { display: none; flex: 1; padding: 20px; max-width: 1400px; margin: 0 auto; width: 100%; }
.view.active { display: block; animation: fadeIn 0.2s ease; }

#map-view { padding: 0; max-width: 100%; }
.map-container { position: relative; height: calc(100vh - 90px); }
#map { height: 100%; width: 100%; z-index: 1; }

.search-panel { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); background: var(--surface); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 1000; width: calc(100% - 40px); max-width: 550px; border: 1px solid var(--border); }
.autocomplete-container { position: relative; flex: 1; }
.search-input-group { display: flex; gap: 12px; margin-bottom: 16px; }

.input { flex: 1; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; transition: var(--transition); background: var(--surface-light); color: var(--text); width: 100%; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.15); }

.autocomplete-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 8px; max-height: 300px; overflow-y: auto; z-index: 2000; display: none; box-shadow: var(--shadow-lg); }
.autocomplete-suggestions.active { display: block; }
.suggestion-item { padding: 10px 12px; cursor: pointer; transition: var(--transition); border-bottom: 1px solid var(--border); }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--surface-light); color: var(--primary); }

.radius-selector { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 12px; background: var(--surface-light); border-radius: var(--radius-sm); }
.radius-selector label { font-weight: 600; color: var(--text); }
.radius-selector input[type="range"] { flex: 1; height: 6px; border-radius: 4px; background: var(--border); outline: none; -webkit-appearance: none; }
.radius-selector input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 0 0 4px rgba(99,102,241,0.15); }
.radius-selector input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); cursor: pointer; border: none; }
.radius-value { font-weight: 700; color: var(--primary); min-width: 60px; text-align: right; font-size: 16px; }

.event-card { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; border: 1px solid var(--border); }
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.event-card.selected { border: 1px solid var(--primary); background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%); }
.event-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 8px; }
.event-title { font-size: 18px; font-weight: 700; color: var(--text); }
.event-price { font-size: 14px; font-weight: 700; color: var(--success); background: rgba(16, 185, 129, 0.12); padding: 4px 10px; border-radius: var(--radius-sm); }
.event-meta { display: flex; gap: 16px; margin-bottom: 6px; color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.event-description { color: var(--text); line-height: 1.6; margin-bottom: 10px; }

.events-container { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 1000; width: calc(100% - 40px); max-width: 550px; max-height: 350px; overflow-y: auto; display: none; border: 1px solid var(--border); }
.events-container.active { display: block; animation: slideUp 0.2s ease; }
.events-header { position: sticky; top: 0; background: var(--primary); color: white; padding: 14px 16px; border-radius: var(--radius) var(--radius) 0 0; font-weight: 700; font-size: 14px; z-index: 10; }
.events-list { padding: 10px; }
.event-item { padding: 12px; border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; transition: var(--transition); border: 1px solid transparent; }
.event-item:hover { background: var(--surface-light); border-color: var(--primary); transform: translateX(2px); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text); }
.form-group textarea { resize: vertical; min-height: 100px; font-family: inherit; }

.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); z-index: 2000; animation: fadeIn 0.2s ease; backdrop-filter: blur(4px); }
.modal.active { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: var(--surface); border-radius: var(--radius); max-width: 650px; width: 100%; max-height: 90vh; overflow-y: auto; animation: slideUp 0.2s ease; border: 1px solid var(--border); }
.modal-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%); }
.modal-header h2 { color: var(--text); font-size: 20px; font-weight: 700; }
.modal-body { padding: 20px; }
.modal-footer { padding: 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; background: var(--surface-light); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.spinner { width: 44px; height: 44px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(9, 9, 11, 0.95); display: none; align-items: center; justify-content: center; z-index: 3000; backdrop-filter: blur(4px); }
.loading-overlay.active { display: flex; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--text); color: var(--background); padding: 14px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 4000; opacity: 0; transition: var(--transition); font-weight: 600; font-size: 14px; }
.toast.active { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--success); color: white; }
.toast.error { background: var(--danger); color: white; }

.auth-container, .user-content { max-width: 600px; margin: 0 auto; }
.form-container { background: var(--surface); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.user-content .form-container { border: none; }
.user-content .form-container { padding: 16px; }
.user-content .form-container .form-group { margin-bottom: 8px; }
.user-content .form-container .btn { padding: 8px 12px; font-size: 13px; }
.user-content .form-container .input { padding: 10px 12px; font-size: 14px; }
.form-container h3 { margin-bottom: 20px; color: var(--text); font-size: 20px; font-weight: 700; }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--text); padding-bottom: 10px; border-bottom: none; display: inline-block; }

.hidden { display: none !important; }
.custom-marker, .event-marker { background: none !important; border: none !important; }

@media (max-width: 768px) {
    .logo span { display: none; }
    .search-panel { width: calc(100% - 20px); top: 12px; padding: 16px; }
    .events-container { width: calc(100% - 20px); bottom: 12px; }
    .modal-content { margin: 10px; }
    .nav-buttons .btn span:not(.emoji) { display: none; }
}


