    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Noto Sans Hebrew', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
      min-height: 100vh;
      padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
      color: #374151;
      -webkit-font-smoothing: antialiased;
      touch-action: pan-y;
    }

    .container {
      max-width: 640px;
      margin: 0 auto;
      min-height: 100vh;
      background: #f8fafc;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    /* Header */
    header {
      background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
      color: white;
      padding: 1.25rem 1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      position: sticky;
      top: 0;
      z-index: 101;
      transition: background 0.3s, transform 0.3s, opacity 0.3s;
    }

    header.scrolled {
      transform: translateY(-100%);
      opacity: 0;
      pointer-events: none;
    }

    header.viewing-other-date {
      background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    }

    .header-content {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    h1 {
        font-size: clamp(16px, 5vw, 1.5rem);
        font-weight: 700;
    }

    .logo {
      width: 36px;
      height: 36px;
      border-radius: 8px;
    }

    .header-actions {
      display: flex;
      gap: 0.5rem;
      align-items: center;
    }

    .header-date-picker {
      display: none;
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .header-btn {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      font-size: 1.25rem;
      width: 30px;
      height: 30px;
      padding: 7px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .header-btn:active {
      background: rgba(255, 255, 255, 0.3);
    }

    /* Top Scroll Down Button */
    .top-scroll-down-btn {
      position: fixed;
      top: 80px;
      left: 50%;
      transform: translateX(-50%);
      background: #667eea;
      color: white;
      border: none;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.5rem;
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
      z-index: 98;
      transition: transform 0.3s, opacity 0.3s, background 0.2s;
      opacity: 0;
      pointer-events: none;
    }

    .top-scroll-down-btn.visible {
      opacity: 1;
      pointer-events: auto;
    }

    .top-scroll-down-btn:hover {
      background: #5568d3;
    }

    .top-scroll-down-btn:active {
      background: #4854b8;
    }

    /* Scroll Banner */
    .scroll-banner {
      position: fixed;
      top: 75px;
      width: clamp(200px, 100vw, 640px);
      background: #fef3e3;
      color: #783510;
      padding: 0.5rem 1rem;
      z-index: 99;
      transform: translateY(-100%);
      opacity: 0;
      transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, border-top 0.3s ease;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      overflow: hidden;
      pointer-events: none;
      border-top: 2px solid transparent;
    }

    body.scrolled .scroll-banner {
      top: 0;
      border-top-color: #1e40af;
    }

    .scroll-banner.visible {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .scroll-banner-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 640px;
      margin: 0 auto;
      gap: 1rem;
    }

    .scroll-banner-percentage {
      font-size: 1.5rem;
      font-weight: 700;
      color: #d97706;
      line-height: 1;
      min-width: 60px;
      text-align: center;
    }

    .scroll-banner-text {
      display: flex;
      flex-direction: column;
      justify-content: center;
      flex: 1;
      overflow: hidden;
      min-width: 0;
    }

    .scroll-banner-title {
      font-weight: 600;
      font-size: 0.95rem;
      line-height: 1.2;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .scroll-banner-meta {
      font-size: 0.875rem;
      opacity: 0.9;
      line-height: 1.2;
      display: flex;
      gap: 0.5rem;
      align-items: center;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .scroll-banner-meta span:not(:last-child)::after {
      content: "•";
      margin-right: 0.5rem;
    }

    .scroll-banner-actions {
      display: flex;
      gap: 0.5rem;
      align-items: center;
    }

    .scroll-banner-btn {
      background: #d97706;
      border: none;
      color: white;
      width: 25px;
      height: 25px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1rem;
      transition: background 0.2s;
    }

    .scroll-banner-btn.up {
        rotate: 270deg;
    }
    .scroll-banner-btn.down {
        rotate: 90deg;
    }

    .scroll-banner-btn:hover {
      background: rgba(255, 255, 255, 0.3);
    }

    .scroll-banner-btn:active {
      background: rgba(255, 255, 255, 0.4);
    }

    .scroll-banner-bar {
      position: absolute;
      bottom: 0;
      right: 0;
      height: 6px;
      background: #d97706;
      transition: width 0.3s ease;
      min-width: 4px;
      width: 0;
    }

    /* Main Content */
    main {
      padding: 1rem;
      padding-bottom: 8rem; /* Extra padding for fixed dedications at bottom */
    }

    .day-group {
      margin-bottom: 1rem;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      overflow: hidden;
      background: white;
    }

    .day-group.completed {
      opacity: 0.6;
      border-color: #10b981;
    }

    summary {
      padding: 1rem;
      cursor: pointer;
      list-style: none;
      background: linear-gradient(to bottom, #ffffff, #f9fafb);
      font-size: 1.125rem;
      font-weight: 600;
      color: #1f2937;
      border-bottom: 1px solid #e5e7eb;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }

    summary::-webkit-details-marker {
      display: none;
    }

    .day-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex: 1;
    }

    .day-arrow {
      color: #6b7280;
      transition: transform 0.2s;
      font-size: 1rem;
      line-height: 1;
    }

    details[open] .day-arrow {
      transform: rotate(-90deg);
    }

    .day-info {
      flex: 1;
    }

    .day-actions {
      display: flex;
      gap: 0.25rem;
      align-items: center;
    }

    .day-action-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
      font-size: 1.25rem;
      line-height: 1;
      color: #9ca3af;
      width: 36px;
      height: 36px;
    }

    .day-action-btn.reset {
      font-size: 1.5rem;
    }

    .day-action-btn:hover {
      background: rgba(0, 0, 0, 0.05);
      color: #6b7280;
    }

    .day-action-btn:active {
      background: rgba(0, 0, 0, 0.1);
      color: #4b5563;
    }

    summary:active {
      background: #f3f4f6;
    }

    .day-meta {
      font-size: 0.875rem;
      color: #6b7280;
      margin-top: 0.25rem;
    }

    .cards-container {
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .cards-container > * {
      margin-bottom: 0.75rem;
    }

    .cards-container > *:last-child {
      margin-bottom: 0;
    }

    .loading {
      text-align: center;
      padding: 2rem;
      color: #6b7280;
      font-style: italic;
    }

    /* Halakha Cards */
    .halakha-card {
      background: white;
      border: 2px solid #e5e7eb;
      border-radius: 12px;
      padding: 1rem;
      font-size: 1.125rem;
      line-height: 1.8;
      color: #1f2937;
      position: relative;
      transition: transform 0.3s, opacity 0.3s, box-shadow 0.2s;
      touch-action: pan-y;
      cursor: grab;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    /* Large font size */
    .large-font .halakha-card {
      font-size: 1.7rem;
      padding: 1.25rem;
    }

    .halakha-card:active {
      cursor: grabbing;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .halakha-card.swiping {
      transition: none;
    }

    .halakha-card.completed {
      opacity: 0.4;
      background: #f3f4f6;
      border-color: #d1d5db;
    }

    .halakha-card.completed .halakha-text {
      color: #6b7280;
    }

    /* Hide completed items when setting is enabled */
    .hide-completed .halakha-card.completed {
      max-height: 0;
      opacity: 0;
      margin: 0;
      padding: 0;
      border: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    }

    /* Hide completed days when setting is enabled */
    .hide-completed-days .day-group.completed {
      max-height: 0;
      opacity: 0;
      margin: 0;
      padding: 0;
      border: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    }

    .completed-counter {
      text-align: center;
      background: #f3f4f6;
      color: #6b7280;
      font-size: 0.875rem;
      border-radius: 8px;
      font-weight: 500;
      display: none;
      padding: 0.5rem;
      margin-bottom: 0.5rem;
    }

    /* Show halakha completed counter when hiding completed items */
    .hide-completed .completed-counter:not(.completed-days-counter) {
      display: block;
    }

    .hide-completed .completed-counter:empty,
    .hide-completed .completed-counter[data-count="0"] {
      display: none;
    }

    /* Show days completed counter when hiding completed days */
    .hide-completed-days .completed-days-counter {
      display: block;
      margin-bottom: 1rem;
    }

    .hide-completed-days .completed-days-counter:empty,
    .hide-completed-days .completed-days-counter[data-count="0"] {
      display: none;
    }

    .halakha-text {
      text-align: justify;
    }

    .halakha-text b {
      font-weight: 700;
      color: #1f2937;
    }

    .halakha-text small {
      font-size: 0.9em;
      color: #6b7280;
    }

    /* Chapter Divider */
    .chapter-divider {
      text-align: center;
      margin: 1.5rem 0 1rem;
      position: relative;
    }

    .chapter-divider::before,
    .chapter-divider::after {
      content: '';
      position: absolute;
      top: 50%;
      width: 40%;
      height: 1px;
      background: linear-gradient(to right, transparent, #d1d5db, transparent);
    }

    .chapter-divider::before {
      left: 0;
    }

    .chapter-divider::after {
      right: 0;
    }

    .chapter-divider span {
      background: white;
      padding: 0.5rem 1rem;
      font-size: 1rem;
      font-weight: 600;
      color: #2563eb;
      border: 1px solid #e5e7eb;
      border-radius: 20px;
      display: inline-block;
      position: relative;
      z-index: 1;
    }

    /* Settings Panel */
    .settings-panel {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      max-width: 400px;
      height: 100vh;
      background: white;
      box-shadow: 4px 0 16px rgba(0, 0, 0, 0.2);
      transform: translateX(-100%);
      transition: transform 0.3s;
      z-index: 1000;
      display: flex;
      flex-direction: column;
    }

    .settings-panel.open {
      transform: translateX(0);
    }

    /* Info Panel */
    .info-panel {
      position: fixed;
      inset: 0;
      max-width: 640px;
      margin: 0 auto;
      background: white;
      transform: translateY(100%);
      transition: transform 0.3s;
      z-index: 1001;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      overscroll-behavior: contain;
    }

    .info-panel.open {
      transform: translateY(0);
    }

    .info-header {
      background: #1e3a8a;
      color: white;
      padding: 1.25rem 1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .info-header h2 {
      font-size: 1.25rem;
      font-weight: 700;
    }

    .info-content {
      flex: 1;
      overflow-y: auto;
      padding-bottom: 110px;
    }

    .info-section {
      padding: 1.5rem;
      border-bottom: 1px solid #e5e7eb;
    }

    .info-section:last-child {
      border-bottom: none;
    }

    .info-section h3 {
      font-size: 1.125rem;
      font-weight: 700;
      color: #1e3a8a;
      margin-bottom: 0.75rem;
    }

    .info-section h4 {
      font-size: 1rem;
      font-weight: 600;
      color: #374151;
      margin-bottom: 0.5rem;
    }

    .info-section p {
      font-size: 0.95rem;
      line-height: 1.7;
      color: #374151;
      margin-bottom: 0.75rem;
      text-align: justify;
    }

    .info-section p:last-child {
      margin-bottom: 0;
    }

    .info-section ul {
      list-style: none;
      padding-right: 0;
      margin-bottom: 0.75rem;
    }

    .info-section ul li {
      font-size: 0.95rem;
      line-height: 1.7;
      color: #374151;
      padding-right: 1.5rem;
      position: relative;
      margin-bottom: 0.5rem;
    }

    .info-section ul li::before {
      content: '•';
      position: absolute;
      right: 0.5rem;
      color: #2563eb;
      font-weight: bold;
    }

    .info-section ul li strong {
      font-weight: 600;
      color: #1f2937;
    }

    .info-section a {
      color: #2563eb;
      text-decoration: none;
      font-weight: 600;
    }

    .info-section a:hover {
      text-decoration: underline;
    }

    .info-subsection {
      margin-bottom: 1.25rem;
    }

    .info-subsection:last-child {
      margin-bottom: 0;
    }

    .flavor-links {
      display: flex;
      flex-direction: row;
      gap: 0.75rem;
    }

    .info-links {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .info-link {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 1rem;
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      text-decoration: none;
      color: #374151;
      font-weight: 500;
      transition: all 0.2s;
    }

    .info-link:hover {
      background: #f3f4f6;
      border-color: #d1d5db;
      transform: translateX(-2px);
    }

    .info-link:active {
      background: #e5e7eb;
    }

    .info-link span:first-child {
      font-size: 1.5rem;
      line-height: 1;
    }

    .link-icon {
      width: 24px;
      height: 24px;
      object-fit: contain;
    }

    .info-demo-row {
      display: flex;
      gap: 2rem;
      align-items: flex-start;
      margin-bottom: 1.5rem;
    }

    .info-demo-row:nth-child(even) {
      flex-direction: row-reverse;
    }

    .info-demo-image {
      flex: 0 0 33%;
      min-width: 0;
      text-align: center;
      background: #f9fafb;
      border-radius: 8px;
      padding: 0.5rem;
      border: 1px solid #e5e7eb;
    }

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

    .info-demo-text h4 {
      margin-bottom: 0.5rem;
    }

    .info-demo-text p {
      margin-bottom: 0.5rem;
    }

    .info-demo-text p:last-child {
      margin-bottom: 0;
    }

    .demo-gif {
      max-width: 100%;
      height: auto;
      border-radius: 6px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Info Settings Toggles */
    .info-setting-row {
      padding: 1rem 0;
      border-bottom: 1px solid #f3f4f6;
    }

    .info-setting-row:last-child {
      border-bottom: none;
    }

    .info-setting-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      margin-bottom: 0.5rem;
    }

    .info-setting-header h4 {
      margin: 0;
      flex: 1;
    }

    .info-setting-header .toggle-container {
      flex-shrink: 0;
    }

    .info-setting-description {
      font-size: 0.875rem;
      color: #6b7280;
      line-height: 1.5;
      margin: 0;
    }

    .info-more-settings {
      margin-top: 1.5rem;
      padding: 1rem;
      background: #f9fafb;
      border-radius: 8px;
      text-align: center;
      font-size: 0.9rem;
      color: #374151;
      border: 1px solid #e5e7eb;
    }

    .info-more-settings strong {
      font-size: 1.1em;
      color: #1e3a8a;
    }

    .settings-header {
      background: #1e3a8a;
      color: white;
      padding: 1.25rem 1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .settings-header h2 {
      font-size: 1.25rem;
      font-weight: 700;
    }

    .close-btn {
      background: none;
      border: none;
      color: white;
      font-size: 1.75rem;
      cursor: pointer;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
    }

    .close-btn:active {
      background: rgba(255, 255, 255, 0.2);
    }

    .settings-content {
      padding: 0;
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .settings-scrollable {
      flex: 1;
      overflow-y: auto;
    }

    .settings-section {
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      border-bottom: 1px solid #e5e7eb;
    }

    .settings-section.toggle {
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .settings-section:last-of-type {
      border-bottom: none;
    }

    .settings-label {
      font-size: 0.875rem;
      font-weight: 600;
      color: #374151;
    }

    .toggle-container {
      display: flex;
      gap: 0.5rem;
      background: #f3f4f6;
      padding: 0.25rem;
      border-radius: 8px;
    }

    .toggle-btn {
      flex: 1;
      padding: 0.4rem 0.5rem;
      border: none;
      background: transparent;
      color: #6b7280;
      font-size: 0.875rem;
      font-weight: 500;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .toggle-btn:hover {
      color: #374151;
    }

    .toggle-btn.active {
      background: white;
      color: #2563eb;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    /* Time and date inputs inside toggle buttons */
    .time-input-inline,
    .date-input-inline {
      border: none;
      background: transparent;
      font-size: 0.875rem;
      font-family: inherit;
      color: inherit;
      padding: 0;
      margin: 0 -0.25rem;
      width: calc(100% + 0.5rem);
      text-align: center;
      cursor: pointer;
    }

    .date-input-inline {
        margin: 0 -0.75rem;
    }

    .time-input-inline:focus,
    .date-input-inline:focus {
      outline: none;
    }

    /* Calendar icon for date input */
    .date-input-inline::-webkit-calendar-picker-indicator {
      filter: invert(0.5);
      cursor: pointer;
    }

    .toggle-btn.active .date-input-inline::-webkit-calendar-picker-indicator {
      filter: invert(0) brightness(0.2);
    }

    .date-row {
      display: flex;
      gap: 0.5rem;
      align-items: stretch;
    }

    .date-row > * {
      flex: 1;
      min-width: 0;
    }

    .date-input {
      padding: 0.75rem;
      border: 2px solid #2563eb;
      border-radius: 8px;
      font-size: 1rem;
      font-family: inherit;
      transition: all 0.2s;
      background: white;
    }

    .date-input-inactive {
      background: #f3f4f6;
      color: #9ca3af;
      border-color: #d1d5db;
    }

    .btn-compact {
      white-space: nowrap;
      padding: 0.4rem 0.75rem;
    }

    .btn-secondary {
      background: #f9fafb;
      border-color: #e5e7eb;
      color: #9ca3af;
    }

    .btn-secondary:hover {
      background: #f3f4f6;
      border-color: #d1d5db;
      color: #6b7280;
    }

    .btn-secondary:active {
      background: #e5e7eb;
    }

    .btn {
      border: 1px solid #d1d5db;
      padding: 0.4rem 0.75rem;
      font-size: 0.875rem;
      font-weight: 500;
      border-radius: 6px;
      cursor: pointer;
      width: 100%;
      transition: all 0.2s;
      background: white;
      color: #374151;
      white-space: nowrap;
    }

    .btn:hover {
      background: #f9fafb;
      border-color: #9ca3af;
    }

    .btn:active {
      background: #f3f4f6;
    }

    .btn-primary {
      background: #eff6ff;
      border-color: #2563eb;
      color: #2563eb;
    }

    .btn-primary:hover {
      background: #dbeafe;
    }

    .btn-primary:active {
      background: #bfdbfe;
    }

    .btn-warning {
      background: #fffbeb;
      border-color: #d97706;
      color: #d97706;
    }

    .btn-warning:hover {
      background: #fef3c7;
    }

    .btn-warning:active {
      background: #fde68a;
    }

    .btn-danger {
      background: #fef2f2;
      border-color: #dc2626;
      color: #dc2626;
    }

    .btn-danger:hover {
      background: #fee2e2;
    }

    .btn-danger:active {
      background: #fecaca;
    }

    .settings-warning {
      color: #6b7280;
      font-size: 0.875rem;
      text-align: center;
    }

    /* Overlay */
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
      z-index: 999;
      overscroll-behavior: contain;
    }

    .overlay.visible {
      opacity: 1;
      pointer-events: auto;
      overflow: hidden;
    }

    /* Prevent body scroll when overlay is visible */
    body.no-scroll {
      overflow: hidden;
      position: fixed;
      width: 100%;
    }

    /* Empty State */
    .empty-state {
      text-align: center;
      padding: 3rem 1.5rem;
      color: #6b7280;
    }

    .empty-state-icon {
      font-size: 4rem;
      margin-bottom: 1rem;
    }

    .empty-state-title {
      font-size: 1.5rem;
      font-weight: 700;
      color: #1f2937;
      margin-bottom: 0.5rem;
    }

    .empty-state-text {
      font-size: 1rem;
      line-height: 1.6;
    }

    /* Toast Notification */
    .toast {
      position: fixed;
      bottom: 6rem;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: #1e3a8a;
      color: white;
      padding: 0.75rem 1.5rem;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      z-index: 1001;
      font-size: 0.875rem;
      font-weight: 500;
      opacity: 0;
      transition: transform 0.3s ease, opacity 0.3s ease;
    }

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

    /* Notification Dialog */
    .notification-dialog {
      border: none;
      border-radius: 16px;
      padding: 0;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
      background: white;
      margin: auto;
    }

    .notification-dialog::backdrop {
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
    }

    .notification-content {
      padding: 2rem;
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      align-items: center;
    }

    .notification-icon {
      font-size: 3rem;
      line-height: 1;
    }

    .notification-message {
      font-size: 1rem;
      color: #374151;
      line-height: 1.5;
      white-space: pre-line;
    }

    .notification-close {
      background: #1e3a8a;
      color: white;
      border: none;
      padding: 0.75rem 2rem;
      border-radius: 50px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
    }

    .notification-close:hover {
      background: #1e40af;
    }

    .notification-close:active {
      background: #1a2f6f;
    }

    /* Shabbat Dialog */
    .shabbat-actions {
      display: flex;
      gap: 1rem;
      width: 100%;
      margin-top: 0.5rem;
    }

    .shabbat-btn {
      flex: 1;
      border: none;
      padding: 0.75rem 1.5rem;
      border-radius: 50px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    .shabbat-yes {
      background: #10b981;
      color: white;
    }

    .shabbat-yes:hover {
      background: #059669;
    }

    .shabbat-yes:active {
      background: #047857;
    }

    .shabbat-no {
      background: #f3f4f6;
      color: #374151;
    }

    .shabbat-no:hover {
      background: #e5e7eb;
    }

    .shabbat-no:active {
      background: #d1d5db;
    }

    /* Install Prompt */
    .install-prompt {
      position: fixed;
      bottom: 1rem;
      left: 1rem;
      right: 1rem;
      max-width: 500px;
      margin: 0 auto;
      background: white;
      border: 2px solid #2563eb;
      border-radius: 12px;
      padding: 1rem;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
      z-index: 1000;
      display: none;
      animation: slideUp 0.3s ease-out;
    }

    .install-prompt.show {
      display: block;
    }

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

    .install-prompt-content {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .install-prompt-text {
      font-size: 0.95rem;
      color: #1f2937;
      font-weight: 500;
    }

    .install-prompt-buttons {
      display: flex;
      gap: 0.5rem;
    }

    .install-prompt-btn {
      flex: 1;
      padding: 0.75rem;
      border: none;
      border-radius: 8px;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    .install-prompt-btn.primary {
      background: #2563eb;
      color: white;
    }

    .install-prompt-btn.primary:active {
      background: #1d4ed8;
    }

    .install-prompt-btn.secondary {
      background: #f3f4f6;
      color: #6b7280;
    }

    .install-prompt-btn.secondary:active {
      background: #e5e7eb;
    }

    .dedication {
      position: fixed;
      bottom: 45px;
      width: clamp(200px, 100vw, 640px);
      z-index: 900;
      margin: 0 auto;
      box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
      background: #fef3e3;
      border-top: 1px solid #d87858;
      padding: 0.75rem 0.5rem;
      text-align: center;
      color: #78350f;
      font-weight: 400;
      white-space: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      transition: padding 0.3s ease, bottom 0.3s ease;
    }

    .dedication::-webkit-scrollbar {
      display: none;
    }

    .dedication b {
      font-weight: 700;
    }

    .dedication-label {
      font-size: 0.75rem;
      opacity: 0.85;
      transition: opacity 0.3s ease, max-height 0.3s ease, margin-bottom 0.3s ease;
      max-height: 20px;
      margin-bottom: 0.25rem;
    }

    .dedication-names {
      font-size: 1rem;
      transition: font-size 0.3s ease;
    }

    body.scrolled .dedication-label {
      opacity: 0;
      max-height: 0;
      margin-bottom: 0;
      overflow: hidden;
    }

    body.scrolled .dedication-names {
      font-size: 0.75rem;
    }

    body.scrolled .dedication-names::before {
      content: 'לע״נ ';
    }

    .yechi, body.scrolled .dedication.yechi {
        background: #1e3a8a;
        border-top: none;
        color: white;
        bottom: 0;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    /* When scrolling, hide label and add prefix to names */
    body.scrolled .dedication {
        padding: 0.4rem 0.5rem;
        bottom: 29px;
        font-size: 0.75rem;
    }

    .footer {
      background: #fffbeb;
      border-top: 1px solid #d87858;
      padding: 0.5rem 1.5rem;
      text-align: center;
      font-size: 0.75rem;
      color: #6b7280;
    }

    .footer-content {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.25rem;
      flex-wrap: wrap;
      line-height: 1.6;
    }

    .footer-badge {
      margin-right: 0.5rem;
      display: inline-flex;
      align-items: center;
      gap: 0.2rem;
      padding: 0.2rem 0.4rem;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      background: white;
    }

    .footer-avatar {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      object-fit: cover;
    }

    .footer-link {
      color: inherit;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }

    .footer-link:hover {
      opacity: 0.8;
    }

    .claude-icon {
      width: 18px;
      height: 18px;
      vertical-align: middle;
    }

    .whatsapp-icon {
      width: 16px;
      height: 16px;
      vertical-align: middle;
    }

    .settings-dedication {
      background: #fef3e3;
      padding: 1rem;
      text-align: center;
      font-size: 0.875rem;
      color: #78350f;
      font-weight: 500;
    }

    .yechi::-webkit-scrollbar {
      display: none;
    }

    .changelog-version {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 0.5rem;
    }

    .changelog-version:last-child {
      margin-bottom: 0;
    }

    .changelog-version summary {
      padding: 0.75rem;
      cursor: pointer;
      background: #f9fafb;
      font-weight: 600;
      font-size: 0.875rem;
      color: #374151;
      user-select: none;
      list-style: none;
    }

    .changelog-version summary::-webkit-details-marker {
      display: none;
    }

    .changelog-version summary:hover {
      background: #f3f4f6;
    }

    .changelog-arrow {
      color: #6b7280;
      transition: transform 0.2s;
      display: inline-block;
      margin-left: 0.5rem;
    }

    .changelog-version[open] .changelog-arrow {
      transform: rotate(-90deg);
    }

    .changelog-items {
      padding: 0.75rem;
      background: white;
    }

    .changelog-item {
      padding: 0.5rem 0;
      font-size: 0.875rem;
      color: #6b7280;
      line-height: 1.5;
      border-bottom: 1px solid #f3f4f6;
    }

    .changelog-item:last-child {
      border-bottom: none;
    }

    .changelog-item::before {
      content: '• ';
      color: #2563eb;
      font-weight: bold;
    }

    /* Celebration Page */
    .celebration-page {
      position: relative;
      background: linear-gradient(180deg, #1a237e 0%, #2a3eb1 50%, #3949ab 100%);
      min-height: calc(100vh - 180px);
      height: 100vh;
      overflow-x: hidden;
    }

    .celebration-close {
      position: absolute;
      top: 16px;
      left: 16px;
      z-index: 100;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255,255,255,0.15);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,0.2);
      color: rgba(255,255,255,0.9);
      font-size: 20px;
      font-weight: 300;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      padding: 0;
      line-height: 1;
    }

    .celebration-close:hover {
      background: rgba(255,255,255,0.25);
      transform: scale(1.05);
    }

    .celebration-close:active {
      transform: scale(0.95);
    }

    .celebration-content {
      position: relative;
      z-index: 20;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 36px 24px 120px;
      max-width: 420px;
      width: 100%;
      margin: 0 auto;
    }


    .celebration-stats {
        display: flex;
        width: 100%;
        background: rgba(255,255,255,0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.1);
        opacity: 0;
        animation: text-up 0.6s ease-out 0.1s forwards;
    }

    .celebration-stat {
        flex: 1;
        padding: 14px 8px;
        text-align: center;
        border-left: 1px solid rgba(255,255,255,0.06);
    }

    .celebration-stat:last-child {
        border-left: none;
    }

    .celebration-stat-value {
        display: block;
        font-size: 1.5rem;
        font-weight: 900;
        color: #ffc107;
    }

    .celebration-stat-label {
        font-size: 0.72rem;
        color: rgba(255,255,255,0.5);
        margin-top: 2px;
    }

    .celebration-title {
      font-size: 2.6rem;
      text-align: center;
      text-shadow: 0 2px 20px rgba(0,0,0,0.3);
      line-height: 1.2;
      margin-bottom: 10px;
      margin-top: 1.5rem;
      color: #fff;
      opacity: 0;
      animation: text-up 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.3s forwards;
    }

    .celebration-subtitle {
        font-size: 1.3rem;
        font-weight: 400;
        color: rgba(255,255,255,0.88);
        text-align: center;
        line-height: 1.6;
        opacity: 0;
        animation: text-up 0.6s ease-out 0.5s forwards;
    }

    .celebration-book-name {
      font-size: 2rem;
      font-weight: 700;
      color: #ffc107;
      text-align: center;
      margin: 16px 0;
      opacity: 0;
      animation: text-up 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.6s forwards;
    }

    .celebration-message {
      font-size: 1rem;
      font-weight: 400;
      color: rgba(255,255,255,0.88);
      text-align: center;
      line-height: 1.6;
      margin-bottom: 4px;
      opacity: 0;
      animation: text-up 0.6s ease-out 0.7s forwards;
    }

    .celebration-subtitle strong, .celebration-message strong {
      font-weight: 700;
      color: #ffe082;
    }

    .celebration-quote {
      font-size: 1.05rem;
      color: #ffc107;
      text-align: center;
      line-height: 1.55;
      margin-top: 20px;
      opacity: 0;
      animation: text-up 0.6s ease-out 0.9s forwards;
      padding: 0 8px;
    }

    .celebration-quote-source {
      font-size: 0.78rem;
      color: rgba(255,255,255,0.4);
      text-align: center;
      margin-top: 4px;
      opacity: 0;
      animation: text-up 0.5s ease-out 1.1s forwards;
    }

    .celebration-rebbe-line {
      font-size: 1.15rem;
      font-weight: 500;
      color: #ffc107;
      text-align: center;
      margin-top: 20px;
      opacity: 0;
      animation: text-up 0.6s ease-out 1.3s forwards;
    }

    .celebration-cta {
      margin-top: 26px;
      opacity: 0;
      animation: text-up 0.6s ease-out 1.7s forwards;
      display: flex;
      flex-direction: column;
      gap: 20px;
      align-items: center;
    }

    .celebration-btn {
      font-size: 1.05rem;
      font-weight: 700;
      padding: 13px 44px;
      border-radius: 50px;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: none;
    }

    .celebration-btn-outline {
      color: #ffc107;
      background: transparent;
      border: 2px solid #ffc107;
      box-shadow: 0 4px 24px rgba(255,193,7,0.2);
    }

    .celebration-btn-outline:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 32px rgba(255,193,7,0.4);
      background: rgba(255,193,7,0.1);
    }

    .celebration-btn-outline:active {
      transform: scale(0.97);
    }

    .celebration-btn-yomi {
      color: white;
      background: linear-gradient(135deg, #7fb800, #6a9900);
      box-shadow: 0 4px 24px rgba(127,184,0,0.4);
    }

    .celebration-btn-yomi:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 32px rgba(127,184,0,0.6);
    }

    .celebration-btn-yomi:active {
      transform: scale(0.97);
    }

    .yomi-logo {
      width: 24px;
      height: 24px;
      filter: brightness(0) invert(1);
      margin-bottom: 2px;
    }

    .celebration-return-message {
      margin-top: 16px;
      font-size: 0.9rem;
      color: rgba(255,255,255,0.7);
      text-align: center;
      opacity: 0;
      animation: text-up 0.6s ease-out 1.9s forwards;
    }

    /* Confetti */
    .confetti-container {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .confetti-piece {
      position: absolute;
      top: -20px;
      width: 10px;
      height: 10px;
      opacity: 0;
      animation: confetti-drop linear forwards;
    }

    /* Golden Rays */
    .rays {
      position: absolute;
      width: 500px;
      height: 500px;
      top: 35%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 1;
      opacity: 0;
      animation: rays-in 1.2s ease-out 0.6s forwards;
      pointer-events: none;
    }

    .rays::before {
      content: '';
      position: absolute;
      inset: 0;
      background: conic-gradient(
        from 0deg,
        transparent 0deg, #ffc107 4deg, transparent 8deg,
        transparent 30deg, #ffc107 34deg, transparent 38deg,
        transparent 60deg, #ffc107 64deg, transparent 68deg,
        transparent 90deg, #ffc107 94deg, transparent 98deg,
        transparent 120deg, #ffc107 124deg, transparent 128deg,
        transparent 150deg, #ffc107 154deg, transparent 158deg,
        transparent 180deg, #ffc107 184deg, transparent 188deg,
        transparent 210deg, #ffc107 214deg, transparent 218deg,
        transparent 240deg, #ffc107 244deg, transparent 248deg,
        transparent 270deg, #ffc107 274deg, transparent 278deg,
        transparent 300deg, #ffc107 304deg, transparent 308deg,
        transparent 330deg, #ffc107 334deg, transparent 338deg
      );
      border-radius: 50%;
      animation: spin 25s linear infinite;
    }

    /* Celebration Animations */
    @keyframes confetti-drop {
      0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
      }
      20% {
        opacity: 1;
      }
      100% {
        opacity: 0;
        transform: translateY(110vh) rotate(1080deg) scale(0.3);
      }
    }

    @keyframes rays-in {
      to {
        opacity: 0.18;
      }
    }

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

    @keyframes text-up {
      0% {
        opacity: 0;
        transform: translateY(24px) scale(0.9);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
