/* Admin Panel Styles - Integrates with main site */

/* Define missing CSS variables */
:root {
    --primary-dark-blue: #1a3a52;
}

/* Login Screen */
.admin-login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--secondary-color) 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.login-card h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.login-card .subtitle {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
}

.error-message {
    margin-top: 20px;
    padding: 14px;
    background-color: #fff5f5;
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-sm);
    color: var(--primary-red);
    font-size: 0.9rem;
    font-family: var(--font-body);
    display: none;
}

.error-message.show {
    display: block;
}

/* Admin Dashboard */
.admin-dashboard {
    padding-top: 0;
    min-height: 100vh;
    background: var(--gray-light);
}

.admin-header-bar {
    background: var(--white);
    border-bottom: 2px solid var(--gray-medium);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Make tabs container also sticky, positioned below header */
.tabs-container {
    position: sticky;
    top: 72px; /* Height of admin header bar */
    background: #f8f9fa;
    z-index: 99;
    padding-top: 1rem;
    margin: -1rem -0.5rem 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    z-index: 999;
    margin-top: 0;
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-dark);
    text-transform: uppercase;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    flex-wrap: nowrap;
}

.user-info span {
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.user-role {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.admin-business-select {
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    min-width: 200px;
    transition: all 0.2s ease;
}

.admin-business-select:hover {
    border-color: var(--primary-color);
}

.admin-business-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
}

.user-role.role-super-admin {
    background: var(--secondary-yellow-gold);
    color: var(--primary-red);
}

.user-role.role-admin {
    background: var(--primary-teal);
    color: var(--white);
}

.user-role.role-employee {
    background: #f7d7a3;
    color: var(--text-dark);
}

.user-role.role-merchant {
    background: #d6e7ff;
    color: #0b4a74;
}

.user-role.role-user {
    background: var(--gray-medium);
    color: var(--text-dark);
}

.admin-main {
    padding: 40px 0 60px;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Tabs */
.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid var(--gray-medium);
    padding-bottom: 10px;
}

.tab-btn {
    background: var(--white);
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.tab-btn.active,
.tab-btn[aria-selected="true"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.tab-btn:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.tab-panels {
    width: 100%;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.settings-section,
.users-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    text-transform: uppercase;
}

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

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.setting-card {
    display: flex;
    flex-direction: column;
}

.setting-card.full-width {
    grid-column: 1 / -1;
}

.setting-card label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-family: var(--font-heading);
}

.setting-input {
    padding: 14px;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    width: 100%;
}

.setting-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
}

.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hours-container {
    display: grid;
    grid-template-columns: 1fr minmax(0, 400px);
    gap: 12px;
    align-items: start;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.hours-container.collapsed {
    display: none;
}

.closed-dates-column {
    background: #f8f9fb;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-medium);
}

.closed-dates-column h4 {
    margin: 0 0 12px 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.closed-date-item {
    display: grid;
    grid-template-columns: 130px 1fr 40px;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background: white;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.closed-date-item input[type="date"] {
    padding: 6px 8px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.closed-date-item input[type="text"] {
    padding: 6px 8px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.btn-remove-closed-date {
    width: 32px;
    height: 32px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remove-closed-date:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.btn-add-closed-date {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-add-closed-date:hover {
    background: var(--secondary-bright-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hours-grid.collapsed {
    display: none;
}

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

.collapsible-header label {
    margin: 0;
}

.collapse-toggle {
    border: 1px solid var(--gray-medium);
    background: #f7f7f7;
    color: var(--text-dark);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.collapse-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.day-row {
    display: grid;
    grid-template-columns: 100px 90px 1fr;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    background: #fafafa;
    min-height: 32px;
}

.day-label {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

.closed-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.closed-toggle input {
    width: 16px;
    height: 16px;
}

.time-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.time-input {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-input input {
    width: 68px;
    padding: 7px 9px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.time-input select {
    width: 74px;
    padding: 7px 9px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    background: #fdfdfd;
    font-size: 0.95rem;
}

.time-separator {
    font-weight: 700;
    color: var(--text-light);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #e1e4ea;
    border-radius: 18px;
    background: #f8f9fb;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-pill input {
    margin: 0;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.subcategory-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.subcategory-label {
    min-width: 90px;
    color: #314155;
    font-weight: 600;
}

.help-text {
    display: block;
    margin-top: 2px;
    color: #4d5c70;
    font-size: 12px;
}

.tight-grid {
    gap: 10px;
}

.coords-inline {
    display: flex;
    gap: 10px;
}

.coords-inline input {
    flex: 1;
    min-width: 0;
}

.wide-row .latlng-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--gray-medium);
    font-weight: 700;
    font-size: 12px;
    color: var(--text-dark);
    cursor: help;
    background: #f9fafb;
}

.social-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1.5px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    background: #fafafa;
}

.social-label {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.social-field input {
    padding: 11px 12px;
    border: 1.5px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.setting-input textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-body);
}

.form-help {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

#saveSettingsBtn {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 35px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

#saveSettingsBtn:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.status-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    display: none;
}

.status-message.show {
    display: block;
}

.status-message.success {
    background-color: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.status-message.info {
    background-color: #e0f2fe;
    border: 2px solid #3b82f6;
    color: #1d4ed8;
}

.status-message.error {
    background-color: #fff5f5;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.status-message.info {
    background-color: #e0f2fe;
    border: 2px solid #3b82f6;
    color: #1d4ed8;
}

/* Users Section */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-item {
    padding: 16px;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.user-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.user-item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-item-email {
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1rem;
}

.user-item-role {
    font-size: 0.85rem;
    color: var(--text-light);
    font-family: var(--font-body);
    text-transform: uppercase;
}

/* User Groups */
.users-grouped-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.user-group {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.user-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s;
}

.user-group-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.user-group-header.admins {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom-color: #f59e0b;
}

.user-group-header.employees {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-bottom-color: #3b82f6;
}

.user-group-header.merchants {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-bottom-color: #22c55e;
}

.user-group-icon {
    font-size: 1.5rem;
}

.user-group-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    flex: 1;
}

.user-group-count {
    background: rgba(0,0,0,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.user-group-items {
    padding: 0.5rem;
}

.user-group-items .user-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    padding: 1rem 1.25rem;
    margin: 0;
}

.user-group-items .user-item:last-child {
    border-bottom: none;
}

.user-group-items .user-item:hover {
    background: #f8fafc;
    box-shadow: none;
}

.user-item-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.user-item-email {
    font-weight: 400;
    color: #64748b;
    font-size: 0.9rem;
}

.user-item-business {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #059669;
    background: #ecfdf5;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.35rem;
}

.user-item-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.user-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.no-users-message {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

.loading {
    text-align: center;
    color: #94a3b8;
    padding: 40px 22px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    position: relative;
}

.loading::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary-dark-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================
   BUSINESSES - PREMIUM REDESIGN
   ========================================== */

.business-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search-wrap {
    position: relative;
}

.search-wrap::before {
    content: '\1F50D';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.search-wrap input {
    width: 300px;
    max-width: 100%;
    padding: 11px 14px 11px 38px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.search-wrap input:focus {
    border-color: var(--primary-dark-blue);
    box-shadow: 0 0 0 4px rgba(26, 58, 82, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    outline: none;
}

.search-wrap input::placeholder {
    color: #94a3b8;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 16px;
    border-radius: 24px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.chip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.chip:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.chip:active {
    transform: translateY(0);
}

.chip.active {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(26, 58, 82, 0.35);
    font-weight: 600;
}

.chip.active:hover {
    box-shadow: 0 4px 16px rgba(26, 58, 82, 0.45);
    transform: translateY(-1px);
}

.chip.chip-warning {
    border-color: #fbbf24;
    background: #fffbeb;
    color: #92400e;
}

.chip.chip-warning.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
}

/* Business Card - Premium Style */
.business-card {
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark-blue), #0c4a6e, var(--primary-color));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.business-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
}

.business-card:hover::before {
    opacity: 1;
}

.business-card .business-card-header {
    padding: 18px 20px 10px;
}

.business-card .business-card-header h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.business-card .business-card-body {
    padding: 0 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.business-card .business-detail {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.business-card .business-detail a {
    color: var(--primary-dark-blue);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed rgba(26, 58, 82, 0.3);
    transition: all 0.2s ease;
}

.business-card .business-detail a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.business-card .business-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.business-card .business-actions {
    padding: 12px 20px 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

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

.modal-actions .action-pair {
    display: flex;
    gap: 8px;
}

.duplicate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 12px 0 10px;
}

.duplicate-card {
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    background: #fafafa;
}

.duplicate-card h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.duplicate-details {
    display: grid;
    gap: 6px;
    font-size: 0.92rem;
}

.duplicate-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 6px;
}

.duplicate-label {
    font-weight: 700;
    color: #314155;
}

.duplicate-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 4px;
}

.image-preview {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-medium);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.image-preview img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 6px;
    cursor: pointer;
}

/* New Image Upload Section */
.image-upload-section {
    background: var(--gray-light);
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-medium);
}

.image-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.image-upload-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.image-preview-box {
    width: 100%;
    height: 70px;
    border-radius: var(--radius-sm);
    border: 2px dashed var(--gray-medium);
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-preview-box .preview-placeholder {
    font-size: 0.7rem;
    color: var(--gray-dark);
}

.upload-controls {
    display: flex;
    gap: 4px;
    width: 100%;
}

.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

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

.url-input-small {
    flex: 1;
    min-width: 0;
    padding: 4px 6px;
    font-size: 0.7rem;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
}

.url-input-small::placeholder {
    color: var(--gray-dark);
}

.image-modal .modal {
    width: 380px;
    max-width: 90vw;
}

.image-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.image-modal-body img {
    width: 350px;
    height: 350px;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    background: #fff;
}

.image-modal .modal-subtitle {
    margin: 0;
    text-align: center;
}

.modal-subtitle {
    margin: 4px 0 10px;
    color: #4d5c70;
    font-size: 0.95rem;
}

.businesses-section .form-group {
    margin-bottom: 10px;
}

/* Roles & permissions */
.roles-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.role-card {
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    padding: 18px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-card h4 {
    margin: 0;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.role-perms {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.perm-label {
    font-family: var(--font-body);
    color: var(--text-dark);
}

.toggle {
    position: relative;
    width: 46px;
    height: 26px;
}

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

.toggle span {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.toggle span:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    top: 4px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-sm);
}

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

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

.role-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Operations scaffold */
.ops-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

/* Ensure bookings section shows all content */
.ops-section[data-tab-panel="bookings"],
section[data-tab-panel="bookings"] {
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
}

.section-subtitle {
    margin: 0;
    color: var(--text-light);
    font-family: var(--font-body);
}

.ops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.events-filters {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: end;
    margin: 14px 0 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.events-filters input[type="search"],
.events-filters select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.events-filters select {
    padding-right: 36px;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23334155\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3e%3cpolyline points=\"6 9 12 15 18 9\"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.events-filters input[type="search"]:hover,
.events-filters select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(196, 29, 21, 0.1);
}

.events-filters input[type="search"]:focus,
.events-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
}

.events-filters label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.events-note {
    background: #f8fafc;
    border: 1px dashed var(--gray-medium);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    position: relative;
    z-index: auto;
}

/* Event Card Admin Styles - Updated */
.event-card-admin {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: visible;
    transition: all 0.2s ease;
    position: relative;
}

.event-card-admin:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.event-thumbnail {
    width: 140px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: white;
}

.event-card-header {
    padding: 0;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(to bottom, #fafafa 0%, white 100%);
}

.event-card-title-section {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
}

.event-title-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.event-card-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.event-date-display {
    margin: 0;
    padding: 24px 20px;
    background: var(--primary-dark-blue);
    border-radius: 8px 8px 0 0;
}

.event-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.event-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.event-badge.published { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.event-badge.draft { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.event-badge.archived { background: #6b7280; color: white; border: 1px solid #4b5563; }
.event-badge.featured { background: #f3e8ff; color: #7c3aed; border: 1px solid #d8b4fe; }
.event-badge.past { background: #9ca3af; color: white; border: 1px solid #6b7280; font-size: 0.7rem; }
.event-badge.recurring { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; font-size: 0.7rem; }

/* Events Table View Styling */
.events-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.events-table thead {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #1e3a5f 100%);
    color: white;
}

.events-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.events-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    vertical-align: middle;
}

.events-table tbody tr:hover {
    background: #f8fafc;
}

.events-table tbody tr.past-row {
    opacity: 0.6;
    background: #fafafa;
}

.events-table .date-col {
    white-space: nowrap;
    font-weight: 500;
    color: var(--primary-dark-blue);
}

.events-table .title-col {
    font-weight: 600;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.events-table .venue-col {
    color: #64748b;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.events-table .status-col {
    white-space: nowrap;
}

.events-table .status-col .event-badge {
    margin-right: 4px;
}

.events-table .actions-col {
    white-space: nowrap;
}

.events-table .actions-col .btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    margin-right: 4px;
}

.events-list-table {
    overflow-x: auto;
}

/* Past and archived event card styling */
.event-card-admin.past-event {
    opacity: 0.75;
    border-left: 4px solid #9ca3af;
}

.event-card-admin.archived-event {
    opacity: 0.65;
    border-left: 4px solid #6b7280;
    background: #f9fafb;
}

.event-card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.event-info-row-single {
    display: block;
}

.event-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.event-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.event-info-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Date Badge Styles */
.event-date-badge {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.event-time-badge {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.2;
    margin-left: 12px;
}

.event-date-display {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.event-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.event-chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.event-link-row {
    margin-top: 4px;
}

.event-external-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.event-external-link:hover {
    text-decoration: underline;
}

.event-card-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
    display: flex;
    gap: 10px;
}

.event-card-footer .btn {
    flex: 1;
    font-weight: 600;
}

.btn-outline-danger {
    background: white;
    color: #dc2626;
    border: 2px solid #fca5a5;
}

.btn-outline-danger:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

.op-card {
    border: 2px dashed var(--gray-medium);
    border-radius: var(--radius-sm);
    padding: 20px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.op-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* ====================================
   ADMIN CALENDAR STYLES
   ==================================== */

.calendar-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-filters .filter-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-filters label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-filters select {
    padding: 12px 40px 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    background: white;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23334155\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3e%3cpolyline points=\"6 9 12 15 18 9\"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: var(--text-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-width: 180px;
}

.calendar-filters select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(196, 29, 21, 0.1);
}

.calendar-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
}

.admin-calendar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #1e3a5f 100%);
    color: white;
    flex-wrap: wrap;
    gap: 20px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.calendar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 1);
    color: var(--primary-dark-blue);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.calendar-nav-btn:hover {
    background: white;
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: var(--primary-color);
}

/* Calendar Grid Layout */
#calendarGrid,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    background: white;
    border: 1px solid #e2e8f0;
}

.calendar-day-header {
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f8fafc;
    color: var(--text-dark);
    border-bottom: 2px solid #e2e8f0;
}

/* EVENTS CALENDAR DAY - Large cells for event drag/drop */
.admin-calendar .calendar-day,
#calendarGrid .calendar-day {
    min-height: 120px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.admin-calendar .calendar-day:hover,
#calendarGrid .calendar-day:hover {
    background: #f8fafc;
    box-shadow: inset 0 0 0 2px var(--primary-color);
    z-index: 10;
}

.admin-calendar .calendar-day.other-month,
#calendarGrid .calendar-day.other-month {
    background: #fafafa;
    opacity: 0.5;
}

.admin-calendar .calendar-day.today,
#calendarGrid .calendar-day.today {
    background: linear-gradient(135deg, rgba(196, 29, 21, 0.08) 0%, rgba(196, 29, 21, 0.02) 100%);
    border: 2px solid var(--primary-color);
}

.admin-calendar .calendar-day-number,
#calendarGrid .calendar-day-number {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.admin-calendar .calendar-day.today .calendar-day-number,
#calendarGrid .calendar-day.today .calendar-day-number {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

.calendar-event-item {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b8251d 100%);
    color: white;
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: grab;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.calendar-event-item.draft {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.calendar-event-item.featured {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.calendar-event-item.archived {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    opacity: 0.7;
}

.calendar-event-item:active {
    cursor: grabbing;
}

.calendar-day.drag-over {
    background: rgba(196, 29, 21, 0.1);
    box-shadow: inset 0 0 0 3px var(--primary-color);
}

.calendar-more-events {
    font-size: 0.7rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
    cursor: pointer;
}

.calendar-more-events:hover {
    text-decoration: underline;
}

.op-card h4 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.op-card p {
    margin: 0 0 12px;
    color: var(--text-light);
    font-family: var(--font-body);
}

.badge.soon {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2147483647 !important;
    padding: 20px !important;
    overflow-y: auto !important;
    backdrop-filter: blur(3px) !important;
}

.modal-overlay.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fallback: also show when aria-hidden is false to override any stray styles */
.modal-overlay[aria-hidden="false"] {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.modal {
    background: var(--white) !important;
    border-radius: var(--radius-md);
    padding: 30px;
    position: relative !important;
    width: min(1200px, 95%) !important;
    max-height: 95vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    z-index: 2147483647 !important;
    border: 3px solid var(--primary-red) !important;
    margin: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.export-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid var(--gray-medium);
}

.export-fields label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px 0;
    transition: color 0.2s;
}

.export-fields label:hover {
    color: var(--primary-red);
}

.export-fields input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 2px solid var(--gray-medium);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

.checkbox-pill:hover {
    background: #e8e8e8;
    border-color: var(--primary-red);
}

.checkbox-pill input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.checkbox-pill input[type="checkbox"]:checked + span {
    color: var(--primary-red);
    font-weight: 600;
}

.checkbox-pill:has(input:checked) {
    background: #fff;
    border-color: var(--primary-red);
    box-shadow: 0 2px 4px rgba(196, 29, 21, 0.1);
}

.subcategory-grid {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.subcategory-field {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 12px;
}

.subcategory-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-dark);
    text-align: right;
}

.subcategory-field input {
    width: 100%;
}

/* Modal form elements */
.modal select,
.modal input:not([type="checkbox"]):not([type="radio"]),
.modal textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fdfdfd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal select:focus,
.modal input:not([type="checkbox"]):not([type="radio"]):focus,
.modal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.12);
}

.modal select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--primary-dark-blue) 50%),
        linear-gradient(135deg, var(--primary-dark-blue) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: var(--font-heading);
    letter-spacing: 0.2px;
}

/* Business modal layout improvements (desktop) */
#businessModal .modal {
    width: min(820px, 100%);
}

#businessModal .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px 20px;
}

.modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Businesses - Section Wrapper */
.businesses-section {
    background: #ffffff;
    padding: 32px 36px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.businesses-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark-blue) 0%, #0c4a6e 40%, var(--primary-color) 100%);
}

.businesses-section .section-title {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #1e293b 0%, var(--primary-dark-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.businesses-section .section-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 4px;
}

.section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.view-toggle-group {
    display: flex;
    gap: 5px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px;
    background: #f8fafc;
}

.btn-icon {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: white;
    color: var(--text-dark);
}

.btn-icon.active {
    background: var(--primary-dark-blue);
    color: #ffd700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-dark-blue);
}

.btn-icon.active span {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

.businesses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    animation: fadeInGrid 0.4s ease-out;
}

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

.business-card-admin {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.business-card-admin::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark-blue), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.business-card-admin:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.business-card-admin:hover::after {
    opacity: 1;
}

.business-card-admin h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.business-meta {
    font-size: 0.88rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.5;
}

.business-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.quick-category-select {
    padding: 7px 12px;
    font-size: 0.82rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    max-width: 130px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: #475569;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.quick-category-select:hover:not(:disabled) {
    border-color: var(--primary-dark-blue);
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.quick-category-select:focus {
    outline: none;
    border-color: var(--primary-dark-blue);
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.12);
    background: #ffffff;
}

.quick-category-select:disabled {
    cursor: wait;
    background: #f8fafc;
    opacity: 0.6;
}

/* Tags - Premium Pill Style */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid transparent;
    line-height: 1.4;
}

.tag.active,
.tag.status-active {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.2);
}

.tag.inactive,
.tag.status-inactive {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.15);
}

.tag.status-deleted {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.2);
}

.tag.status-warning {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #9a3412;
    border-color: rgba(251, 146, 60, 0.2);
    animation: subtlePulse 2s infinite;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

/* Deleted Business Card */
.business-card.deleted-business {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fbbf24;
    opacity: 0.85;
}

.business-card.deleted-business::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    opacity: 1;
}

.business-card.deleted-business:hover {
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2);
    opacity: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Buttons - Premium */
.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn:hover::after {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark-blue);
    border: 1.5px solid #cbd5e1;
}

.btn-outline:hover {
    background: var(--primary-dark-blue);
    color: #ffffff;
    border-color: var(--primary-dark-blue);
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.2);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(26, 58, 82, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a2540 0%, var(--primary-dark-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 82, 0.35);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    padding: 10px 20px;
    font-size: 0.85rem;
    border: 1.5px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 0 1.5rem;
    }

    .admin-header-content h2 {
        font-size: 1.4rem;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
    }

    .login-card {
        padding: 40px 30px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-section,
    .users-section {
        padding: 25px 20px;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Operations Sub-Tabs - Premium Style */
.ops-tabs-container {
    margin-top: 28px;
    position: relative;
    z-index: auto;
}

.ops-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 28px;
    overflow-x: auto;
    padding: 0 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ops-tabs::-webkit-scrollbar {
    display: none;
}

.ops-tab-btn {
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.ops-tab-btn:hover {
    color: var(--primary-dark-blue);
    background: rgba(26, 58, 82, 0.04);
}

.ops-tab-btn.active {
    color: var(--primary-dark-blue);
    border-bottom-color: var(--primary-dark-blue);
    background: rgba(26, 58, 82, 0.06);
}

.ops-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    overflow: visible;
}

.ops-tab-content.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* Ensure all content inside active tab is visible */
.ops-tab-content.active .section-header-row,
.ops-tab-content.active .section-actions,
.ops-tab-content.active .sallie-section,
.ops-tab-content.active .calendar-view-controls,
.ops-tab-content.active .calendar-legend,
.ops-tab-content.active .calendar-controls,
.ops-tab-content.active .calendar-summary,
.ops-tab-content.active h4,
.ops-tab-content.active h5,
.ops-tab-content.active p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Calendar grid needs grid display, not block */
.ops-tab-content.active .calendar-grid,
.ops-tab-content.active #calendarGrid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ops-tab-content.active .section-header-row,
.ops-tab-content.active .section-actions {
    display: flex !important;
}

.ops-tab-content.active .calendar-view-controls,
.ops-tab-content.active .calendar-legend,
.ops-tab-content.active .calendar-controls {
    display: flex !important;
    flex-wrap: wrap !important;
}

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

.ops-content-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.ops-content-subtitle {
    margin: 0;
    color: #94a3b8;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ops-booking-card-large {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 30px auto;
}

.ops-booking-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.ops-booking-card-large .ops-booking-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.ops-booking-card-large p {
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.ops-booking-card-large .btn {
    margin-top: 10px;
}

/* ====================================
   SALLIE/BOOKING SECTION CONTAINER
   ==================================== */
.sallie-section {
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
}

.sallie-section h5 {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0 0 4px;
    font-weight: 700;
    display: block !important;
}

.sallie-section > p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0 0 12px;
    display: block !important;
}

/* Ensure all content inside sallie-section is visible */
.sallie-section .calendar-view-controls,
.sallie-section .calendar-legend,
.sallie-section .calendar-controls,
.sallie-section .calendar-summary,
.sallie-section .selection-info {
    display: flex !important;
    visibility: visible !important;
}

.sallie-section .calendar-summary {
    display: block !important;
}

/* Legacy calendar-header outside sallie-section - for events calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--radius-md);
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.calendar-view-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-view-controls label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.calendar-view-controls .btn.active {
    background: linear-gradient(135deg, #c41d15 0%, #a01812 100%) !important;
    color: #ffffff !important;
}

.calendar-legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--radius-sm);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

/* ====================================
   BOOKING CALENDARS (Sallie, Dilgert, Rose Trunk)
   Scoped to .sallie-section to avoid conflict with events calendar
   ==================================== */

/* ====================================
   BOOKING CALENDAR GRID - NUCLEAR OPTION
   Force absolute clean compact layout - no gray, no padding
   ==================================== */
.sallie-section .calendar-grid,
.sallie-section > .calendar-grid,
#sallieDayToursCalendar,
#sallieOvernightCalendar,
#dilgertCalendar,
#roseTrunkCalendar,
div#sallieDayToursCalendar,
div#sallieOvernightCalendar,
div#dilgertCalendar,
div#roseTrunkCalendar {
    display: block !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 10px !important;
    margin: 0 0 12px 0 !important;
    box-shadow: none !important;
    border: 1px solid #d1d5db !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    aspect-ratio: unset !important;
    flex: none !important;
    align-self: auto !important;
    justify-self: auto !important;
}

/* Remove any weird flexbox alignment that pushes content down */
.sallie-section {
    display: block !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

/* Only show active tab content - don't force display on inactive tabs */
.ops-tab-content[data-ops-tab-panel="sallie-day"].active,
.ops-tab-content[data-ops-tab-panel="sallie-overnight"].active {
    display: block !important;
}

/* BOOKING CALENDAR HEADER - Navigation Row - Override ALL defaults */
.sallie-section .calendar-header,
#sallieDayToursCalendar .calendar-header,
#sallieOvernightCalendar .calendar-header,
#dilgertCalendar .calendar-header,
#roseTrunkCalendar .calendar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-bottom: 12px !important;
    padding: 8px 12px !important;
    background: transparent !important;
    border-bottom: none !important;
    border: none !important;
    color: #1e293b !important;
    min-height: auto !important;
    height: auto !important;
}

.sallie-section .calendar-header h3,
#sallieDayToursCalendar .calendar-header h3,
#sallieOvernightCalendar .calendar-header h3,
#dilgertCalendar .calendar-header h3,
#roseTrunkCalendar .calendar-header h3 {
    margin: 0 !important;
    color: #1e293b !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    min-width: 180px !important;
    text-align: center !important;
    background: transparent !important;
}

.sallie-section .calendar-header .btn,
#sallieDayToursCalendar .calendar-header .btn,
#sallieOvernightCalendar .calendar-header .btn,
#dilgertCalendar .calendar-header .btn,
#roseTrunkCalendar .calendar-header .btn {
    background: linear-gradient(135deg, #c41d15 0%, #a01812 100%) !important;
    color: white !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

.sallie-section .calendar-header .btn:hover,
#sallieDayToursCalendar .calendar-header .btn:hover,
#sallieOvernightCalendar .calendar-header .btn:hover,
#dilgertCalendar .calendar-header .btn:hover,
#roseTrunkCalendar .calendar-header .btn:hover {
    background: linear-gradient(135deg, #a01812 0%, #8b0000 100%) !important;
    transform: scale(1.05) !important;
}

/* BOOKING CALENDAR WEEKDAYS - Force grid layout */
.sallie-section .calendar-weekdays,
#sallieDayToursCalendar .calendar-weekdays,
#sallieOvernightCalendar .calendar-weekdays,
#dilgertCalendar .calendar-weekdays,
#roseTrunkCalendar .calendar-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 3px !important;
    margin-bottom: 6px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #64748b !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: transparent !important;
}

.sallie-section .calendar-weekdays > div,
#sallieDayToursCalendar .calendar-weekdays > div,
#sallieOvernightCalendar .calendar-weekdays > div,
#dilgertCalendar .calendar-weekdays > div,
#roseTrunkCalendar .calendar-weekdays > div {
    padding: 6px 2px !important;
    background: #f1f5f9 !important;
    border-radius: 4px !important;
}

/* BOOKING CALENDAR DAYS GRID - Force grid layout */
.sallie-section .calendar-days,
#sallieDayToursCalendar .calendar-days,
#sallieOvernightCalendar .calendar-days,
#dilgertCalendar .calendar-days,
#roseTrunkCalendar .calendar-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 3px !important;
    background: transparent !important;
}

/* BOOKING CALENDAR INDIVIDUAL DAY - Compact for tour calendars */
.sallie-section .calendar-day,
.sallie-section .calendar-days .calendar-day,
#sallieDayToursCalendar .calendar-day,
#sallieOvernightCalendar .calendar-day,
#dilgertCalendar .calendar-day,
#roseTrunkCalendar .calendar-day {
    width: 100% !important;
    padding: 4px 2px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 6px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    position: relative !important;
    font-size: 0.75rem !important;
    min-height: 50px !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: white !important;
    overflow: visible !important;
}

/* More bookings indicator */
.more-bookings {
    background: linear-gradient(135deg, #c41d15 0%, #a01812 100%) !important;
    color: white !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin-top: 2px !important;
}

.more-bookings:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(196, 29, 21, 0.3);
}

.sallie-section .calendar-day:hover:not(.empty) {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    z-index: 10;
}

.sallie-section .calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
    box-shadow: none;
}

.sallie-section .calendar-day.available {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    border-color: #28a745;
}

.sallie-section .calendar-day.available:hover {
    background: linear-gradient(135deg, #c3e6cb 0%, #d4edda 100%);
    border-color: #218838;
}

.sallie-section .calendar-day.booked {
    background: linear-gradient(135deg, #f8d7da 0%, #ffebee 100%);
    border-color: #dc3545;
    color: #721c24;
}

.sallie-section .calendar-day.booked:hover {
    background: linear-gradient(135deg, #f5c6cb 0%, #f8d7da 100%);
    border-color: #c82333;
}

.sallie-section .calendar-day.blocked {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #f87171;
    color: #991b1b;
}

.sallie-section .calendar-day.blocked:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    border-color: #ef4444;
}

.sallie-section .calendar-day.past {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
    opacity: 0.6;
    cursor: default;
}

.sallie-section .calendar-day.past .day-number {
    color: #94a3b8;
}

.sallie-section .calendar-day.selected {
    border: 3px solid var(--primary-dark-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2), 0 4px 8px rgba(0, 51, 102, 0.25);
    transform: scale(1.02);
    z-index: 20;
}

/* BOOKING CALENDAR DAY NUMBER */
.sallie-section .day-number {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e293b;
    line-height: 1.1;
    padding: 2px 0;
    text-align: center;
}

.booking-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin-top: 4px;
    flex: 1;
}

.booking-list > div {
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.3;
    padding: 3px 4px;
    border-radius: 3px;
}

.booking-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-dark-blue);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calendar-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.calendar-view-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.calendar-view-controls label {
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-right: 0.5rem;
}

.calendar-view-controls .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.calendar-view-controls .btn-sm.active {
    background: linear-gradient(135deg, #c41d15 0%, #a01812 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(196, 29, 21, 0.3) !important;
}

.calendar-legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    justify-content: center;
}

.calendar-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-summary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.calendar-summary h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary-dark-blue);
    font-weight: 700;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.calendar-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.calendar-summary li {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calendar-summary li:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.calendar-summary li strong {
    color: var(--primary-dark-blue);
    font-weight: 700;
}

.selection-info {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    border: 2px solid var(--primary-dark-blue);
    color: #01579b;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 51, 102, 0.15);
}

.selection-info strong {
    color: var(--primary-dark-blue);
}

.calendar-week-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.week-day {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-height: 200px;
}

.week-day h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.booking-item {
    padding: 0.5rem;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.day-detail-view {
    padding: 1rem;
}

.booking-detail-card {
    background: var(--white);
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.booking-detail-card h5 {
    margin-top: 0;
    color: var(--primary-dark-blue);
}

.year-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.year-month {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    text-align: center;
}

.year-month h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .ops-tabs {
        gap: 4px;
    }
    
    .ops-tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .ops-booking-card-large {
        padding: 30px 20px;
    }
    
    /* Mobile booking calendars (scoped to .sallie-section) */
    .sallie-section .calendar-days {
        gap: 2px !important;
    }
    
    .sallie-section .calendar-day {
        padding: 0.25rem !important;
        font-size: 0.7rem !important;
        min-height: 40px !important;
    }
    
    .sallie-section .calendar-day .day-number {
        font-size: 0.75rem !important;
    }
    
    .sallie-section .calendar-weekdays {
        gap: 2px !important;
    }
    
    .sallie-section .calendar-weekdays > div {
        padding: 0.3rem !important;
        font-size: 0.6rem !important;
    }
    
    .sallie-section .calendar-grid {
        padding: 0.75rem !important;
    }
    
    .sallie-section .calendar-header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem !important;
    }
    
    .sallie-section .calendar-header h3 {
        font-size: 1rem !important;
    }
    
    .calendar-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .calendar-nav-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
    
    .calendar-legend {
        gap: 0.5rem !important;
        padding: 0.5rem !important;
        font-size: 0.7rem !important;
        flex-wrap: wrap;
    }
    
    .calendar-legend .legend-item {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.65rem !important;
    }
    
    .legend-color {
        width: 12px !important;
        height: 12px !important;
    }
    
    .calendar-week-view {
        grid-template-columns: 1fr;
    }
    
    .year-grid-view {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Mobile calendar container fixes */
    .sallie-section,
    .tab-panel,
    .admin-calendar {
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        box-sizing: border-box !important;
    }
    
    .sallie-section .calendar-days,
    .sallie-section .calendar-weekdays {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .sallie-section .calendar-day,
    .sallie-section .calendar-weekdays > div {
        min-width: 0 !important;
    }
}

/* Pending Business Events Styles */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 700;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    animation: badgePop 0.3s ease-out;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Pending badge for main Events tab */
.pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    margin-left: 6px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
}

/* ============================================ */
/* NEW BOOKING BANNERS                          */
/* ============================================ */
.new-bookings-banner-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.new-booking-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    animation: slideIn 0.3s ease-out;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.new-booking-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-booking-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.new-booking-banner-icon {
    font-size: 1.25rem;
}

.new-booking-banner-text {
    display: flex;
    flex-direction: column;
}

.new-booking-banner-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.new-booking-banner-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
}

.new-booking-banner-dismiss {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 1rem;
    margin-left: 12px;
}

.new-booking-banner-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pending-events-filters {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pending-events-list {
    display: grid;
    gap: 1rem;
}

.pending-event-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.pending-event-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.pending-event-card.new-submission {
    border-color: var(--primary-red);
    background: #fff8f8;
}

.pending-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.pending-event-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-dark-blue);
    margin: 0 0 0.5rem 0;
}

.pending-business-name {
    color: var(--text-light);
    font-size: 0.9rem;
}

.pending-status-badge {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.pending-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.pending-status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.pending-status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.pending-event-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pending-detail-item {
    display: flex;
    gap: 0.5rem;
}

.pending-detail-item strong {
    color: var(--text-dark);
    min-width: 100px;
}

.pending-detail-item span {
    color: var(--text-light);
}

.pending-event-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Pending Event Review Modal */
.review-event-header {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.business-info, .submission-date {
    display: flex;
    gap: 0.5rem;
}

.review-event-details {
    margin-bottom: 2rem;
}

.detail-group {
    margin-bottom: 1.5rem;
}

.detail-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--primary-dark-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.detail-group p {
    margin: 0;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
}

.detail-row-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-actions {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.approval-section h4 {
    font-family: var(--font-heading);
    color: var(--primary-dark-blue);
    margin-top: 0;
    margin-bottom: 1rem;
}

.review-notes-group {
    margin-bottom: 1rem;
}

.review-notes-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.review-notes-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    resize: vertical;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-success {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.large-modal {
    max-width: 800px;
}

@media (max-width: 768px) {
    .pending-events-filters {
        grid-template-columns: 1fr;
    }
    
    .pending-event-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pending-event-details {
        grid-template-columns: 1fr;
    }
    
    .pending-event-actions {
        flex-direction: column;
    }
    
    .detail-row-group {
        grid-template-columns: 1fr;
    }
}

/* Booking Management Modal Styles */
.booking-modal-content {
    padding: 1.5rem;
}

.booking-status-banner {
    padding: 0.75rem 1rem;
    background: #f0f0f0;
    border-left: 4px solid #999;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.booking-status-banner.status-pending {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.booking-status-banner.status-confirmed {
    background: #d4edda;
    border-left-color: #28a745;
}

.booking-status-banner.status-cancelled {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.booking-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.booking-section {
    background: #f9f9f9;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.booking-section h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-dark-blue);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-dark-blue);
    padding-bottom: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 1rem;
    color: #333;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending {
    background: #ffc107;
    color: #000;
}

.badge-confirmed {
    background: #28a745;
    color: #fff;
}

.badge-cancelled {
    background: #dc3545;
    color: #fff;
}

.badge-paid {
    background: #28a745;
    color: #fff;
}

.badge-unpaid {
    background: #ffc107;
    color: #000;
}

.badge-refunded {
    background: #6c757d;
    color: #fff;
}

.email-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.email-log {
    background: #fff;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-height: 60px;
}

.booking-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.booking-actions .btn {
    flex: 1;
    min-width: 180px;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .email-actions,
    .booking-actions {
        flex-direction: column;
    }
    
    .booking-actions .btn {
        width: 100%;
    }
}

/* Booking Toggle Switches */
.booking-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    vertical-align: middle;
}

/* The toggle-slider inside booking-toggle needs a wrapper with proper dimensions */
.booking-toggle .toggle-slider {
    position: relative !important;
    display: inline-block;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.booking-toggle .toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.booking-toggle input:checked + .toggle-slider {
    background-color: #28a745;
}

.booking-toggle input:not(:checked) + .toggle-slider {
    background-color: #dc3545;
}

.booking-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.booking-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #28a745;
}

.toggle-switch input:not(:checked) + .toggle-slider {
    background-color: #dc3545;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.toggle-switch input:checked ~ .toggle-label {
    color: #28a745;
}

.toggle-switch input:not(:checked) ~ .toggle-label {
    color: #dc3545;
}

/* Code Bank */
.code-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.code-item:hover {
    border-color: var(--primary-dark-blue);
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.1);
    transform: translateY(-1px);
}

.code-item.inactive {
    background: #f8f9fa;
    border-color: #dee2e6;
}

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

.code-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.code-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.code-icon-circle.active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.code-icon-circle.inactive {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.code-value {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    letter-spacing: 3px;
}

.code-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 56px;
}

.code-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.code-dates {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.code-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.code-status.active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b1dfbb;
}

.code-status.active .status-dot {
    background: #28a745;
}

.code-status.inactive {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

.code-status.inactive .status-dot {
    background: #dc3545;
    animation: none;
}

.code-date {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
}

.code-date small {
    color: #adb5bd;
    font-weight: 600;
}

.code-date.deactivated {
    color: #dc3545;
}

.code-date.deactivated small {
    color: #f5c6cb;
}

.code-actions {
    display: flex;
    gap: 0.5rem;
}

.code-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.code-actions button svg {
    flex-shrink: 0;
}

.code-actions .btn-edit {
    background: #ffffff !important;
    color: #1a3a52 !important;
    border: 2px solid #1a3a52 !important;
}

.code-actions .btn-edit:hover {
    background: #1a3a52 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 58, 82, 0.2);
}

.code-actions .btn-delete {
    background: #ffffff !important;
    color: #dc3545 !important;
    border: 2px solid #dc3545 !important;
}

.code-actions .btn-delete:hover {
    background: #dc3545 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

@media (max-width: 768px) {
    .code-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .code-meta {
        align-items: flex-start;
    }
    
    .code-actions {
        width: 100%;
    }
    
    .code-actions button {
        flex: 1;
    }
}
/* Event Bookings Styles */
.event-booking-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-booking-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

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

.event-booking-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.event-booking-date {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.event-booking-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.event-booking-stat {
    flex: 1;
    text-align: center;
}

.event-booking-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c5282;
    display: block;
}

.event-booking-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.ticket-progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.ticket-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #27afa5, #2c5282);
    transition: width 0.3s ease;
}

.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.booking-modal-content {
    background: white !important;
    border-radius: 16px;
    width: 800px !important;
    max-width: 90vw !important;
    min-height: 400px !important;
    max-height: 90vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    display: flex !important;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.booking-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1e293b;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #1e293b;
}

.purchaser-item {
    padding: 20px 30px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    cursor: pointer;
}

.purchaser-item:hover {
    background: #f8fafc;
}

.purchaser-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.purchaser-info p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #64748b;
}

.purchaser-meta {
    text-align: right;
}

.ticket-quantity {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c5282;
}

.ticket-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

.ticket-status.paid {
    background: #d1fae5;
    color: #065f46;
}

.ticket-status.refunded {
    background: #fee2e2;
    color: #991b1b;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid;
}

.contact-btn.email {
    background: #eff6ff;
    color: #1e40af;
    border-color: #3b82f6;
}

.contact-btn.email:hover {
    background: #3b82f6;
    color: white;
}

.contact-btn.phone {
    background: #f0fdf4;
    color: #166534;
    border-color: #22c55e;
}

.contact-btn.phone:hover {
    background: #22c55e;
    color: white;
}

.detail-row {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 1rem;
    color: #1e293b;
}

/* ====================
   ADMIN PANEL VISUAL IMPROVEMENTS
   ==================== */

/* Add subtle background pattern to main admin area */
.admin-dashboard {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 50%, #f0f4f8 100%) !important;
}

/* Enhanced tab panels with better visual hierarchy */
.tab-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 16px;
}

/* ====================================
   BOOKING CALENDAR COMPACT STYLES
   Scoped to .sallie-section for booking calendars only
   ==================================== */

.sallie-section .calendar-day .day-number {
    font-size: 0.85rem;
    font-weight: 700;
}

.sallie-section .calendar-days {
    gap: 3px;
    width: 100%;
    max-width: 100%;
}

.sallie-section .calendar-weekdays > div,
.sallie-section .calendar-day {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Make booked dates more prominent with red styling */
.sallie-section .calendar-day.booked {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    border: 3px solid #ef4444 !important;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.25);
}

.sallie-section .calendar-day.booked .day-number {
    color: #dc2626;
}

/* Make blocked dates stand out with yellow/orange styling */
.sallie-section .calendar-day.blocked {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    border: 3px solid #f87171 !important;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.25);
}

.sallie-section .calendar-day.blocked .day-number {
    color: #991b1b;
}

/* Make available dates have a nice green tint */
.sallie-section .calendar-day.available {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    border: 2px solid #22c55e !important;
}

.sallie-section .calendar-day.available .day-number {
    color: #16a34a;
}

/* Section headers with better styling */
.sallie-section,
.events-section,
.settings-section,
.users-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Stats cards with visual pop */
.summary-stat {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Better heading visibility */
.tab-panel h3,
.sallie-section h3 {
    color: #1e293b;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

/* Add calendar legend */
.calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid;
}

.legend-color.available {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #22c55e;
}

.legend-color.booked {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
}

.legend-color.blocked {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #f87171;
}

/* ====================
   ENHANCED VISIBILITY FIXES
   ==================== */

/* Modal improvements - better contrast and visibility */
.modal-overlay {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(4px);
}

.modal-overlay.show,
.modal-overlay[aria-hidden="false"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal {
    background: #ffffff !important;
    border: 2px solid #e2e8f0;
}

.modal h3 {
    color: #1e293b !important;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.modal .form-group label {
    color: #1e293b !important;
    font-weight: 600;
}

/* Input field visibility */
.modal input:not([type="checkbox"]):not([type="radio"]),
.modal select,
.modal textarea,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 2px solid #cbd5e1 !important;
}

.modal input:not([type="checkbox"]):not([type="radio"]):focus,
.modal select:focus,
.modal textarea:focus,
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: var(--primary-dark-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.15) !important;
}

/* Button visibility */
.btn, button {
    font-weight: 600 !important;
}

.btn-primary, .btn-success {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(26, 58, 82, 0.25);
}

.btn-primary:hover, .btn-success:hover {
    background: linear-gradient(135deg, #0a2540 0%, var(--primary-dark-blue) 100%) !important;
    box-shadow: 0 6px 20px rgba(26, 58, 82, 0.35) !important;
}

.btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0 !important;
}

.btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

.btn-outline {
    background: transparent !important;
    color: var(--primary-dark-blue) !important;
    border: 1.5px solid #cbd5e1 !important;
}

.btn-outline:hover {
    background: var(--primary-dark-blue) !important;
    color: #ffffff !important;
    border-color: var(--primary-dark-blue) !important;
}

.btn-danger {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 2px solid #dc2626 !important;
}

.btn-danger:hover {
    background: #b91c1c !important;
}

/* Table visibility */
table {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

table th {
    background: #f8fafc !important;
    color: #1e293b !important;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
}

table td {
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9;
}

table tr:hover td {
    background: #f8fafc;
}

/* Card/section visibility */
.sallie-section,
.events-section,
.settings-section,
.users-section {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Businesses section - premium override (no !important - use specificity from premium block) */
.businesses-section {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Tab panel overflow control */
.tab-panel {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Admin calendar specific fixes */
.admin-calendar {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Summary stats visibility */
.summary-stat {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.summary-stat h4,
.summary-stat .stat-label {
    color: #64748b !important;
    font-weight: 600;
}

.summary-stat .stat-value,
.summary-stat strong {
    color: #1e293b !important;
    font-weight: 700;
}

/* Tab buttons visibility */
.tab-btn {
    background: #ffffff !important;
    color: #475569 !important;
    border: 2px solid #e2e8f0 !important;
    font-weight: 600;
}

.tab-btn:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

.tab-btn.active,
.tab-btn[aria-selected="true"] {
    background: linear-gradient(135deg, #c41d15 0%, #a01812 100%) !important;
    color: #ffffff !important;
    border-color: #c41d15 !important;
    box-shadow: 0 4px 12px rgba(196, 29, 21, 0.35) !important;
    font-weight: 700 !important;
}

/* Booking cards visibility */
.ops-booking-card,
.booking-card {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
}

.ops-booking-card:hover,
.booking-card:hover {
    border-color: var(--primary-dark-blue) !important;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15) !important;
}

/* Status badges visibility */
.badge, .status-badge {
    font-weight: 600 !important;
    padding: 4px 10px !important;
}

/* Text color fixes for light backgrounds */
p, span, div {
    color: inherit;
}

.text-muted {
    color: #64748b !important;
}

/* Calendar controls better visibility */
.calendar-controls .btn,
.calendar-view-controls .btn {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 2px solid #e2e8f0 !important;
}

.calendar-controls .btn.active,
.calendar-view-controls .btn.active,
.calendar-view-controls .btn-sm.active,
.sallie-section .calendar-view-controls .btn.active,
.sallie-section .calendar-view-controls .btn-sm.active {
    background: linear-gradient(135deg, #c41d15 0%, #a01812 100%) !important;
    color: #ffffff !important;
    border-color: #c41d15 !important;
    box-shadow: 0 2px 6px rgba(196, 29, 21, 0.3) !important;
}

/* Chips and filters */
.chip {
    background: #ffffff !important;
    color: #475569 !important;
    border: 2px solid #e2e8f0 !important;
}

.chip.active {
    background: var(--primary-dark-blue) !important;
    color: #ffffff !important;
    border-color: var(--primary-dark-blue) !important;
}

/* Fix any remaining white-on-white issues */
.form-group label {
    color: #1e293b !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #1e293b;
}

/* Booking modal specific fixes */
.booking-modal-content {
    background: #ffffff !important;
}

.booking-modal-header {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.booking-modal-header h3 {
    color: #1e293b !important;
}

/* Info grid labels */
.info-label {
    color: #64748b !important;
    font-weight: 600;
}

.info-value {
    color: #1e293b !important;
}

/* ====================
   EMAIL TEMPLATES SECTION
   ==================== */

/* Email templates container */
.email-templates-section,
#emailTemplatesPanel {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Email template cards */
.email-template-card,
.template-card {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.email-template-card:hover,
.template-card:hover {
    border-color: #c41d15 !important;
    box-shadow: 0 4px 12px rgba(196, 29, 21, 0.15);
}

/* Template title */
.email-template-card h4,
.template-card h4,
.template-name {
    color: #1e293b !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Template description/preview */
.email-template-card p,
.template-card p,
.template-preview {
    color: #64748b !important;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Template subject line */
.template-subject {
    color: #475569 !important;
    font-weight: 600;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #c41d15;
}

/* Template actions */
.template-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.template-actions .btn,
.template-actions button {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 6px;
}

/* Template editor */
.template-editor,
.email-editor {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px;
    padding: 16px;
    min-height: 200px;
}

.template-editor textarea,
.email-editor textarea {
    width: 100%;
    min-height: 180px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px;
    font-family: monospace;
    font-size: 0.9rem;
    background: #fafafa;
    color: #1e293b;
}

.template-editor textarea:focus,
.email-editor textarea:focus {
    border-color: #c41d15;
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
}

/* Template variables/placeholders */
.template-variables,
.placeholder-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.template-variables h5,
.placeholder-list h5 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.template-variable,
.placeholder-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    margin: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.template-variable:hover,
.placeholder-tag:hover {
    background: #0369a1;
    color: #ffffff;
}

/* Template type badge */
.template-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-type.confirmation {
    background: #dcfce7;
    color: #166534;
}

.template-type.reminder {
    background: #fef3c7;
    color: #92400e;
}

.template-type.cancellation {
    background: #fee2e2;
    color: #991b1b;
}

.template-type.general {
    background: #e0e7ff;
    color: #3730a3;
}

/* Template list header */
.templates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.templates-header h3 {
    color: #1e293b !important;
    font-weight: 700;
    margin: 0;
}

/* Add new template button */
.add-template-btn {
    background: linear-gradient(135deg, #c41d15 0%, #a01812 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 29, 21, 0.35);
}

/* Empty state for templates */
.no-templates {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.no-templates svg,
.no-templates .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-templates p {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

/* ====================================
   EMAIL TEMPLATE MODAL STYLES
   ==================================== */

.email-template-modal-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.email-template-modal-header h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.template-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.template-info-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.template-info-box p {
    margin: 6px 0;
    color: #475569;
    font-size: 0.9rem;
}

.template-info-box code {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #c41d15;
}

.template-preview-section {
    margin-bottom: 20px;
}

.template-preview-section h4 {
    color: #1e293b;
    font-size: 1.1rem;
    margin: 0 0 12px;
}

.template-variables {
    margin-bottom: 16px;
    padding: 12px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
}

.template-variables strong {
    color: #92400e;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.variable-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variable-tag {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #f59e0b;
}

.template-preview-frame {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Template trigger badge for preview modal */
.template-trigger-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Clean preview frame styling */
.template-preview-frame {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.email-template-modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.email-template-modal-header h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin: 0 0 8px;
}

.template-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.email-template-modal-body {
    text-align: center;
}

/* ====================================
   BOOKING CALENDAR SECTION IMPROVEMENTS
   ==================================== */

/* Compact the sallie-section containers */
.sallie-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sallie-section h5 {
    font-size: 1.25rem;
    color: #1e293b;
    margin: 0 0 8px;
    font-weight: 700;
}

.sallie-section > p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 16px;
}

/* Calendar view controls - more compact */
.calendar-view-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.calendar-view-controls label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.calendar-view-controls .btn-sm {
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Calendar legend - inline and compact */
.calendar-section-legend {
    display: inline-flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.calendar-section-legend .legend-item {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Calendar controls - compact button group */
.calendar-controls {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.calendar-controls .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* Selection info - compact */
.selection-info {
    font-size: 0.85rem;
    padding: 8px 12px !important;
    background: #f1f5f9 !important;
}

/* Email template card compact styles */
.email-template-card-compact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    transition: all 0.2s ease;
}

.email-template-card-compact:hover {
    border-color: #c41d15;
    box-shadow: 0 2px 8px rgba(196, 29, 21, 0.1);
}

.email-template-card-compact .template-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
}

.email-template-card-compact .template-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 2;
    flex-wrap: wrap;
}

.email-template-card-compact .template-trigger {
    color: #64748b;
    font-size: 0.8rem;
}

.email-template-card-compact .template-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.email-template-card-compact .template-status.active {
    background: #dcfce7;
    color: #16a34a;
}

.email-template-card-compact .btn-sm,
.email-template-card-compact .btn-sm.btn-outline,
.email-template-card-compact .btn.btn-sm.btn-outline {
    background: linear-gradient(135deg, #c41d15 0%, #a01812 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.email-template-card-compact .btn-sm:hover,
.email-template-card-compact .btn-sm.btn-outline:hover,
.email-template-card-compact .btn.btn-sm.btn-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(196, 29, 21, 0.3);
    background: linear-gradient(135deg, #a01812 0%, #8b0000 100%) !important;
}

/* Workflow section styling */
.workflow-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.workflow-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.workflow-header .workflow-icon {
    font-size: 1.4rem;
}

.workflow-header h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.workflow-templates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Email workflow container */
.email-workflow-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ====================================
   BUSINESS MISSING COORDINATES STYLES
   ==================================== */

/* Warning tag for missing coordinates */
.tag.status-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
    font-weight: 600;
}

/* Warning filter chip */
.chip.chip-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.chip.chip-warning.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border-color: #d97706;
}

/* ============================================
   AUTOMATED TICKETING SECTION - REDESIGNED
   ============================================ */

.ticketing-section-container {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.ticketing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.ticketing-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.ticketing-panel {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 1.5rem;
}

.notifications-panel {
    background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%);
    border-color: #a855f7;
}

.ticketing-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ticketing-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.ticketing-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e40af;
}

.notifications-panel .ticketing-title {
    color: #7c3aed;
}

.ticketing-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.ticketing-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.ticketing-toggle:hover {
    border-color: #3b82f6;
}

.ticketing-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Ticketing toggle slider with knob */
.ticketing-toggle .toggle-slider {
    width: 50px;
    min-width: 50px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 26px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: inline-block;
}

.ticketing-toggle .toggle-slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ticketing-toggle input:checked + .toggle-slider {
    background: #10b981;
}

.ticketing-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.ticketing-toggle .toggle-label {
    font-weight: 600;
    color: #334155;
    margin-left: 0.5rem;
}

.ticketing-options {
    display: none;
    animation: fadeIn 0.3s ease;
    margin-top: 1rem;
}

.ticketing-options.active {
    display: block;
}

/* Feature Event Toggle */
.feature-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    border: 1px solid #f59e0b;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.feature-toggle:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.feature-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.feature-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: white;
    border: 2px solid #d97706;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.feature-checkbox:after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.feature-toggle input:checked + .feature-checkbox {
    background: #f59e0b;
    border-color: #d97706;
}

.feature-toggle input:checked + .feature-checkbox:after {
    display: block;
}

.feature-label {
    font-weight: 600;
    color: #92400e;
    font-size: 0.95rem;
    flex: 1;
}

/* Ticket Tiers Container */
.ticket-tiers-container {
    margin-bottom: 1rem;
}

.ticket-tiers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-tier-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 60px 1fr auto;
    gap: 0.75rem;
    align-items: end;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.ticket-tier-row .ticketing-field {
    min-width: 0;
}

.ticket-tier-row .ticketing-field input {
    width: 100%;
    box-sizing: border-box;
}

.remove-tier-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.remove-tier-btn:hover {
    background: #dc2626;
    color: white;
}

.add-tier-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px dashed #86efac;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.add-tier-btn:hover {
    background: #dcfce7;
    border-color: #16a34a;
}

.ticketing-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ticketing-field {
    position: relative;
}

.ticketing-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.ticketing-field input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s ease;
}

.ticketing-field input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 600;
}

.input-with-icon input {
    padding-left: 1.75rem;
}

/* Ticket Hold Duration Setting */
.ticket-hold-setting {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.ticket-hold-setting .ticketing-field-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 0.25rem;
}

.ticket-hold-setting .ticketing-field-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.hold-duration-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.hold-duration-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #bae6fd;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.hold-duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0284c7;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.hold-duration-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0284c7;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.hold-duration-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0369a1;
    min-width: 50px;
    text-align: right;
}

.hold-duration-presets {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.hold-preset-btn {
    padding: 0.25rem 0.6rem;
    border: 1px solid #bae6fd;
    background: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0369a1;
    cursor: pointer;
    transition: all 0.15s;
}

.hold-preset-btn:hover {
    background: #e0f2fe;
}

.hold-preset-btn.active {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
}

.ticketing-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    margin-bottom: 1rem;
}

.ticketing-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.ticket-status-box {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.ticket-status-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ticket-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 600;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-value.revenue {
    color: #10b981;
}

.ticket-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.ticket-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

/* Notification Emails Styling */
.notification-emails-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-emails-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.notification-email-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #334155;
}

.notification-email-item .email-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-email-item .email-icon {
    color: #a855f7;
}

.remove-email-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-email-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.add-email-row {
    display: flex;
    gap: 0.5rem;
}

.add-email-input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.2s ease;
}

.add-email-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.add-email-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-email-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.notification-help {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.ticketing-info-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-radius: 8px;
    border: 1px solid #fde047;
    font-size: 0.85rem;
    color: #854d0e;
}

.info-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Responsive for ticketing section */
@media (max-width: 900px) {
    .ticketing-grid {
        grid-template-columns: 1fr;
    }

    .ticketing-stack {
        gap: 1rem;
    }
    
    .ticketing-form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .ticket-tier-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .ticket-tier-row .ticketing-field:first-child {
        grid-column: 1 / -1;
    }
    
    .remove-tier-btn {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0.25rem;
    }
}

@media (max-width: 500px) {
    .ticketing-form-row {
        grid-template-columns: 1fr;
    }
    
    .ticketing-panel {
        padding: 1rem;
    }
    
    .ticket-status-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ticket-tier-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ============================================ */

/* ============================================
   PROFESSIONAL MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 768px) {
    /* ===== HEADER - Clean & Compact ===== */
    .admin-header-bar {
        padding: 0.75rem 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .admin-header-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .admin-header-content h2 {
        font-size: 1.25rem;
        text-align: center;
        width: 100%;
        margin: 0;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .user-info {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 0.5rem;
        align-items: center;
    }
    
    #userEmail {
        font-size: 0.8rem;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .user-role {
        font-size: 0.7rem;
        padding: 4px 10px;
        border-radius: 20px;
        font-weight: 600;
    }
    
    #businessDashboardWrapper {
        grid-column: 1 / -1;
        margin: 0.5rem 0 0 !important;
    }
    
    .admin-business-select {
        width: 100%;
        padding: 0.6rem;
        font-size: 0.9rem;
        border-radius: 8px;
        border: 2px solid #e2e8f0;
    }
    
    #logoutBtn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* ===== TABS - Sleek Horizontal Scroll ===== */
    .tabs-container {
        padding: 0.75rem 0 0.5rem;
        margin: 0 -1rem 0.75rem;
        padding-left: 1rem;
        padding-right: 1rem;
        background: linear-gradient(to bottom, #f8f9fa, #ffffff);
        border-bottom: 1px solid #e2e8f0;
    }
    
    .tab-bar {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 8px;
    }
    
    .tab-bar::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex-shrink: 0;
        padding: 10px 14px;
        font-size: 0.75rem;
        border-radius: 25px;
        font-weight: 600;
        white-space: nowrap;
        border: none;
        background: #f1f5f9;
        color: #475569;
        transition: all 0.2s ease;
    }
    
    .tab-btn:hover {
        background: #e2e8f0;
    }
    
    .tab-btn.active,
    .tab-btn[aria-selected="true"] {
        background: linear-gradient(135deg, #c41d15 0%, #a01812 100%) !important;
        color: #fff !important;
        box-shadow: 0 3px 10px rgba(196, 29, 21, 0.3);
    }
    
    /* ===== CONTENT CONTAINERS ===== */
    .container {
        padding: 0 0.75rem;
    }
    
    .dashboard-container {
        padding: 0.5rem 0;
    }
    
    .tab-panel {
        padding: 0;
    }
    
    /* ===== SECTION HEADERS ===== */
    .section-header-row {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
        border-radius: 12px;
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin: 0;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        color: #64748b;
        margin: 0.25rem 0 0;
    }
    
    .section-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
    }
    
    .section-actions .btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
        text-align: center;
        border-radius: 8px;
    }
    
    /* ===== CARDS & LISTS ===== */
    .events-grid,
    .businesses-list,
    .users-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .event-card,
    .business-card-admin,
    .business-card,
    .user-card {
        padding: 1rem;
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .business-card .business-card-header {
        padding: 14px 16px 8px;
    }
    
    .business-card .business-card-body {
        padding: 0 16px 12px;
    }
    
    .business-card .business-actions {
        padding: 10px 16px 14px;
    }
    
    .business-card .business-actions .btn {
        padding: 8px 14px;
        font-size: 0.78rem;
    }
    
    /* ===== FILTER CHIPS ===== */
    .business-filters {
        flex-direction: column;
        gap: 0.75rem;
        padding: 12px 14px;
        border-radius: 12px;
    }
    
    .search-wrap {
        width: 100%;
    }
    
    .search-wrap input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 38px;
        border-radius: 12px;
        font-size: 0.95rem;
    }
    
    .filter-chips {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 4px 0 8px;
        scrollbar-width: none;
    }
    
    .filter-chips::-webkit-scrollbar {
        display: none;
    }
    
    .chip {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.82rem;
        border-radius: 22px;
        font-weight: 500;
    }
    
    /* ===== MESSAGES SECTION ===== */
    .message-compose-card {
        padding: 1rem !important;
        border-radius: 12px !important;
    }
    
    .message-compose-card h4 {
        font-size: 1.1rem !important;
    }
    
    .message-compose-card .form-group label {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    #messageRecipients {
        height: 100px;
        border-radius: 10px;
    }
    
    #messageSubject,
    #messageBody {
        border-radius: 10px;
        padding: 0.75rem !important;
    }
    
    #sendMessageBtn {
        width: 100%;
        padding: 0.85rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .message-history-section {
        margin-top: 1.5rem;
    }
    
    .message-history-section > div:first-child {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #messageHistoryFilter {
        width: 100%;
    }
    
    .message-card {
        padding: 1rem !important;
        border-radius: 12px !important;
    }
    
    /* ===== EMAIL LOG TABLE ===== */
    .sent-emails-table-wrapper {
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }
    
    .sent-emails-table {
        font-size: 0.75rem;
    }
    
    .sent-emails-table th,
    .sent-emails-table td {
        padding: 0.6rem 0.4rem !important;
    }
    
    .sent-emails-table th:nth-child(3),
    .sent-emails-table td:nth-child(3) {
        max-width: 120px;
    }
    
    /* ===== MODALS ===== */
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .modal-header {
        padding: 1.25rem 1rem 1rem;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1rem;
        overflow-y: auto;
        max-height: calc(95vh - 120px);
    }
    
    .modal-footer {
        padding: 1rem;
        border-top: 1px solid #e2e8f0;
    }
    
    /* ===== FORMS ===== */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 0;
    }
    
    .form-group label {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 0.75rem;
        border-radius: 10px;
        border: 2px solid #e2e8f0;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #c41d15;
        outline: none;
        box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
    }
    
    /* ===== BUTTONS ===== */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
        font-weight: 600;
    }
    
    .btn-primary {
        box-shadow: 0 2px 8px rgba(196, 29, 21, 0.25);
    }
    
    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    /* ===== WORKFLOW SECTIONS ===== */
    .workflow-section {
        margin-bottom: 1.5rem;
    }
    
    .workflow-header {
        padding: 0.75rem;
    }
    
    .workflow-header h4 {
        font-size: 1rem;
    }
    
    .email-template-card-compact {
        padding: 0.85rem;
    }
    
    .template-name {
        font-size: 0.9rem;
    }
    
    .template-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* ===== SETTINGS ===== */
    .settings-grid {
        gap: 1rem;
    }
    
    .setting-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .hours-grid {
        gap: 0.5rem;
    }
    
    .day-row {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
        background: #f8fafc;
        border-radius: 8px;
    }
    
    .time-pair {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* ===== EXTRA SMALL SCREENS ===== */
    .admin-header-content h2 {
        font-size: 1.1rem;
    }
    
    .user-info {
        grid-template-columns: 1fr auto;
    }
    
    #userEmail {
        display: none;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.15rem;
    }
    
    .section-actions {
        grid-template-columns: 1fr;
    }
    
    /* Hide less important table columns */
    .sent-emails-table th:nth-child(4),
    .sent-emails-table td:nth-child(4),
    .sent-emails-table th:nth-child(3),
    .sent-emails-table td:nth-child(3) {
        display: none;
    }
    
    /* Full-width modals */
    .modal-content {
        border-radius: 12px 12px 0 0;
    }
    
    /* Simpler message compose */
    #selectAllBusinesses,
    #clearBusinessSelection {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   SITE STATS / ANALYTICS DASHBOARD STYLES
   ============================================ */

.site-stats-section {
    padding: 1.5rem;
}

.site-stats-section .section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-dark-blue);
}

.site-stats-section .section-title {
    margin: 0;
    font-size: 1.75rem;
    color: var(--primary-dark-blue);
}

.stats-header-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.date-range-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range-picker label {
    font-weight: 600;
    color: var(--text-dark);
}

.date-range-picker select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-date-range input[type="date"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Stats Refresh Controls */
.stats-refresh-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stats-last-updated {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    white-space: nowrap;
}

.stats-last-updated.refreshing {
    color: var(--atchison-gold);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Stats Overview Grid */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #e0e0e0;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stat-card.primary {
    border-left-color: var(--primary-dark-blue);
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-card .stat-content {
    flex: 1;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.stat-card .stat-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-card .stat-change.positive {
    color: #10b981;
}

.stat-card .stat-change.negative {
    color: #ef4444;
}

.stat-card .stat-change.neutral {
    color: #6b7280;
}

/* Stats Section Cards */
.stats-section-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stats-section-card.half {
    flex: 1;
    min-width: 300px;
}

.stats-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stats-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark-blue);
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

/* Traffic Sources Grid */
.traffic-sources-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.traffic-chart-container {
    position: relative;
    height: 250px;
}

.traffic-sources-table-container {
    overflow-x: auto;
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-container-sm {
    position: relative;
    height: 200px;
    width: 100%;
    margin-bottom: 1rem;
}

/* Stats Tables */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.stats-table thead {
    background: #f8f9fa;
}

.stats-table th {
    text-align: left;
    padding: 0.875rem 1rem;
    font-weight: 600;
    color: var(--primary-dark-blue);
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.stats-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    color: #333;
}

.stats-table tbody tr:hover {
    background: #f8f9fa;
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

/* Analytics Controls */
.events-analytics-controls,
.business-analytics-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.events-analytics-controls select,
.business-analytics-controls select,
.business-analytics-controls input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 180px;
}

/* Click Categories Grid */
.click-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.click-category-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.click-category-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-dark-blue);
}

.click-category-card h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.click-category-card .click-stat {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
}

/* Device Stats List */
.device-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.device-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

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

.device-stat-item .device-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.device-stat-item .device-icon {
    font-size: 1.1rem;
}

.device-stat-item .device-value {
    font-weight: 600;
    color: var(--primary-dark-blue);
}

.device-stat-item .device-percent {
    color: #666;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Geographic Stats Grid */
.geo-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.geo-column h5 {
    margin: 0 0 1rem 0;
    color: var(--primary-dark-blue);
    font-size: 0.95rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.geo-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.geo-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s;
}

.geo-stat-item:hover {
    background: #e9ecef;
}

.geo-stat-item .geo-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.geo-stat-item .geo-flag {
    font-size: 1.1rem;
}

.geo-stat-item .geo-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.geo-stat-item .geo-count {
    font-weight: 600;
    color: var(--primary-dark-blue);
}

.geo-stat-item .geo-percent {
    color: #666;
    font-size: 0.8rem;
}

.geo-stat-item .geo-bar {
    width: 60px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.geo-stat-item .geo-bar-fill {
    height: 100%;
    background: var(--primary-dark-blue);
    border-radius: 3px;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .geo-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Table Pagination */
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.activity-item:hover {
    background: #f8f9fa;
}

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

.activity-item.loading {
    color: #666;
    font-style: italic;
    justify-content: center;
}

.activity-icon {
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    margin: 0 0 0.25rem 0;
    color: #333;
}

.activity-meta {
    font-size: 0.8rem;
    color: #888;
}

/* Responsive Stats */
@media (max-width: 1024px) {
    .traffic-sources-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .site-stats-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-header-controls {
        width: 100%;
    }
    
    .stats-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    .stats-table {
        font-size: 0.8rem;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 0.5rem;
    }
    
    .click-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .click-categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .date-range-picker {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .date-range-picker select {
        width: 100%;
    }
}

/* ==========================================
   POLLS & FORMS SECTION
   ========================================== */

.polls-forms-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.polls-forms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 1rem;
}

.polls-forms-header h2 {
    color: #1e293b;
    font-weight: 700;
    margin: 0;
}

.create-buttons {
    display: flex;
    gap: 0.75rem;
}

.polls-forms-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.polls-forms-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.polls-forms-tab:hover {
    color: #c41d15;
}

.polls-forms-tab.active {
    color: #c41d15;
    border-bottom-color: #c41d15;
}

.polls-forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.poll-form-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.poll-form-card:hover {
    border-color: #c41d15;
    box-shadow: 0 4px 12px rgba(196, 29, 21, 0.15);
}

.poll-form-card.active {
    border-color: #22c55e;
    background: linear-gradient(to bottom right, #f0fdf4, #ffffff);
}

.poll-form-card.inactive {
    opacity: 0.7;
    border-color: #cbd5e1;
}

.poll-form-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.poll-form-badge.poll {
    background: #dbeafe;
    color: #1d4ed8;
}

.poll-form-badge.form {
    background: #fef3c7;
    color: #d97706;
}

.poll-form-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

.poll-form-badge.inactive {
    background: #f1f5f9;
    color: #64748b;
}

.poll-form-card h4 {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    padding-right: 60px;
}

.poll-form-card .description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.poll-form-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.poll-form-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #475569;
}

.poll-form-stat .icon {
    font-size: 1rem;
}

.poll-form-dates {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.poll-form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.poll-form-actions .btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    padding: 8px 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Submissions Panel */
.submissions-panel {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-top: 2rem;
    display: none;
}

.submissions-panel.visible {
    display: block;
}

.submissions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.submissions-header h3 {
    color: #1e293b;
    margin: 0;
}

/* Poll Results */
.poll-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.poll-result-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.poll-result-label {
    min-width: 150px;
    font-weight: 500;
    color: #1e293b;
}

.poll-result-bar-wrapper {
    flex: 1;
    background: #e2e8f0;
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.poll-result-bar {
    height: 100%;
    background: linear-gradient(135deg, #c41d15, #ef4444);
    border-radius: 8px;
    transition: width 0.5s ease;
}

.poll-result-percent {
    min-width: 60px;
    text-align: right;
    font-weight: 600;
    color: #475569;
}

.poll-result-count {
    min-width: 40px;
    text-align: right;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Form Submissions Table */
.submissions-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.submissions-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.submissions-table th,
.submissions-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.submissions-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submissions-table td {
    color: #1e293b;
    font-size: 0.9rem;
}

.submissions-table tr:hover td {
    background: #f8fafc;
}

/* Poll Option Builder */
.poll-option-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.poll-option-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
}

.poll-option-input:focus {
    outline: none;
    border-color: #c41d15;
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
}

.btn-remove-option {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remove-option:hover {
    background: #fecaca;
}

/* Form Field Builder */
.form-field-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

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

.form-field-item .field-type-badge {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.form-field-item .field-controls {
    display: flex;
    gap: 0.5rem;
}

.form-field-item .btn-move,
.form-field-item .btn-delete {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    color: #64748b;
    transition: all 0.2s ease;
}

.form-field-item .btn-move:hover {
    background: #e2e8f0;
}

.form-field-item .btn-delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

.form-field-item .field-label-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.form-field-item .field-required {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.form-field-item .field-options {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.form-field-item .field-option-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.form-field-item .field-option-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Empty State */
.polls-forms-empty {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.polls-forms-empty .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.polls-forms-empty h4 {
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Limit Warning */
.limit-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #92400e;
}

.limit-warning .icon {
    font-size: 1.25rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .polls-forms-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .create-buttons {
        width: 100%;
    }
    
    .create-buttons .btn {
        flex: 1;
    }
    
    .polls-forms-grid {
        grid-template-columns: 1fr;
    }
    
    .poll-form-actions {
        flex-direction: column;
    }
    
    .poll-form-actions .btn {
        width: 100%;
    }
    
    .poll-result-row {
        flex-wrap: wrap;
    }
    
    .poll-result-label {
        min-width: 100%;
    }
}

/* Inline Builder Panels (no modal needed) */
.inline-builder-panel {
    background: #f8fafc;
    border: 2px solid #c41d15;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.builder-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.builder-panel-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
}

.builder-form .form-group {
    margin-bottom: 1.25rem;
}

.builder-form .form-group label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.builder-form input[type="text"],
.builder-form input[type="datetime-local"],
.builder-form textarea,
.builder-form select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #ffffff;
    color: #1e293b;
}

.builder-form input:focus,
.builder-form textarea:focus,
.builder-form select:focus {
    outline: none;
    border-color: #c41d15;
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
}

/* Split date/time inputs for better keyboard entry */
.datetime-split-inputs {
    display: flex;
    gap: 0.5rem;
}

.datetime-split-inputs input[type="date"] {
    flex: 1.2;
}

.datetime-split-inputs input[type="time"] {
    flex: 1;
}

.datetime-split-inputs input[type="date"],
.datetime-split-inputs input[type="time"] {
    padding: 10px 12px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #ffffff;
    color: #1e293b;
}

.datetime-split-inputs input:focus {
    outline: none;
    border-color: #c41d15;
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
}

.form-row-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.builder-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.add-field-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.form-fields-list {
    min-height: 100px;
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.form-fields-list:empty::after {
    content: 'Click buttons below to add fields';
    color: #94a3b8;
    font-style: italic;
}

/* ==========================================
   PENDING BUSINESS UPDATES STYLES
   ========================================== */

.pending-updates-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.pending-updates-filters .search-wrap {
    flex: 1;
    min-width: 200px;
}

.pending-updates-filters .filter-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pending-updates-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.pending-update-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pending-update-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #eab308);
    opacity: 0.7;
}

.pending-update-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: #cbd5e1;
}

.pending-update-card .update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.pending-update-card .update-business-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.pending-update-card .update-field-info {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1rem;
}

.pending-update-card .update-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.pending-update-card .update-old,
.pending-update-card .update-new {
    min-width: 0;
}

.pending-update-card .update-old label,
.pending-update-card .update-new label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pending-update-card .value-display {
    font-size: 0.9rem;
    color: #334155;
    word-break: break-word;
    max-height: 120px;
    overflow-y: auto;
}

.pending-update-card .update-old .value-display {
    background: #fef2f2;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #ef4444;
}

.pending-update-card .update-new .value-display {
    background: #f0fdf4;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #22c55e;
}

.pending-update-card .update-arrow {
    color: #94a3b8;
    font-size: 1.5rem;
    font-weight: bold;
    align-self: center;
    margin-top: 1rem;
}

.pending-update-card .update-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.pending-update-card .update-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.pending-update-card .update-actions .btn {
    flex: 1;
    justify-content: center;
}

.pending-update-card .update-resolved {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

/* Status badges for pending updates */
.pending-update-card .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pending-update-card .status-pending {
    background: #fef3c7;
    color: #92400e;
}

.pending-update-card .status-approved {
    background: #dcfce7;
    color: #166534;
}

.pending-update-card .status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Hours display within update cards */
.pending-update-card .hours-display {
    font-size: 0.85rem;
    line-height: 1.6;
}

.pending-update-card .hours-display .closed {
    color: #dc2626;
}

.pending-update-card .hours-display .not-set {
    color: #94a3b8;
    font-style: italic;
}

/* Count badge for pending updates tab */
#pendingUpdatesCount {
    background: #ef4444;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    min-width: 1.25rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pending-updates-grid {
        grid-template-columns: 1fr;
    }
    
    .pending-update-card .update-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pending-update-card .update-arrow {
        transform: rotate(90deg);
        justify-self: center;
        margin-top: 0;
    }
}

/* ==========================================
   PENDING BUSINESS EVENTS STYLES
   ========================================== */

.pending-events-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pending-events-filters .search-wrap {
    flex: 1;
    min-width: 200px;
}

.pending-events-filters .filter-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pending-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.pending-event-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s, transform 0.2s;
}

.pending-event-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.pending-event-card .update-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.pending-event-card .update-business-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.pending-event-card .event-details-info {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.pending-event-card .event-detail-row {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.pending-event-card .event-detail-row:last-child {
    margin-bottom: 0;
}

.pending-event-card .event-description-preview {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
}

.pending-event-card .update-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.pending-event-card .update-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.pending-event-card .update-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.pending-event-card .update-actions .btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.pending-event-card .update-actions .btn-secondary:hover {
    background: #e2e8f0;
}

.pending-event-card .update-actions .btn-success {
    background: #059669;
    color: white;
}

.pending-event-card .update-actions .btn-success:hover {
    background: #047857;
}

.pending-event-card .update-actions .btn-danger {
    background: #dc2626;
    color: white;
}

.pending-event-card .update-actions .btn-danger:hover {
    background: #b91c1c;
}

.pending-event-card .update-resolved {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

/* Status badges for pending events */
.pending-event-card .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pending-event-card .status-pending {
    background: #fef3c7;
    color: #92400e;
}

.pending-event-card .status-approved {
    background: #dcfce7;
    color: #166534;
}

.pending-event-card .status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Count badge for pending events tab */
#pendingEventsCount {
    background: #ef4444;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    min-width: 1.25rem;
    text-align: center;
}

/* Responsive adjustments for pending events */
@media (max-width: 768px) {
    .pending-events-grid {
        grid-template-columns: 1fr;
    }
    
    .pending-event-card .update-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==========================================
   PENDING EVENT PREVIEW MODAL STYLES
   ========================================== */

.pending-event-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

.preview-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.preview-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.preview-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.preview-modal-close:hover {
    color: #1e293b;
}

.preview-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.preview-event-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.preview-event-flyer img {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-event-flyer img:hover {
    transform: scale(1.02);
}

.preview-event-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.75rem;
    color: #1e293b;
    line-height: 1.3;
}

.preview-event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.preview-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #475569;
}

.preview-meta-icon {
    flex-shrink: 0;
}

.preview-event-description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.preview-event-description h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #1e293b;
}

.preview-event-description p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    white-space: pre-wrap;
}

.preview-event-registration {
    margin-top: 1.5rem;
}

.preview-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-submission-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #64748b;
}

.preview-modal-actions {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .preview-event-card {
        grid-template-columns: 1fr;
    }
    
    .preview-modal-content {
        max-height: 95vh;
    }
    
    .preview-modal-body {
        padding: 1.5rem;
    }
    
    .preview-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .preview-modal-actions {
        justify-content: stretch;
    }
    
    .preview-modal-actions .btn {
        flex: 1;
    }
}

/* ==========================================
   MOVE BOOKING MODAL STYLES
   ========================================== */

.move-booking-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.move-booking-content {
    padding: 2rem;
}

.move-booking-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.move-booking-header .move-icon {
    font-size: 2rem;
}

.move-booking-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-dark-blue);
}

.move-booking-subtitle {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.move-booking-current {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.move-booking-current > label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-booking-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.booking-info-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.booking-info-row .label {
    color: #64748b;
    font-weight: 500;
    min-width: 90px;
}

.booking-info-row span:not(.label) {
    color: #1e293b;
    font-weight: 600;
}

.current-date-highlight {
    color: #dc2626 !important;
    background: #fef2f2;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.move-booking-new {
    margin-bottom: 1.25rem;
}

.move-booking-new label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.move-booking-new small {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.date-picker-input,
.time-select-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.date-picker-input:focus,
.time-select-input:focus {
    outline: none;
    border-color: var(--primary-dark-blue);
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

.date-picker-input:hover,
.time-select-input:hover {
    border-color: #cbd5e1;
}

.move-booking-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.move-booking-actions .btn {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.move-booking-actions .btn-move {
    background: linear-gradient(135deg, #1a3a52 0%, #2d5a7b 100%);
    color: white;
    border: none;
}

.move-booking-actions .btn-move:hover {
    background: linear-gradient(135deg, #0f2a3d 0%, #1a4560 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.3);
}

.move-booking-email-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.email-section-divider {
    position: relative;
    text-align: center;
    margin-bottom: 1rem;
}

.email-section-divider span {
    background: white;
    padding: 0 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.email-section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 0;
}

.email-reminder {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #92400e;
}

.email-reminder strong {
    color: #78350f;
    display: block;
    margin-bottom: 0.25rem;
}

/* Date Change Email Button in Booking Modal */
.btn-date-change {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
}

.btn-date-change:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Move booking button styles */
.btn-move-booking {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
}

.btn-move-booking:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

/* Previously moved booking indicator */
.booking-moved-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.booking-moved-indicator::before {
    content: '📅';
}

@media (max-width: 600px) {
    .move-booking-content {
        padding: 1.5rem;
    }
    
    .move-booking-actions {
        flex-direction: column;
    }
    
    .booking-info-row {
        flex-direction: column;
        gap: 0.15rem;
    }
    
    .booking-info-row .label {
        min-width: auto;
        font-size: 0.8rem;
    }
}

/* ==========================================
   BUSINESS IMAGE DELETE STYLES
   ========================================== */

.image-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.image-type-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
}

.delete-image-btn {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.delete-image-btn:hover {
    background: #fecaca;
    border-color: #f87171;
}

.image-preview-box {
    position: relative;
}

.fallback-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-help-text {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
    text-align: center;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #475569;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.image-upload-box .upload-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.image-upload-box .url-input-small {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Copy URL Button */
.copy-url-btn {
    padding: 0.4rem 0.6rem;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.copy-url-btn:hover {
    background: #bae6fd;
    border-color: #38bdf8;
}

/* ============================================
   RELEASE NOTES STYLES
   ============================================ */

/* Release Notes Button in Header */
.btn-release-notes {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 15px;
}

.btn-release-notes:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* NEW Badge */
.release-notes-badge {
    background: #ff4757;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: sparkle-pulse 1.5s ease-in-out infinite;
}

/* Sparkle animation */
@keyframes sparkle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 71, 87, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
    }
}

/* Button sparkle when new */
.btn-release-notes.has-new {
    animation: button-glow 2s ease-in-out infinite;
}

@keyframes button-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 40px rgba(118, 75, 162, 0.4);
    }
}

/* Release Notes Drawer */
.release-notes-drawer {
    position: fixed;
    width: 340px;
    max-height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    z-index: 99999;
    overflow: hidden;
    display: none;
}

.release-notes-drawer.open,
.feature-request-drawer.open {
    display: block;
}

/* Feature Request Drawer */
.feature-request-drawer {
    position: fixed;
    width: 400px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    z-index: 99999;
    overflow: hidden;
    display: none;
}

/* Feature Request Button */
.btn-feature-request {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.btn-feature-request:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.drawer-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.drawer-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.drawer-close:hover {
    opacity: 1;
}

.drawer-body {
    padding: 12px 16px;
    max-height: calc(500px - 50px);
    overflow-y: auto;
}

/* Prevent nested scrollbars in feature request sections */
#pendingRequestsList,
#completedRequestsList {
    max-height: none !important;
    overflow-y: visible !important;
}

/* Completed requests styling */
.completed-request-item {
    padding: 8px;
    background: #f0fdf4;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.8rem;
    border-left: 3px solid #10b981;
}

.completed-request-text {
    color: #334155;
    text-decoration: line-through;
    opacity: 0.7;
}

.completed-request-note {
    color: #059669;
    font-style: italic;
    margin-top: 4px;
    font-size: 0.75rem;
}

.completed-request-meta {
    color: #94a3b8;
    font-size: 0.7rem;
    margin-top: 2px;
}

/* Completion modal styling */
.completion-note-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completion-note-modal {
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.completion-note-modal h4 {
    margin: 0 0 12px 0;
    color: #10b981;
}

.completion-note-modal textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-height: 60px;
    resize: vertical;
    margin-bottom: 12px;
}

.completion-note-modal .btn-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Simple Release Note Item */
.release-note-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.release-note-date {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 4px;
}

.release-note-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

/* ========================================
   TROLLEY SPECIAL EVENTS SECTION
   ======================================== */

.trolley-events-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.trolley-events-filters .search-wrap {
    flex: 1;
    min-width: 200px;
}

.trolley-events-filters .search-wrap input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.trolley-events-filters .filter-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trolley-events-filters .filter-row label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trolley-events-filters .filter-row select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
}

/* Trolley Events List - Card Grid */
.trolley-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.trolley-events-list .loading,
.trolley-events-list .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

/* Trolley Event Card */
.trolley-event-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.trolley-event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.trolley-event-card-header {
    background: linear-gradient(135deg, #1a3a52 0%, #2d5a7b 100%);
    color: white;
    padding: 1rem 1.25rem;
    position: relative;
}

.trolley-event-card-header .event-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.trolley-event-card-header .event-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.trolley-event-card-header .status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.trolley-event-card-header .status-badge.published {
    background: #10b981;
    color: white;
}

.trolley-event-card-header .status-badge.draft {
    background: #f59e0b;
    color: white;
}

.trolley-event-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trolley-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #475569;
}

.trolley-event-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.trolley-event-meta .meta-icon {
    font-size: 1rem;
}

.trolley-event-description {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    flex: 1;
}

/* Time Slots Display */
.trolley-event-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.trolley-event-slots .slot-badge {
    background: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 500;
}

/* Ticket Progress */
.trolley-event-tickets {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.trolley-event-tickets .ticket-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.trolley-event-tickets .ticket-sold {
    color: #475569;
    font-weight: 600;
}

.trolley-event-tickets .ticket-revenue {
    color: #10b981;
    font-weight: 700;
}

.trolley-event-tickets .progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.trolley-event-tickets .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.trolley-event-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #fafbfc;
}

.trolley-event-card-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.8rem;
}

/* Time Slots Form */
.trolley-time-slots-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.trolley-time-slot-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.trolley-time-slot-item input[type="time"] {
    padding: 0.4rem 0.6rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.trolley-time-slot-item input[type="number"] {
    width: 80px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.trolley-time-slot-item label {
    font-size: 0.75rem;
    color: #64748b;
    margin-right: 0.25rem;
}

.trolley-time-slot-item .remove-slot-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s;
    margin-left: auto;
}

.trolley-time-slot-item .remove-slot-btn:hover {
    background: #fee2e2;
}

.add-slot-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #f1f5f9;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-slot-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.add-slot-btn span {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Input with prefix ($) */
.input-with-prefix {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    overflow: hidden;
}

.input-with-prefix:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
}

.input-with-prefix .input-prefix {
    padding: 0.6rem 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    border-right: 1px solid #e2e8f0;
}

.input-with-prefix input {
    flex: 1;
    border: none !important;
    padding: 0.6rem 0.75rem !important;
    outline: none;
}

.input-with-prefix input:focus {
    box-shadow: none !important;
}

/* Required field indicator */
.required {
    color: #ef4444;
}

/* Modal medium size */
.modal.modal-medium {
    max-width: 650px;
}

/* Notification Email Chips (compact version for trolley) */
.notification-email-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.35rem 0.6rem 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #475569;
    margin: 0.25rem;
}

.notification-email-chip .remove-email-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.2s;
}

.notification-email-chip .remove-email-btn:hover {
    color: #ef4444;
}

#trolleyNotificationEmailsList {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Trolley Ticket Drawer */
.trolley-ticket-drawer {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 420px;
    max-height: calc(100vh - 140px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    z-index: 99999;
    overflow: hidden;
    display: none;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.trolley-ticket-drawer.open {
    display: block;
}

.trolley-ticket-drawer .drawer-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.ticket-drawer-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.ticket-drawer-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.ticket-drawer-summary {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.ticket-summary-item {
    display: flex;
    flex-direction: column;
}

.ticket-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

.ticket-summary-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-drawer-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ticket-holder-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.ticket-holder-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.ticket-holder-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.ticket-holder-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
}

.ticket-holder-detail {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ticket-holder-qty {
    background: #059669;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
}

.ticket-empty-state {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

.ticket-empty-state .emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.btn-tickets {
    color: #059669 !important;
    border-color: #059669 !important;
}

.btn-tickets:hover {
    background: #059669 !important;
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .trolley-events-list {
        grid-template-columns: 1fr;
    }
    
    .trolley-time-slot-item {
        flex-wrap: wrap;
    }
    
    .trolley-event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .trolley-ticket-drawer {
        left: 10px;
        right: 10px;
        width: auto;
        top: 80px;
    }
}

/* ============================================
   UNPAID BOOKINGS SECTION
   ============================================ */

.unpaid-bookings-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.unpaid-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.unpaid-section h5 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #fee2e2;
}

.unpaid-list {
    max-height: 400px;
    overflow-y: auto;
}

.unpaid-booking-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.unpaid-booking-card:last-child {
    margin-bottom: 0;
}

.unpaid-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.unpaid-booking-name {
    font-weight: 600;
    color: #991b1b;
}

.unpaid-booking-date {
    font-size: 0.8rem;
    color: #7f1d1d;
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.unpaid-booking-details {
    font-size: 0.85rem;
    color: #374151;
}

.unpaid-booking-details p {
    margin: 4px 0;
}

.unpaid-booking-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.unpaid-booking-actions .btn {
    flex: 1;
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Fix Dilgert and Rose Trunk calendar width */
#dilgertCalendar,
#roseTrunkCalendar {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important; /* Override the grid from .calendar-grid */
}

#dilgertSection,
#roseTrunkSection {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure calendar days grid expands properly */
#dilgertCalendar .calendar-days,
#roseTrunkCalendar .calendar-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
}

#dilgertCalendar .calendar-weekdays,
#roseTrunkCalendar .calendar-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
}

#dilgertCalendar .calendar-day,
#roseTrunkCalendar .calendar-day {
    min-height: 80px !important;
    aspect-ratio: auto !important;
}

/* Week view styling for Dilgert/Rose Trunk */
#dilgertCalendar .week-view,
#roseTrunkCalendar .week-view {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
}

/* Year view styling for Dilgert/Rose Trunk */
#dilgertCalendar .year-view,
#roseTrunkCalendar .year-view {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
}

#dilgertCalendar .month-mini:hover,
#roseTrunkCalendar .month-mini:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

/* ==========================================
   BUSINESSES PAGE - EXTRA PREMIUM POLISH
   ========================================== */

/* Smooth entrance animation for cards */
.businesses-list .business-card {
    animation: cardSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.businesses-list .business-card:nth-child(1) { animation-delay: 0.02s; }
.businesses-list .business-card:nth-child(2) { animation-delay: 0.04s; }
.businesses-list .business-card:nth-child(3) { animation-delay: 0.06s; }
.businesses-list .business-card:nth-child(4) { animation-delay: 0.08s; }
.businesses-list .business-card:nth-child(5) { animation-delay: 0.10s; }
.businesses-list .business-card:nth-child(6) { animation-delay: 0.12s; }
.businesses-list .business-card:nth-child(7) { animation-delay: 0.14s; }
.businesses-list .business-card:nth-child(8) { animation-delay: 0.16s; }
.businesses-list .business-card:nth-child(9) { animation-delay: 0.18s; }
.businesses-list .business-card:nth-child(n+10) { animation-delay: 0.20s; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Premium focus ring for accessibility */
.business-card:focus-visible,
.chip:focus-visible,
.btn:focus-visible,
.ops-tab-btn:focus-visible {
    outline: 3px solid rgba(26, 58, 82, 0.4);
    outline-offset: 2px;
}

/* Business card active/pressed state */
.business-card:active {
    transform: translateY(0) scale(0.995);
    transition-duration: 0.1s;
}

/* Smooth transitions for filter changes */
.businesses-list {
    transition: opacity 0.2s ease;
}

/* Premium header bar glow when hovering section */
.businesses-section:hover::before {
    background: linear-gradient(90deg, var(--primary-dark-blue) 0%, #0ea5e9 40%, var(--primary-color) 100%);
}

/* Empty state improvements */
.businesses-list .loading {
    grid-column: 1 / -1;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

/* Business card image preview polish */
.business-card .image-preview img {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.business-card:hover .image-preview img {
    transform: scale(1.03);
}

/* Section header row premium */
.businesses-section .section-header-row {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

/* Ops tab badge pulse for pending items */
.ops-tab-btn .count-badge:not(:empty) {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35); }
    50% { box-shadow: 0 2px 12px rgba(239, 68, 68, 0.6); }
}

/* Status message premium */
.businesses-section .status-message {
    border-radius: 12px;
    animation: slideUp 0.3s ease-out;
}

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

/* Import sheet button special styling */
#importBusinessesBtn {
    position: relative;
}

/* Export button subtle icon hint */
#exportBusinessesBtn {
    position: relative;
}

/* ==========================================
   COORDINATE PIN ICON & POPOVER
   ========================================== */

/* Pin button on each card */
.coord-pin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.coord-pin-btn:hover {
    transform: scale(1.2);
}

.coord-pin-btn:active {
    transform: scale(0.95);
}

.coord-pin-btn.pin-has-coords {
    color: #16a34a;
}

.coord-pin-btn.pin-has-coords:hover {
    background: #dcfce7;
    color: #15803d;
}

.coord-pin-btn.pin-no-coords {
    color: #f59e0b;
    animation: pinBounce 2s ease-in-out infinite;
}

.coord-pin-btn.pin-no-coords:hover {
    background: #fef3c7;
    color: #d97706;
    animation: none;
}

@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Coordinate Popover */
.coord-popover {
    position: fixed;
    z-index: 10000;
    width: 360px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.coord-popover.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.coord-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%);
    color: #ffffff;
}

.coord-popover-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.coord-popover-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.coord-popover-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Map container */
.coord-map-container {
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.coord-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.coord-map-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-style: italic;
}

/* Form section */
.coord-form {
    padding: 16px 18px 18px;
}

.coord-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.coord-input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.coord-input-group input {
    width: 100%;
    padding: 9px 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 0.92rem !important;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    transition: all 0.2s ease;
}

.coord-input-group input:focus {
    border-color: var(--primary-dark-blue) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1) !important;
    outline: none;
}

.coord-input-group input::placeholder {
    color: #cbd5e1 !important;
    font-family: var(--font-body) !important;
    font-style: italic;
}

/* Actions row */
.coord-actions {
    display: flex;
    gap: 8px;
}

.coord-preview-btn {
    flex: 1;
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
}

.coord-save-btn {
    flex: 1;
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
}

.coord-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Status feedback */
.coord-status {
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    padding: 0;
    transition: all 0.2s ease;
}

.coord-status:empty {
    display: none;
}

.coord-status.success {
    display: block;
    color: #16a34a;
    background: #f0fdf4;
    padding: 6px 12px;
    border: 1px solid #bbf7d0;
}

.coord-status.error {
    display: block;
    color: #dc2626;
    background: #fef2f2;
    padding: 6px 12px;
    border: 1px solid #fecaca;
}

/* Mobile popover */
@media (max-width: 480px) {
    .coord-popover {
        width: calc(100vw - 20px);
        left: 10px !important;
    }
}


/* ==========================================================================
   PREMIUM BUSINESS EDIT MODAL REDESIGN
   ========================================================================== */

/* ── Modal Container ── */
#businessModal .modal {
    background: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 0 !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    width: min(860px, 96%) !important;
    max-height: 94vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ── Modal Header / Title ── */
#businessModal .modal h3 {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0 !important;
    padding: 22px 32px !important;
    background: linear-gradient(135deg, #0f2942 0%, var(--primary-dark-blue) 50%, #0c4a6e 100%) !important;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: none !important;
    border-radius: 20px 20px 0 0;
}

#businessModal .modal h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #f59e0b, #ffd700);
    border-radius: 3px;
}

/* ── Close Button ── */
#businessModal .modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    z-index: 11;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    font-size: 1.2rem !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    line-height: 1;
}

#businessModal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: rotate(90deg) scale(1.1);
}

/* ── Form Scrollable Body ── */
#businessModal form {
    padding: 28px 32px 24px;
    overflow-y: auto;
    max-height: calc(94vh - 80px);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

#businessModal form::-webkit-scrollbar {
    width: 6px;
}

#businessModal form::-webkit-scrollbar-track {
    background: transparent;
}

#businessModal form::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#businessModal form::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Form Grid (2-column) ── */
#businessModal .form-grid.tight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

/* ── Form Group ── */
#businessModal .form-group {
    margin-bottom: 4px;
}

#businessModal .form-group.full-width {
    grid-column: 1 / -1;
}

/* ── Labels ── */
#businessModal .form-group label,
#businessModal .form-group > label:first-child {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: #334155 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── All Inputs, Selects, Textareas ── */
#businessModal input[type="text"],
#businessModal input[type="tel"],
#businessModal input[type="email"],
#businessModal input[type="url"],
#businessModal input[type="number"],
#businessModal select,
#businessModal textarea {
    width: 100%;
    padding: 10px 14px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-family: var(--font-body);
    font-size: 0.92rem !important;
    color: #1e293b !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

#businessModal input[type="text"]:hover,
#businessModal input[type="tel"]:hover,
#businessModal input[type="email"]:hover,
#businessModal input[type="url"]:hover,
#businessModal input[type="number"]:hover,
#businessModal select:hover,
#businessModal textarea:hover {
    border-color: #94a3b8 !important;
    background: #ffffff !important;
}

#businessModal input[type="text"]:focus,
#businessModal input[type="tel"]:focus,
#businessModal input[type="email"]:focus,
#businessModal input[type="url"]:focus,
#businessModal input[type="number"]:focus,
#businessModal select:focus,
#businessModal textarea:focus {
    outline: none !important;
    border-color: var(--primary-dark-blue) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.12), 0 2px 8px rgba(26, 58, 82, 0.08) !important;
}

#businessModal select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-position: right 12px center !important;
    background-size: 14px !important;
    background-repeat: no-repeat !important;
    padding-right: 36px !important;
    cursor: pointer;
}

#businessModal textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 1.5;
}

/* ── Placeholder styling ── */
#businessModal input::placeholder,
#businessModal textarea::placeholder {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.88rem;
}

/* ── Category Checkboxes (Pills) ── */
#businessModal .category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

#businessModal .checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
    user-select: none;
}

#businessModal .checkbox-pill:hover {
    border-color: var(--primary-dark-blue);
    background: #eef6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26, 58, 82, 0.1);
}

#businessModal .checkbox-pill input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    padding: 0 !important;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-dark-blue);
    border-radius: 4px !important;
    flex-shrink: 0;
}

#businessModal .checkbox-pill:has(input:checked) {
    background: linear-gradient(135deg, #eef6ff 0%, #dbeafe 100%);
    border-color: var(--primary-dark-blue);
    color: var(--primary-dark-blue);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(26, 58, 82, 0.12);
}

/* ── Help Text ── */
#businessModal .help-text {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 0.78rem;
    font-style: italic;
    letter-spacing: 0.01em;
}

/* ── Coordinates Row ── */
#businessModal .coords-inline {
    display: flex;
    gap: 12px;
}

#businessModal .coords-inline input {
    flex: 1;
    min-width: 0;
}

#businessModal .label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

#businessModal .info-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    transition: all 0.2s ease;
}

#businessModal .info-icon:hover {
    background: var(--primary-dark-blue);
    color: #ffffff;
    border-color: var(--primary-dark-blue);
    transform: scale(1.1);
}

/* ── Image Upload Section ── */
#businessModal .image-upload-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
}

#businessModal .image-upload-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark-blue), #0ea5e9, var(--primary-dark-blue));
    opacity: 0.5;
}

#businessModal .image-upload-section > label {
    font-size: 0.9rem !important;
    margin-bottom: 12px;
}

#businessModal .image-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#businessModal .image-upload-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    transition: all 0.25s ease;
}

#businessModal .image-upload-box:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#businessModal .image-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

#businessModal .image-type-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--primary-dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#businessModal .image-preview-box {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s ease;
}

#businessModal .image-preview-box:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

#businessModal .image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

#businessModal .image-preview-box .preview-placeholder {
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
}

#businessModal .upload-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
}

#businessModal .upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

#businessModal .upload-btn:hover {
    background: linear-gradient(135deg, #0a2540 0%, var(--primary-dark-blue) 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(26, 58, 82, 0.25);
}

#businessModal .url-input-small {
    flex: 1;
    min-width: 0;
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
}

#businessModal .copy-url-btn {
    padding: 4px 8px;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s ease;
}

#businessModal .copy-url-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    transform: scale(1.05);
}

#businessModal .delete-image-btn {
    padding: 4px 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s ease;
}

#businessModal .delete-image-btn:hover {
    background: #fee2e2;
    border-color: #f87171;
    transform: scale(1.05);
}

#businessModal .image-help-text {
    margin-top: 12px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 0 8px;
}

/* ── Collapsible Header (Business Hours) ── */
#businessModal .collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 8px;
    border-top: 1.5px solid #e2e8f0;
    margin-top: 8px;
}

#businessModal .collapsible-header label {
    margin-bottom: 0 !important;
    font-size: 0.88rem !important;
}

#businessModal .collapse-toggle {
    padding: 7px 16px;
    border: 1.5px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#businessModal .collapse-toggle:hover {
    border-color: var(--primary-dark-blue);
    color: var(--primary-dark-blue);
    background: #eef6ff;
    box-shadow: 0 2px 8px rgba(26, 58, 82, 0.1);
    transform: translateY(-1px);
}

/* ── Hours Container ── */
#businessModal .hours-container {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 14px;
    align-items: start;
    margin-top: 6px;
    max-width: 100%;
    overflow: hidden;
}

/* ── Hours Grid ── */
#businessModal .hours-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Day Row ── */
#businessModal .day-row {
    display: grid;
    grid-template-columns: 70px 75px 1fr;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    min-height: 38px;
    transition: all 0.2s ease;
}

#businessModal .day-row:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

#businessModal .day-row:nth-child(even) {
    background: #ffffff;
}

#businessModal .day-row:nth-child(even):hover {
    background: #f8fafc;
}

#businessModal .day-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--primary-dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#businessModal .closed-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

#businessModal .closed-toggle input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    padding: 0 !important;
    margin: 0;
    accent-color: #dc2626;
    cursor: pointer;
    border-radius: 3px !important;
}

#businessModal .time-pair {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

#businessModal .time-input {
    display: flex;
    align-items: center;
    gap: 4px;
}

#businessModal .time-input input {
    width: 52px !important;
    padding: 5px 6px !important;
    font-size: 0.8rem !important;
    text-align: center;
    border-radius: 8px !important;
}

#businessModal .time-input select {
    width: 56px !important;
    padding: 5px 4px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
    background-position: right 4px center !important;
    background-size: 10px !important;
    padding-right: 18px !important;
}

#businessModal .time-separator {
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.82rem;
    padding: 0 2px;
}

/* ── Closed Dates Column ── */
#businessModal .closed-dates-column {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 14px;
    border-radius: 14px;
    border: 1.5px solid #fde68a;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

#businessModal .closed-dates-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
}

#businessModal .closed-dates-column h4 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#businessModal .closed-date-item {
    display: grid;
    grid-template-columns: 110px 1fr 30px;
    gap: 4px;
    align-items: center;
    padding: 6px 8px;
    background: #ffffff;
    border: 1px solid #fde68a;
    border-radius: 10px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

#businessModal .closed-date-item:hover {
    border-color: #fbbf24;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.1);
}

#businessModal .closed-date-item input[type="date"],
#businessModal .closed-date-item input[type="text"] {
    padding: 6px 8px !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
    border: 1px solid #fde68a !important;
    background: #fffbeb !important;
}

#businessModal .btn-remove-closed-date {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#businessModal .btn-remove-closed-date:hover {
    background: #fca5a5;
    color: #ffffff;
    transform: scale(1.1);
}

#businessModal .btn-add-closed-date {
    width: 100%;
    padding: 9px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#businessModal .btn-add-closed-date:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ── Social Media Grid ── */
#businessModal .social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 6px;
}

#businessModal .social-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.25s ease;
}

#businessModal .social-field:hover {
    border-color: #94a3b8;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#businessModal .social-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--primary-dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#businessModal .social-field input {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
}

#businessModal .social-field input:focus {
    border-color: var(--primary-dark-blue) !important;
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1) !important;
}

/* ── Status Message ── */
#businessModal .status-message {
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

/* ── Modal Action Buttons ── */
#businessModal .modal-actions.split-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1.5px solid #e2e8f0;
}

#businessModal .modal-actions .btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#businessModal .btn-primary {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(26, 58, 82, 0.25);
}

#businessModal .btn-primary:hover {
    background: linear-gradient(135deg, #0a2540 0%, var(--primary-dark-blue) 100%) !important;
    box-shadow: 0 6px 20px rgba(26, 58, 82, 0.35) !important;
    transform: translateY(-2px);
}

#businessModal .btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0 !important;
}

#businessModal .btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}

#businessModal .btn-outline {
    background: transparent !important;
    color: var(--primary-dark-blue) !important;
    border: 1.5px solid var(--primary-dark-blue) !important;
}

#businessModal .btn-outline:hover {
    background: var(--primary-dark-blue) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26, 58, 82, 0.25);
}

/* ── Section Dividers (full-width form groups) ── */
#businessModal .form-group.full-width + .form-group.full-width {
    padding-top: 6px;
}

/* Social media section label */
#businessModal .form-group.full-width > label:first-child {
    font-size: 0.88rem !important;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 8px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    #businessModal .modal {
        width: 98% !important;
        border-radius: 16px !important;
        max-height: 96vh !important;
    }

    #businessModal .modal h3 {
        padding: 18px 20px !important;
        font-size: 1.1rem;
        border-radius: 16px 16px 0 0;
    }

    #businessModal form {
        padding: 20px 18px 18px;
    }

    #businessModal .form-grid.tight-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #businessModal .image-upload-grid {
        grid-template-columns: 1fr;
    }

    #businessModal .hours-container {
        grid-template-columns: 1fr;
    }

    #businessModal .day-row {
        grid-template-columns: 80px 75px 1fr;
        gap: 6px;
        padding: 6px 8px;
    }

    #businessModal .time-pair {
        flex-wrap: wrap;
    }

    #businessModal .social-grid {
        grid-template-columns: 1fr;
    }

    #businessModal .modal-actions.split-actions {
        flex-direction: column;
        gap: 10px;
    }

    #businessModal .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #businessModal .day-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    #businessModal .day-label {
        font-size: 0.78rem;
    }

    #businessModal .time-input input {
        width: 50px !important;
    }

    #businessModal .time-input select {
        width: 52px !important;
    }

    #businessModal .coords-inline {
        flex-direction: column;
        gap: 8px;
    }

    #businessModal .closed-dates-column {
        padding: 12px;
    }

    #businessModal .closed-date-item {
        grid-template-columns: 1fr 1fr 30px;
    }
}


/* ==========================================================================
   PREMIUM EVENT EDIT MODAL REDESIGN
   ========================================================================== */

/* ── Modal Container ── */
#eventModal .modal {
    background: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 0 !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    width: min(900px, 96%) !important;
    max-height: 94vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ── Modal Header ── */
#eventModal .modal h3 {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0 !important;
    padding: 22px 32px !important;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%) !important;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: none !important;
    border-radius: 20px 20px 0 0;
}

#eventModal .modal h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    border-radius: 3px;
}

/* ── Close Button ── */
#eventModal .modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    z-index: 11;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    font-size: 1.2rem !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    line-height: 1;
}

#eventModal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: rotate(90deg) scale(1.1);
}

/* ── Form Scrollable Body ── */
#eventModal form {
    padding: 28px 32px 24px;
    overflow-y: auto;
    max-height: calc(94vh - 80px);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

#eventModal form::-webkit-scrollbar {
    width: 6px;
}

#eventModal form::-webkit-scrollbar-track {
    background: transparent;
}

#eventModal form::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#eventModal form::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Form Grid ── */
#eventModal .form-grid.tight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

/* ── Form Groups ── */
#eventModal .form-group {
    margin-bottom: 4px;
}

#eventModal .form-group.full-width {
    grid-column: 1 / -1;
}

/* ── Labels ── */
#eventModal .form-group label,
#eventModal .form-group > label:first-child {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: #334155 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── All Inputs, Selects, Textareas ── */
#eventModal input[type="text"],
#eventModal input[type="tel"],
#eventModal input[type="email"],
#eventModal input[type="url"],
#eventModal input[type="number"],
#eventModal input[type="date"],
#eventModal input[type="time"],
#eventModal select,
#eventModal textarea {
    width: 100%;
    padding: 10px 14px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-family: var(--font-body);
    font-size: 0.92rem !important;
    color: #1e293b !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

#eventModal input:hover,
#eventModal select:hover,
#eventModal textarea:hover {
    border-color: #94a3b8 !important;
    background: #ffffff !important;
}

#eventModal input:focus,
#eventModal select:focus,
#eventModal textarea:focus {
    outline: none !important;
    border-color: #4338ca !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12), 0 2px 8px rgba(67, 56, 202, 0.08) !important;
}

#eventModal select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-position: right 12px center !important;
    background-size: 14px !important;
    background-repeat: no-repeat !important;
    padding-right: 36px !important;
    cursor: pointer;
}

#eventModal textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* ── Placeholder Styling ── */
#eventModal input::placeholder,
#eventModal textarea::placeholder {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.88rem;
}

/* ── Help Text ── */
#eventModal .help-text,
#eventModal small {
    display: block;
    margin-top: 5px;
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
    font-style: italic;
    letter-spacing: 0.01em;
}

/* ── File Input ── */
#eventModal input[type="file"] {
    padding: 10px 14px !important;
    background: #f8fafc !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

#eventModal input[type="file"]:hover {
    border-color: #4338ca !important;
    background: #f5f3ff !important;
}

/* ── Image Preview ── */
#eventModal .image-preview {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 8px;
}

/* ── Ticketing Section Container ── */
#eventModal .ticketing-section-container {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin-top: 4px;
}

/* ── Ticketing Grid ── */
#eventModal .ticketing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

#eventModal .ticketing-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
}

/* ── Ticketing Panel ── */
#eventModal .ticketing-panel {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1.5px solid #818cf8;
    border-radius: 14px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

#eventModal .ticketing-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #4f46e5, #6366f1);
}

#eventModal .notifications-panel {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #c084fc;
}

#eventModal .notifications-panel::before {
    background: linear-gradient(90deg, #a855f7, #9333ea, #a855f7);
}

/* ── Ticketing Panel Header ── */
#eventModal .ticketing-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

#eventModal .ticketing-icon {
    font-size: 1.5rem;
    line-height: 1;
}

#eventModal .ticketing-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    color: #3730a3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#eventModal .notifications-panel .ticketing-title {
    color: #7c3aed;
}

#eventModal .ticketing-subtitle {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
}

/* ── Ticketing Toggle ── */
#eventModal .ticketing-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1.5px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#eventModal .ticketing-toggle:hover {
    border-color: #818cf8;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

#eventModal .ticketing-toggle .toggle-slider {
    width: 46px;
    min-width: 46px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 24px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#eventModal .ticketing-toggle .toggle-slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

#eventModal .ticketing-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #10b981, #059669);
}

#eventModal .ticketing-toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

#eventModal .ticketing-toggle .toggle-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Ticketing Checkbox ── */
#eventModal .ticketing-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

#eventModal .ticketing-checkbox:hover {
    border-color: #818cf8;
    background: #faf5ff;
}

#eventModal .ticketing-checkbox input {
    width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
    margin: 0;
    accent-color: #4338ca;
    cursor: pointer;
}

/* ── Ticket Tiers ── */
#eventModal .ticket-tiers-container {
    margin-bottom: 10px;
}

#eventModal .ticket-tiers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#eventModal .ticket-tier-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 60px 1fr auto;
    gap: 8px;
    align-items: end;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
}

#eventModal .ticket-tier-row:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

#eventModal .ticketing-field label {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px !important;
}

#eventModal .ticketing-field input {
    padding: 8px 10px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}

#eventModal .remove-tier-btn {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

/* ── Tier Sold Badge ── */
.tier-sold-badge {
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #94a3b8;
    text-align: center;
    min-width: 36px;
}

.tier-sold-badge.has-sales {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

#eventModal .remove-tier-btn:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    transform: scale(1.05);
}

#eventModal .add-tier-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
    border: 1.5px dashed #86efac;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
}

#eventModal .add-tier-btn:hover {
    background: #dcfce7;
    border-color: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

/* ── Ticket Status Box ── */
#eventModal .ticket-status-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px;
    border: 1.5px solid #e2e8f0;
}

#eventModal .ticket-status-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#eventModal .ticket-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#eventModal .stat-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-weight: 700;
}

#eventModal .stat-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
}

#eventModal .stat-value.revenue {
    color: #059669;
}

#eventModal .ticket-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

#eventModal .ticket-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #4338ca);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Notification Emails ── */
#eventModal .notification-emails-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#eventModal .notification-emails-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
}

#eventModal .notification-email-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #334155;
    transition: all 0.2s ease;
}

#eventModal .notification-email-item:hover {
    border-color: #c084fc;
    background: #faf5ff;
}

#eventModal .add-email-row {
    display: flex;
    gap: 6px;
}

#eventModal .add-email-input {
    flex: 1;
    padding: 8px 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    background: #ffffff !important;
}

#eventModal .add-email-input:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1) !important;
}

#eventModal .add-email-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#eventModal .add-email-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}

#eventModal .notification-help {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

/* ── Ticketing Info Bar ── */
#eventModal .ticketing-info-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border-radius: 10px;
    border: 1.5px solid #fde047;
    font-size: 0.82rem;
    color: #854d0e;
    line-height: 1.4;
}

#eventModal .ticketing-info-bar .info-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: auto;
    height: auto;
    border: none;
    background: none;
}

/* ── Feature Toggle ── */
#eventModal .feature-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 10px;
    border: 1.5px solid #fbbf24;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
}

#eventModal .feature-toggle:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);
}

#eventModal .feature-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #ffffff;
    border: 2px solid #d97706;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

#eventModal .feature-toggle input:checked + .feature-checkbox {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #b45309;
}

#eventModal .feature-label {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #92400e;
    font-size: 0.88rem;
    flex: 1;
}

/* ── Status Message ── */
#eventModal .status-message {
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

/* ── Modal Action Buttons ── */
#eventModal .modal-actions.split-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1.5px solid #e2e8f0;
}

#eventModal .modal-actions .btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#eventModal .btn-primary {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(67, 56, 202, 0.25);
}

#eventModal .btn-primary:hover {
    background: linear-gradient(135deg, #3730a3 0%, #312e81 100%) !important;
    box-shadow: 0 6px 20px rgba(67, 56, 202, 0.35) !important;
    transform: translateY(-2px);
}

#eventModal .btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0 !important;
}

#eventModal .btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    #eventModal .modal {
        width: 98% !important;
        border-radius: 16px !important;
        max-height: 96vh !important;
    }

    #eventModal .modal h3 {
        padding: 18px 20px !important;
        font-size: 1.1rem;
        border-radius: 16px 16px 0 0;
    }

    #eventModal form {
        padding: 20px 18px 18px;
    }

    #eventModal .form-grid.tight-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #eventModal .ticketing-grid {
        grid-template-columns: 1fr;
    }

    #eventModal .ticket-tier-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    #eventModal .ticket-tier-row .ticketing-field:first-child {
        grid-column: 1 / -1;
    }

    #eventModal .modal-actions.split-actions {
        flex-direction: column;
        gap: 10px;
    }

    #eventModal .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #eventModal .ticketing-panel {
        padding: 14px;
    }

    #eventModal .ticket-tier-row {
        grid-template-columns: 1fr;
    }

    #eventModal .ticket-status-header {
        flex-direction: column;
        gap: 6px;
    }
}


/* ==========================================================================
   PREMIUM TROLLEY EVENT MODAL REDESIGN
   ========================================================================== */

/* ── Modal Container ── */
#trolleyEventModal .modal {
    background: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 0 !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    width: min(780px, 96%) !important;
    max-height: 94vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ── Modal Header ── */
#trolleyEventModal .modal h3 {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0 !important;
    padding: 22px 32px !important;
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%) !important;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: none !important;
    border-radius: 20px 20px 0 0;
}

#trolleyEventModal .modal h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    border-radius: 3px;
}

/* ── Close Button ── */
#trolleyEventModal .modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    z-index: 11;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    font-size: 1.2rem !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    line-height: 1;
}

#trolleyEventModal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: rotate(90deg) scale(1.1);
}

/* ── Form Body ── */
#trolleyEventModal form {
    padding: 28px 32px 24px;
    overflow-y: auto;
    max-height: calc(94vh - 80px);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

#trolleyEventModal form::-webkit-scrollbar {
    width: 6px;
}

#trolleyEventModal form::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* ── Form Grid ── */
#trolleyEventModal .form-grid.tight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

/* ── Form Groups ── */
#trolleyEventModal .form-group {
    margin-bottom: 4px;
}

#trolleyEventModal .form-group.full-width {
    grid-column: 1 / -1;
}

/* ── Labels ── */
#trolleyEventModal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: #334155 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#trolleyEventModal .required {
    color: #dc2626;
}

/* ── All Inputs / Selects / Textareas ── */
#trolleyEventModal input[type="text"],
#trolleyEventModal input[type="number"],
#trolleyEventModal input[type="email"],
#trolleyEventModal input[type="date"],
#trolleyEventModal input[type="time"],
#trolleyEventModal select,
#trolleyEventModal textarea {
    width: 100%;
    padding: 10px 14px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-family: var(--font-body);
    font-size: 0.92rem !important;
    color: #1e293b !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

#trolleyEventModal input:hover,
#trolleyEventModal select:hover,
#trolleyEventModal textarea:hover {
    border-color: #94a3b8 !important;
    background: #ffffff !important;
}

#trolleyEventModal input:focus,
#trolleyEventModal select:focus,
#trolleyEventModal textarea:focus {
    outline: none !important;
    border-color: #059669 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12), 0 2px 8px rgba(5, 150, 105, 0.08) !important;
}

#trolleyEventModal select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-position: right 12px center !important;
    background-size: 14px !important;
    background-repeat: no-repeat !important;
    padding-right: 36px !important;
    cursor: pointer;
}

/* ── Input with Prefix ($) ── */
#trolleyEventModal .input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

#trolleyEventModal .input-prefix {
    position: absolute;
    left: 14px;
    font-weight: 700;
    color: #64748b;
    font-size: 0.92rem;
    z-index: 1;
}

#trolleyEventModal .input-with-prefix input {
    padding-left: 28px !important;
}

/* ── Time Slots ── */
#trolleyEventModal .trolley-time-slots-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

#trolleyEventModal .add-slot-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border: 1.5px dashed #6ee7b7;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
}

#trolleyEventModal .add-slot-btn:hover {
    background: #d1fae5;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

/* ── Ticket Status ── */
#trolleyEventModal .ticket-status-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px;
    border: 1.5px solid #e2e8f0;
}

#trolleyEventModal .ticket-progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* ── Notification Emails ── */
#trolleyEventModal .notification-emails-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

#trolleyEventModal .add-email-row {
    display: flex;
    gap: 6px;
}

#trolleyEventModal .add-email-input {
    flex: 1;
    padding: 8px 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    background: #ffffff !important;
}

#trolleyEventModal .add-email-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#trolleyEventModal .add-email-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

/* ── Modal Actions ── */
#trolleyEventModal .modal-actions.split-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1.5px solid #e2e8f0;
}

#trolleyEventModal .modal-actions .btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

#trolleyEventModal .btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(5, 150, 105, 0.25);
}

#trolleyEventModal .btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35) !important;
    transform: translateY(-2px);
}

#trolleyEventModal .btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0 !important;
}

#trolleyEventModal .btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    transform: translateY(-1px);
}

/* ── Trolley Modal Responsive ── */
@media (max-width: 768px) {
    #trolleyEventModal .modal {
        width: 98% !important;
        border-radius: 16px !important;
    }

    #trolleyEventModal .modal h3 {
        padding: 18px 20px !important;
        font-size: 1.1rem;
        border-radius: 16px 16px 0 0;
    }

    #trolleyEventModal form {
        padding: 20px 18px 18px;
    }

    #trolleyEventModal .form-grid.tight-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #trolleyEventModal .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   FIX 1: EVENT MODAL — FLYER SECTION (no overlap, smaller thumb, show flyer)
   ========================================================================== */

/* Stack flyer upload + URL vertically so file inputs don't overlap */
#eventModal .form-grid.tight-grid:last-of-type {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}

/* Flyer file input — compact */
#eventModal input[type="file"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Flyer preview — show more of the image, smaller thumbnail feel */
#eventModal .image-preview {
    width: 100% !important;
    max-width: 280px;
    height: 200px !important;
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    background-color: #f8fafc;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

#eventModal .image-preview:hover {
    border-color: #818cf8 !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

/* ==========================================================================
   FIX 2: EVENT MODAL — FEATURE & RECURRING CHECKMARKS (premium polish)
   ========================================================================== */

/* Hide the native checkbox completely */
#eventModal .feature-toggle input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none;
}

/* Custom checkbox box */
#eventModal .feature-checkbox {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    background: #ffffff !important;
    border: 2.5px solid #d97706 !important;
    border-radius: 7px !important;
    position: relative !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.15);
}

/* Checkmark via :after */
#eventModal .feature-checkbox::after {
    content: '' !important;
    position: absolute !important;
    display: none !important;
    left: 7px !important;
    top: 3px !important;
    width: 7px !important;
    height: 13px !important;
    border: solid #ffffff !important;
    border-width: 0 2.5px 2.5px 0 !important;
    transform: rotate(45deg) !important;
}

/* Checked state */
#eventModal .feature-toggle input[type="checkbox"]:checked + .feature-checkbox {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: #b45309 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35) !important;
    transform: scale(1.05);
}

#eventModal .feature-toggle input[type="checkbox"]:checked + .feature-checkbox::after {
    display: block !important;
}

/* Hover on toggle label */
#eventModal .feature-toggle:hover .feature-checkbox {
    border-color: #b45309 !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25) !important;
}

/* Feature label text */
#eventModal .feature-label {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: #92400e !important;
    font-size: 0.9rem !important;
    flex: 1 !important;
    user-select: none;
}

/* Feature toggle container polish */
#eventModal .feature-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-radius: 12px !important;
    border: 1.5px solid #fbbf24 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: 4px !important;
    position: relative;
}

#eventModal .feature-toggle:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* Recurring options selects inside eventModal need override */
#eventModal #recurringOptions select {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    background: #f8fafc !important;
    margin-bottom: 8px;
}


/* ==========================================================================
   FIX 3: MAIN EVENTS SCREEN — PREMIUM REDESIGN
   ========================================================================== */

/* ── Section Header ── */
[data-ops-tab-panel="events"] .section-header-row {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

[data-ops-tab-panel="events"] .ops-content-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

[data-ops-tab-panel="events"] .ops-content-subtitle {
    color: #64748b;
    font-size: 0.88rem;
}

/* ── Section Action Buttons ── */
[data-ops-tab-panel="events"] .section-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%);
    box-shadow: 0 3px 12px rgba(26, 58, 82, 0.25);
    font-size: 0.82rem;
    padding: 9px 20px;
}

[data-ops-tab-panel="events"] .section-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 82, 0.35);
}

[data-ops-tab-panel="events"] .section-actions .btn-secondary {
    font-size: 0.82rem;
    padding: 9px 18px;
}

/* ── View Toggle Group — Premium ── */
[data-ops-tab-panel="events"] .view-toggle-group {
    display: flex;
    gap: 4px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 4px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-ops-tab-panel="events"] .view-toggle-group .btn-icon {
    padding: 7px 12px;
    border-radius: 7px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-ops-tab-panel="events"] .view-toggle-group .btn-icon:hover {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

[data-ops-tab-panel="events"] .view-toggle-group .btn-icon.active {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%);
    color: #ffd700;
    box-shadow: 0 3px 10px rgba(26, 58, 82, 0.25);
    border: none;
}

/* ── Events Filters — Premium ── */
[data-ops-tab-panel="events"] .events-filters {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 14px;
    align-items: end;
    margin: 0 0 24px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-ops-tab-panel="events"] .events-filters label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.76rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    display: block;
}

[data-ops-tab-panel="events"] .events-filters input[type="search"],
[data-ops-tab-panel="events"] .events-filters select {
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-ops-tab-panel="events"] .events-filters select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: right 10px center;
    background-size: 14px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

[data-ops-tab-panel="events"] .events-filters input[type="search"]:hover,
[data-ops-tab-panel="events"] .events-filters select:hover {
    border-color: var(--primary-dark-blue);
    box-shadow: 0 2px 8px rgba(26, 58, 82, 0.1);
}

[data-ops-tab-panel="events"] .events-filters input[type="search"]:focus,
[data-ops-tab-panel="events"] .events-filters select:focus {
    outline: none;
    border-color: var(--primary-dark-blue);
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1), 0 2px 8px rgba(26, 58, 82, 0.08);
}

/* ── Events Card Grid — Premium ── */
[data-ops-tab-panel="events"] .events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
    animation: fadeInGrid 0.4s ease-out;
}

/* ── Event Card — Premium Treatment ── */
[data-ops-tab-panel="events"] .event-card-admin {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

[data-ops-tab-panel="events"] .event-card-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark-blue), #3b82f6, var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

[data-ops-tab-panel="events"] .event-card-admin:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

[data-ops-tab-panel="events"] .event-card-admin:hover::before {
    opacity: 1;
}

/* ── Date Display Header ── */
[data-ops-tab-panel="events"] .event-date-display {
    margin: 0;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%);
    border-radius: 0;
}

/* ── Title Section ── */
[data-ops-tab-panel="events"] .event-card-title-section {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
}

[data-ops-tab-panel="events"] .event-title-content {
    flex: 1;
    min-width: 0;
}

[data-ops-tab-panel="events"] .event-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 8px 0;
}

/* ── Thumbnail ── */
[data-ops-tab-panel="events"] .event-thumbnail {
    width: 110px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-ops-tab-panel="events"] .event-thumbnail:hover {
    border-color: var(--primary-dark-blue);
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

[data-ops-tab-panel="events"] .event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

/* ── Badges ── */
[data-ops-tab-panel="events"] .event-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

[data-ops-tab-panel="events"] .event-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

[data-ops-tab-panel="events"] .event-badge.published {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

[data-ops-tab-panel="events"] .event-badge.featured {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #7c3aed;
    border: 1px solid #d8b4fe;
}

[data-ops-tab-panel="events"] .event-badge.draft {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fde68a;
}

[data-ops-tab-panel="events"] .event-badge.recurring {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* ── Card Body Info ── */
[data-ops-tab-panel="events"] .event-card-body {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

[data-ops-tab-panel="events"] .event-info-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

[data-ops-tab-panel="events"] .event-info-value {
    font-size: 0.92rem;
    color: #1e293b;
    font-weight: 600;
}

/* ── Tags / Chips ── */
[data-ops-tab-panel="events"] .event-chip {
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

/* ── Card Footer ── */
[data-ops-tab-panel="events"] .event-card-footer {
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(to bottom, #fafbfc 0%, #f8fafc 100%);
    display: flex;
    gap: 10px;
    border-radius: 0 0 16px 16px;
}

[data-ops-tab-panel="events"] .event-card-footer .btn {
    flex: 1;
    padding: 9px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 10px;
    letter-spacing: 0.03em;
}

[data-ops-tab-panel="events"] .event-card-footer .btn-outline {
    background: #ffffff;
    color: var(--primary-dark-blue);
    border: 1.5px solid #e2e8f0;
}

[data-ops-tab-panel="events"] .event-card-footer .btn-outline:hover {
    background: var(--primary-dark-blue);
    color: #ffffff;
    border-color: var(--primary-dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(26, 58, 82, 0.2);
}

[data-ops-tab-panel="events"] .event-card-footer .btn-outline-danger {
    background: #ffffff;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
}

[data-ops-tab-panel="events"] .event-card-footer .btn-outline-danger:hover {
    background: #fee2e2;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.15);
}

/* ── Past / Archived Card States ── */
[data-ops-tab-panel="events"] .event-card-admin.past-event {
    opacity: 0.7;
    border-left: 4px solid #94a3b8;
}

[data-ops-tab-panel="events"] .event-card-admin.archived-event {
    opacity: 0.6;
    border-left: 4px solid #6b7280;
    background: #f9fafb;
}

/* ── Card Entrance Animations ── */
[data-ops-tab-panel="events"] .events-list .event-card-admin {
    animation: cardSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

[data-ops-tab-panel="events"] .events-list .event-card-admin:nth-child(1) { animation-delay: 0.02s; }
[data-ops-tab-panel="events"] .events-list .event-card-admin:nth-child(2) { animation-delay: 0.04s; }
[data-ops-tab-panel="events"] .events-list .event-card-admin:nth-child(3) { animation-delay: 0.06s; }
[data-ops-tab-panel="events"] .events-list .event-card-admin:nth-child(4) { animation-delay: 0.08s; }
[data-ops-tab-panel="events"] .events-list .event-card-admin:nth-child(5) { animation-delay: 0.10s; }
[data-ops-tab-panel="events"] .events-list .event-card-admin:nth-child(6) { animation-delay: 0.12s; }
[data-ops-tab-panel="events"] .events-list .event-card-admin:nth-child(n+7) { animation-delay: 0.14s; }

/* ── Events Table — Premium Polish ── */
[data-ops-tab-panel="events"] .events-table {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

[data-ops-tab-panel="events"] .events-table thead {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%);
}

[data-ops-tab-panel="events"] .events-table th {
    padding: 14px 16px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

[data-ops-tab-panel="events"] .events-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
}

[data-ops-tab-panel="events"] .events-table tbody tr {
    transition: background 0.2s ease;
}

[data-ops-tab-panel="events"] .events-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

/* ── Empty State ── */
[data-ops-tab-panel="events"] .events-list .loading {
    grid-column: 1 / -1;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
    text-align: center;
    color: #64748b;
    font-size: 1rem;
}

/* ── Events Note ── */
[data-ops-tab-panel="events"] .events-note {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px dashed #cbd5e1;
    padding: 14px 18px;
    border-radius: 12px;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    [data-ops-tab-panel="events"] .events-filters {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    [data-ops-tab-panel="events"] .events-list {
        grid-template-columns: 1fr;
    }

    [data-ops-tab-panel="events"] .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    [data-ops-tab-panel="events"] .section-actions {
        width: 100%;
        justify-content: space-between;
    }
}


/* ==========================================================================
   PREMIUM ADMIN DASHBOARD — HEADER, TABS & LAYOUT
   ========================================================================== */

/* ── Dashboard Background ── */
.admin-dashboard {
    background: linear-gradient(180deg, #f0f4f8 0%, #e8ecf1 100%) !important;
    min-height: 100vh;
}

/* ── Header Bar — Premium ── */
.admin-header-bar {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%) !important;
    border-bottom: none !important;
    padding: 16px 0 !important;
    box-shadow: 0 4px 20px rgba(26, 58, 82, 0.25) !important;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-content h2 {
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 1.5rem !important;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ── User Info in Header ── */
.admin-header-bar .user-info span {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.85rem;
}

.admin-header-bar .user-role {
    font-size: 0.72rem !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    letter-spacing: 0.05em;
}

.admin-header-bar .btn-secondary {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    font-size: 0.82rem !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(8px);
}

.admin-header-bar .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.admin-header-bar .btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 0.82rem !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.admin-header-bar .btn-primary:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4) !important;
}

/* ── Feature Request & Release Notes Buttons in Header ── */
.admin-header-bar .btn-feature-request {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fde68a !important;
    border: 1.5px solid rgba(253, 232, 138, 0.3) !important;
    font-size: 0.8rem !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.admin-header-bar .btn-feature-request:hover {
    background: rgba(253, 232, 138, 0.15) !important;
    border-color: rgba(253, 232, 138, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(253, 232, 138, 0.15) !important;
}

.admin-header-bar .btn-release-notes {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #a5f3fc !important;
    border: 1.5px solid rgba(165, 243, 252, 0.3) !important;
    font-size: 0.8rem !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.admin-header-bar .btn-release-notes:hover {
    background: rgba(165, 243, 252, 0.15) !important;
    border-color: rgba(165, 243, 252, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(165, 243, 252, 0.15) !important;
}

.admin-header-bar .release-notes-badge {
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* ── Tab Bar — Premium ── */
.admin-dashboard .tabs-container {
    position: sticky;
    top: 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    z-index: 99;
    padding: 14px 0 0 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.admin-dashboard .tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px !important;
    border-bottom: none !important;
    padding: 0 8px 12px 8px !important;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-dashboard .tab-btn {
    background: #f1f5f9 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 9px 16px !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    color: #475569 !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: nowrap;
}

.admin-dashboard .tab-btn:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: var(--primary-dark-blue) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-1px);
}

.admin-dashboard .tab-btn.active,
.admin-dashboard .tab-btn[aria-selected="true"] {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%) !important;
    border-color: var(--primary-dark-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(26, 58, 82, 0.25) !important;
    transform: translateY(-1px);
}

/* ── Pending Badge on Tabs ── */
.admin-dashboard .tab-btn .pending-badge {
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
    font-weight: 800 !important;
    margin-left: 4px;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.35);
}

.admin-dashboard .tab-btn.active .pending-badge {
    background: #fbbf24 !important;
    color: #92400e !important;
    box-shadow: 0 1px 4px rgba(251, 191, 36, 0.35);
}

/* ── Main Content Area ── */
.admin-dashboard .admin-main {
    padding: 28px 0 60px !important;
}

.admin-dashboard .dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 28px !important;
}

/* ── Tab Panels — Section Cards ── */
.admin-dashboard .tab-panel.active {
    animation: panelFadeIn 0.35s ease-out;
}

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

/* ── Section title inside panels ── */
.admin-dashboard .section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem !important;
    font-weight: 800;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    margin-bottom: 24px !important;
}

/* ── Ops Section Panels ── */
.admin-dashboard .ops-section {
    background: #ffffff !important;
    padding: 32px !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0;
}

/* ── Settings & Users Section Containers ── */
.admin-dashboard .settings-section,
.admin-dashboard .users-section {
    background: #ffffff !important;
    padding: 32px !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0;
}

/* ── Stats Overview Cards — Premium ── */
.admin-dashboard .stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-dashboard .stat-card {
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 20px !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.admin-dashboard .stat-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.admin-dashboard .stat-card.primary {
    border-left-color: var(--primary-dark-blue) !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%) !important;
}

.admin-dashboard .stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: var(--primary-dark-blue) !important;
}

.admin-dashboard .stat-card .stat-label {
    font-size: 0.82rem !important;
    color: #64748b !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--font-heading);
}

.admin-dashboard .stat-card .stat-change.positive {
    color: #059669 !important;
}

.admin-dashboard .stat-card .stat-change.negative {
    color: #dc2626 !important;
}

/* ── Stats Section Cards ── */
.admin-dashboard .stats-section-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
}

/* ── Admin Dashboard Responsive ── */
@media (max-width: 768px) {
    .admin-header-bar {
        padding: 12px 0 !important;
    }

    .admin-header-content {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
        padding: 0 16px !important;
    }

    .admin-header-content h2 {
        font-size: 1.2rem !important;
    }

    .user-info {
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .admin-dashboard .tab-bar {
        gap: 4px !important;
        padding: 0 4px 10px 4px !important;
    }

    .admin-dashboard .tab-btn {
        padding: 7px 12px !important;
        font-size: 0.75rem !important;
    }

    .admin-dashboard .settings-section,
    .admin-dashboard .users-section,
    .admin-dashboard .ops-section {
        padding: 20px 16px !important;
        border-radius: 12px !important;
    }

    .admin-dashboard .dashboard-container {
        padding: 0 12px !important;
    }
}


/* ==========================================================================
   PREMIUM SITE SETTINGS SECTION
   ========================================================================== */

/* ── Settings Section Container ── */
[data-tab-panel="settings"].settings-section {
    background: #ffffff !important;
    padding: 36px !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0;
}

/* ── Settings Section Title ── */
[data-tab-panel="settings"] .section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em;
    margin-bottom: 28px !important;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

/* ── Settings Grid ── */
[data-tab-panel="settings"] .settings-grid.compact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px !important;
    margin-bottom: 28px;
}

/* ── Setting Cards ── */
[data-tab-panel="settings"] .setting-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-tab-panel="settings"] .setting-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-tab-panel="settings"] .setting-card > label {
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    color: #1e293b !important;
    display: block !important;
    margin-bottom: 16px !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-tab-panel="settings"] .setting-card {
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* ── Collapsible Header ── */
[data-tab-panel="settings"] .collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

[data-tab-panel="settings"] .collapsible-header label {
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    color: #1e293b !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 !important;
}

[data-tab-panel="settings"] .collapse-toggle {
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-family: var(--font-heading) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-tab-panel="settings"] .collapse-toggle:hover {
    border-color: var(--primary-dark-blue) !important;
    color: var(--primary-dark-blue) !important;
    background: #f0f9ff !important;
    box-shadow: 0 2px 6px rgba(26, 58, 82, 0.1) !important;
}

/* ── Hours Container ── */
[data-tab-panel="settings"] .hours-container {
    display: grid;
    grid-template-columns: 1fr minmax(0, 280px);
    gap: 20px;
    align-items: start;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Hours Grid ── */
[data-tab-panel="settings"] .hours-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

/* ── Day Rows ── */
[data-tab-panel="settings"] .day-row {
    display: grid;
    grid-template-columns: 85px 80px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    min-height: 40px;
    transition: all 0.2s ease;
}

[data-tab-panel="settings"] .day-row:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-tab-panel="settings"] .day-row:nth-child(even) {
    background: #f8fafc;
}

[data-tab-panel="settings"] .day-row:nth-child(even):hover {
    background: #f1f5f9;
}

[data-tab-panel="settings"] .day-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e293b;
    letter-spacing: 0.02em;
}

/* ── Closed Toggle ── */
[data-tab-panel="settings"] .closed-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
}

[data-tab-panel="settings"] .closed-toggle input {
    width: 15px;
    height: 15px;
    accent-color: var(--primary-dark-blue);
    cursor: pointer;
}

/* ── Time Inputs ── */
[data-tab-panel="settings"] .time-pair {
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-tab-panel="settings"] .time-input {
    display: flex;
    align-items: center;
    gap: 4px;
}

[data-tab-panel="settings"] .time-input input {
    width: 60px;
    padding: 6px 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s ease;
}

[data-tab-panel="settings"] .time-input input:focus {
    outline: none;
    border-color: var(--primary-dark-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

[data-tab-panel="settings"] .time-input select {
    width: 64px;
    padding: 6px 4px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    background: #f8fafc;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    transition: all 0.2s ease;
}

[data-tab-panel="settings"] .time-input select:focus {
    outline: none;
    border-color: var(--primary-dark-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

[data-tab-panel="settings"] .time-separator {
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ── Closed Dates Column ── */
[data-tab-panel="settings"] .closed-dates-column {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 16px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

[data-tab-panel="settings"] .closed-dates-column h4 {
    margin: 0 0 14px 0;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-tab-panel="settings"] .closed-date-item {
    display: grid;
    grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 32px;
    gap: 6px;
    align-items: center;
    padding: 7px 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
}

[data-tab-panel="settings"] .closed-date-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-tab-panel="settings"] .closed-date-item input[type="date"],
[data-tab-panel="settings"] .closed-date-item input[type="text"] {
    padding: 5px 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    background: #f8fafc;
    transition: all 0.2s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

[data-tab-panel="settings"] .closed-date-item input:focus {
    outline: none;
    border-color: var(--primary-dark-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

[data-tab-panel="settings"] .btn-remove-closed-date {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

[data-tab-panel="settings"] .btn-remove-closed-date:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    transform: scale(1.05);
}

[data-tab-panel="settings"] .btn-add-closed-date {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-tab-panel="settings"] .btn-add-closed-date:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(26, 58, 82, 0.25);
}

/* ── Social Media Grid ── */
[data-tab-panel="settings"] .social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

[data-tab-panel="settings"] .social-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-tab-panel="settings"] .social-field:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-tab-panel="settings"] .social-label {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #334155;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-tab-panel="settings"] .social-field input {
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    background: #f8fafc;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-tab-panel="settings"] .social-field input:focus {
    outline: none;
    border-color: var(--primary-dark-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1), 0 2px 8px rgba(26, 58, 82, 0.06);
}

[data-tab-panel="settings"] .social-field input::placeholder {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.82rem;
}

/* ── Cache Control Card ── */
[data-tab-panel="settings"] > .setting-card[style*="border: 2px solid #ffcccc"] {
    border-radius: 14px !important;
    border: 1.5px solid #fca5a5 !important;
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%) !important;
    padding: 24px !important;
}

/* ── Save Settings Button ── */
[data-tab-panel="settings"] #saveSettingsBtn {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c4a6e 100%) !important;
    color: #ffffff !important;
    padding: 12px 32px !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: var(--font-heading) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 3px 12px rgba(26, 58, 82, 0.2);
    margin-top: 8px;
}

[data-tab-panel="settings"] #saveSettingsBtn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(26, 58, 82, 0.3) !important;
    background: linear-gradient(135deg, #0c4a6e 0%, #083344 100%) !important;
}

/* ── Status Message ── */
[data-tab-panel="settings"] .status-message {
    border-radius: 12px !important;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 12px;
}

/* ── Settings Responsive ── */
@media (max-width: 768px) {
    [data-tab-panel="settings"].settings-section {
        padding: 20px 16px !important;
    }

    [data-tab-panel="settings"] .hours-container {
        grid-template-columns: 1fr !important;
        overflow: visible !important;
    }

    [data-tab-panel="settings"] .closed-dates-column {
        max-width: 100% !important;
        overflow: visible !important;
    }

    [data-tab-panel="settings"] .closed-date-item {
        grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 32px !important;
    }

    [data-tab-panel="settings"] .day-row {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding: 10px !important;
    }

    [data-tab-panel="settings"] .time-pair {
        flex-wrap: wrap;
    }

    [data-tab-panel="settings"] .social-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   COUPON CODES MANAGEMENT
   ═══════════════════════════════════════════════════════════════════ */

/* ── Stats Bar ── */
.coupon-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.coupon-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.coupon-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark-blue, #1a3a52) 0%, #0c4a6e 40%, var(--primary-color, #c41d15) 100%);
    opacity: 0.6;
}

.coupon-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.coupon-stat-card:hover::before {
    opacity: 1;
}

.coupon-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark-blue, #1a3a52);
    font-family: var(--font-heading, 'Playfair Display', serif);
    line-height: 1;
}

.coupon-stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Filter Bar ── */
.coupon-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.coupon-filter-bar select {
    padding: 10px 14px;
    border: 2px solid var(--gray-medium, #d1d5db);
    border-radius: var(--radius-sm, 8px);
    font-size: 0.9rem;
    background: white;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    min-width: 160px;
    font-family: var(--font-body, 'Lato', sans-serif);
}

.coupon-filter-bar select:focus {
    outline: none;
    border-color: var(--primary-color, #c41d15);
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.12);
}

.coupon-filter-bar input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--gray-medium, #d1d5db);
    border-radius: var(--radius-sm, 8px);
    font-size: 0.9rem;
    background: white;
    color: #334155;
    font-family: var(--font-body, 'Lato', sans-serif);
}

.coupon-filter-bar input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color, #c41d15);
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.12);
}

/* ── Coupon Cards List ── */
.coupon-codes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coupon-codes-list .empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
    font-size: 1rem;
}

/* ── Individual Coupon Card ── */
.coupon-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark-blue, #1a3a52), #0c4a6e, var(--primary-color, #c41d15));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coupon-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.coupon-card:hover::before {
    opacity: 1;
}

.coupon-card.inactive {
    opacity: 0.55;
    background: #f8fafc;
}

.coupon-card.expired {
    opacity: 0.5;
    background: #fef2f2;
    border-color: #fecaca;
}

/* Code badge */
.coupon-code-badge {
    background: linear-gradient(135deg, var(--primary-dark-blue, #1a3a52) 0%, #0c4a6e 100%);
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 10px 18px;
    border-radius: 10px;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.coupon-card.expired .coupon-code-badge,
.coupon-card.inactive .coupon-code-badge {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

/* Coupon details */
.coupon-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.coupon-details-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.coupon-discount-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f766e;
}

.coupon-card.expired .coupon-discount-label {
    color: #94a3b8;
}

.coupon-name-label {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}

.coupon-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #94a3b8;
}

.coupon-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.coupon-tours-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.coupon-tour-tag {
    background: #f0f9ff;
    color: #0369a1;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #bae6fd;
    white-space: nowrap;
}

.coupon-tour-tag.all-tours {
    background: #f0fdf4;
    color: #15803d;
    border-color: #86efac;
}

/* Right side — usage + status */
.coupon-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 100px;
}

.coupon-usage-badge {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 8px;
}

.coupon-status-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.coupon-status-pill.active {
    background: #dcfce7;
    color: #15803d;
}

.coupon-status-pill.inactive {
    background: #f1f5f9;
    color: #64748b;
}

.coupon-status-pill.expired {
    background: #fef2f2;
    color: #dc2626;
}

/* ═══════════════════════════════════════════════════════════════════
   PREMIUM COUPON MODAL — Matches business/event modal style
   ═══════════════════════════════════════════════════════════════════ */

/* ── Modal Container ── */
.coupon-modal {
    background: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 0 !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    width: min(720px, 96%) !important;
    max-height: 94vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ── Gradient Header ── */
.coupon-modal > h3 {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0 !important;
    padding: 22px 32px !important;
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 40%, #b91c1c 100%) !important;
    color: #ffffff !important;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: none !important;
    border-radius: 20px 20px 0 0;
}

.coupon-modal > h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    border-radius: 3px;
}

/* ── Close Button (glassmorphism over header) ── */
.coupon-modal > .modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    z-index: 11;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    font-size: 1.2rem !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    line-height: 1;
}

.coupon-modal > .modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: rotate(90deg) scale(1.1);
}

/* ── Form Scrollable Body ── */
.coupon-modal form {
    padding: 28px 32px 24px;
    overflow-y: auto;
    max-height: calc(94vh - 80px);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.coupon-modal form::-webkit-scrollbar {
    width: 6px;
}

.coupon-modal form::-webkit-scrollbar-track {
    background: transparent;
}

.coupon-modal form::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.coupon-modal form::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Section Dividers ── */
.coupon-modal h3.coupon-section-label {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 28px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.coupon-modal h3.coupon-section-label:first-of-type {
    margin-top: 0;
}

/* ── Form Grid ── */
.coupon-modal .coupon-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

/* ── Form Groups ── */
.coupon-modal .coupon-form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 4px;
}

/* ── Labels ── */
.coupon-modal .coupon-form-group > label:not(.coupon-tour-checkbox):not(.coupon-active-toggle) {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-weight: 700;
    font-size: 0.82rem;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Inputs, Selects ── */
.coupon-modal input[type="text"],
.coupon-modal input[type="number"],
.coupon-modal input[type="date"],
.coupon-modal select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.coupon-modal input:focus,
.coupon-modal select:focus {
    outline: none;
    border-color: var(--primary-color, #c41d15);
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
    background: #ffffff;
}

.coupon-modal select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #475569 50%),
        linear-gradient(135deg, #475569 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

/* ── Helper text ── */
.coupon-modal .coupon-form-group small {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
    line-height: 1.3;
}

/* ── Tour/Season Checkbox Groups ── */
.coupon-modal .coupon-tours-group {
    margin-bottom: 0;
}

.coupon-modal .coupon-tours-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coupon-modal .coupon-tour-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
}

.coupon-modal .coupon-tour-checkbox:hover {
    background: #f1f5f9;
    border-color: var(--primary-color, #c41d15);
}

.coupon-modal .coupon-tour-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
    accent-color: var(--primary-color, #c41d15);
}

.coupon-modal .coupon-tour-checkbox input[type="checkbox"]:checked + span {
    color: var(--primary-color, #c41d15);
    font-weight: 600;
}

.coupon-modal .coupon-tour-checkbox:has(input:checked) {
    background: #fff;
    border-color: var(--primary-color, #c41d15);
    box-shadow: 0 2px 8px rgba(196, 29, 21, 0.12);
}

/* ── Active Toggle ── */
.coupon-modal .coupon-active-toggle {
    display: flex !important;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-top: 8px;
    position: relative;
}

.coupon-modal .coupon-active-toggle .toggle-slider {
    position: relative;
    display: inline-block;
    width: 48px;
    min-width: 48px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 13px;
    transition: background 0.3s;
    flex-shrink: 0;
}

.coupon-modal .coupon-active-toggle .toggle-slider::before {
    display: none !important;
    content: none !important;
}

.coupon-modal .coupon-active-toggle .toggle-slider::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.coupon-modal .coupon-active-toggle input[type="checkbox"] {
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.coupon-modal .coupon-active-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: #0f766e;
}

.coupon-modal .coupon-active-toggle input[type="checkbox"]:checked + .toggle-slider::after {
    transform: translateX(22px);
}

/* ── Form Bottom Actions ── */
.coupon-modal .modal-actions {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.coupon-modal .modal-actions .btn-primary {
    background: linear-gradient(135deg, #991b1b, #b91c1c) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

.coupon-modal .modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #7f1d1d, #991b1b) !important;
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.4);
    transform: translateY(-1px);
}

.coupon-modal .modal-actions .btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 2px solid #e2e8f0 !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.coupon-modal .modal-actions .btn-secondary:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

.coupon-modal .modal-actions .btn-danger {
    margin-left: auto;
    background: #dc2626 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.coupon-modal .modal-actions .btn-danger:hover {
    background: #b91c1c !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .coupon-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .coupon-filter-bar {
        flex-direction: column;
    }

    .coupon-filter-bar select {
        min-width: 100%;
    }

    .coupon-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .coupon-code-badge {
        justify-self: start;
    }

    .coupon-actions {
        flex-direction: row;
        align-items: center;
    }

    .coupon-modal .coupon-form-grid {
        grid-template-columns: 1fr;
    }

    .coupon-modal form {
        padding: 20px 18px 18px;
    }

    .coupon-modal > h3 {
        padding: 18px 20px !important;
        font-size: 1.1rem;
    }

    .coupon-modal .modal-actions {
        flex-direction: column;
    }

    .coupon-modal .modal-actions .btn-danger {
        margin-left: 0;
    }
}