/* ========================================
   PURIM PLANNER — GRAFOLIKE
   ======================================== */

#gpp-planner-app .gpp-hidden,
#gpp-planner-app .btn.gpp-hidden,
#gpp-planner-app .btn-gold.gpp-hidden,
#gpp-planner-app .gpp-floating-save.gpp-hidden {
  display: none !important;
}

:root {
  --blue-primary: #2563EB;
  --blue-dark: #1E3A5F;
  --text-dark: #1A1A2E;
  --text-gray: #777;
  --border-color: #E5E7EB;
  --separator: #F3F4F6;
  --green-success: #16A34A;
  --green-light: #F0FDF4;
  --green-text: #16A34A;
  --red-error: #EF4444;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --bg-blue: #EEF2FF;
  --disabled-gray: #D1D5DB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-up: 0 -2px 8px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
}

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

html {
  font-size: 16px;
}

body {
  direction: rtl;
  font-family: "ploni", Sans-serif;
  color: var(--text-dark);
  background: var(--bg-blue);
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.login-title,
.accordion-header,
.summary-title,
.discount-title,
.btn-primary,
.btn-success,
.btn-gold,
.btn-large {
  font-family: "mekomi", Sans-serif;
}

/* ========================================
   SCREEN MANAGEMENT
   ======================================== */
.screen {
  display: none !important;
}
.screen.active {
  display: block !important;
}
#screen-login.active {
  display: flex !important;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  cursor: pointer;
  border: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-family: "ploni", Sans-serif;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
  padding: 12px 32px;
}
.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}
.btn-primary:disabled {
  background: var(--disabled-gray);
}
.btn-success {
  background: #9d7d3a;
  color: var(--white);
  padding: 12px 32px;
}
.btn-success:hover:not(:disabled) {
  background: #8a6d30;
}
.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
  padding: 10px 30px;
}
.btn-outline:hover {
  background: rgba(37,99,235,0.05);
}
.btn-danger {
  background: var(--red-error);
  color: var(--white);
  padding: 10px 24px;
}
.btn-full {
  width: 100%;
}
.btn-large {
  height: 48px;
  font-size: 18px;
  padding: 0 40px;
}
.btn .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-inline-start: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   SCREEN 0: LOGIN
   ======================================== */
#screen-login {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: #212c46;
  flex-direction: column;
}
.login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 40px 20px 0;
  text-align: center;
}
.login-hero-img-center {
  height: 200px;
  width: auto;
  object-fit: contain;
  margin-bottom: 24px;
  opacity: 0.9;
}
.login-logo {
  height: 50px;
  margin-bottom: 20px;
}
.login-container {
  text-align: center;
  max-width: 800px;
  width: 100%;
  padding: 10px 24px 40px;
}
.login-title {
  font-size: 32px;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}
.login-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  margin-bottom: 0;
}
.connected-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(157, 125, 58, 0.2);
  color: #9d7d3a;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(157, 125, 58, 0.4);
}
.connected-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #9d7d3a;
  color: var(--white);
  border-radius: 50%;
  font-size: 14px;
}
.login-prompt {
  max-width: 360px;
  margin: 0 auto 24px;
}
.login-prompt p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  font-size: 15px;
}
.btn-gold {
  background: #9d7d3a;
  color: var(--white);
  padding: 12px 32px;
}
.btn-gold:hover:not(:disabled) {
  background: #8a6d30;
}
.btn-gold:disabled {
  background: rgba(157, 125, 58, 0.4);
  color: rgba(255,255,255,0.5);
}
.btn-outline-gold {
  background: transparent;
  color: #9d7d3a;
  border: 2px solid #9d7d3a;
  padding: 10px 30px;
}
.btn-outline-gold:hover {
  background: rgba(157, 125, 58, 0.1);
}
.demo-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto 24px;
}
.demo-login-form input {
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: "ploni", Sans-serif;
  direction: rtl;
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.demo-login-form input::placeholder {
  color: rgba(255,255,255,0.4);
}
.demo-login-form input:focus {
  outline: none;
  border-color: #9d7d3a;
  box-shadow: 0 0 0 3px rgba(157, 125, 58, 0.2);
}
.btn-continue {
  margin-top: 12px;
  font-size: 15px;
}
.btn-icon {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ========================================
   SCREEN 1: CATEGORY SELECTION
   ======================================== */
#screen-categories {
  background: #212c46;
}
.categories-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px;
}
#screen-categories .section-title {
  color: #fff;
}
#screen-categories .section-subtitle {
  color: rgba(255,255,255,0.65);
}
.section-title {
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-align: center;
}
.planner-center .section-title {
  color: #fff;
}
.section-subtitle {
  color: var(--text-gray);
  font-size: 15px;
  margin-bottom: 4px;
  text-align: center;
}
.planner-center .section-subtitle {
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.section-subtitle-2 {
  font-size: 20px;
  color: #fff;
  margin: 0 0 6px;
  text-align: center;
  font-weight: 600;
}
.section-subtitle-3 {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 24px;
  text-align: center;
}
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  box-shadow: none;
  height: 64px;
  padding: 0 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.category-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(157, 125, 58, 0.4);
}
.category-card.selected {
  border-color: #9d7d3a;
  background: rgba(157, 125, 58, 0.12);
  box-shadow: 0 2px 8px rgba(157, 125, 58, 0.18);
}
.category-card-name {
  font-size: 16px;
  color: #fff;
  font-weight: 500;
}
.category-check {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.category-card.selected .category-check {
  background: #9d7d3a;
  border-color: #9d7d3a;
}
.category-check-icon {
  color: var(--white);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
}
.category-card.selected .category-check-icon {
  opacity: 1;
}
.btn-continue-categories {
  height: 48px;
  font-size: 17px;
}

/* ========================================
   SCREEN 2: PLANNER LAYOUT
   ======================================== */
#screen-planner {
  background: #212c46;
}
.planner-top-header {
  background: #212c46;
  padding: 12px 0 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}
.header-img {
  height: 160px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}
.header-img-left {
  transform: scaleX(-1);
}
.header-text {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
}
.planner-top-header .section-title {
  color: #fff;
  margin-bottom: 2px;
}
.planner-top-header .section-subtitle {
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.planner-top-header .section-subtitle-2 {
  color: #fff;
  margin: 0 0 2px;
}
.planner-top-header .section-subtitle-3 {
  color: rgba(255,255,255,0.6);
  margin: 0 0 10px;
}

.header-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.inline-logo {
  height: 1.6em;
  vertical-align: middle;
  margin-right: 4px;
  display: inline-block;
}

.planner-layout {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  min-height: 100vh;
  gap: 0;
}

/* Right sidebar */
#gpp-planner-app .sidebar-right {
  background: transparent;
  border-left: none;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sidebar-header h3 {
  font-size: 18px;
  font-family: "mekomi", Sans-serif;
  color: #fff;
}
#gpp-planner-app .btn-close-sidebar {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
}
.sidebar-categories-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
  color: #fff;
}
.sidebar-cat-item:hover {
  background: rgba(255,255,255,0.08);
}
.sidebar-cat-checkbox {
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.sidebar-cat-item.active .sidebar-cat-checkbox {
  background: #9d7d3a;
  border-color: #9d7d3a;
}
.sidebar-cat-check-icon {
  color: var(--white);
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.15s;
}
.sidebar-cat-item.active .sidebar-cat-check-icon {
  opacity: 1;
}

/* Center */
.planner-center {
  padding: 24px 32px;
  overflow-y: auto;
  min-height: 100vh;
  background: #212c46;
}

/* Left sidebar */
.sidebar-left {
  background: transparent;
  border-right: none;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Summary panel */
.summary-panel {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: visible;
  background: #fff;
}
.summary-panel-header {
  background: #fff;
  padding: 14px 18px;
  text-align: center;
  border-radius: 12px 12px 0 0;
}
.summary-title {
  font-size: 16px;
  margin: 0;
  color: #1a1a2e;
}
.summary-panel-body {
  background: rgba(157, 125, 58, 0.15);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 0 0 12px 12px;
}
.stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #212c46;
  flex-wrap: wrap;
}
.stat-label {
  font-size: 14px;
  color: #212c46;
}
.stat-value-big {
  font-size: 26px;
  font-weight: 700;
  color: #9d7d3a;
  font-family: "mekomi", Sans-serif;
}

/* Discount panel */
.discount-panel {
  margin-bottom: 0;
  border-radius: 12px;
  overflow: visible;
  background: transparent;
  display: flex;
  flex-direction: column;
}
.discount-panel-header {
  background: #fff;
  padding: 14px 18px;
  text-align: center;
  border-radius: 12px 12px 0 0;
}
.discount-title {
  font-size: 16px;
  margin: 0;
  color: #1a1a2e;
}
.discount-panel-body {
  background: linear-gradient(rgba(157, 125, 58, 0.15), rgba(157, 125, 58, 0.15)), #fff;
  padding: 14px 16px 20px;
  border-radius: 0 0 12px 12px;
}
.discount-tiers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.discount-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s;
  background: rgba(157, 125, 58, 0.85);
}
.discount-tier.current {
  background: #9d7d3a;
  border: none;
  padding: 12px 16px;
  margin: 3px -8px;
}
.discount-tier-label {
  font-size: 13px;
  color: #fff;
}
.discount-tier-value {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}
.discount-tier.current .discount-tier-label,
.discount-tier.current .discount-tier-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.discount-tier-check {
  color: #fff;
  font-size: 16px;
  margin-inline-start: 6px;
  display: none;
}
.discount-tier.current .discount-tier-check {
  display: inline;
}
.encouragement-msg {
  background: transparent;
  color: #9d7d3a;
  font-size: 13px;
  padding: 10px 0;
  border-radius: 0;
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
  border: none;
  font-weight: 600;
}
.encouragement-msg::before {
  content: 'ℹ';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #9d7d3a;
  border-radius: 50%;
  font-size: 12px;
  margin-left: 6px;
  flex-shrink: 0;
}

/* Action buttons */
.action-buttons {
  display: none;
}

/* Floating action buttons for desktop */
.floating-actions-wrapper {
  position: fixed;
  bottom: 20px;
  left: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 3px;
  padding: 3px;
}

#gpp-planner-app .btn-floating-toggle {
  background: #ef5c2c;
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "mekomi", Sans-serif;
  min-width: 140px;
  justify-content: space-between;
  animation: pulse-glow 2s ease-in-out infinite;
  direction: rtl;
}

#gpp-planner-app .btn-floating-toggle:hover {
  background: #d94e1f;
  animation: none;
  transform: scale(1.08);
  box-shadow: none;
}

#gpp-planner-app .floating-actions-wrapper.open .btn-floating-toggle {
  animation: none;
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 14px;
}

.floating-actions-wrapper.open .toggle-icon {
  transform: rotate(180deg);
}

.floating-actions-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.floating-actions-wrapper.open .floating-actions-menu {
  max-height: 200px;
  opacity: 1;
  overflow: visible;
}

.btn-floating-action {
  background: #ef5c2c;
  color: #ffffff;
  border: 2px solid #ef5c2c;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "ploni", Sans-serif;
  min-width: 250px;
}

.btn-floating-action:hover {
  background: #ffffff;
  color: #ef5c2c;
  border-color: #ef5c2c;
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(239, 92, 44, 0.4);
}

.btn-floating-action .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: #ffffff;
  transition: stroke 0.2s ease;
}

.btn-floating-action:hover .btn-icon {
  stroke: #ef5c2c;
}
.action-buttons .btn {
  background: #9d7d3a;
  color: #fff;
}
.action-buttons .btn:hover:not(:disabled) {
  background: #8a6d30;
}
.coupon-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
}
.coupon-result.success {
  background: var(--green-light);
  border: 1px solid var(--green-success);
  color: var(--green-text);
}
.coupon-result.error {
  background: #FEF2F2;
  border: 1px solid var(--red-error);
  color: var(--red-error);
}
.coupon-link {
  display: block;
  margin-top: 8px;
  color: var(--blue-primary);
  font-size: 13px;
}
.gpp-expiry-notice {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  color: #856404;
  font-size: 14px;
  text-align: center;
}

/* ========================================
   ACCORDIONS
   ======================================== */
.accordion {
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #9d7d3a;
  color: var(--white);
  padding: 17px 22px;
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  user-select: none;
  transition: background 0.2s;
}
.accordion-header:hover {
  background: #8a6d30;
}
.accordion-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 600;
}
.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.accordion-count {
  background: var(--white);
  color: var(--blue-primary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.accordion-arrow {
  font-size: 12px;
  transition: transform 0.3s;
}
.accordion.open .accordion-arrow {
  transform: rotate(180deg);
}
.accordion-body {
  background: var(--white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion.open .accordion-body {
  max-height: 5000px;
}
.accordion-body-inner {
  padding: 16px;
  background: rgba(157, 125, 58, 0.15);
  color: var(--text-dark);
}
.accordion-body-inner .radio-label,
.accordion-body-inner .uniform-budget-row {
  color: var(--text-dark);
}
.accordion-body-inner .recipients-table th {
  background: rgba(157, 125, 58, 0.15);
  color: var(--text-dark);
}
.accordion-body-inner .recipients-table td {
  border-bottom-color: rgba(157, 125, 58, 0.2);
}
.accordion-body-inner .btn-add-row {
  color: #9d7d3a;
}
.accordion-body-inner .btn-remove-row {
  color: var(--text-gray);
}

/* Toggle buttons above table */
.toggle-row {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.toggle-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.toggle-section-title {
  font-size: 14px;
  font-weight: 700;
  font-family: "mekomi", Sans-serif;
  color: var(--text-dark);
}
.toggle-separator {
  color: rgba(157, 125, 58, 0.4);
  font-size: 24px;
  padding: 0 16px;
  align-self: stretch;
  display: flex;
  align-items: center;
  line-height: 1;
}
.radio-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-dark);
}
.radio-option input[type="radio"] {
  display: none;
}
.radio-circle {
  width: 18px;
  height: 18px;
  border: 2px solid #bbb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.radio-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}
.radio-option input[type="radio"]:checked ~ .radio-circle {
  border-color: #9d7d3a;
}
.radio-option input[type="radio"]:checked ~ .radio-circle::after {
  background: #9d7d3a;
}
.radio-label {
  font-family: "ploni", Sans-serif;
}
.toggle-group {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  font-size: 13px;
}
.toggle-btn {
  padding: 8px 14px;
  cursor: pointer;
  background: var(--white);
  border: none;
  font-size: 13px;
  font-family: "ploni", Sans-serif;
  color: var(--text-gray);
  transition: all 0.2s;
  white-space: nowrap;
}
.toggle-btn.active {
  background: var(--blue-primary);
  color: var(--white);
}

/* Uniform budget input */
.uniform-budget-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 14px;
}
.uniform-budget-row input {
  width: 100px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-align: center;
  font-family: "ploni", Sans-serif;
  font-size: 14px;
}

/* Recipient table */
.recipients-table-wrap {
  overflow-x: auto;
}
.recipients-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.recipients-table th {
  background: var(--separator);
  padding: 10px 8px;
  text-align: right;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-gray);
  white-space: nowrap;
}
.recipients-table td {
  padding: 8px;
  border-bottom: 1px solid var(--separator);
  vertical-align: middle;
}
.recipients-table input[type="text"],
.recipients-table input[type="number"] {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: "ploni", Sans-serif;
  font-size: 14px;
  direction: rtl;
}
.recipients-table input:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}
.recipients-table .col-name { min-width: 120px; }
.recipients-table .col-role { min-width: 100px; }
.recipients-table .col-design { width: 70px; text-align: center; }
.recipients-table .col-budget { width: 90px; }
.recipients-table .col-qty { width: 70px; }
.recipients-table .col-details { min-width: 140px; }
.recipients-table .col-actions { width: 40px; text-align: center; }

.design-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--blue-primary);
}

.btn-remove-row {
  background: none;
  border: none;
  color: var(--red-error);
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s;
  padding: 6px;
  font-weight: 700;
  line-height: 1;
}
.btn-remove-row:hover {
  opacity: 1;
  transform: scale(1.15);
}

.btn-add-row {
  background: rgba(157, 125, 58, 0.3);
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 24px;
  font-family: "ploni", Sans-serif;
  border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(157, 125, 58, 0.3);
  margin-top: 6px;
}
.btn-add-row:hover {
  background: rgba(157, 125, 58, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(157, 125, 58, 0.4);
}

/* Category sticky summary bar */
.accordion-summary-bar {
  background: rgba(157, 125, 58, 0.3);
  border-top: none;
  box-shadow: none;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #212c46;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 0 0 8px 8px;
}
.summary-bar-title {
  font-weight: 700;
  color: #212c46;
}
.summary-bar-sep {
  opacity: 0.4;
  color: #212c46;
}
.accordion-summary-item {
  display: inline;
  font-size: 13px;
  color: #212c46;
}
.accordion-summary-item .value {
  font-weight: 700;
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
}
.modal-text {
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-gray);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.modal-close-btn:hover {
  color: var(--text-dark);
}
.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
  font-family: "mekomi", Sans-serif;
}

/* Usage Instructions Modal */
.usage-instructions-modal {
  max-width: 700px;
  text-align: right;
  max-height: 85vh;
  overflow-y: auto;
}
.usage-instructions-modal .modal-content {
  margin-bottom: 24px;
}
.usage-instructions-modal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold);
  font-family: "mekomi", Sans-serif;
}
.instruction-step {
  margin-bottom: 16px;
  padding: 16px;
  background: #f8f5ef;
  border-radius: var(--radius-sm);
  border-right: 4px solid var(--gold);
}
.instruction-step strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-family: "mekomi", Sans-serif;
}
.instruction-step p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  margin: 0;
}

/* Usage Instructions Button */
#gpp-planner-app .btn-usage-instructions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  box-sizing: border-box;
  background: #9d7d3a;
  color: var(--white);
  border: none;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "ploni", Sans-serif;
}
#gpp-planner-app .btn-usage-instructions:hover {
  background: #8a6d30;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(157, 125, 58, 0.3);
}
.btn-usage-instructions svg {
  width: 18px;
  height: 18px;
}

.btn-purim-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  box-sizing: border-box;
  background: #9d7d3a;
  color: var(--white);
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: "ploni", Sans-serif;
}
.btn-purim-link:hover {
  background: #8a6d30;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(157, 125, 58, 0.3);
  color: var(--white);
}

/* ========================================
   DEADLINE NOTICE
   ======================================== */
.deadline-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
  border: 2px solid #F59E0B;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  text-align: right;
  font-size: 14px;
  line-height: 1.6;
  color: #92400E;
  font-weight: 600;
}
.deadline-notice-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.deadline-notice strong {
  color: #B45309;
  font-weight: 800;
}

/* ========================================
   INACTIVITY POPUP
   ======================================== */
.inactivity-overlay {
  z-index: 10000;
  background: rgba(33, 44, 70, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: inactivity-fade-in 0.4s ease;
}
@keyframes inactivity-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.inactivity-modal {
  max-width: 460px;
  padding: 40px 36px 36px;
  animation: inactivity-slide-up 0.4s ease;
}
@keyframes inactivity-slide-up {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.inactivity-icon {
  font-size: 52px;
  margin-bottom: 12px;
  line-height: 1;
}
.inactivity-modal .modal-title {
  color: #9d7d3a;
  font-size: 26px;
  margin-bottom: 14px;
}
.inactivity-modal .modal-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 28px;
}
.inactivity-modal .btn-gold {
  width: 100%;
  font-size: 17px;
  padding: 14px 32px;
  border-radius: 50px;
  animation: pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(157, 125, 58, 0.4);
}
.inactivity-modal .btn-gold:hover {
  animation: none;
  transform: scale(1.04);
}

/* ========================================
   MOBILE SUMMARY BAR
   ======================================== */
.mobile-summary-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a2942 0%, #2d3e5f 100%);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  padding: 16px 20px;
  z-index: 100;
  border-top: 2px solid #9d7d3a;
}
.mobile-summary-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-summary-stats {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
  justify-content: center;
}
.mobile-summary-stats strong {
  font-size: 18px;
  color: #9d7d3a;
  font-weight: 700;
}
.mobile-discount {
  color: #ffd700;
  font-weight: 700;
  font-size: 15px;
}
.mobile-summary-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.btn-mobile-expand {
  background: #9d7d3a;
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: "ploni", Sans-serif;
  box-shadow: 0 2px 8px rgba(157, 125, 58, 0.4);
  transition: all 0.2s ease;
  flex: 1;
}
.btn-mobile-expand:hover {
  background: #8a6d30;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(157, 125, 58, 0.5);
}
.btn-mobile-coupon {
  background: #16a34a;
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: "ploni", Sans-serif;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
  transition: all 0.2s ease;
  flex: 1;
}
.btn-mobile-coupon:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.5);
}
.mobile-summary-full {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mobile-summary-full-inner {
  background: var(--white);
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  padding: 24px;
  position: relative;
}
.mobile-summary-full .summary-panel-header {
  background: #9d7d3a;
}
.mobile-summary-full .summary-title {
  color: #fff;
}
.mobile-summary-full .btn.btn-gold.btn-full {
  background: #9d7d3a;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 32px;
}
.mobile-summary-full .btn.btn-gold.btn-full:active {
  background: #8a6d30;
}
.mobile-summary-full .btn.btn-success.btn-full {
  background: #ef5c2c;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  padding: 12px 32px;
}
.mobile-summary-full .btn.btn-success.btn-full:active {
  background: #d94e1f;
}

/* ========================================
   MOBILE SIDEBAR
   ======================================== */
.btn-mobile-sidebar {
  display: none;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 110;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.btn-mobile-sidebar span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .planner-layout {
    grid-template-columns: 220px 1fr 260px;
  }
}

@media (max-width: 768px) {
  .header-img {
    display: none;
  }
  .planner-top-header {
    padding: 16px 20px 10px;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .planner-layout {
    display: block;
  }
  
  /* Hide floating buttons on mobile */
  .floating-actions-wrapper {
    display: none;
  }

  /* Floating save button on mobile - left side */
  .btn-floating-save {
    left: 16px;
    right: auto;
    bottom: 140px;
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }

  .btn-floating-save svg {
    width: 18px;
    height: 18px;
  }

  /* Right sidebar: drawer */
  #gpp-planner-app .sidebar-right {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    z-index: 160;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-color);
    background: linear-gradient(135deg, #1a2942 0%, #2d3e5f 100%);
  }
  #gpp-planner-app .sidebar-right.open {
    right: 0;
  }
  #gpp-planner-app .sidebar-right .sidebar-header h3,
  #gpp-planner-app .sidebar-right .category-item-label,
  #gpp-planner-app .sidebar-right .category-item {
    color: #ffffff;
  }
  #gpp-planner-app .sidebar-right .category-item.active {
    background: rgba(157, 125, 58, 0.2);
    border-color: #9d7d3a;
  }
  #gpp-planner-app .sidebar-right .category-item:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  #gpp-planner-app .btn-close-sidebar {
    display: block;
  }
  .btn-mobile-sidebar {
    display: flex;
  }
  .sidebar-overlay.open {
    display: block;
  }

  /* Left sidebar: hidden, shown in mobile summary */
  .sidebar-left {
    display: none;
  }
  .mobile-summary-bar {
    display: flex;
  }

  .planner-center {
    padding: 60px 16px 200px;
  }

  .toggle-row {
    flex-direction: column;
    gap: 16px;
  }
  .toggle-separator {
    display: none;
  }

  .accordion-summary-bar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .login-title {
    font-size: 24px;
  }
  .login-hero {
    padding: 30px 20px 0;
  }
  .login-hero-img-center {
    height: 150px;
  }
  .login-logo {
    height: 48px;
  }

  /* Center mobile summary bar content */
  .mobile-summary-content {
    align-items: center;
  }

  /* Mobile action buttons - stacked, rounded, flat */
  .mobile-summary-actions {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .btn-mobile-expand,
  .btn-mobile-coupon {
    border-radius: 50px;
    padding: 8px 20px;
    flex: none;
  }

  /* Coupon button animation like start planning */
  #btn-mobile-coupon {
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
  }
}

@media (max-width: 480px) {
  .login-title {
    font-size: 20px;
  }
  .section-title {
    font-size: 22px;
  }
  .recipients-table {
    font-size: 13px;
  }
  .category-card {
    height: 56px;
    padding: 0 12px;
  }
}

/* ========================================
   WORDPRESS INTEGRATION OVERRIDES
   ======================================== */
#gpp-planner-app {
  direction: rtl;
  font-family: "ploni", Sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

#gpp-planner-app * {
  box-sizing: border-box;
}

.login-prompt {
  max-width: 360px;
  margin: 0 auto 24px;
  text-align: center;
}
.login-prompt p {
  color: var(--text-gray);
  margin-bottom: 16px;
  font-size: 15px;
}

/* ========================================
   PAYMENT POPUP
   ======================================== */
.gpp-payment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gpp-payment-modal {
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 24px;
}
.gpp-close-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  width: 36px !important;
  height: 36px !important;
  font-size: 24px !important;
  background: #f3f4f6 !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  color: #555 !important;
  z-index: 1 !important;
  padding: 0 !important;
  line-height: 1 !important;
  transition: background 0.2s !important;
}
.gpp-close-btn:hover {
  background: #e5e7eb !important;
  color: #222 !important;
}
.gpp-payment-field {
  margin-bottom: 16px;
  text-align: right;
}
.gpp-payment-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #1a3a5c;
}
.gpp-payment-field label .required {
  color: #e53e3e;
}
.gpp-payment-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: #333;
  appearance: auto;
  direction: rtl;
  cursor: pointer;
  transition: border-color 0.2s;
}
.gpp-payment-field select:focus {
  outline: none;
  border-color: #9d7d3a;
  box-shadow: 0 0 0 2px rgba(157, 125, 58, 0.15);
}
.gpp-payment-field select.gpp-field-error {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.15) !important;
}
.gpp-payment-actions {
  margin-top: 16px;
}
.gpp-payment-header {
  text-align: center;
  margin-bottom: 20px;
}
.gpp-payment-header h2 {
  font-family: "mekomi", Sans-serif;
  font-size: 22px;
  margin-bottom: 12px;
}
.gpp-payment-summary {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-gray);
  flex-wrap: wrap;
}
.gpp-payment-summary strong {
  color: var(--text-dark);
  font-size: 16px;
}
.gpp-payment-iframe-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.gpp-payment-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
}
.gpp-payment-status.success {
  background: var(--green-light);
  color: var(--green-text);
  border: 1px solid var(--green-success);
}
.gpp-payment-status.error {
  background: #FEF2F2;
  color: var(--red-error);
  border: 1px solid var(--red-error);
}

/* ========================================
   SPECIFICITY BOOST — override WP theme CSS
   ======================================== */
#gpp-planner-app h1,
#gpp-planner-app h2,
#gpp-planner-app h3,
#gpp-planner-app h4 {
  margin: 0;
  padding: 0;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  font-family: "mekomi", Sans-serif;
}
#gpp-planner-app p {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-family: "ploni", Sans-serif;
}
#gpp-planner-app input,
#gpp-planner-app select,
#gpp-planner-app textarea,
#gpp-planner-app button {
  font-family: "ploni", Sans-serif;
  font-size: inherit;
  line-height: normal;
  border-radius: 0;
  -webkit-appearance: none;
}
#gpp-planner-app input[type="number"],
#gpp-planner-app input[type="text"] {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-dark);
  height: auto;
  box-shadow: none;
}
#gpp-planner-app input[type="number"]:focus,
#gpp-planner-app input[type="text"]:focus {
  border-color: var(--blue-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
#gpp-planner-app input[type="checkbox"] {
  -webkit-appearance: checkbox;
  width: auto;
  height: auto;
}
#gpp-planner-app table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin: 0;
}
#gpp-planner-app th,
#gpp-planner-app td {
  padding: 8px 10px;
  text-align: right;
  border: none;
  border-bottom: 1px solid var(--separator);
  font-weight: normal;
  vertical-align: middle;
}
#gpp-planner-app th {
  background: var(--separator);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dark);
}
#gpp-planner-app a {
  color: var(--blue-primary);
  text-decoration: none;
}
#gpp-planner-app button {
  cursor: pointer;
  border: none;
  outline: none;
}
#gpp-planner-app .section-title {
  font-size: 28px;
  margin-bottom: 8px;
  text-align: center;
}
#gpp-planner-app .planner-top-header .section-title {
  color: #fff;
}
#gpp-planner-app .section-subtitle {
  font-size: 15px;
  margin-bottom: 4px;
  text-align: center;
  font-family: "ploni", Sans-serif;
}
#gpp-planner-app .planner-top-header .section-subtitle {
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
#gpp-planner-app .section-subtitle-2,
#gpp-planner-app .planner-top-header .section-subtitle-2 {
  font-size: 20px;
  color: #fff;
  margin: 0 0 2px;
  text-align: center;
  font-weight: 600;
}
#gpp-planner-app .section-subtitle-3,
#gpp-planner-app .planner-top-header .section-subtitle-3 {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 10px;
  text-align: center;
  font-family: "ploni", Sans-serif;
}
#gpp-planner-app .inline-logo {
  height: 1.6em;
  vertical-align: middle;
  margin-right: 4px;
  display: inline-block;
}
#gpp-planner-app .sidebar-header h3 {
  color: #fff;
  font-size: 18px;
}
#gpp-planner-app .sidebar-cat-item {
  color: #fff;
  font-size: 13px;
  padding: 5px 10px;
}
#gpp-planner-app .sidebar-cat-checkbox {
  background: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
#gpp-planner-app .sidebar-cat-item.active .sidebar-cat-checkbox {
  background: #9d7d3a;
  border-color: #9d7d3a;
}
#gpp-planner-app .accordion-header {
  background: #9d7d3a;
  color: #fff;
  padding: 17px 22px;
  border: none;
}
#gpp-planner-app .accordion-header:hover {
  background: #8a6d30;
}
#gpp-planner-app .accordion-body {
  background: #fff;
}
#gpp-planner-app .planner-center {
  background: #212c46;
}
#gpp-planner-app #screen-planner {
  background: #212c46;
}
#gpp-planner-app .planner-top-header {
  background: #212c46;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#gpp-planner-app .header-img {
  height: 160px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}
#gpp-planner-app .btn-primary {
  background: var(--blue-primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
}
#gpp-planner-app .btn-success {
  background: #9d7d3a;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
}
#gpp-planner-app .action-buttons .btn {
  background: #9d7d3a;
  color: #fff;
}
#gpp-planner-app .action-buttons .btn:hover:not(:disabled) {
  background: #8a6d30;
}
#gpp-planner-app .summary-panel {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #fff;
}
#gpp-planner-app .summary-panel-header {
  background: #fff;
  padding: 14px 18px;
  text-align: center;
  border-radius: 12px 12px 0 0;
}
#gpp-planner-app .summary-title {
  font-size: 16px;
  font-family: "mekomi", Sans-serif;
  margin: 0;
  color: #1a1a2e;
}
#gpp-planner-app .summary-panel-body {
  background: rgba(157, 125, 58, 0.15);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 0 0 12px 12px;
}
#gpp-planner-app .stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #212c46;
  flex-wrap: wrap;
}
#gpp-planner-app .stat-label {
  font-size: 14px;
  color: #212c46;
}
#gpp-planner-app .stat-value-big {
  font-size: 26px;
  font-weight: 700;
  color: #9d7d3a;
  font-family: "mekomi", Sans-serif;
}
#gpp-planner-app .sidebar-left {
  background: transparent;
  border-right: none;
}
#gpp-planner-app .discount-panel {
  background: transparent;
  border-radius: 12px;
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  flex: unset;
}
#gpp-planner-app .discount-panel-header {
  background: #fff;
  padding: 14px 18px;
  text-align: center;
  border-radius: 12px 12px 0 0;
}
#gpp-planner-app .discount-title {
  font-size: 16px;
  font-family: "mekomi", Sans-serif;
  margin: 0;
  color: #1a1a2e;
}
#gpp-planner-app .discount-panel-body {
  background: linear-gradient(rgba(157, 125, 58, 0.15), rgba(157, 125, 58, 0.15)), #fff;
  padding: 14px 16px 20px;
  border-radius: 0 0 12px 12px;
}
#gpp-planner-app .discount-tier {
  background: rgba(157, 125, 58, 0.85);
  border-radius: 8px;
}
#gpp-planner-app .discount-tier.current {
  background: #9d7d3a;
  border: none;
  padding: 12px 16px;
  margin: 3px -8px;
}
#gpp-planner-app .discount-tier-label {
  color: #fff;
}
#gpp-planner-app .discount-tier-value {
  color: #fff;
}
#gpp-planner-app .discount-tier.current .discount-tier-label,
#gpp-planner-app .discount-tier.current .discount-tier-value {
  color: #fff;
  font-size: 16px;
}
#gpp-planner-app .discount-tier-check {
  color: #fff;
}
#gpp-planner-app .encouragement-msg {
  background: transparent;
  color: #9d7d3a;
  border: none;
  margin-top: 10px;
  margin-bottom: 0;
  font-weight: 600;
}
#gpp-planner-app .toggle-section-title {
  color: var(--text-dark);
  font-family: "mekomi", Sans-serif;
}
#gpp-planner-app .toggle-separator {
  color: rgba(157, 125, 58, 0.4);
}
#gpp-planner-app .accordion-summary-bar {
  color: #212c46;
}
#gpp-planner-app .summary-bar-title {
  color: #212c46;
  font-weight: 700;
}
#gpp-planner-app .summary-bar-sep {
  color: #212c46;
}
#gpp-planner-app .accordion-summary-item {
  color: #212c46;
}
#gpp-planner-app .accordion-summary-item .value {
  font-weight: 700;
}
#gpp-planner-app .accordion-body-inner {
  background: rgba(157, 125, 58, 0.15);
  color: var(--text-dark);
}
#gpp-planner-app .accordion-body-inner .radio-label,
#gpp-planner-app .accordion-body-inner .uniform-budget-row {
  color: var(--text-dark);
}
#gpp-planner-app .accordion-body-inner .recipients-table th {
  background: rgba(157, 125, 58, 0.15);
  color: var(--text-dark);
}
#gpp-planner-app .accordion-body-inner .recipients-table td {
  border-bottom-color: rgba(157, 125, 58, 0.2);
}
#gpp-planner-app .accordion-body-inner .btn-add-row {
  color: #ffffff;
}
#gpp-planner-app .accordion-body-inner .btn-remove-row {
  color: var(--red-error);
}
#gpp-planner-app #screen-login {
  background: #212c46;
  flex-direction: column;
}
#gpp-planner-app .login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 40px 20px 0;
  text-align: center;
}
#gpp-planner-app .login-hero-img-center {
  height: 200px;
  width: auto;
  object-fit: contain;
  margin-bottom: 24px;
  opacity: 0.9;
}
#gpp-planner-app .login-logo {
  height: 50px;
  margin-bottom: 20px;
}
#gpp-planner-app .btn-icon {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
#gpp-planner-app .login-container {
  text-align: center;
  padding: 10px 24px 40px;
}
#gpp-planner-app .login-title {
  font-size: 32px;
  color: #fff;
  margin-bottom: 12px;
}
#gpp-planner-app .login-subtitle {
  color: rgba(255,255,255,0.65);
}
#gpp-planner-app .connected-badge {
  background: rgba(157, 125, 58, 0.2);
  color: #9d7d3a;
  border: 1px solid rgba(157, 125, 58, 0.4);
}
#gpp-planner-app .connected-icon {
  background: #9d7d3a;
}
#gpp-planner-app .login-prompt p {
  color: rgba(255,255,255,0.7);
}
#gpp-planner-app .btn-gold {
  background: #9d7d3a;
  color: #fff;
}
#gpp-planner-app .btn-gold:hover:not(:disabled) {
  background: #8a6d30;
}
#gpp-planner-app .btn-gold:disabled {
  background: rgba(157, 125, 58, 0.4);
  color: rgba(255,255,255,0.5);
}
#gpp-planner-app .btn-outline-gold {
  background: transparent;
  color: #9d7d3a;
  border: 2px solid #9d7d3a;
}
#gpp-planner-app .btn-outline-gold:hover {
  background: rgba(157, 125, 58, 0.1);
}
#gpp-planner-app #screen-categories {
  background: #212c46;
}
#gpp-planner-app #screen-categories .section-title {
  color: #fff;
}
#gpp-planner-app #screen-categories .section-subtitle {
  color: rgba(255,255,255,0.65);
}
#gpp-planner-app .category-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0 16px;
  height: 64px;
  box-shadow: none;
}
#gpp-planner-app .category-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(157, 125, 58, 0.4);
}
#gpp-planner-app .category-card.selected {
  border-color: #9d7d3a;
  background: rgba(157, 125, 58, 0.12);
  box-shadow: 0 2px 8px rgba(157, 125, 58, 0.18);
}
#gpp-planner-app .category-card-name {
  color: #fff;
}
#gpp-planner-app .category-check {
  border-color: rgba(255,255,255,0.3);
}
#gpp-planner-app .category-card.selected .category-check {
  background: #9d7d3a;
  border-color: #9d7d3a;
}

/* ========================================
   STRONGER OVERRIDES — theme-resistant
   ======================================== */
#gpp-planner-app .btn,
#gpp-planner-app .btn-gold,
#gpp-planner-app .btn-outline-gold,
#gpp-planner-app .btn-success,
#gpp-planner-app .btn-primary,
#gpp-planner-app .btn-danger,
#gpp-planner-app .action-buttons .btn {
  border-radius: 8px !important;
  font-family: "ploni", Sans-serif !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
#gpp-planner-app .btn-full {
  display: flex !important;
  width: 100% !important;
}
#gpp-planner-app .accordion-body-inner .btn-add-row,
#gpp-planner-app .btn-add-row {
  background: rgba(157, 125, 58, 0.3) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  cursor: pointer !important;
  padding: 12px 24px !important;
  font-family: "ploni", Sans-serif !important;
  font-weight: 700 !important;
  display: inline-block !important;
  box-shadow: 0 2px 6px rgba(157, 125, 58, 0.3) !important;
  box-shadow: none !important;
  text-align: right !important;
  width: auto !important;
  height: auto !important;
  min-height: unset !important;
  line-height: 1.4 !important;
  margin-top: 6px !important;
}
#gpp-planner-app .accordion-body-inner .btn-add-row:hover,
#gpp-planner-app .btn-add-row:hover {
  background: rgba(157, 125, 58, 0.5) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(157, 125, 58, 0.4) !important;
}
#gpp-planner-app .accordion-body-inner .btn-remove-row,
#gpp-planner-app .btn-remove-row {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--red-error) !important;
  font-size: 24px !important;
  cursor: pointer !important;
  opacity: 0.7 !important;
  padding: 6px !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  min-height: unset !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  min-width: unset !important;
  line-height: 1 !important;
}
#gpp-planner-app .accordion-body-inner .btn-remove-row:hover,
#gpp-planner-app .btn-remove-row:hover {
  opacity: 1 !important;
  background: none !important;
  transform: scale(1.15) !important;
}
#gpp-planner-app .action-buttons .btn.btn-gold,
#gpp-planner-app .action-buttons .btn.btn-success {
  background: #9d7d3a !important;
  color: #fff !important;
  padding: 12px 24px !important;
  border: none !important;
  font-weight: 700 !important;
}
#gpp-planner-app .action-buttons .btn.btn-gold:hover,
#gpp-planner-app .action-buttons .btn.btn-success:hover {
  background: #8a6d30 !important;
}
#gpp-planner-app .modal-buttons .btn {
  border-radius: 8px !important;
  padding: 10px 24px !important;
}
#gpp-planner-app .btn-continue-categories {
  border-radius: 8px !important;
  height: 48px !important;
  font-size: 17px !important;
}
#gpp-planner-app .btn-mobile-expand {
  border-radius: 6px !important;
}
#gpp-planner-app a.btn {
  text-decoration: none !important;
}

/* Centered login prompt for unauthenticated users */
.gpp-login-prompt-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}
.gpp-login-prompt-centered p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  font-size: 16px;
}

/* No-plan message */
.gpp-no-plan-msg {
  text-align: center;
  margin-bottom: 16px;
}
.gpp-no-plan-msg p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin: 0;
}

/* Loading spinner on login screen */
.gpp-loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px;
  text-align: center;
  width: 100%;
}
.gpp-loading-text {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}
.gpp-loading-subtext {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 20px;
}
.gpp-loading-spinner .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #9d7d3a;
  border-radius: 50%;
  animation: gpp-spin 0.8s linear infinite;
}
@keyframes gpp-spin {
  to { transform: rotate(360deg); }
}

/* Floating save button */
.gpp-floating-save {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  height: 48px !important;
  width: auto !important;
  border-radius: 24px !important;
  background: #fff !important;
  color: #1a3a5c !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important;
  z-index: 999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 22px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  transition: transform 0.2s, background 0.3s, box-shadow 0.2s, color 0.3s !important;
}
.gpp-floating-save:hover {
  background: #f0f0f0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25) !important;
}
.gpp-floating-save:active {
  transform: translateY(0) !important;
}
.gpp-floating-save svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  stroke: #1a3a5c !important;
}
.gpp-floating-save.saved {
  background: #16A34A !important;
  color: #fff !important;
}
.gpp-floating-save.saved svg {
  stroke: #fff !important;
}
.gpp-floating-save:disabled {
  opacity: 0.7 !important;
  cursor: wait !important;
}
@media (max-width: 768px) {
  .gpp-floating-save {
    right: 16px !important;
    bottom: 100px !important;
    height: 44px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
  }
  .gpp-floating-save svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* ========================================
   SPECIFIC ORANGE BUTTONS
   ======================================== */
#btn-save-plan,
#btn-generate-coupon,
#btn-start-planning,
#gpp-planner-app #btn-continue-to-planner,
#gpp-planner-app .btn-usage-instructions,
#gpp-planner-app .btn-purim-link,
#gpp-planner-app .btn-floating-toggle,
#gpp-planner-app #btn-save-plan,
#gpp-planner-app #btn-generate-coupon,
#gpp-planner-app .btn-purim-link,
#gpp-planner-app #btn-start-planning,
#gpp-planner-app #btn-continue-to-planner,
#gpp-planner-app .btn-usage-instructions,
#gpp-planner-app .btn-floating-toggle {
  background: #ef5c2c !important;
  color: #fff !important;
}
#btn-save-plan:hover:not(:disabled),
#btn-generate-coupon:hover:not(:disabled),
#btn-start-planning:hover:not(:disabled),
#btn-continue-to-planner:hover:not(:disabled),
#gpp-planner-app .btn-usage-instructions:hover,
#gpp-planner-app .btn-purim-link:hover,
#gpp-planner-app .btn-floating-toggle:hover,
#gpp-planner-app .btn-purim-link:hover,
#gpp-planner-app #btn-save-plan:hover:not(:disabled),
#gpp-planner-app #btn-generate-coupon:hover:not(:disabled),
#gpp-planner-app #btn-start-planning:hover:not(:disabled),
#gpp-planner-app #btn-continue-to-planner:hover:not(:disabled),
#gpp-planner-app .btn-usage-instructions:hover,
#gpp-planner-app .btn-floating-toggle:hover {
  background: #d94e1f !important;
}

/* Pulse animation for start button */
@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

#btn-start-planning,
#gpp-planner-app #btn-start-planning {
  animation: pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(239, 92, 44, 0.4);
}

#btn-start-planning:hover,
#gpp-planner-app #btn-start-planning:hover {
  animation: none;
  transform: scale(1.08);
}
