/* ============================================================
   BookedEat Restaurant Portal — Styles
   Extends the landing page design system (../styles.css)
   ============================================================ */

/* --- Portal Layout --- */
.portal-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface-secondary);
  min-height: 100vh;
  color: var(--text-primary);
}

.portal-screen {
  display: none;
}
.portal-screen.active {
  display: block;
}

/* --- Portal Nav --- */
.portal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg-thick);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-default);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.portal-nav-brand span {
  color: var(--blue-500);
}

.portal-nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.portal-nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-default);
  cursor: pointer;
  border: none;
  background: none;
}
.portal-nav-link:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.portal-nav-link.active {
  background: var(--blue-500);
  color: #fff;
}
.portal-nav-link.sign-out {
  color: var(--red-500);
}
.portal-nav-link.sign-out:hover {
  background: rgba(255, 59, 48, 0.08);
}

/* Profile button & dropdown */
.portal-nav-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Language Switcher --- */
.lang-switcher-wrap {
  position: relative;
}
.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--duration-fast) var(--ease-default);
}
.lang-switcher-btn:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.lang-switcher-arrow {
  font-size: 10px;
  opacity: 0.6;
}
.lang-switcher-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid var(--border-default);
  padding: 4px;
  z-index: 200;
}
.lang-switcher-dropdown.hidden {
  display: none;
}
.lang-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: background var(--duration-fast);
}
.lang-option:hover {
  background: var(--surface-secondary);
}
.lang-option.active {
  color: var(--blue-500);
  font-weight: 600;
}

.portal-profile-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background var(--duration-fast);
}
.portal-profile-btn:hover {
  background: var(--surface-secondary);
}
.portal-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}
.portal-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--border-default);
  padding: 12px;
  z-index: 200;
}
.portal-profile-dropdown.hidden {
  display: none;
}
.profile-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 4px 8px;
}
.profile-dropdown-email {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 0 8px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-dropdown-divider {
  height: 1px;
  background: var(--border-default);
  margin: 8px 0;
}
.profile-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 8px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast);
}
.profile-dropdown-item:hover {
  background: var(--surface-secondary);
}
.profile-dropdown-item.danger {
  color: var(--red-500);
}
.profile-dropdown-item.danger:hover {
  background: rgba(255,59,48,0.08);
}

/* Hide nav when on login screen */
.portal-nav.hidden {
  display: none;
}

/* --- Container --- */
.portal-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.portal-container-wide {
  max-width: 960px;
}

/* --- Cards --- */
.portal-card {
  background: var(--surface-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.portal-card + .portal-card {
  margin-top: 16px;
}
.dashboard-charts-grid > .portal-card + .portal-card {
  margin-top: 0;
}

/* --- Login Screen --- */
.login-wrapper {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  max-width: 400px;
  width: 100%;
  background: var(--surface-primary);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-default);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: rgba(0, 122, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
}
.login-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.dashboard-time-filter {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  flex-wrap: nowrap;
}
.time-filter-btn {
  padding: 4px 10px;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 16px;
  background: var(--bg-card, #fff);
  color: var(--text-secondary, #666);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.time-filter-btn:hover {
  border-color: #007AFF;
  color: #007AFF;
}
.time-filter-btn.active {
  background: #007AFF;
  color: #fff;
  border-color: #007AFF;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 14px;
  text-align: left;
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface-primary);
  transition: border-color var(--duration-fast) var(--ease-default);
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}
.form-input::placeholder {
  color: var(--text-tertiary);
}
.form-input.code-input {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 8px;
  text-transform: uppercase;
  padding: 16px;
}
.form-input-wrapper {
  position: relative;
}
.form-input-wrapper .form-input {
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 18px;
  padding: 4px;
}
.form-helper {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
textarea.form-input {
  resize: vertical;
  min-height: 60px;
}
.form-row {
  display: flex;
  gap: 12px;
}
.form-row > * {
  flex: 1;
}

/* --- Buttons --- */
.btn-portal {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-portal:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-portal-primary {
  background: var(--blue-500);
  color: #fff;
}
.btn-portal-primary:hover:not(:disabled) {
  background: var(--blue-600);
}
.btn-portal-green {
  background: var(--green-500);
  color: #fff;
}
.btn-portal-green:hover:not(:disabled) {
  background: #2DB84E;
}
.btn-portal-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.btn-portal-outline:hover:not(:disabled) {
  background: var(--surface-secondary);
}
.btn-portal-outline.danger {
  border-color: rgba(255, 59, 48, 0.4);
  color: var(--red-500);
}
.btn-portal-outline.danger:hover:not(:disabled) {
  background: rgba(255, 59, 48, 0.06);
}
.btn-portal-outline.warning {
  border-color: rgba(255, 149, 0, 0.4);
  color: var(--orange-500);
}
.btn-portal-text {
  background: none;
  border: none;
  color: var(--blue-500);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
}

/* Small icon button */
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 18px;
  transition: all var(--duration-fast) var(--ease-default);
}
.btn-icon:hover {
  background: var(--surface-secondary);
}
.btn-icon.danger {
  color: var(--red-500);
  opacity: 0.7;
}
.btn-icon.danger:hover {
  opacity: 1;
  background: rgba(255, 59, 48, 0.06);
}

/* --- Spinner --- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner.dark {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--blue-500);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Alert --- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}
.alert-error {
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: var(--red-500);
}

/* --- Dashboard --- */
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.dashboard-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(0, 122, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-500);
  overflow: hidden;
  flex-shrink: 0;
}
.dashboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dashboard-name {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Value Banner */
.value-banner {
  padding: 18px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(0, 122, 255, 0.03));
  border: 1px solid rgba(0, 122, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.value-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.value-banner-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

/* Dashboard top row: value banner + stats */
.dashboard-top-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.dashboard-top-row .value-banner {
  margin-bottom: 0;
}
.dashboard-top-row .stats-row {
  margin-bottom: 0;
}

/* Dashboard charts grid */
.dashboard-charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}
.dashboard-charts-grid > .chart-section {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
.dashboard-charts-grid > .chart-section #line-chart-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Stats Row */
.stats-row {
  display: flex;
  background: var(--surface-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  padding: 18px;
  margin-bottom: 24px;
}
.stat-item {
  flex: 1;
  text-align: center;
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
}
.stat-value.blue { color: var(--blue-500); }
.stat-value.purple { color: var(--purple-500); }
.stat-value.green { color: var(--green-500); }
.stat-value.orange { color: #FF9500; }
.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  background: var(--border-default);
  margin: 0 4px;
}

/* Chart sections */
.chart-section {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 28px;
}
.chart-header .dashboard-time-filter {
  margin-bottom: 0;
}
.chart-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.chart-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
#pie-chart-area .chart-container {
  position: relative;
  height: 200px;
  max-height: 200px;
}
#line-chart-area .chart-container {
  position: relative;
  min-height: 200px;
  flex: 1;
}
.chart-empty {
  text-align: center;
  padding: 32px 0;
  color: var(--text-tertiary);
  font-size: 14px;
}
.chart-legend {
  margin-top: 14px;
}
.legend-item-hidden {
  display: none !important;
}
.chart-legend.legend-expanded .legend-item-hidden {
  display: flex !important;
}
.legend-toggle {
  background: none;
  border: none;
  color: #007AFF;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 2px;
}
.legend-toggle:hover {
  text-decoration: underline;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.legend-label {
  flex: 1;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.legend-value {
  font-weight: 600;
}

/* Opening Hours Card */
.opening-hours-card {
  margin-top: 8px;
}
.opening-hours-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.opening-hours-title {
  font-size: 16px;
  font-weight: 600;
}
.hours-list {
  display: grid;
  gap: 6px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}
.hours-row.today {
  font-weight: 600;
  color: var(--blue-500);
}
.hours-day {
  color: var(--text-primary);
  min-width: 100px;
}
.hours-time {
  color: var(--text-secondary);
  text-align: right;
}
.hours-empty {
  color: var(--text-tertiary);
  font-size: 14px;
  padding: 12px 0;
}
.hours-edit-grid {
  display: grid;
  gap: 8px;
}
.hours-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hours-edit-row label {
  min-width: 40px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.hours-edit-row input[type="time"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--surface-primary);
}
.hours-edit-row .hours-closed-toggle {
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px 8px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: none;
  transition: all var(--duration-fast);
}
.hours-edit-row .hours-closed-toggle.active {
  background: var(--red-500);
  color: #fff;
  border-color: var(--red-500);
}
.hours-edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}
.btn-portal-text {
  background: none;
  border: none;
  color: var(--blue-500);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast);
}
.btn-portal-text:hover {
  background: rgba(0, 122, 255, 0.08);
}

/* Dashboard Action Cards Grid */
.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.dashboard-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-fast) var(--ease-default);
}
.dashboard-action-card:hover {
  background: var(--surface-secondary);
  border-color: var(--blue-500);
}
.dashboard-action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.dashboard-action-info {
  flex: 1;
}
.dashboard-action-title {
  font-size: 16px;
  font-weight: 600;
}
.dashboard-action-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.dashboard-action-arrow {
  color: var(--text-tertiary);
  font-size: 18px;
  font-weight: 300;
}

/* Legacy: Manage Deals Card (kept for compatibility) */
.manage-deals-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: rgba(0, 122, 255, 0.06);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  text-decoration: none;
  color: inherit;
}
.manage-deals-card:hover {
  background: rgba(0, 122, 255, 0.1);
}
.manage-deals-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(0, 122, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.manage-deals-info {
  flex: 1;
}
.manage-deals-title {
  font-size: 17px;
  font-weight: 600;
}
.manage-deals-count {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.manage-deals-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
}

/* --- Deals List --- */
.deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.deals-title {
  font-size: 20px;
  font-weight: 700;
}
.deals-add-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--blue-500);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-default);
}
.deals-add-btn:hover {
  background: var(--blue-600);
}

/* Filter chips */
.filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.filter-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-default);
  background: var(--surface-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}
.filter-chip:hover {
  background: var(--surface-secondary);
}
.filter-chip.active {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}

/* Deal Card */
.deal-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.deal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.deal-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(138, 154, 91, 0.12);
  color: #8A9A5B;
}
.deal-toggle {
  position: relative;
  width: 44px;
  height: 24px;
}
.deal-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.deal-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border-strong);
  border-radius: 12px;
  transition: background var(--duration-fast) var(--ease-default);
}
.deal-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--duration-fast) var(--ease-default);
}
.deal-toggle input:checked + .deal-toggle-slider {
  background: var(--green-500);
}
.deal-toggle input:checked + .deal-toggle-slider::before {
  transform: translateX(20px);
}
.deal-card-body {
  cursor: pointer;
}
.deal-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.deal-card-validity {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.deal-card-redemptions {
  font-size: 12px;
  color: var(--text-secondary);
}
.deal-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 10px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 20px;
}
.empty-state-icon {
  font-size: 48px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.empty-state-text {
  font-size: 16px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

/* --- Deal Form --- */
.form-screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.form-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-secondary);
  padding: 4px;
}
.form-screen-title {
  font-size: 20px;
  font-weight: 700;
}

.section-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.section-divider {
  height: 1px;
  background: var(--border-default);
  margin: 24px 0 16px;
}

/* Two-column form layout */
.form-panel {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg, 12px);
  padding: 20px;
  margin-bottom: 16px;
}
.form-panel .form-input {
  background: var(--surface-secondary, #f5f5f7);
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.form-col {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .form-columns {
    grid-template-columns: 1fr;
  }
}

/* Deal type pills */
.type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-default);
  background: var(--surface-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}
.type-pill:hover {
  background: var(--surface-secondary);
}
.type-pill.active {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}
.type-pill-icon {
  font-size: 16px;
}

/* Day toggles */
.day-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.day-toggle {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-default);
  background: var(--surface-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}
.day-toggle:hover {
  background: var(--surface-secondary);
}
.day-toggle.active {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}

/* Cooldown chips */
.cooldown-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cooldown-chip {
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-default);
  background: var(--surface-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}
.cooldown-chip:hover {
  background: var(--surface-secondary);
}
.cooldown-chip.active {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}

/* Included items list */
.included-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}
.included-item-check {
  color: var(--green-500);
}
.included-item-text {
  flex: 1;
}
.included-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 16px;
  padding: 2px;
}
.add-item-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.add-item-row .form-input {
  flex: 1;
}
.add-item-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue-500);
  font-size: 24px;
  padding: 4px;
}

/* Date/time picker buttons */
.picker-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  font-family: inherit;
  width: 100%;
  transition: border-color var(--duration-fast) var(--ease-default);
}
.picker-btn:hover {
  border-color: var(--border-strong);
}
.picker-btn .picker-icon {
  color: var(--text-tertiary);
}
.picker-btn.has-value .picker-icon {
  color: var(--blue-500);
}
.picker-btn .picker-label {
  flex: 1;
  text-align: left;
}
.picker-btn.placeholder .picker-label {
  color: var(--text-tertiary);
}
.picker-btn .picker-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 14px;
  padding: 2px;
}

/* Multi-date calendar */
.calendar {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px;
  user-select: none;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.calendar-title {
  font-size: 15px;
  font-weight: 600;
}
.calendar-nav {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.calendar-nav:hover {
  background: var(--surface-secondary);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 4px 0;
}
.calendar-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-default);
}
.calendar-day:hover:not(.disabled):not(.empty) {
  background: var(--surface-secondary);
}
.calendar-day.selected {
  background: var(--blue-500);
  color: #fff;
  font-weight: 600;
}
.calendar-day.disabled {
  color: var(--text-tertiary);
  opacity: 0.4;
  cursor: default;
}
.calendar-day.empty {
  cursor: default;
}
.event-date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.event-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-500);
}
.event-date-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue-500);
  font-size: 14px;
  padding: 0;
  line-height: 1;
}

/* --- Settings --- */
.settings-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.settings-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(0, 122, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-500);
  overflow: hidden;
  flex-shrink: 0;
}
.settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Billing card */
.billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}
.billing-label {
  color: var(--text-secondary);
}
.billing-value {
  font-weight: 500;
}
.billing-value.bold {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-500);
}
.billing-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 0;
  margin-bottom: 14px;
}

/* --- Payment Method --- */
.stripe-card-wrapper {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: #fff;
  transition: border-color var(--duration-fast);
}
.stripe-card-wrapper.StripeElement--focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}
.stripe-card-wrapper.StripeElement--invalid {
  border-color: var(--red-500);
}
.card-errors {
  font-size: 13px;
  color: var(--red-500);
  margin-top: 6px;
  min-height: 18px;
}
.payment-method-saved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(52, 199, 89, 0.08);
  border: 1px solid rgba(52, 199, 89, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.payment-method-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.payment-method-card-icon {
  font-size: 24px;
  line-height: 1;
}
.payment-method-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.payment-method-actions {
  display: flex;
  gap: 8px;
}
.payment-method-actions button {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: background var(--duration-fast);
}
.payment-method-actions .pm-change {
  color: var(--blue-500);
}
.payment-method-actions .pm-change:hover {
  background: rgba(0, 122, 255, 0.08);
}
.payment-method-actions .pm-remove {
  color: var(--red-500);
}
.payment-method-actions .pm-remove:hover {
  background: rgba(255, 59, 48, 0.08);
}
.no-payment-method {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* --- Receipts / Payment History --- */
.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.receipt-row:last-child {
  border-bottom: none;
}
.receipt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.receipt-month {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.receipt-detail {
  font-size: 12px;
  color: var(--text-tertiary);
}
.receipt-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.receipt-amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.receipt-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.receipt-status.paid {
  background: rgba(52, 199, 89, 0.1);
  color: var(--green-500);
}
.receipt-status.pending {
  background: rgba(255, 149, 0, 0.1);
  color: var(--orange-500);
}
.receipt-download-btn {
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--duration-fast);
}
.receipt-download-btn:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.receipts-empty {
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 12px 0;
}

/* Action card */
.action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  text-decoration: none;
  color: inherit;
}
.action-card:hover {
  background: var(--surface-secondary);
}
.action-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.action-card-info {
  flex: 1;
}
.action-card-title {
  font-size: 15px;
  font-weight: 600;
}
.action-card-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 3px;
}
.action-card-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
}

/* --- Verify Code --- */
.verify-info-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: rgba(0, 122, 255, 0.06);
  border: 1px solid rgba(0, 122, 255, 0.15);
  border-radius: var(--radius-lg, 12px);
  margin-bottom: 24px;
}
.verify-info-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.4;
}
.verify-info-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.verify-info-text strong {
  color: var(--text-primary);
}

.verify-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.verify-card {
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.verify-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: rgba(52, 199, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
}
.verify-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.verify-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Result cards */
.result-card {
  width: 100%;
  padding: 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 24px;
}
.result-card.success {
  background: rgba(52, 199, 89, 0.08);
  border: 1px solid rgba(52, 199, 89, 0.2);
}
.result-card.error {
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
}
.result-card.warning {
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.2);
}
.result-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.result-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.result-deal {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.result-discount {
  font-size: 14px;
  color: var(--text-secondary);
}
.result-error-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- Confirm Dialog --- */
.dialog-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dialog-overlay.hidden {
  display: none;
}
.dialog-box {
  background: var(--surface-primary);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-2xl);
}
.dialog-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.dialog-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.4;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.dialog-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.dialog-btn-cancel {
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.dialog-btn-danger {
  background: var(--red-500);
  color: #fff;
}

/* --- Loading overlay --- */
.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

/* --- Deals grid --- */
.deals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.deals-grid .deal-card {
  margin-bottom: 0;
}

/* --- Responsive: Desktop (min 768px) --- */
@media (min-width: 768px) {
  .portal-container-wide {
    padding: 32px 32px 60px;
  }
  .dashboard-top-row {
    flex-direction: row;
    align-items: stretch;
  }
  .dashboard-top-row .value-banner {
    flex: 1;
  }
  .dashboard-top-row .stats-row {
    flex: 1;
  }
  .dashboard-charts-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .dashboard-charts-grid .chart-section {
    min-height: 0;
  }
  .deals-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-value {
    font-size: 28px;
  }
  .stat-label {
    font-size: 13px;
  }
  .chart-container {
    height: 220px;
  }
  .dashboard-header {
    margin-bottom: 28px;
  }
  .dashboard-name {
    font-size: 24px;
  }
  .dashboard-avatar {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  .deal-card {
    padding: 20px;
  }
  .deal-card-title {
    font-size: 17px;
  }
}

/* --- Insider Deal --- */
.insider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.insider-code-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.insider-code-row .form-input {
  flex: 1;
}
.insider-code-field {
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* Influencer codes in form */
.influencer-codes-empty {
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 8px 0 12px;
}
.influencer-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(175, 82, 222, 0.06);
  border: 1px solid rgba(175, 82, 222, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
}
.influencer-handle {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 100px;
}
.influencer-code-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--purple-500);
}
.influencer-delete-btn {
  font-size: 14px !important;
}
.influencer-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.influencer-add-row .form-input {
  min-width: 0;
}

/* Handle autocomplete */
.ac-wrapper {
  position: relative;
}
.ac-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  max-height: 180px;
  overflow-y: auto;
}
.ac-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
}
.ac-item:hover,
.ac-item:focus {
  background: var(--surface-secondary);
  outline: none;
}
.ac-item + .ac-item {
  border-top: 1px solid var(--border-default);
}

/* Deal badges container */
.deal-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.deal-badge.insider {
  background: rgba(175, 82, 222, 0.12);
  color: var(--purple-500);
}
.deal-badge.giveaway {
  background: rgba(255, 149, 0, 0.12);
  color: var(--orange-500);
}

/* Insider code row on deal cards */
.deal-card-insider-code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(175, 82, 222, 0.06);
  border: 1px solid rgba(175, 82, 222, 0.15);
  border-radius: var(--radius-md);
}
.insider-code-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--purple-500);
}
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-default);
}
.copy-btn:hover {
  background: rgba(175, 82, 222, 0.1);
  color: var(--purple-500);
}

/* --- Giveaway Recipients --- */
.giveaway-recipients-empty {
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 8px 0 12px;
}
.giveaway-recipient-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 149, 0, 0.06);
  border: 1px solid rgba(255, 149, 0, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
}
.giveaway-recipient-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 100px;
}
.giveaway-recipient-email {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}
.giveaway-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.giveaway-add-row .form-input {
  min-width: 0;
}

/* --- Restaurant Settings --- */
.rs-contact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}
.rs-save-status {
  font-size: 13px;
  font-weight: 500;
}

/* --- Responsive: Mobile (max 768px) --- */
@media (max-width: 768px) {
  .portal-nav {
    padding: 0 16px;
  }
  .portal-container {
    padding: 16px 16px 40px;
  }
  .login-card {
    padding: 32px 20px;
  }
  .type-pills {
    gap: 6px;
  }
  .type-pill {
    padding: 8px 10px;
    font-size: 12px;
  }
  .form-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* ── Post image previews ── */
.post-image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.post-image-thumb {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
}
.post-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.post-card-image {
  margin: 8px 0;
  border-radius: 10px;
  overflow: hidden;
  max-height: 140px;
  position: relative;
}
.post-card-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.post-card-img-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.post-card-deal-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 4px;
  padding: 6px 10px;
  background: rgba(255,59,48,0.06);
  border: 1px solid rgba(255,59,48,0.12);
  border-radius: 8px;
  font-size: 13px;
}
.post-card-deal-icon {
  font-size: 14px;
}
.post-card-deal-name {
  flex: 1;
  color: var(--text-primary, #1a1a1a);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-card-deal-label {
  color: #FF3B30;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
