:root {
    --primary: #FF6B9D;
    --primary-dark: #E85A8B;
    --secondary: #4ECDC4;
    --accent-yellow: #FFD93D;
    --accent-purple: #A594F9;
    --accent-orange: #FF8C42;
    --bg-light: #FFF8F3;
    --bg-white: #FFFFFF;
    --text-dark: #2D3142;
    --text-gray: #6B7280;
    --border: #E5E7EB;
    --success: #10B981;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--accent-yellow) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--secondary) 0%, transparent 50%);
    filter: blur(80px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

header {
    background: var(--bg-white);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Hide nav and header buttons until auth state is resolved to prevent flash of incorrect menu */
.nav-links,
.header-buttons {
    visibility: hidden;
}
.auth-resolved .nav-links,
.auth-resolved .header-buttons {
    visibility: visible;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transform: rotate(-5deg);
}

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

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

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

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-provider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s;
    display: inline-block;
}

.btn-provider:hover {
    transform: translateY(-2px);
}

.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(42px, 8vw, 68px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 50px;
}

.search-bar {
    max-width: 900px;
    margin: 0 auto 30px;
    background: var(--bg-white);
    border-radius: 60px;
    padding: 15px 15px 15px 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.search-inputs {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 15px;
}

.search-bar input, .search-bar select {
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 10px 15px;
    font-family: 'Poppins', sans-serif;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.category-pill {
    background: var(--bg-white);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-pill:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: white;
}

.stats-section {
    background: var(--bg-white);
    padding: 60px 40px;
    margin: 60px 0;
    border-radius: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
}

.activities-section {
    padding: 60px 0;
}

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

.section-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 36px;
    font-weight: 700;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    cursor: pointer;
}

.activity-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.activity-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
}

.activity-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    padding: 1rem;
}
.activity-cover-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
}
.activity-cover-placeholder span {
    font-size: 12px;
}

.activity-capacity-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: flex-start;
}

.activity-capacity-overlay .capacity-badge {
    margin-bottom: 0;
}

.activity-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.activity-content {
    padding: 25px;
}

.activity-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.activity-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.activity-provider {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.activity-organizer-link {
    display: inline-block;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 15px;
}
.activity-organizer-link:hover {
    text-decoration: underline;
}

.activity-details {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.detail-item {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.detail-label {
    color: var(--text-gray);
    font-size: 11px;
    text-transform: uppercase;
}

.detail-value {
    font-weight: 600;
}

.activity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-price {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.activity-price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

.book-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
}

.book-btn-disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Booking confirmation — Jak zapłacić */
.booking-payment-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 2px solid var(--border);
    max-width: 640px;
}
.booking-payment-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    margin: 0 0 24px 0;
    color: var(--text-dark);
}
.booking-payment-block {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border);
}
.booking-payment-block:last-child { margin-bottom: 0; }
.booking-payment-block h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    margin: 0 0 10px 0;
}
.booking-payment-iban {
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    word-break: break-all;
}
.booking-payment-online-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.booking-payment-online-btn:hover { opacity: 0.9; }
@media (max-width: 768px) {
    .booking-payment-card { padding: 24px; }
}

/* Booking page — calendar jump & back-to-form */
.booking-calendar-jump {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.booking-calendar-jump-icon {
  font-size: 28px;
  line-height: 1;
}
.booking-calendar-jump-text {
  flex: 1;
  min-width: 200px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}
.booking-calendar-jump-btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.booking-calendar-jump-btn:hover {
  background: var(--primary);
  color: white;
}
.booking-calendar-back-wrap {
  margin-top: 20px;
  text-align: center;
}
.booking-calendar-back-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.booking-calendar-back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 768px) {
  .booking-page-grid {
    grid-template-columns: 1fr !important;
  }
}

.book-btn-disabled:hover {
    transform: none;
}

/* Capacity badges */
.capacity-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.capacity-full {
    background: #FEE2E2;
    color: #DC2626;
}

.capacity-low {
    background: #FEF3C7;
    color: #D97706;
}

.capacity-ok {
    background: #D1FAE5;
    color: #059669;
}

/* Booking card styles */
.booking-card {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}
.booking-card-unpaid {
    border-color: #F97316;
    background: linear-gradient(to right, #FFF8F3 0%, #fff 100%);
}
.bookings-tab {
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.bookings-tab:hover { background: #F9FAFB; }
.bookings-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.booking-organizer-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.booking-organizer-link:hover { text-decoration: underline; }
.booking-payment-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.booking-payment-badge-paid { background: #D1FAE5; color: #059669; }
.booking-payment-badge-unpaid { background: #FED7AA; color: #C2410C; }
.booking-payment-badge-refunded { background: #E5E7EB; color: #6B7280; }
.booking-payment-badge-waived { background: #E0E7FF; color: #4F46E5; }
.btn-copy-inline {
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    background: #fff;
    cursor: pointer;
}
.btn-copy-inline:hover { background: #F3F4F6; }
.btn-mark-read-one {
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 10px;
    border: 1px solid #D1D5DB;
    background: #fff;
    cursor: pointer;
}
.btn-mark-read-one:hover { background: #F9FAFB; }

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.booking-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.booking-status-confirmed {
    background: #D1FAE5;
    color: #059669;
}

.booking-status-cancelled {
    background: #FEE2E2;
    color: #DC2626;
}

.booking-status-pending {
    background: #FEF3C7;
    color: #D97706;
}

.btn-cancel {
    background: transparent;
    border: 2px solid #DC2626;
    color: #DC2626;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #DC2626;
    color: white;
}

/* Nav bell + notification dropdown (parent & organizer) */
.nav-bell-wrap {
    position: relative;
    margin-right: 12px;
}
.nav-bell-btn {
    position: relative;
    padding: 6px 12px;
    font-size: 1.2em;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    border-radius: 8px;
}
.nav-bell-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}
.nav-notif-badge {
    display: none;
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background: #DC2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-sizing: border-box;
}
.notification-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 360px;
    max-width: 90vw;
    max-height: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}
.notification-dropdown-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 1;
    flex-shrink: 0;
}
.notification-dropdown-header-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
}
.notification-dropdown-header-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.notification-dropdown-header-link:hover {
    text-decoration: underline;
}
.notification-dropdown-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.notification-dropdown-empty {
    padding: 32px 20px;
    text-align: center;
}
.notification-dropdown-empty-msg {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0 0 12px 0;
}
.notification-dropdown-empty-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.notification-dropdown-empty-link:hover {
    text-decoration: underline;
}
.notification-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    background: #fff;
}
.notification-dropdown-item-unread {
    background: rgba(255, 107, 157, 0.06);
    border-left: 4px solid var(--primary);
    padding-left: 14px;
}
.notification-dropdown-item:hover {
    background: #F3F4F6;
}
.notification-dropdown-item-unread:hover {
    background: rgba(255, 107, 157, 0.1);
}
.notification-dropdown-item:last-of-type {
    border-bottom: none;
}
.notification-dropdown-item-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}
.notification-dropdown-item-body {
    flex: 1;
    min-width: 0;
}
.notification-dropdown-item-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-dark);
}
.notification-dropdown-item-activity {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
}
.notification-dropdown-item-preview {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notification-dropdown-item-time {
    font-size: 11px;
    color: var(--text-gray);
    opacity: 0.9;
}

@media (max-width: 480px) {
    .notification-dropdown-panel {
        width: 100%;
        max-width: 90vw;
        max-height: 60vh;
        right: 0;
    }
}

/* Parent dashboard: payment status per booking */
.booking-payment-status {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
}
.booking-payment-paid {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #047857;
}
.booking-payment-paid-icon {
    font-weight: 700;
    margin-right: 6px;
}
.booking-payment-unpaid {
    background: #FFF8F3;
    border: 1px solid #FED7AA;
    color: var(--text-dark);
}
.booking-payment-unpaid-label {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}
.booking-payment-unpaid-content {
    font-size: 13px;
}
.dashboard-payment-block {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.dashboard-payment-block:last-child { margin-bottom: 0; }
.dashboard-payment-block h5 { font-size: 12px; font-weight: 600; color: var(--text-gray); margin: 0 0 6px 0; }
.dashboard-payment-iban { font-family: monospace; font-size: 14px; font-weight: 700; word-break: break-all; }
.dashboard-payment-online-link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}
.dashboard-payment-online-link:hover { opacity: 0.9; }

/* Organizer booking section */
.activity-bookings-section {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.activity-bookings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.bookings-table th,
.bookings-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.bookings-table th {
    font-weight: 600;
    color: var(--text-gray);
    font-size: 12px;
    text-transform: uppercase;
}

/* Date grouping */
.date-group {
    margin-bottom: 20px;
}

.date-group-header {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

/* Booking form error */
.booking-error {
    background: #FEE2E2;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.booking-success {
    background: #D1FAE5;
    color: #059669;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Notification section */
.notifications-section {
    background: white;
    padding: 30px;
    border-radius: 24px;
    margin-bottom: 30px;
}

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

.notifications-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    margin: 0;
}

.notifications-badge {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 10px;
}

.btn-mark-read {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-gray);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mark-read:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    transition: background 0.2s;
}

.notification-item.unread {
    background: #FFF1F5;
    border-color: #FECDD3;
}

.notification-item.read {
    background: #FAFAFA;
    opacity: 0.8;
}

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.notification-dot.unread {
    background: var(--primary);
}

.notification-dot.read {
    background: transparent;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--text-dark);
}

.notification-message {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 4px;
}

.notifications-empty {
    text-align: center;
    color: var(--text-gray);
    padding: 20px 0;
    font-size: 14px;
}

.how-section {
    padding: 80px 0;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.how-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
}

.how-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.how-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
}

.organizer-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 32px;
    padding: 80px 60px;
    color: white;
    margin: 80px 0;
}

.organizer-cta-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.organizer-cta h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 42px;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    margin: 30px 0;
}

.benefits-list li {
    padding: 10px 0;
    font-size: 18px;
}

.cta-emoji {
    font-size: 200px;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

.modal-header h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 32px;
}

.modal-body {
    padding: 40px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-booking {
    width: 100%;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

/* Footer root: injected by footer-inject.js */
#footer-root {
    margin-top: 80px;
}

/* ---------- Public (marketing) footer ---------- */
footer.footer-public,
#footer-root.footer-public {
    background: linear-gradient(135deg, #2D3142 0%, #3d4255 40%, #2a3d4a 100%);
    color: white;
    padding: 48px 0 32px;
}

.footer-public-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-public-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
    margin-bottom: 40px;
}

.footer-public-heading {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--accent-yellow);
}

.footer-public-mission {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.footer-public-trust {
    list-style: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.8;
}

.footer-public-links {
    list-style: none;
}

.footer-public-links li {
    margin-bottom: 10px;
}

.footer-public-links a,
.footer-public-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease, box-shadow 0.2s ease;
}

.footer-public-links a:hover,
.footer-public-bottom a:hover {
    color: white;
    text-decoration: underline;
}

.footer-public-company {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-public-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

@media (max-width: 900px) {
    .footer-public-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .footer-public-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---------- Unified global footer (all pages) ---------- */
#footer-root.footer-unified {
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
    color: var(--text-gray);
    padding: 24px 20px;
    margin-top: 60px;
}

.footer-unified-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-unified-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-unified-left {
    font-size: 14px;
    color: var(--text-gray);
}

.footer-unified-right {
    font-size: 14px;
    color: var(--text-gray);
}

.footer-unified-right a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-unified-right a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-unified-sep {
    margin: 0 8px;
    color: #d1d5db;
}

@media (max-width: 600px) {
    .footer-unified-row {
        flex-direction: column;
        text-align: center;
    }
    .footer-unified-sep {
        display: none;
    }
    .footer-unified-right {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
}

/* ---------- App (minimal) footer ---------- */
footer.footer-app,
#footer-root.footer-app {
    background: transparent;
    color: var(--text-gray);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-app-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-app-text {
    font-size: 14px;
    color: var(--text-gray);
}

.footer-app-text a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-app-text a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Legacy footer classes (for any remaining static markup) */
footer {
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-yellow);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: inherit;
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
    .search-inputs {
        grid-template-columns: 1fr;
    }
    .search-bar {
        grid-template-columns: 1fr;
    }
    .activities-grid {
        grid-template-columns: 1fr;
    }
    .organizer-cta-content {
        grid-template-columns: 1fr;
    }
    .cta-emoji {
        font-size: 120px;
    }
}

/* ========== Session Calendar UI (KK Schedule) – layout & visuals only ========== */
.kk-schedule {
  max-width: 100%;
}

.kk-schedule .session-calendar-section {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.kk-schedule .session-calendar-title {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.kk-schedule .session-calendar-summary {
  background: var(--bg-light) !important;
  border-radius: 12px;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
  font-size: 14px;
  border: 1px solid var(--border);
}

.kk-schedule .session-calendar-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 6px !important;
  font-size: 12px;
}

.kk-schedule .session-calendar-grid > div:not([data-date]) {
  text-align: center;
  font-weight: 600;
  color: var(--text-gray);
  padding: 4px 0;
}

/* Calendar day cell – base: subtle, no full block fill */
.kk-schedule .session-calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f8f9fa;
  color: var(--text-gray);
  cursor: default;
  min-height: 0;
  padding: 4px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.kk-schedule .session-calendar-day.kk-day--hasSession {
  cursor: pointer;
  background: #fff;
  border-color: rgba(255, 107, 157, 0.25);
  color: var(--text-dark);
}

.kk-schedule .session-calendar-day.kk-day--hasSession:hover {
  background: rgba(255, 107, 157, 0.06);
  border-color: rgba(255, 107, 157, 0.4);
}

.kk-schedule .session-calendar-day.kk-day--today {
  box-shadow: 0 0 0 2px var(--primary);
  font-weight: 600;
  color: var(--text-dark);
}

.kk-schedule .session-calendar-day.kk-day--past {
  opacity: 0.85;
}

.kk-schedule .session-calendar-day.kk-day--future {
  /* no extra style */
}

.kk-schedule .session-calendar-day.kk-day--selected {
  background: rgba(255, 107, 157, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
  font-weight: 600;
}

.kk-schedule .session-calendar-day.kk-day--selected.kk-day--today {
  box-shadow: 0 0 0 2px var(--primary);
}

.kk-schedule .session-calendar-day.kk-day--cancelled {
  border-style: dashed;
  opacity: 0.9;
}

.kk-schedule .session-calendar-day.kk-day--attended .kk-day__pill {
  color: var(--success);
}

.kk-schedule .session-calendar-day.kk-day--no_show {
  opacity: 0.8;
}

.kk-schedule .session-calendar-day.kk-day--nextUpcoming {
  box-shadow: 0 0 0 2px var(--accent-yellow);
  background: rgba(255, 217, 61, 0.12);
}

.kk-schedule .kk-nearest-month__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-gray);
  margin: 0 0 6px 0;
}

.kk-schedule .kk-item--nextUpcoming .kk-upcomingItem {
  border-color: var(--primary);
  background: rgba(255, 107, 157, 0.06);
}

.kk-schedule .session-item-attended .kk-upcomingItem__attendance {
  color: var(--success);
}

.kk-schedule .session-item-no_show .kk-upcomingItem {
  opacity: 0.85;
}

.kk-schedule .kk-day__num {
  font-size: 0.85em;
  line-height: 1.2;
}

.kk-schedule .kk-day__pill {
  font-size: 0.7em;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.kk-schedule .kk-day--selected .kk-day__pill {
  color: var(--primary-dark);
}

.kk-schedule .kk-day__dots {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-top: 1px;
}

.kk-schedule .kk-day__dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.8;
}

.kk-schedule .session-calendar-day-detail {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Upcoming list – structured card */
.kk-schedule .session-calendar-nearest {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kk-schedule .session-calendar-nearest .session-calendar-agenda-item {
  padding: 0;
  border-bottom: none;
}

.kk-schedule .kk-upcomingItem {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: baseline;
}

.kk-schedule .kk-upcomingItem__date {
  font-weight: 600;
  color: var(--text-dark);
}

.kk-schedule .kk-upcomingItem__time {
  color: var(--text-gray);
  font-size: 0.9em;
}

.kk-schedule .kk-upcomingItem__cancelled {
  color: var(--text-gray);
  font-size: 0.85em;
}

.kk-schedule .kk-upcomingItem__attendance {
  font-size: 0.85em;
  color: var(--success);
}

/* ========== Parent mobile-first (activity listing, booking, dashboard) ========== */
/* Mobile: default; Tablet: 768px+; Desktop: 1024px+ */
.parent-site .container { padding-left: 16px; padding-right: 16px; }
.parent-site .activities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.parent-site .activity-card {
  min-height: 0;
  border-radius: 20px;
  padding-bottom: 0;
}
.parent-site .activity-content { padding: 18px 20px 20px; }
.parent-site .activity-title { font-size: 20px; }
.parent-site .activity-footer {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.parent-site .activity-price { font-size: 24px; }
.parent-site .book-btn {
  min-height: 48px;
  min-width: 140px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  flex: 1;
  max-width: 100%;
}
.parent-site .activity-details {
  flex-wrap: wrap;
  gap: 12px;
}
.parent-site .detail-item { min-width: 0; }
.parent-site .capacity-badge {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}
.parent-site .filters-section { padding: 20px; border-radius: 20px; }
.parent-site .filter-row { grid-template-columns: 1fr; gap: 16px; }
.parent-site .form-group input,
.parent-site .form-group select {
  min-height: 48px;
  font-size: 16px;
}
@media (min-width: 768px) {
  .parent-site .activities-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .parent-site .filter-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (min-width: 1024px) {
  .parent-site .activities-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
}

/* Booking page: mobile layout, sticky CTA */
.parent-site .booking-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.parent-site .submit-booking {
  min-height: 52px;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  border-radius: 14px;
  margin-top: 8px;
}
@media (min-width: 768px) {
  .parent-site .booking-page-grid { grid-template-columns: 1.5fr 1fr; gap: 32px; }
}
@media (min-width: 1024px) {
  .parent-site .booking-page-grid { grid-template-columns: 1.5fr 1fr; }
}

/* Parent dashboard: status badges, tap-friendly cards */
.parent-site .booking-card {
  padding: 18px 20px;
  border-radius: 16px;
  min-height: 0;
}
.parent-site .booking-card-inner { gap: 16px; }
.parent-site .session-row,
.parent-site a.session-row {
  min-height: 48px;
  padding: 14px 16px;
}
.parent-site .btn-secondary,
.parent-site .btn-primary {
  min-height: 44px;
  padding: 12px 20px;
  font-size: 15px;
}
.parent-site .bookings-tab {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}
/* Status badge colors (parent dashboard) */
.parent-site .booking-card-unpaid { border-left: 4px solid #D97706; }
.parent-site [data-status="CONFIRMED"] .status-badge,
.parent-site .status-badge.confirmed { color: #059669; font-weight: 600; }
.parent-site [data-status="CANCELLED_BY_PARENT"],
.parent-site [data-status="CANCELLED_BY_ORGANIZER"],
.parent-site [data-status="LATE_CANCEL"] .status-badge { color: #DC2626; }
.parent-site [data-status="ATTENDED"] .status-badge { color: #059669; }
