/* ==========================================================
   SU İÇ! - Modern Light Glassmorphic Mobile Style
   ========================================================== */

:root {
  --bg-main: #f1f7fe;
  --bg-surface: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.88);
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(14, 165, 233, 0.12);
  --border-glass-bright: rgba(14, 165, 233, 0.3);
  
  --primary-cyan: #0284c7;
  --primary-blue: #2563eb;
  --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  --secondary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --accent-glow: rgba(14, 165, 233, 0.25);
  --danger-color: #ef4444;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --shadow-sm: 0 2px 8px rgba(14, 165, 233, 0.06);
  --shadow-md: 0 10px 25px -3px rgba(14, 165, 233, 0.1), 0 4px 6px -4px rgba(14, 165, 233, 0.05);
  --shadow-glow: 0 10px 30px rgba(14, 165, 233, 0.2);
  
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-full: 9999px;
  
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #e2effd;
  background-image: 
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.6) 0px, transparent 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
}

/* App Container - Mobile Frame on Desktop, Full on Mobile */
.mobile-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 15px 50px rgba(14, 165, 233, 0.12), 0 0 1px rgba(0, 0, 0, 0.05);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.8);
  padding-bottom: calc(85px + var(--safe-bottom));
}

/* ==========================================================
   Header
   ========================================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 14px 24px;
  background: linear-gradient(180deg, rgba(241, 247, 254, 0.95) 0%, rgba(241, 247, 254, 0.8) 100%);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.06);
}

.date-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary-cyan);
  margin-bottom: 2px;
}

.app-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-drop {
  display: inline-block;
  font-size: 24px;
  animation: dropPulse 2.5s infinite ease-in-out;
}

@keyframes dropPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(-5deg); filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.4)); }
}

.app-title .highlight {
  background: linear-gradient(135deg, #0284c7 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-glass);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(14, 165, 233, 0.08);
  border-color: var(--primary-cyan);
}

.active-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  display: none;
}

.active-dot.active {
  display: block;
}

/* ==========================================================
   Main Content Area
   ========================================================== */
.main-content {
  flex: 1;
  padding: 10px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ==========================================================
   Water Orb & Hero Section
   ========================================================== */
.water-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.water-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.water-orb-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 8px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.water-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: #eaf4fd;
  box-shadow: 
    inset 0 0 20px rgba(2, 132, 199, 0.15),
    0 12px 30px rgba(14, 165, 233, 0.18),
    0 0 0 6px #ffffff,
    0 0 25px rgba(14, 165, 233, 0.2);
  border: 2px solid rgba(14, 165, 233, 0.25);
  transition: box-shadow 0.4s ease;
}

.water-orb.goal-reached {
  box-shadow: 
    inset 0 0 25px rgba(16, 185, 129, 0.2),
    0 12px 35px rgba(16, 185, 129, 0.25),
    0 0 0 6px #ffffff,
    0 0 30px rgba(16, 185, 129, 0.35);
  border-color: rgba(16, 185, 129, 0.5);
}

#waveCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.water-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  box-shadow: inset 0 8px 20px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 2;
}

/* Ambient Floating Bubbles */
.bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
}

.bubble {
  position: absolute;
  bottom: -10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
  animation: floatUp 3.5s infinite linear;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  30% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-240px) scale(1.2);
    opacity: 0;
  }
}

/* Orb Text Overlay */
.orb-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8), 0 2px 10px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.percentage {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #0f172a;
  line-height: 1;
}

.amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
}

.current-amount {
  font-size: 20px;
  font-weight: 800;
  color: #0284c7;
}

.unit {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.status-msg {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Quick Stats Bar */
.quick-stats-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.stat-pill {
  background: rgba(241, 247, 254, 0.85);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.stat-val {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

/* ==========================================================
   Quick Add Section & Cards
   ========================================================== */
.quick-add-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.sound-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  cursor: pointer;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.sound-toggle-btn.muted {
  color: var(--text-dim);
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.add-card {
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.add-card:active {
  transform: scale(0.96);
  border-color: #0284c7;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.card-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(14, 165, 233, 0.2);
  transition: transform 0.2s ease;
}

.add-card:active .card-icon-wrap {
  transform: rotate(-10deg) scale(1.1);
}

.card-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.add-amount {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
}

.add-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plus-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-left: auto;
}

/* Stanley Quencher Special Card (Açık Tema) */
.add-card.stanley-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.add-card.stanley-card:active {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.card-icon-wrap.stanley-glow {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.plus-chip.stanley-plus {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Custom Add Button */
.custom-add-btn {
  width: 100%;
  background: #ffffff;
  border: 1px dashed rgba(14, 165, 233, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.custom-btn-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0284c7;
}

.custom-arrow {
  font-size: 18px;
  color: var(--text-dim);
}

.custom-add-btn:active {
  background: rgba(14, 165, 233, 0.06);
  border-color: #0284c7;
  transform: scale(0.98);
}

/* ==========================================================
   Logs Section
   ========================================================== */
.logs-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-count-badge {
  font-size: 11px;
  font-weight: 700;
  background: #ffffff;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.logs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty-logs {
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.empty-logs p {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.empty-logs span {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Individual Log Item */
.log-item {
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.log-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.log-amount {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.log-time {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.log-delete-btn {
  background: none;
  border: none;
  color: #94a3b8;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.log-delete-btn:hover, .log-delete-btn:active {
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================
   Bottom Action Floating Bar
   ========================================================== */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  padding: 12px 20px calc(12px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(241, 247, 254, 0) 0%, rgba(241, 247, 254, 0.95) 40%, #f1f7fe 100%);
  z-index: 25;
  pointer-events: none;
}

.action-bar-btn {
  pointer-events: auto;
  width: 100%;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-bar-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ==========================================================
   Modals & Bottom Sheet (Açık Tema)
   ========================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: none;
  padding: 12px 24px calc(24px + var(--safe-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 38px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.close-modal-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #64748b;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Toggle Switch */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

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

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

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

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

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background: var(--primary-gradient);
}

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

/* Interval Picker Pills */
.input-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  display: block;
  margin-bottom: 10px;
}

.interval-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interval-pill {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.interval-pill.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.reminder-preview-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.preview-status {
  font-size: 14px;
  font-weight: 800;
  color: #0284c7;
}

.test-notif-btn {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #0284c7;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.test-notif-btn:active {
  background: rgba(14, 165, 233, 0.2);
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-action input {
  width: 100%;
  height: 52px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0 50px 0 16px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-with-action.large input {
  font-size: 22px;
  text-align: center;
  padding: 0 40px;
}

.input-with-action input:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.input-unit {
  position: absolute;
  right: 18px;
  color: #64748b;
  font-weight: 700;
  font-size: 15px;
}

.preset-targets {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.preset-btn, .preset-ml-btn {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:active, .preset-ml-btn:active {
  background: rgba(14, 165, 233, 0.15);
  color: #0284c7;
  border-color: #0284c7;
}

.info-banner {
  background: rgba(14, 165, 233, 0.08);
  border-left: 3px solid #0284c7;
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
}

.profile-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.profile-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.btn-text {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: underline;
}

.profile-id-box {
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px dashed rgba(16, 185, 129, 0.4);
  word-break: break-all;
}

.modal-actions-stacked {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-danger-outline {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #fff1f2;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #e11d48;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-outline:active {
  background: rgba(239, 68, 68, 0.15);
}

/* ==========================================================
   Toast Notification
   ========================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 360px;
}

.toast {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) 2.7s forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}
