/* ============================================
   RESET & CSS CUSTOM PROPERTIES
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent
}

:root {
  --color-primary: #534AB7;
  --color-primary-light: #EEEDFE;
  --color-primary-deep: #26215C;
  --color-accent: #EF9F27;
  --color-accent-light: #FAC775;
  --color-bg: #F5F5F7;
  --color-surface: #FFFFFF;
  --color-text: #26215C;
  --color-text-muted: #B4B2A9;
  --color-text-secondary: #888780;
  --color-border: #F0F0F2;
  --color-danger: #FF3B30;
  --color-success: #34C759;
  --color-primary-rgb: 83, 74, 183;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  height: 100%;
  position: relative;
  background: var(--color-bg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

/* ============================================
      LOADING SCREEN
      ============================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-primary-light);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.loader-text {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500
}

/* ============================================
      AUTH SCREEN
      ============================================ */
#auth-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  height: 100%;
  overflow-y: auto;
  padding: 60px 28px 40px;
  padding-top: calc(60px + var(--safe-top));
  background: #fff;
}

/* .auth-icon{
     width:72px;height:1422px;
     display:flex;align-items:center;justify-content:center;
     margin-bottom:16px;
   } */
.auth-icon svg {
  width: 40px;
  height: 40px
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary-deep);
  letter-spacing: -.4px;
  margin-bottom: 4px
}

.auth-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  letter-spacing: 1px;
  margin-bottom: 32px;
  text-transform: uppercase
}

.auth-card {
  width: 100%;
  max-width: 360px
}

.auth-tabs {
  display: flex;
  gap: 3px;
  background: var(--color-bg);
  border-radius: 14px;
  padding: 3px;
  margin-bottom: 24px
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  background: transparent;
  color: var(--color-text-muted);
  transition: all .2s;
}

.auth-tab.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), .3)
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 16px
}

.auth-form.active {
  display: flex
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary-deep)
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #E5E5EA;
  border-radius: 14px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--color-text);
  background: #F9F9FB;
  outline: none;
  transition: border-color .2s, background .2s;
}

.field-input:focus {
  border-color: var(--color-primary);
  background: #FAFAFF
}

.field-input.error {
  border-color: var(--color-danger)
}

.field-error {
  font-size: 12px;
  color: var(--color-danger);
  display: none
}

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

.pw-wrapper {
  position: relative
}

.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-text-muted);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), .3);
  transition: opacity .2s;
  margin-top: 4px;
}

.btn-primary:active {
  opacity: .8
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--color-primary);
  border-radius: 14px;
  background: transparent;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
}

.btn-secondary:active {
  background: var(--color-primary-light);
}

.btn-primary:active:not(:disabled) {
  opacity: .8
}

.auth-footer {
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center
}

.auth-footer a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer
}

.auth-error {
  display: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: #FFF0F0;
  color: var(--color-danger);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* ============================================
      MAIN APP LAYOUT
      ============================================ */
#app-screen {
  display: none;
  flex-direction: column;
  height: 100%;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

/* ── HEADER ── */
.app-header {
  background: var(--color-surface);
  padding: 10px 20px 14px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), .06);
  z-index: 100;
  flex-shrink: 0;
}

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

.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
}

.header-icon {
  width: 150px;
  height: 60px;
  border-radius: 12px;
  /* background:var(--color-primary); */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-direction: column;
}

.header-icon svg {
  width: 150px;
  height: 60px
}

.header-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-primary-deep);
  letter-spacing: -.4px
}

.header-subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: -12px;
  margin-left: 62px;
}

.header-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.header-profile svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary)
}

#header-profile-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Cropper Circular Mask Override */
.cropper-view-box,
.cropper-face {
  border-radius: 50%;
}

.cropper-view-box {
  outline: 0;
  box-shadow: 0 0 0 1px #39f;
}

.cropper-modal {
  opacity: 0.7;
}

.crop-container {
  width: 100%;
  height: 400px;
  background-color: #000;
}

/* Folder detail header variant */
.header-back {
  display: none
}

.header-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-back-btn svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary)
}

.folder-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  margin-left: 50px;
  display: none
}

.folder-color-bar {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  margin-top: 2px
}

.folder-header-name {
  font-size: 12px;
  color: var(--color-primary-deep);

  max-width: 160px;
  /* adjust based on your layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-header-count {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ── SCROLLABLE CONTENT ── */
.content-area {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Views fill parent and handle own scrolling */
.view {
  display: none
}

.view.active {
  display: flex;
  flex-direction: column;
  height: 100%
}

/* All Links uses bottom-up like folders */
#view-all-links {
  overflow: hidden
}

#view-all-links::-webkit-scrollbar {
  display: none
}

/* Folders and folder detail use bottom-up */
#view-folders,
#view-folder-detail {
  overflow: hidden
}

/* ── BOTTOM FIXED AREA ── */
.bottom-fixed {
  flex-shrink: 0;
  z-index: 100;
  background: transparent;
  padding: 0 16px;
}

/* Search Bar */
.search-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border-radius: 14px;
  padding: 0 14px;
  margin-bottom: 6px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
  border: 1.5px solid var(--color-border);
}

.search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(83, 74, 183, .12)
}

.search-bar svg {
  width: 17px;
  height: 17px;
  color: var(--color-text-muted);
  flex-shrink: 0
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font);
  color: var(--color-text);
}

.search-bar input::placeholder {
  color: #D1D1D6
}

.search-clear {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* Toggle pills (folders tab) */
.toggle-pills {
  display: none;
  margin-bottom: 6px;
  padding: 4px;
  background: var(--color-primary-light);
  border-radius: 14px;
}

.toggle-pills-inner {
  display: flex
}

.toggle-pill {
  flex: 1;
  padding: 9px 0;
  border: none;
  cursor: pointer;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  text-align: center;
  background: transparent;
  color: var(--color-primary);
  transition: all .2s;
}

.toggle-pill.active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), .25);
}

.toggle-pill .pill-count {
  font-size: 11px;
  margin-left: 4px;
  opacity: .7
}

/* Bottom Nav */
.bottom-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  border-top: none;
  border-radius: 24px 24px 0 0;
  padding: 0 32px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .04);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 8px;
  min-width: 60px;
}

.nav-item svg {
  width: 22px;
  height: 22px
}

.nav-item .nav-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted)
}

.nav-item.active svg {
  color: var(--color-primary)
}

.nav-item.active .nav-label {
  color: var(--color-primary);
  font-weight: 700
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -24px;
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), .35);
  transition: transform .15s;
}

.fab:active {
  transform: scale(.92)
}

.fab svg {
  width: 26px;
  height: 26px;
  color: #fff
}

/* Home indicator removed — handled natively by device */

/* ============================================
      LINK CARD
      ============================================ */
.link-card-notes {
  display: none;
  padding: 0 12px 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  border-top: 1px solid var(--color-border);
}

.link-card.expanded .link-card-notes {
  display: block
}

.link-card.expanded .link-card-info {
  padding-bottom: 4px
}

.link-card {
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  overflow: hidden;
  margin-bottom: 8px;
}

.link-card-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 10px;
}

.link-favicon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #fff;
}

.link-favicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px
}

.link-text {
  flex: 1;
  min-width: 0
}

.link-title-row {
  display: flex;
  align-items: center;
  gap: 4px
}

.link-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-shared-icon {
  flex-shrink: 0;
  color: #AFA9EC
}

.link-shared-icon svg {
  width: 13px;
  height: 13px
}

.link-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap
}

.link-domain {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px
}

.link-folder-badge {
  font-size: 11px;
  font-weight: 600;
  color: #3C3489;
  background: var(--color-primary-light);
  padding: 1px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.link-actions {
  display: flex;
  border-top: 1px solid var(--color-border);
}

.link-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border: none;
  background: none;
  cursor: pointer;
  border-right: 1px solid var(--color-border);
}

.link-action:last-child {
  border-right: none
}

.link-action svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary)
}

.link-action.more-btn svg {
  color: var(--color-text-secondary)
}

/* Pinned Links */
.link-card.pinned {
  border: 1px solid var(--color-primary-light);
  background: #fdfdfd;
}

.link-pin-icon {
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  flex-shrink: 0;
}

.link-pin-icon svg {
  width: 14px;
  height: 14px;
}

/* ============================================
      FOLDER CARD
      ============================================ */
.folder-card {
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  overflow: hidden;
  margin-bottom: 8px;
  cursor: pointer;
}

.folder-accent {
  height: 4px;
  width: 100%
}

.folder-card-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.folder-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.folder-icon-wrap svg {
  width: 20px;
  height: 20px
}

.folder-card-text {
  flex: 1;
  min-width: 0
}

.folder-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.folder-card-count {
  font-size: 12px;
  color: var(--color-text-muted)
}

.folder-card-sharer {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px
}

.folder-card-sharer svg {
  width: 12px;
  height: 12px
}

.folder-card-actions {
  display: flex;
  align-items: center;
  gap: 6px
}

.folder-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-action-btn svg {
  width: 15px;
  height: 15px
}

.folder-action-btn.share-btn {
  background: var(--color-primary-light);
  color: var(--color-primary)
}

.folder-action-btn.delete-btn {
  background: #FFF0F0;
  color: var(--color-danger)
}

.folder-chevron {
  color: #D1D1D6;
  flex-shrink: 0
}

.folder-chevron svg {
  width: 16px;
  height: 16px
}

/* ============================================
      EMPTY STATES
      ============================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  height: 100%;
}

.empty-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.empty-icon svg {
  width: 56px;
  height: 56px;
  color: #AFA9EC
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-deep);
  margin-bottom: 8px
}

.empty-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 260px
}

.empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: opacity .15s, transform .15s;
}

.empty-cta:active {
  opacity: .7;
  transform: scale(.97)
}

/* ============================================
      BOTTOM SHEETS
      ============================================ */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.sheet-overlay.open {
  opacity: 1;
  pointer-events: auto
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 501;
  background: var(--color-surface);
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32, .72, 0, 1);
  max-height: 90vh;
  overflow-y: auto;
  padding: 12px 20px 28px;
  padding-bottom: calc(12px + var(--safe-bottom));
  scrollbar-width: none;
}

.bottom-sheet::-webkit-scrollbar {
  display: none
}

.bottom-sheet.open {
  transform: translateY(0)
}

.sheet-handle {
  width: 100%;
  height: 32px;
  margin: -12px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  position: relative;
  z-index: 2;
}

.sheet-handle::before {
  content: '';
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #D1D1D6;
  display: block;
}

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

.sheet-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-close svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary)
}

.sheet-form {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.sheet-field {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E5E5EA;
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  transition: border-color .2s, background .2s;
}

.sheet-field:focus {
  border-color: var(--color-primary);
  background: #FAFAFF;
  border-width: 2px
}

.sheet-field.url-field {
  padding-left: 38px
}

.field-with-icon {
  position: relative
}

.field-with-icon .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.field-with-icon .field-check {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--color-success);
  display: none;
}

.folder-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E5E5EA;
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-surface);
  cursor: pointer;
  position: relative;
}

.folder-picker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0
}

.folder-picker-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.folder-picker-chevron {
  color: var(--color-text-muted);
  flex-shrink: 0
}

.folder-picker-chevron svg {
  width: 14px;
  height: 14px
}

.folder-picker-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--color-surface);
  border: 1.5px solid #E5E5EA;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  z-index: 10;
  max-height: 240px;
  overflow-y: auto;
}

.folder-picker-dropdown.open {
  display: block
}

.folder-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text);
}

.folder-picker-option:hover {
  background: var(--color-bg)
}

.notes-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
}

.notes-toggle svg {
  width: 14px;
  height: 14px
}

.notes-textarea {
  display: none;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E5E5EA;
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  resize: none;
  min-height: 60px;
  transition: border-color .2s;
}

.notes-textarea:focus {
  border-color: var(--color-primary);
  background: #FAFAFF
}

.notes-textarea.visible {
  display: block
}

/* Color picker */
.color-picker {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 4px 0
}

.color-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.color-circle.selected {
  border-color: var(--color-primary-deep);
  box-shadow: inset 0 0 0 2px #fff
}

/* ============================================
      PROFILE SCREEN
      ============================================ */
#profile-screen {
  display: none;
  flex-direction: column;
  height: 100%;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  background: var(--color-bg);
}

.profile-header {
  padding: 12px 20px;
  display: flex;
  align-items: center;
}

.profile-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-back svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary)
}

.profile-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: none;
}

.profile-content::-webkit-scrollbar {
  display: none
}

.profile-avatar-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  cursor: pointer;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #7F77DD);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), .3);
  overflow: hidden;
}


.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar span {
  font-size: 32px;
  font-weight: 700;
  color: #fff
}

.avatar-edit-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  cursor: pointer;
  z-index: 2;
}

.avatar-edit-badge svg {
  width: 14px;
  height: 14px;
}

.avatar-delete-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  cursor: pointer;
  z-index: 2;
}

.avatar-delete-badge svg {
  width: 14px;
  height: 14px;
}

#header-profile-content {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header-profile-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary-deep);
  text-align: center
}

.profile-email {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 24px
}

.profile-stats {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 4px 0;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.profile-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.profile-stat-row+.profile-stat-row {
  border-top: 1px solid var(--color-border)
}

.profile-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-stat-icon svg {
  width: 18px;
  height: 18px
}

.profile-stat-label {
  flex: 1;
  font-size: 14px;
  color: var(--color-text)
}

.profile-stat-count {
  font-size: 15px;
  font-weight: 700;
  margin-right: 8px
}

.btn-logout {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: #FFF0F0;
  color: var(--color-danger);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  margin-top: 16px;
}

.btn-logout:active {
  opacity: .7
}

.profile-footer {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 24px;
}

/* ============================================
      SHARE PREVIEW SCREEN
      ============================================ */
#share-preview-screen {
  display: none;
  flex-direction: column;
  height: 100%;
  padding-top: var(--safe-top);
  background: var(--color-bg);
}

.share-preview-header {
  background: var(--color-surface);
  padding: 20px;
  text-align: center;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), .06);
}

.share-preview-owner {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #7F77DD);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  overflow: hidden;
}

.share-preview-owner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-preview-owner span {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.share-preview-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-deep);
  margin-bottom: 4px;

  overflow: hidden;
  text-overflow: ellipsis;

}

.share-preview-sharer {
  font-size: 14px;
  margin-top: 2px;
  color: var(--color-text-secondary)
}

.share-preview-links {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: none
}

.share-preview-links::-webkit-scrollbar {
  display: none
}

.share-preview-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.share-preview-link-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-deep)
}

.share-preview-link-url {
  font-size: 11px;
  margin-top: 5px;
  color: var(--color-text-muted)
}

.share-preview-actions {
  padding: 16px 20px;
  padding-bottom: calc(16px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-import {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), .3);
}

.btn-import:active {
  opacity: .8
}


/* ============================================
      FOLDER DETAIL BOTTOM ACTIONS
      ============================================ */
.folder-detail-actions {
  display: none;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  padding-bottom: var(--safe-bottom);
  background: var(--color-surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .04);
}

.fda-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
}

.fda-btn.add-link-btn {
  background: var(--color-primary-light);
  color: var(--color-primary)
}

.fda-btn.share-folder-btn {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), .25);
}

.fda-btn.remove-folder-btn {
  background: #FFF0F0;
  color: var(--color-danger)
}

.fda-btn svg {
  width: 16px;
  height: 16px
}

/* ============================================
      THREE DOT MENU
      ============================================ */
.context-menu {
  position: fixed;
  z-index: 600;
  background: var(--color-surface);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
  min-width: 180px;
  padding: 6px 0;
  display: none;
}

.context-menu.open {
  display: block
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: var(--color-text);
  font-family: var(--font);
}

.context-menu-item:active {
  background: var(--color-bg)
}

.context-menu-item.danger {
  color: var(--color-danger)
}

.context-menu-item svg {
  width: 18px;
  height: 18px
}

/* Edit folder sheet additions */
.edit-folder-sheet .color-picker {
  margin-top: 8px
}

/* Move to folder bottom sheet */
.move-folder-list {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.move-folder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: var(--color-text);
  font-family: var(--font);
}

.move-folder-item:active {
  background: var(--color-bg)
}

.move-folder-item.selected {
  background: var(--color-primary-light)
}

.move-folder-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0
}

/* ── Folder picker dropdown – search bar ── */
.fp-search-wrap {
  position: sticky;
  top: 0;
  background: var(--color-surface);
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.fp-search-icon {
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.fp-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: var(--font);
  color: var(--color-text);
  background: transparent;
}

.fp-search-input::placeholder {
  color: var(--color-text-muted);
}

.fp-group-label {
  padding: 6px 12px 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Move-to-folder sheet – search bar ── */
.folder-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 10px 14px;
  border: 1.5px solid #E5E5EA;
  border-radius: 12px;
  background: var(--color-surface);
}

.folder-search-icon {
  width: 15px;
  height: 15px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.folder-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font);
  color: var(--color-text);
  background: transparent;
}

.folder-search-input::placeholder {
  color: var(--color-text-muted);
}

.move-folder-group-label {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ============================================
      CONFIRM DIALOG
      ============================================ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(0, 0, 0, .4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-overlay.open {
  display: flex
}

.confirm-dialog {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
}

.confirm-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary-deep);
  margin-bottom: 8px;
  max-width: 100%;
  /* adjust based on your layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.confirm-msg {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 20px
}

.confirm-btns {
  display: flex;
  gap: 10px
}

.confirm-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
}

.confirm-ok {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: var(--color-danger);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
}

/* ============================================
      TOAST
      ============================================ */
.toast {
  position: fixed;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  max-width: 440px;
  z-index: 800;
  background: var(--color-primary-deep);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

/* ============================================
      LAYOUT HELPERS
      ============================================ */

/* Bottom-up layout for folders */
.bottom-up-scroll {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
}

.bottom-up-container {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 8px 16px 8px;
}

.bottom-up-container::-webkit-scrollbar {
  display: none
}



/* Install banner */
.install-banner {
  display: none;
  margin: 8px 16px;
  padding: 12px 16px;
  background: var(--color-primary-light);
  border-radius: 14px;
  align-items: center;
  gap: 10px;
}

.install-banner-text {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary-deep)
}

.install-banner-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
}

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

/* ============================================
      ALPHA INDEX
      ============================================ */
.alpha-index {
  position: fixed;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;

  z-index: 50;
  padding: 6px 0;

  user-select: none;
  -webkit-user-select: none;
  touch-action: none;

  pointer-events: auto;
}

/* Desktop alignment */
@media (min-width: 481px) {
  .alpha-index {
    right: calc(50% - 238px);
  }
}

.alpha-index span {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-primary);

  padding: 2px 6px;
  line-height: 1.2;

  cursor: pointer;

  /* 🔥 Smooth scaling */
  transition: transform 0.15s ease, color 0.15s ease;
}

/* Tap feedback */
.alpha-index span:active {
  /* color: var(--color-accent); */
  transform: scale(1.4);
}

/* 🔥 While dragging (we’ll add this class from JS) */
.alpha-index.dragging span {
  opacity: 0.6;
}

/* 🔥 Highlight current letter */
.alpha-index span.active {
  color: var(--color-accent);
  transform: scale(1.6);
  font-weight: 700;
}

.alpha-bubble {
  position: fixed;
  top: 50%;
  transform: translateY(-50%) scale(0.8);

  font-size: 18px;
  font-weight: 600;
  color: white;

  background: var(--color-primary);
  border-radius: 8px;

  padding: 10px 14px;

  z-index: 999;
  pointer-events: none;

  opacity: 0;
  transition: all 0.15s ease;
}

/* visible */
.alpha-bubble.show {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ============================================
      SWIPE SUPPORT
      ============================================ */
.swipe-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.download-banner-inline {
  margin: 10px 12px;
  background: linear-gradient(135deg, #534AB7, #6C63FF);
  color: white;
  border-radius: 12px;
  padding: 12px;
}

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

.banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-btn {
  background: white;
  color: #534AB7;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

/* ============================================
   SHARE SHEET & SWITCH (Phase 2)
   ============================================ */
.share-mode-card {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 8px;
}

.share-mode-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-mode-info {
  flex: 1;
}

.share-mode-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary-deep);
  margin-bottom: 2px;
}

.share-mode-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.share-mode-card {
  padding: 12px 16px;
  background: #F2F2F7;
  border-radius: 14px;
  border: 1.5px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 12 px;
}

.share-mode-card.active {
  background: #EEEDFE;
  border-color: var(--color-primary);
}

.share-mode-explanation {
  margin-top: -6px;
  padding: 0 4px;
  margin-bottom: -16px;
}

#share-sheet-copy-icon,
#share-sheet-sync-icon,
#qr-share-sync-copy-icon,
#qr-share-sync-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 0.4px currentColor);
}

.share-desc-primary {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary-deep);
  margin-bottom: 4px;
  line-height: 1.4;
}

.share-desc-secondary {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  opacity: 0.7;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #D1D1D6;
  transition: .4s;
}

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

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

input:focus+.slider {
  box-shadow: 0 0 1px var(--color-primary);
}

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Badges (Phase 3) */
.live-badge-mini {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  background: #E8E7FF;
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 800;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.live-badge-card {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.25);
  text-transform: uppercase;
}

.snapshot-badge-card {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(239, 159, 39, 0.25);
  text-transform: uppercase;
}

.live-banner {
  background: var(--color-primary-light);
  padding: 12px 16px;
  border-radius: 14px;
  margin: 12px 16px 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.live-banner-icon {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-banner-text {
  font-size: 12px;
  color: var(--color-primary-deep);
  font-weight: 500;
  line-height: 1.4;
}

/* Notifications (Phase 4) */
.notifications-list {
  max-height: 60vh;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.2s;
  position: relative;
}

.notif-item.unread {
  background: rgba(var(--color-primary-rgb), 0.05);
}



.notif-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notif-content {
  flex: 1;
}

.notif-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 4px;
}

.notif-time {
  font-size: 11px;
  color: var(--color-text-secondary);
}

#notif-badge {
  animation: badge-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badge-pop {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  text-transform: uppercase;
}

.sync-info-banner {
  background: #E8E7FF;
  padding: 12px;
  border-radius: 16px;
  margin: 16px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.sync-info-banner .info-icon {
  font-style: italic;
  color: #534AB7;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
  margin-left: 6px;
}

.sync-info-banner .info-text {
  font-size: 12px;
  line-height: 1.4;
  color: #332B74;
}

/* Push Notification Modal */
.push-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pushFadeIn 0.3s ease;
}

.push-modal-card {
  background: var(--color-surface);
  width: 100%;
  max-width: 320px;
  border-radius: 28px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: pushSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.push-modal-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.push-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary-deep);
  margin-bottom: 12px;
}

.push-modal-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.push-modal-btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.push-modal-btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.3);
}

.push-modal-btn-secondary {
  background: transparent;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

@keyframes pushFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pushSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}