/* ===== VENUE/PARTNER PORTAL STYLES ===== */
/* Note: Core variables are in /css/variables.css */
/* Note: Button styles are in /css/components.css */

/* ===== VENUE PORTAL CONTAINER ===== */
.venue-portal {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background var(--transition), color var(--transition);
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
}

.venue-portal .admin-content {
    margin-left: 260px;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
    height: 100dvh;
    -webkit-overflow-scrolling: touch;
}

.venue-portal .admin-page {
    overflow-x: hidden;
    max-width: 100%;
}

/* ===== SIDEBAR ===== */
.venue-portal .admin-sidebar {
    background: var(--bg-sidebar);
    border-right-color: var(--border);
}

.venue-portal .sidebar-logo .logo-text {
    color: var(--text-primary);
}

.venue-portal .sidebar-logo .logo-text-svg {
    height: 22px;
    width: auto;
    top: 3px;
    position: relative;
}

.venue-portal .sidebar-link {
    color: var(--text-muted);
    transition: all var(--transition);
}

.venue-portal .sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.venue-portal .sidebar-link.active {
    background: var(--accent-glow);
    color: var(--accent);
}

.venue-portal .sidebar-link.active svg {
    stroke: var(--accent);
}

/* Sidebar Divider - simple grey line like admin portal */
.venue-portal .sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 8px;
    border: none;
}

/* Card dividers */
.venue-portal .card-divider,
.venue-portal .settings-card .card-divider {
    height: 1px;
    border: none;
    background: var(--border);
    margin: 16px 0;
}

.venue-portal .sidebar-user {
    border-top-color: var(--border);
}

.venue-portal .user-name {
    color: var(--text-primary);
}

.venue-portal .user-avatar-circle {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.venue-portal .sign-out-btn {
    color: var(--text-muted);
}

.venue-portal .sign-out-btn:hover {
    color: var(--accent);
}

/* ===== MAIN CONTENT ===== */
.venue-portal .admin-main {
    background: var(--bg-primary);
}

.venue-portal .page-title,
.venue-portal .page-header h1 {
    color: var(--text-primary);
}

/* ===== CARDS ===== */
.venue-portal .dashboard-card,
.venue-portal .settings-card,
.venue-portal .widget-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), border-color var(--transition);
    width: 100%;
}

/* Remove max-width constraints for Settings and Widget pages */
.venue-portal #page-settings,
.venue-portal #page-widget {
    max-width: none;
}

.venue-portal #page-settings .settings-card {
    width: 100%;
}

.sign-in-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.sign-in-method-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.sign-in-method-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

[data-theme="dark"] .venue-portal .dashboard-card,
[data-theme="dark"] .venue-portal .settings-card,
[data-theme="dark"] .venue-portal .widget-card {
    background: var(--bg-card);
}

.venue-portal .dashboard-card h3,
.venue-portal .settings-card h3,
.venue-portal .widget-card h3 {
    color: var(--text-primary);
}

.venue-portal .card-divider {
    border-color: var(--border);
}

/* ===== STAT BLOCKS ===== */
.venue-portal .stat-block {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.venue-portal .stat-block:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.venue-portal .stat-icon {
    background: var(--bg-hover);
}

.venue-portal .stat-value {
    color: var(--text-primary);
}

.venue-portal .stat-label {
    color: var(--text-muted);
}

/* ===== PROFILE VIEWS CHART ===== */
.venue-portal .content-row {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.profile-views-chart-card {
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
    margin-bottom: 32px;
    position: relative;
}

.profile-views-chart-card::after {
    content: '';
    position: absolute;
    left: -24px;
    right: -24px;
    bottom: -32px;
    height: 1px;
    background: #e5e4e4;
}

.profile-views-chart-container {
    position: relative;
    height: 260px;
}

.chart-year-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== ADD EVENT LARGE BUTTON ===== */
.add-event-large-btn {
    width: 100%;
    padding: 28px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.add-event-large-btn:hover {
    border-color: var(--accent);
}

.add-event-small-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition);
}

.add-event-small-btn:hover {
    border-color: var(--accent);
}

/* ===== ADD HAPPY HOUR BLOCK BUTTON ===== */
.add-happy-hour-block {
    width: 100%;
    padding: 28px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
    margin-bottom: 24px;
}

.add-happy-hour-block:hover {
    border-color: var(--accent);
}

.events-top-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.events-tab-search {
    margin-bottom: 16px;
}

.events-tab-search .search-box {
    width: 50%;
}



/* ===== EVENT CARDS GRID ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-bottom: 24px;
}

/* ===== EVENT CARD ===== */
.event-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .event-card {
    background: var(--bg-card);
}

.event-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.event-card-header {
    height: 180px;
    background: var(--bg-hover);
    position: relative;
    overflow: hidden;
}

.event-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.event-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-muted);
    opacity: 0.5;
}

.event-card-body {
    padding: 16px;
    background: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.event-card-title-row h3 {
    flex: 1;
    min-width: 0;
}

.event-card-flame {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
}

[data-theme="dark"] .event-card-body {
    background: var(--bg-card);
}

.event-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

.event-date-row svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
    flex-shrink: 0;
}

.event-date-row span {
    color: var(--text-secondary);
}

.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
}

[data-theme="dark"] .event-card-footer {
    background: var(--bg-card);
}

.event-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-views svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-muted);
}

.event-views strong {
    color: var(--text-secondary);
}

.event-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-card-boost-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

.event-edit-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--btn-white-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--transition);
}

.event-edit-btn:hover {
    background: var(--btn-white-bg);
    border-color: var(--accent);
}

.event-edit-btn svg {
    width: 14px;
    height: 14px;
}

.event-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.event-status.active {
    background: var(--success-bg);
    border: 1px solid var(--success);
    color: var(--text-primary);
}

[data-theme="dark"] .event-status.active {
    background: var(--success-bg);
}

.event-status.inactive,
.event-status.past {
    background: var(--bg-hover);
    color: var(--text-muted);
}

.event-status.cancelled {
    background: var(--error-bg);
    border: 1px solid var(--error);
    color: var(--error);
}

/* ===== RECENT EVENTS ===== */
.recent-events-list {
    margin: 0 -16px;
    padding: 0 16px;
    max-height: 340px;
    overflow-y: auto;
}

.recent-event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 0 -16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
    overflow: hidden;
}

.recent-event-item:hover {
    background: var(--bg-hover);
}

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

.recent-event-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recent-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-event-thumb svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
}

.recent-event-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.recent-event-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-event-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-event-boost {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

/* Views count on right side */
.recent-event-views {
    flex-shrink: 0;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.recent-event-views strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== HAPPY HOURS ===== */
.happy-hours-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.happy-hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.happy-hour-item {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
    position: relative;
}

.happy-hour-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.happy-hour-day-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.happy-hour-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.happy-hour-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.happy-hour-time-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.happy-hour-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.happy-hour-deals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.deals-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.no-deals {
    color: var(--text-muted);
}

.deal-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--accent-glow);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.deal-tag svg {
    flex-shrink: 0;
    transform: scaleX(-1);
}

.happy-hour-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.hh-edit-btn,
.hh-delete-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--btn-white-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--transition);
}

.hh-edit-btn:hover,
.hh-delete-btn:hover {
    border-color: var(--accent);
}

.hh-status-pill {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.hh-status-pill.active {
    background: rgba(5, 120, 30, 0.12);
    color: #05781e;
    border: 1px solid #05781e;
}

.hh-status-pill.inactive {
    background: rgba(100, 100, 100, 0.1);
    color: #555555;
    border: 1px solid #888888;
}

/* Deal row in modal */
/* ===== DUAL LISTBOX ===== */
.dual-listbox {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.dual-listbox-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-input, #ffffff);
}

.dual-listbox-header {
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-hover, #f9f8f7);
}

.dual-listbox-list {
    flex: 1;
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
}

.dual-listbox-item {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.1s ease;
}

.dual-listbox-item:hover {
    background: var(--bg-hover, #f5f5f5);
}

.dual-listbox-item.highlighted {
    background: var(--accent);
    color: #ffffff;
}

.dual-listbox-empty {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.dual-listbox-arrows {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.dual-listbox-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card, #ffffff);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.dual-listbox-btn:hover {
    border-color: var(--accent);
}

/* ===== TIME RANGE SLIDER ===== */
.time-slider-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.time-slider-separator {
    color: var(--text-muted);
}

.time-slider-container {
    padding: 8px 10px 0;
    user-select: none;
    touch-action: none;
}

.time-slider-track {
    position: relative;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    cursor: pointer;
}

.time-slider-range {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    pointer-events: none;
}

.time-slider-handle {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 2;
    transition: box-shadow 0.15s ease;
}

.time-slider-handle:hover,
.time-slider-handle:active {
    box-shadow: 0 0 0 4px rgba(209, 115, 89, 0.2);
    cursor: grabbing;
}

.time-slider-labels {
    position: relative;
    height: 18px;
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.time-slider-labels span {
    position: absolute;
    transform: translateX(-50%);
}

.time-slider-labels span:first-child {
    transform: translateX(0);
}

.time-slider-labels span:last-child {
    transform: translateX(-50%);
}

.deals-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.deal-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.deal-type-select {
    width: 110px;
    min-width: 110px;
    padding: 10px 32px 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--bg-input, #ffffff) url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    color: var(--text-primary);
    cursor: pointer;
}

.deal-type-select,
.deal-item-input,
.deal-value-input {
    height: 40px;
    box-sizing: border-box;
}

.deal-value-wrap {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 80px;
    width: 90px;
}

.deal-value-wrap.hidden {
    display: none;
}

.deal-value-prefix {
    position: absolute;
    left: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.deal-value-suffix {
    position: absolute;
    right: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
}

.deal-value-wrap .deal-value-input {
    width: 100%;
    padding: 10px 24px 10px 26px !important;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-input, #ffffff);
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    -moz-appearance: textfield;
}

.deal-value-input::-webkit-outer-spin-button,
.deal-value-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.deal-item-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--bg-input, #ffffff);
    color: var(--text-primary);
    min-width: 0;
}

.deal-type-select:focus,
.deal-item-input:focus,
.deal-value-input:focus {
    outline: none;
    border-color: var(--accent);
}

.remove-deal-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
}

.remove-deal-btn:hover {
    background: var(--error-bg);
    border-color: var(--error);
    color: var(--error);
}

.add-deal-btn {
    padding: 8px 12px;
    background: var(--btn-white-bg);
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color var(--transition);
}

.add-deal-btn:hover {
    background: var(--btn-white-bg);
    border-color: var(--accent);
}

/* ===== FORMS ===== */
.venue-portal label {
    color: var(--text-secondary);
}

.venue-portal input,
.venue-portal textarea,
.venue-portal select {
    background: var(--bg-input);
    border-color: var(--border);
    color: var(--text-primary);
    transition: all var(--transition);
}

/* Select dropdown chevron */
.venue-portal select,
.modal select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: var(--bg-input, #ffffff) url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center !important;
    padding-right: 38px !important;
}


.venue-portal input:focus,
.venue-portal textarea:focus,
.venue-portal select:focus,
[data-theme="light"] .venue-portal .form-group input:focus,
[data-theme="light"] .venue-portal .form-group textarea:focus,
[data-theme="light"] .venue-portal .form-group select:focus {
    border-color: var(--accent);
    box-shadow: none;
    outline: none;
}

#page-settings .form-group input:focus {
    border-color: var(--border);
    box-shadow: none;
    outline: none;
}

/* Sync help (i) icon with hover tooltip */
.sync-help-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.15s ease;
    vertical-align: middle;
    margin-left: 2px;
    margin-top: -2px;
}

.sync-help-icon:hover {
    opacity: 1;
}

.sync-help-bubble {
    display: none;
    position: absolute;
    right: -8px;
    top: calc(100% + 6px);
    width: 300px;
    padding: 12px 14px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    z-index: 10000;
    pointer-events: none;
}

.sync-help-icon:hover .sync-help-bubble {
    display: block;
}

/* Manually Edited badge */
.manually-edited-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    margin-left: 8px;
    vertical-align: middle;
}

.manually-edited-badge svg:first-child {
    color: var(--success);
    flex-shrink: 0;
}

/* Search box - no inner outline on focus */
.venue-portal .search-box input:focus {
    outline: none;
    box-shadow: none;
}

.venue-portal .search-box:focus-within {
    border-color: var(--accent);
    box-shadow: none;
}


.venue-portal input::placeholder,
.venue-portal textarea::placeholder {
    color: var(--text-muted);
}

.venue-portal input:disabled {
    background: #f0efed !important;
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ===== BUTTONS - ALL USE ACCENT COLOR ===== */
.venue-portal .header-btn,
.venue-portal .submit-btn,
.venue-portal .header-btn:not(.secondary),
.venue-portal button.submit-btn,
.venue-portal [data-theme="light"] .submit-btn,
.admin-portal.venue-portal .header-btn:not(.secondary),
.admin-portal.venue-portal .submit-btn {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-text) !important;
    transition: all var(--transition);
}

.venue-portal .header-btn:hover,
.venue-portal .submit-btn:hover,
.venue-portal .header-btn:not(.secondary):hover,
.admin-portal.venue-portal .header-btn:not(.secondary):hover,
.admin-portal.venue-portal .submit-btn:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 4px 12px var(--accent-glow);
    transform: translateY(-1px);
}

/* Small buttons like View All */
.venue-portal .header-btn.small {
    background: var(--accent) !important;
    color: var(--accent-text) !important;
}

/* Filter buttons - white bg, terra-cotta border on hover */
.filter-btn {
    background: var(--btn-white-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: border-color var(--transition);
}

.filter-btn:hover {
    background: var(--btn-white-bg);
    border-color: var(--accent);
}

.filter-btn.active {
    background: var(--btn-white-bg);
    border: 2px solid var(--accent);
    color: var(--text-primary);
}

/* Type filter buttons - white bg, terra-cotta border on hover */
.type-btn {
    background: var(--btn-white-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: border-color var(--transition);
}

.type-btn:hover {
    background: var(--btn-white-bg);
    border-color: var(--accent);
}

.type-btn.active {
    background: var(--btn-white-bg);
    border: 2px solid var(--accent);
    color: var(--text-primary);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle-container {
    display: flex;
    gap: 8px;
}

.theme-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition);
}

.theme-toggle-btn:hover {
    border-color: var(--accent);
}

.theme-toggle-btn.active {
    background: #ffffff;
    border: 2px solid var(--accent);
    color: var(--text-primary);
}

/* Light button always has white background when selected */
#themeLightBtn.active {
    background: #ffffff;
    color: #181514;
}

[data-theme="dark"] .theme-toggle-btn.active {
    background: var(--bg-card);
}

/* Override for light button in dark mode - always white */
[data-theme="dark"] #themeLightBtn.active {
    background: #ffffff;
    color: #181514;
}

.theme-toggle-btn.active svg {
    stroke: var(--text-primary);
}

/* ===== MODAL ===== */
/* Modal styles inherit from admin.css - shared styling for both portals */
.venue-portal .modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .venue-portal .modal-overlay {
    background: rgba(0, 0, 0, 0.8);
}

/* ===== TOAST ===== */
/* Hide toast by default - only show when .show class is added */
.venue-portal .toast,
.admin-portal.venue-portal .toast,
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid transparent;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(120%);
    transition: all 0.3s ease;
    animation: none !important;
    display: none !important;
    border-radius: 12px;
    overflow: hidden;
}

/* Rainbow top border for toast */
.venue-portal .toast::before,
.admin-portal.venue-portal .toast::before,
.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rainbow-gradient);
    background-size: 200% 200%;
    animation: rainbowShift 4s ease infinite !important;
}

.toast.show,
.venue-portal .toast.show,
.admin-portal.venue-portal .toast.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.venue-portal .toast-title {
    color: var(--text-primary);
}

.venue-portal .toast-message {
    color: var(--text-muted);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 201;
    color: var(--text-primary);
    transition: all var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--bg-hover);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

.venue-portal .mobile-menu-btn {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-primary);
}

.venue-portal .sidebar-backdrop.show {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .venue-portal .sidebar-backdrop.show {
    background: rgba(0, 0, 0, 0.7);
}

/* ===== CONTACT US BUTTON ===== */
.contact-us-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--btn-white-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition);
}

.contact-us-btn:hover {
    background: var(--btn-white-bg);
    border-color: var(--accent);
}

.contact-us-btn svg {
    stroke: currentColor;
}

/* ===== NEWS SECTION ===== */
.news-card {
    min-height: auto;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* News Item - Activity Style */
.news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.news-item:first-child {
    border-top: none;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item:hover {
    transform: translateX(4px);
}

.news-item:hover .news-eye {
    opacity: 1;
    color: var(--accent);
}

/* News Icon - Colored Circle */
.news-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-icon svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

.news-icon.pink {
    background: #ec4899;
}

.news-icon.blue {
    background: #3b82f6;
}

.news-icon.purple {
    background: #8b5cf6;
}

.news-icon.green {
    background: #22c55e;
}

.news-icon.orange {
    background: #f97316;
}

/* News Content */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.news-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Eye Icon */
.news-eye {
    flex-shrink: 0;
    color: var(--text-muted);
    opacity: 0.4;
    transition: all 0.2s ease;
}

/* ===== NEWS MODAL ===== */
.news-modal-glass {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Rainbow gradient top border */


.news-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
    background: transparent !important;
    border-bottom: none !important;
}

.news-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E2725B 0%, #EC4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(226, 114, 91, 0.3);
}

.news-modal-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.news-modal-icon.blue {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.news-modal-icon.purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.news-modal-icon.orange {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}

.news-modal-icon.pink {
    background: linear-gradient(135deg, #EC4899 0%, #E2725B 100%);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

/* News Load More */
.news-load-more {
    text-align: center;
    padding: 12px;
    border-top: 1px solid var(--border);
}

.news-load-more a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
}

.news-load-more a:hover {
    color: var(--text-primary);
}

.news-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.news-modal-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

.news-modal-header .modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.news-modal-header .modal-close:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: scale(1.05);
}

.news-modal-body {
    padding: 0 2rem 2rem;
    color: var(--text-secondary) !important;
    background: transparent !important;
    font-size: 0.95rem;
    line-height: 1.7;
}

.news-modal-body p {
    margin: 0;
}

/* ===== CONTACT & NEWS MODALS ===== */
/* Uses shared modal styles from admin.css */
.contact-modal {
    max-width: 480px;
    width: 100%;
}

.news-modal {
    max-width: 1000px;
    width: 100%;
}

.contact-modal .modal-body {
    padding: 24px;
}

.contact-intro {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.contact-modal .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-modal .form-group select,
.contact-modal .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input, #ffffff);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: border-color var(--transition);
}

.contact-modal .form-group select:focus,
.contact-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-modal .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.news-modal .modal-body {
    padding: 24px;
}

.news-modal-content {
    text-align: left;
}

.news-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.news-modal-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.news-modal-text p {
    margin-bottom: 12px;
}

.news-modal-text p:last-child {
    margin-bottom: 0;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    color: var(--text-muted);
}

/* ===== WIDGET PAGE ===== */
.widget-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.widget-hero-title {
    width: 100%;
}

.widget-hero-subtitle {
    width: 100%;
    max-width: 100%;
}

.widget-hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

[data-theme="dark"] .widget-hero-badge {
    background: var(--bg-card);
}

.widget-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.widget-hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.widget-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.widget-card h3 {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.widget-card-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.theme-selector {
    display: flex;
    gap: 8px;
}

.theme-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all var(--transition);
}

.theme-option:hover {
    border-color: var(--accent);
}

.theme-option.active {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--text-primary);
    font-weight: 500;
}

/* Layout option buttons - same style as theme options */
.layout-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all var(--transition);
}

.layout-option:hover {
    border-color: var(--accent);
}

.layout-option.active {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--text-primary);
    font-weight: 500;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 20px;
}

.checkbox-group {
    margin-top: 8px;
}

.modal .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.modal .checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.modal .checkbox-label input[type="checkbox"]::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 10px;
    height: 15px;
    border: 2.5px solid #181514;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.modal .checkbox-label input[type="checkbox"]:checked {
    border-color: #181514;
}

.modal .checkbox-label input[type="checkbox"]:checked::after {
    display: block;
}

.modal .checkbox-label input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
    border-color: var(--accent) !important;
    outline: none;
}

.modal .checkbox-label span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1;
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    position: relative;
    margin-bottom: 16px;
}

.code-block code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--success);
    white-space: pre-wrap;
    word-break: break-all;
}

/* Widget card header with copy button on right */
.widget-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.copy-btn {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

/* Copy button below code block - black centered */
.embed-code-card .copy-btn {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--text-primary);
    color: #ffffff;
    border: 1px solid var(--text-primary);
    border-radius: var(--radius-md);
}

.embed-code-card .copy-btn:hover {
    background: #333333;
}

.copy-btn:hover {
    background: var(--accent-hover);
}

.copy-btn svg {
    stroke: currentColor;
}

/* ===== WIDGET PAGE LAYOUT ===== */
.widget-layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.venue-portal .widget-preview-card {
    flex: 7;
    min-width: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.widget-right-col {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.widget-right-col .widget-card {
    margin-bottom: 0;
}

.widget-right-col .embed-code-card {
    flex: 1;
}

.widget-preview-container {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    overflow: auto;
    transition: opacity 0.2s ease;
}

.widget-preview-container.widget-preview-transitioning {
    opacity: 0.4;
}

/* Widget preview spinner */
.widget-preview-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.widget-preview-spinner .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: widget-spin 0.8s linear infinite;
}

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

.widget-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: var(--text-muted);
    text-align: center;
}

.widget-preview-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-preview-event {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.widget-preview-event-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-hover);
    flex-shrink: 0;
}

.widget-preview-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-preview-event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-preview-event-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.widget-preview-event-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== TAGS INPUT ===== */
.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 44px;
    transition: all var(--transition);
}

.tags-input-container:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.tag-item:hover {
    background: var(--accent);
    color: var(--accent-text);
}

.tag-item .tag-remove {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.7;
}

.tag-item:hover .tag-remove {
    opacity: 1;
}

.tags-input-container input {
    flex: 1;
    min-width: 120px;
    border: none;
    background: transparent;
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.tags-input-container input:focus {
    outline: none;
    box-shadow: none;
}

.tags-input-container input::placeholder {
    color: var(--text-placeholder);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ===== EVENT TAG PICKER ===== */
.evt-tag-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.evt-tag-group-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

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

.evt-tag-chip {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.evt-tag-chip:hover {
    border-color: var(--accent);
}

.evt-tag-chip.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* ===== CUSTOM TAGS ===== */
.evt-custom-tags-area {
    margin-top: 12px;
}

.evt-custom-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.evt-custom-tags-list:empty {
    margin-bottom: 0;
}

.evt-custom-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 500;
}

.evt-custom-tag .evt-custom-tag-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0 0 2px;
}

.evt-custom-tag .evt-custom-tag-remove:hover {
    color: #ffffff;
}

.evt-custom-tag-input {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.evt-custom-tag-input.visible {
    display: flex;
}

.evt-custom-tag-input input {
    width: 180px;
    flex: none;
    padding: 8px 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-input, var(--bg-card));
    color: var(--text-primary);
    transition: border-color var(--transition);
}

.evt-custom-tag-input input:focus {
    outline: none;
    border-color: var(--accent);
}

.evt-custom-tag-add {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
    background: var(--text-primary) !important;
    color: #ffffff !important;
    border: none !important;
}

.evt-custom-tag-close {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition);
}

.evt-custom-tag-close:hover {
    border-color: var(--accent);
}

.evt-custom-tag-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 4px;
    min-height: 0;
}

/* ===== EVENT SOCIAL HINT ===== */
.evt-social-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.evt-social-hint .settings-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.evt-social-hint .settings-link:hover {
    text-decoration: underline;
}

/* ===== QUILL RICH TEXT EDITOR ===== */
.quill-wrapper {
    display: flex;
    flex-direction: column;
}

#eventDescriptionEditor .ql-editor {
    min-height: 120px;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

#eventDescriptionEditor .ql-editor.ql-blank::before {
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.9rem;
}

/* Toolbar */
.ql-toolbar.ql-snow {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    background: var(--bg-card);
    font-family: 'Inter', sans-serif;
    padding: 6px 8px !important;
}

.ql-toolbar.ql-snow .ql-formats {
    margin-right: 10px;
}

/* Emoji toolbar button */
.ql-toolbar.ql-snow .ql-emoji {
    font-size: 16px;
    line-height: 1;
    width: 28px;
    padding: 3px 5px;
}

/* Editor container */
.ql-container.ql-snow {
    border: 1px solid var(--border) !important;
    border-top: none !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    background: var(--bg-input, var(--bg-card));
    font-family: 'Inter', sans-serif;
    resize: vertical;
    overflow: auto;
}

/* When emoji picker is open, remove bottom radius from toolbar and top border from picker */
.ql-toolbar.ql-snow {
    border-bottom: 1px solid var(--border) !important;
}

.quill-emoji-picker {
    display: none;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    max-height: 160px;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    z-index: 10;
}

.quill-emoji-picker.open {
    display: flex;
}

.quill-emoji-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
}

.quill-emoji-btn:hover {
    background: var(--bg-hover, #f0f0f0);
    transform: scale(1.15);
}

/* Focus state — terra-cotta border */
.quill-wrapper:has(.ql-editor:focus) .ql-toolbar.ql-snow,
.quill-wrapper:has(.ql-editor:focus) .ql-container.ql-snow {
    border-color: var(--accent) !important;
}

/* Toolbar button hover/active */
.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow .ql-picker-label.ql-active,
.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow button.ql-active {
    color: var(--accent) !important;
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke,
.ql-toolbar.ql-snow .ql-picker-label:hover .ql-stroke,
.ql-toolbar.ql-snow .ql-picker-label.ql-active .ql-stroke {
    stroke: var(--accent) !important;
}

.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill,
.ql-toolbar.ql-snow .ql-picker-label:hover .ql-fill,
.ql-toolbar.ql-snow .ql-picker-label.ql-active .ql-fill {
    fill: var(--accent) !important;
}

/* Picker dropdowns */
.ql-snow .ql-picker-options {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    padding: 4px !important;
}

.ql-snow .ql-picker-item:hover {
    color: var(--accent) !important;
}

/* Color picker specific */
.ql-snow .ql-color-picker .ql-picker-options {
    padding: 6px 8px !important;
    width: 160px !important;
}

/* ===== SOCIAL SHARING SECTION ===== */
.social-sharing-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

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

.form-section-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.social-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.social-toggle:hover {
    border-color: var(--border-strong);
}

.social-toggle.connected {
    border-color: var(--success);
    background: var(--success-bg);
}

.social-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.social-toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    width: 24px;
    height: 24px;
}

.social-icon.facebook {
    color: #1877F2;
}

.social-icon.instagram {
    color: #E4405F;
}

.social-icon.bluesky {
    color: #0085FF;
}

.social-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.social-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.social-status.connected {
    color: var(--text-primary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border: 1px solid var(--border-strong);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

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

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--border);
}

/* Disabled social toggle row */
.social-toggle.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.social-toggle.disabled .toggle-slider {
    cursor: not-allowed;
}

/* ===== SOCIAL CONNECTIONS SETTINGS ===== */
.settings-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-connections-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-connection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.social-connection-item.connected {
    border-color: var(--success);
    background: var(--success-bg);
}

.social-connection-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-connection-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-connection-icons .social-icon {
    width: 28px;
    height: 28px;
}

.social-connection-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-connection-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.social-connection-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-connection-status.connected {
    color: var(--text-primary);
}

/* Meta connect/disconnect buttons */
.meta-connect-btn {
    background: var(--text-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity var(--transition);
    white-space: nowrap;
}

.meta-connect-btn:hover {
    opacity: 0.85;
}

.social-connection-item .cancel-btn {
    background: var(--btn-white-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.social-connection-item .cancel-btn:hover {
    border-color: var(--accent);
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small.spinner-black {
    border-color: #e5e4e4;
    border-top-color: var(--text-primary);
}

.boost-loading {
    display: flex;
    justify-content: center;
    padding: 24px;
}

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

.social-help-text {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.social-help-text p {
    margin: 0 0 10px 0;
}

.social-help-text ol {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.social-help-text li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.social-help-text a {
    color: var(--accent);
    text-decoration: none;
}

.social-help-text a:hover {
    text-decoration: underline;
}

.social-help-text .help-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

/* ===== EVENT DETAIL PAGE ===== */
.page-header {
    margin-bottom: 24px;
}

/* Note: .back-btn base styles are in /css/components.css */

/* ===== SECONDARY BUTTON STYLE - EDIT/UPLOAD ===== */
/* Edit button on event details - grey border, white bg, black text */
.venue-portal .event-detail-actions .submit-btn {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .venue-portal .event-detail-actions .submit-btn {
    background: var(--bg-card) !important;
}

.venue-portal .event-detail-actions .submit-btn:hover {
    background: var(--bg-hover) !important;
    border-color: var(--border-strong) !important;
    box-shadow: none;
    transform: none;
}

/* Upload button style - grey border, white bg, black text */
.venue-portal .upload-btn-row .upload-btn,
.venue-portal .image-upload-section .upload-btn,
.venue-portal .logo-upload-controls .upload-btn,
.venue-portal .modal .upload-btn,
.venue-portal .admin-modal .upload-btn,
/* Modals outside .venue-portal container */
.modal-overlay .modal .upload-btn,
.modal-overlay .upload-btn-row .upload-btn,
.modal-overlay .image-upload-section .upload-btn,
#eventModal .upload-btn,
#happyHourModal .upload-btn {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .venue-portal .upload-btn-row .upload-btn,
[data-theme="dark"] .venue-portal .image-upload-section .upload-btn,
[data-theme="dark"] .venue-portal .logo-upload-controls .upload-btn,
[data-theme="dark"] .venue-portal .modal .upload-btn,
[data-theme="dark"] .venue-portal .admin-modal .upload-btn,
[data-theme="dark"] .modal-overlay .modal .upload-btn,
[data-theme="dark"] .modal-overlay .upload-btn-row .upload-btn,
[data-theme="dark"] .modal-overlay .image-upload-section .upload-btn,
[data-theme="dark"] #eventModal .upload-btn,
[data-theme="dark"] #happyHourModal .upload-btn {
    background: var(--bg-card) !important;
}

.venue-portal .upload-btn-row .upload-btn:hover,
.venue-portal .image-upload-section .upload-btn:hover,
.venue-portal .logo-upload-controls .upload-btn:hover,
.venue-portal .modal .upload-btn:hover,
.venue-portal .admin-modal .upload-btn:hover,
.modal-overlay .modal .upload-btn:hover,
.modal-overlay .upload-btn-row .upload-btn:hover,
.modal-overlay .image-upload-section .upload-btn:hover,
#eventModal .upload-btn:hover,
#happyHourModal .upload-btn:hover {
    border-color: var(--accent) !important;
    box-shadow: none;
}

/* Save button alignment - right side */
.venue-portal .settings-card .submit-btn {
    display: block;
    margin-left: auto;
    margin-top: 16px;
}

/* ===== EVENT FORM PAGE ===== */
#page-event-form {
    max-width: none;
}

.event-form-wrapper {
    max-width: 100%;
    padding-bottom: 40px;
}

.event-form-wrapper .page-title {
    margin-bottom: 24px;
}

/* Event form: 2 columns (details+tickets left, image+date right) */
.event-form-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    align-items: stretch;
}

.evt-col-a { order: 2; }
.evt-col-b { order: 1; }

.evt-block-save {
    margin-top: auto;
}

.evt-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.evt-col .settings-card {
    margin-bottom: 0;
}

.event-form-image-card {
    padding: 0 !important;
    overflow: hidden;
    margin-bottom: 0;
}

.event-form-image-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.event-form-image-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.event-form-image-area:hover::after {
    content: 'Change Image';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.event-form-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.event-form-image-placeholder svg {
    opacity: 0.4;
}

.event-form-image-placeholder span {
    font-size: 0.85rem;
    font-weight: 500;
}


.event-form-wrapper .settings-card .form-section.event-form-social {
    border: none;
    padding: 0;
    margin: 0;
}

.event-form-wrapper .settings-card .form-section.event-form-social .form-section-header h4 {
    margin: 0;
}

.event-form-footer {
    padding-top: 8px;
}

.evt-save-btn {
    width: 100%;
    padding: 14px 20px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.evt-save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.evt-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.evt-field-error {
    font-size: 0.8rem;
    color: var(--error, #dc2626);
    margin-top: 0.3rem;
}

#page-event-form .required {
    color: var(--error, #ef4444);
}

/* Red border on error for event form fields */
#page-event-form input.error,
#page-event-form textarea.error,
#page-event-form .quill-wrapper.error,
#page-event-form .evt-tag-picker.error,
#page-event-form .flatpickr-calendar.error,
#page-event-form .evt-slider.error,
#page-event-form .event-form-image-card.error {
    border: 2px solid var(--error, #dc2626) !important;
    border-radius: var(--radius-md);
}

#page-event-form .event-form-image-card.error {
    border-radius: var(--radius-lg);
}

/* ===== EVENT SUCCESS STATE ===== */
.event-success-state {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 0;
}

.event-success-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
}

.event-success-icon {
    margin-bottom: 16px;
}

.event-success-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--text-primary);
}

.event-success-card > .event-success-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.event-success-app-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 8px;
    text-align: left;
}

/* RectangleCard — iOS app preview */
.rectangle-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

.rectangle-card .card-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.rectangle-card .card-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(209, 115, 89, 0.3), rgba(217, 165, 89, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D17359;
}

.rectangle-card .card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.rectangle-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rectangle-card .card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #8e8e93;
    line-height: 1;
}

.rectangle-card .card-meta .meta-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #D17359;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rectangle-card .card-meta .meta-icon svg {
    stroke: white;
}

.rectangle-card .card-meta .dot {
    margin: 0 2px;
}

.rectangle-card .trailing-icon {
    font-size: 16px;
    font-weight: 600;
    color: rgba(128, 128, 128, 0.5);
    flex-shrink: 0;
}

/* Cards row — square left, rectangle right */
.event-success-cards-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    justify-content: center;
}

/* SquareCard — iOS app preview */
.square-card {
    width: 200px;
    min-width: 200px;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    position: relative;
    flex-shrink: 0;
}

.square-card .card-image-section {
    width: 200px;
    height: 150px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.square-card .card-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.square-card .card-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D17359;
}

.square-card .divider {
    height: 1px;
    background: rgba(128, 128, 128, 0.3);
    flex-shrink: 0;
}

.square-card .card-info-section {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    background: #fff;
}

.square-card .card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.square-card .card-info-spacer {
    flex: 1;
}

.square-card .card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #8e8e93;
    line-height: 1;
}

.square-card .card-meta .meta-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #D17359;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.square-card .card-meta .meta-icon svg {
    stroke: white;
}

.square-card .card-meta .dot {
    margin: 0 1px;
}

/* Rectangle card takes remaining space */
.event-success-cards-row .rectangle-card {
    flex: 1;
    min-width: 0;
}


.event-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.event-success-actions .btn-secondary,
.event-success-actions .notif-black-btn {
    flex: 1;
    max-width: 200px;
    padding: 10px 20px;
}

@media (max-width: 540px) {
    .event-success-card {
        padding: 28px 20px;
    }

    .event-success-actions {
        flex-direction: column;
    }

    .event-success-actions .btn-secondary,
    .event-success-actions .notif-black-btn {
        max-width: none;
    }
}

/* Checkbox styles for event form (extend outside .modal scope) */
#page-event-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

#page-event-form .checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}

#page-event-form .checkbox-label input[type="checkbox"]::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 10px;
    height: 15px;
    border: 2.5px solid #181514;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

#page-event-form .checkbox-label input[type="checkbox"]:checked {
    border-color: #181514;
}

#page-event-form .checkbox-label input[type="checkbox"]:checked::after {
    display: block;
}

#page-event-form .checkbox-label input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

#page-event-form .checkbox-label span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1;
}

/* 2-column layout wrapper */
.event-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    align-items: start;
}

.event-detail-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.event-detail-image {
    position: relative;
    min-height: 240px;
    max-height: 400px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-detail-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Zoom icon overlay on hover */
.event-detail-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center center no-repeat;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
}

.event-detail-image:hover::after {
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.event-detail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.event-detail-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.event-detail-content {
    padding: 24px;
}

.event-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.event-detail-header h1 {
    flex: 1;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.event-meta-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
}

.event-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.event-detail-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent-glow);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-detail-description {
    margin-bottom: 32px;
}

.event-detail-description h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.event-detail-description p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.event-detail-description p:last-child {
    margin-bottom: 0;
}

.event-detail-actions {
    display: flex;
    gap: 12px;
}

.event-detail-actions .submit-btn,
.event-detail-actions .cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== EVENT DETAIL SIDEBAR (Preview + Share) ===== */
.event-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-preview-block,
.event-share-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.event-share-block h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.share-platform-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}

.event-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--btn-white-bg);
    color: var(--text-primary);
    transition: border-color var(--transition);
    width: 100%;
    justify-content: center;
}

.event-share-btn:hover {
    border-color: var(--accent);
}

.event-share-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.event-share-btn:disabled:hover {
    border-color: var(--border);
}

.share-posted-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.share-posted-check {
    color: var(--success);
    flex-shrink: 0;
}

.share-posted-info {
    flex: 1;
    min-width: 0;
}

.share-posted-platform {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.share-posted-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.share-repost-btn {
    font-size: 0.75rem;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.share-repost-btn:hover {
    background: var(--accent-glow);
}

.ig-refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: color var(--transition);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-refresh-btn:hover:not(:disabled) {
    color: var(--accent);
}

.ig-refresh-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    position: relative;
}

.ig-refresh-btn:disabled:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--text-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.ig-refresh-btn .spinner-small {
    border-color: var(--text-primary);
    border-top-color: transparent;
}

.ig-stats-row {
    display: flex;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.ig-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ig-stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ig-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ig-share-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 20px;
}

.ig-share-image-wrap {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-hover);
    flex-shrink: 0;
}

.ig-share-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-share-event-name {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ig-caption-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ig-caption-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

/* Quill wrapper for IG caption */
.ig-caption-quill-wrapper {
    display: flex;
    flex-direction: column;
}

/* Override Quill snow styles on our custom toolbar */
#igCaptionToolbar.ql-toolbar.ql-snow {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    padding: 6px 8px !important;
}

/* IG caption toolbar */
#igCaptionToolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--bg-card);
    position: relative;
}

.ig-toolbar-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--text-primary);
    transition: background 0.15s;
}

.ig-toolbar-btn:hover {
    background: var(--bg-hover);
}

#igHashtagBtn {
    font-weight: 700;
    font-size: 15px;
}

/* IG caption editor area */
#igCaptionEditor .ql-editor {
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
    resize: none;
}

#igCaptionEditor .ql-editor.ql-blank::before {
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.85rem;
}

/* Editor container — connect to toolbar */
#igCaptionEditor.ql-container.ql-snow {
    border: 1px solid var(--border) !important;
    border-top: none !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    font-family: 'Inter', sans-serif;
    resize: none;
    overflow: hidden;
}

/* Focus state — terra-cotta border */
.ig-caption-quill-wrapper:has(.ql-editor:focus) #igCaptionToolbar,
.ig-caption-quill-wrapper:has(.ql-editor:focus) #igCaptionEditor.ql-container.ql-snow {
    border-color: var(--accent) !important;
}

/* Emoji picker inside IG toolbar */
#igEmojiPicker {
    display: none;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

#igEmojiPicker.open {
    display: flex;
}

/* Bluesky handle autocomplete input */
.handle-autocomplete-wrap {
    position: relative;
}

.handle-ghost {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}

.handle-ghost-typed {
    visibility: hidden;
    white-space: pre;
    font-size: 0.9rem;
}

.handle-ghost-suffix {
    color: var(--text-muted);
}

/* Bluesky caption */
.bs-caption-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bs-caption-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    background: var(--bg-input, #fff);
    color: var(--text-primary);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bs-caption-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Form error text */
.form-error {
    color: #d32f2f;
    font-size: 0.8rem;
    margin-top: 4px;
}

.event-preview-block h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.preview-block-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 16px 0;
}

/* Cards stacked vertically in sidebar */
.preview-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.preview-cards-stack .square-card {
    width: 100%;
    min-width: unset;
    max-width: 240px;
    height: auto;
}

.preview-cards-stack .square-card .card-image-section {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
}

.preview-cards-stack .square-card .card-image-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: grab;
}

.preview-cards-stack .square-card .card-image-section img:active {
    cursor: grabbing;
}

.preview-drag-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 8px 0 0 0;
}

.preview-drag-hint svg {
    stroke: var(--text-muted);
    flex-shrink: 0;
}

.preview-save-pos-btn {
    display: block;
    margin: 10px auto 0;
    padding: 8px 20px;
    font-size: 0.8rem;
}


/* ===== SIDEBAR ===== */
.venue-portal .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
    z-index: 100;
}

/* ===== SIDEBAR VENUE LINK ===== */
/* Venue link styled like other menu items */
.sidebar-link.venue-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Small logo icon aligned with other icons - same size as SVG icons */
.sidebar-venue-logo-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-hover);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-venue-logo-icon img {
    width: 20px !important;
    height: 20px !important;
    object-fit: cover;
}

.venue-logo-placeholder-small {
    width: 20px !important;
    height: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--accent-text);
    font-weight: 600;
    font-size: 0.5rem;
    border-radius: 4px;
}

/* Sidebar bottom section - always visible at bottom */
.sidebar-bottom {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0 8px 16px 8px;
}

.sidebar-bottom .sidebar-divider {
    margin: 16px 8px !important;
}

.sidebar-bottom .sidebar-link {
    margin-bottom: 4px;
}

/* ===== DASHBOARD GREETING WITH LOGO ===== */
.greeting-with-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-venue-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.dashboard-venue-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.venue-logo-placeholder-dashboard {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--accent-text);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 12px;
}

.greeting-text {
    display: flex;
    flex-direction: column;
}

/* ===== SETTINGS LOGO UPLOAD ===== */
.logo-upload-section {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.logo-preview-container {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-hover);
    border: 2px dashed var(--border);
    flex-shrink: 0;
}

.logo-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.logo-placeholder svg {
    opacity: 0.5;
}

.logo-placeholder span {
    font-size: 0.75rem;
}

.logo-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logo-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: var(--accent-text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.upload-btn:hover {
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* ===== VENUE PHOTOS ===== */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-header-row h3 {
    margin: 0;
    padding: 0;
    border: none;
}

.photo-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.section-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.venue-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.photo-tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-hover);
    border: 2px solid var(--border);
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.photo-tile:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-tile:active {
    cursor: grabbing;
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.photo-tile.dragging {
    opacity: 0.4;
    transform: scale(0.98);
    border: 2px dashed var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.photo-tile.drag-over {
    border-color: var(--accent);
    border-width: 3px;
    border-style: solid;
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(209, 115, 89, 0.2);
}

/* Drag Handle */
.photo-drag-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: grab;
}

.photo-drag-handle:active {
    cursor: grabbing;
}

/* Delete Button - Always visible */
.photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.photo-delete-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.photo-order-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-add-tile {
    border: 2px dashed var(--border);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.photo-add-tile:hover {
    border-color: var(--accent);
    color: var(--text-muted);
    background: transparent;
    transform: none;
    box-shadow: none;
}

.photo-add-tile span {
    font-size: 0.85rem;
    font-weight: 500;
}

.photo-add-tile svg {
    opacity: 0.7;
}

.photo-add-tile:hover svg {
    opacity: 0.7;
}

/* Delete Photo Modal */
.delete-photo-modal {
    max-width: 400px;
}

.delete-photo-modal .modal-body {
    text-align: center;
}

.delete-photo-modal .modal-body p {
    margin: 16px 0 0 0;
    color: var(--text-secondary);
}

.delete-photo-preview {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-hover);
    border: 1px solid var(--border);
}

.delete-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== HAPPY HOURS ENHANCEMENTS ===== */
.happy-hour-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.happy-hour-time svg {
    stroke: var(--accent);
    flex-shrink: 0;
}

.deals-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 4px;
}

/* ===== MODAL SAVE BUTTONS - ENSURE ACCENT COLOR ===== */
.venue-portal .modal .submit-btn,
.venue-portal .modal-footer .submit-btn,
.venue-portal .modal-footer-fixed .submit-btn,
.modal .submit-btn,
.modal-footer .submit-btn {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-text) !important;
}

.venue-portal .modal .submit-btn:hover,
.venue-portal .modal-footer .submit-btn:hover {
    background: var(--accent-hover) !important;
}

/* Happy Hour modal save button - black */
#happyHourModal .modal-medium {
    max-width: 600px;
}

.hh-modal-error {
    display: none;
    color: #c0392b;
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
    padding: 0 24px 16px;
}

#happyHourModal .submit-btn {
    background: #181514 !important;
    border-color: #181514 !important;
    color: #ffffff !important;
}

#happyHourModal .submit-btn:hover {
    background: #2a2827 !important;
}

/* ===== WIDGET PAGE BLOCKS ===== */
.venue-portal .widget-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

[data-theme="dark"] .venue-portal .widget-card {
    background: var(--bg-card);
}


/* ===== EVENT DETAIL - WHITE BACKGROUND ===== */
.event-detail-container,
.event-preview-block,
.event-share-block {
    background: #ffffff;
}

[data-theme="dark"] .event-detail-container,
[data-theme="dark"] .event-preview-block,
[data-theme="dark"] .event-share-block {
    background: var(--bg-card);
}

/* ===== FULLSCREEN IMAGE MODAL ===== */
.image-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-fullscreen-overlay.show {
    display: flex;
}

.image-fullscreen-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.image-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ===== SIDEBAR BACKDROP BASE STYLES ===== */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== CONFIRM MODAL ===== */
.confirm-modal {
    max-width: 400px;
    text-align: center;
}

.confirm-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}

.confirm-message {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.confirm-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== SOCIAL SHARING SECTION ===== */
.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.form-section-header h4 {
    margin: 0;
}

.section-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
}

#socialStatusText {
    color: var(--text-muted);
}

#socialStatusText.connected {
    color: #0a8a2e;
    font-weight: 500;
}

.settings-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
}

.settings-link:hover {
    color: var(--text-primary);
}

.settings-link .accent-link {
    color: var(--accent);
    font-weight: 500;
}

.settings-link:hover .accent-link {
    text-decoration: underline;
}

.settings-link .external-icon {
    opacity: 0.7;
}

/* ===== NOTIFICATIONS PAGE ===== */
.notification-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.notification-stat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: background var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .notification-stat-card {
    background: var(--bg-card);
}

.notification-stat-card .stat-icon {
    margin: 0 auto 12px;
}

.notification-stat-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.notification-stat-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Notification Tabs */
.notif-tabs.detail-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 20px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
    background: var(--bg-card);
}

.notif-tabs .detail-tab-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.notif-tabs .detail-tab-btn:hover {
    color: var(--text-primary);
}

.notif-tabs .detail-tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
    font-weight: 600;
}

.notif-tab-content {
    display: none;
}

.notif-tab-content.active {
    display: block;
}

/* History toolbar with month filter */
.notif-history-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.notif-history-toolbar label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.notif-month-wrapper {
    position: relative;
    display: inline-block;
}

.notif-month-select {
    padding: 8px 34px 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease;
}

.notif-month-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-muted);
    pointer-events: none;
}

.notif-month-select:hover {
    border-color: var(--accent);
}

.notif-month-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Notification Success State */
.notif-success {
    text-align: center;
    padding: 48px 24px;
}

.notif-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0a8a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.notif-success h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.notif-success p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 28px;
}

.notif-success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.notif-success-actions button {
    min-width: 160px;
    height: 46px;
    box-sizing: border-box;
}

/* Notification Rejection State */
.notif-rejection {
    text-align: center;
    padding: 48px 24px;
}

.notif-rejection-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.notif-rejection h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.notif-rejection-reason {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.notif-rejection-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.notif-rejection-actions button {
    min-width: 160px;
    height: 46px;
    box-sizing: border-box;
}

/* Notification History Table */
.notif-table {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.notif-table .list-header {
    display: grid;
    grid-template-columns: 160px 1fr 90px 80px 70px 100px;
    gap: 16px;
    padding: 12px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.notif-table .list-header > div {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-table .list-body {
    background: var(--bg-card);
    overflow-y: auto;
}

.notif-row {
    display: grid;
    grid-template-columns: 160px 1fr 90px 80px 70px 100px;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-primary);
    align-items: center;
    transition: background var(--transition);
}

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

.notif-row:hover {
    background: var(--bg-hover);
}

.notif-row .col-notif-title {
    font-weight: 500;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-row .col-notif-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-row .col-notif-audience {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.notif-row .col-notif-status {
    display: flex;
    align-items: center;
}

.notif-row .col-notif-cost {
    font-size: 0.85rem;
    font-weight: 500;
}

.notif-row .col-notif-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Events Boost History table grid (6 cols) */
.events-boost-table .list-header,
.events-boost-table .notif-row {
    grid-template-columns: 2fr 110px 90px 90px 70px 100px;
}

.col-boost-event {
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.col-boost-event-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.col-boost-duration {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* HH boost history table (5 cols) */
.hh-boost-table .list-header,
.hh-boost-table .notif-row {
    grid-template-columns: 1fr 90px 70px 110px 110px;
}

/* Notification Wizard Steps */
.notif-step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.notif-wizard {
    box-shadow: var(--shadow-sm);
}

.notif-wizard .form-group > label {
    font-weight: 600;
}

.notif-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.notif-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.notif-step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.notif-step-item.active .notif-step-dot {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: #fff;
}

.notif-step-item.active .notif-step-label {
    color: var(--text-primary);
    font-weight: 600;
}

.notif-step-item.completed .notif-step-dot {
    border-color: #0a8a2e;
    background: #0a8a2e;
    color: #fff;
}

.notif-step-item.completed .notif-step-label {
    color: #0a8a2e;
}

.notif-step-line {
    width: 60px;
    height: 2px;
    background: var(--border);
    margin: 0 0.5rem;
    margin-bottom: 1.2rem;
    transition: background 0.3s ease;
}

.notif-step-line.completed {
    background: #0a8a2e;
}

.notif-step {
    display: none;
}

.notif-step.active {
    display: block;
}

.notif-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.notif-step-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.notif-step-actions {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    gap: 12px;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.notif-step-actions button {
    min-width: 160px;
    height: 46px;
    box-sizing: border-box;
}

.notif-pay-actions {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.notif-pay-actions button {
    min-width: 160px;
    height: 46px;
    box-sizing: border-box;
}

.notif-pay-actions .btn-secondary,
.notif-step-actions .btn-secondary,
.notif-rejection-actions .btn-secondary,
.notif-success-actions .btn-secondary {
    font-weight: 600;
}

.notif-pay-actions .btn-secondary:hover,
.notif-step-actions .btn-secondary:hover,
.notif-rejection-actions .btn-secondary:hover,
.notif-success-actions .btn-secondary:hover {
    transform: none;
    box-shadow: none;
}

.notif-black-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--text-primary);
    color: #ffffff;
    border: 1px solid var(--text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

.notif-black-btn:hover {
    background: #333333;
    transform: none;
    box-shadow: none;
}

/* Pay Error Message */
.notif-pay-error {
    color: var(--error, #dc2626);
    font-size: 0.85rem;
    text-align: center;
    margin: 12px 0 0;
}

/* Moderation Progress Bar */
.notif-moderation-progress {
    margin-top: 1.5rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.notif-moderation-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.notif-moderation-bar-fill {
    height: 100%;
    width: 0%;
    background: #3b82f6;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.notif-moderation-bar-fill.approved {
    background: #0a8a2e;
    transition: width 0.4s ease, background 0.3s ease;
}

.notif-moderation-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.notif-moderation-status.approved {
    color: #0a8a2e;
    font-weight: 600;
}

/* Audience Radio Cards */
/* Step 1 loading overlay */
.notif-step-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .notif-step-loading {
    background: rgba(var(--bg-card-rgb, 30, 30, 30), 0.8);
}

.notif-step-loading.hidden {
    display: none;
}

.notif-step-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* Compose Grid - 2 column layout */
.notif-compose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.notif-compose-left {
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
}

.notif-compose-right {
    padding-left: 1.5rem;
}

.notif-compose-right .form-group {
    margin-bottom: 0;
}

.notif-compose-right .form-group + .form-group {
    margin-top: 24px;
}

.notif-audience-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.notif-audience-option input {
    display: none;
}

.notif-audience-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s ease;
    text-align: center;
}

.notif-audience-card svg {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.notif-audience-card strong {
    font-size: 0.9rem;
}

.notif-audience-card span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.notif-audience-card:hover {
    border-color: var(--accent);
}

.notif-audience-option input:checked + .notif-audience-card {
    border-color: var(--accent);
}

.notif-audience-limit {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    width: 100%;
}

.notif-audience-limit.at-limit {
    color: var(--error, #dc2626);
}

.notif-audience-option.disabled .notif-audience-card {
    cursor: not-allowed;
}

.notif-audience-option.disabled .notif-audience-card:hover {
    border-color: var(--border);
}

/* Review Card */
.notif-review-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

[data-theme="dark"] .notif-review-card {
    background: var(--bg-card);
}

.notif-review-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

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

.notif-review-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
    min-width: 80px;
}

.notif-review-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
}

/* Review Price */
.notif-review-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-top: 0;
    font-size: 1.1rem;
}

.notif-review-price span {
    color: var(--text-secondary);
    font-weight: 500;
}

.notif-review-price strong {
    font-size: 1.3rem;
    color: var(--text-primary);
}

/* Stripe Checkout Modal */
.stripe-checkout-modal {
    background: var(--bg-modal);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stripe-checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-modal);
    z-index: 1;
}

.stripe-checkout-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.stripe-checkout-body {
    overflow-y: auto;
    flex: 1;
}

/* Section Title */
.notif-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

/* Form Legend & Optional Label */
.notif-wizard .form-legend {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.notif-wizard .form-legend .required-mark {
    margin-left: 0;
}

.notif-wizard .optional {
    font-weight: 400;
    color: var(--text-muted);
}

/* Custom Event Picker */
.form-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: -4px 0 8px;
    line-height: 1.4;
}

.form-description a {
    color: var(--text-primary);
    text-decoration: underline;
}

.notif-event-picker {
    position: relative;
}

.notif-event-picker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-input, #fff);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.notif-event-picker-trigger:hover,
.notif-event-picker.open .notif-event-picker-trigger {
    border-color: var(--accent);
}

.notif-event-picker-trigger svg {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.notif-event-picker.open .notif-event-picker-trigger svg {
    transform: rotate(180deg);
}

.notif-event-picker-text {
    color: var(--text-muted);
}

.notif-event-picker-text.has-value {
    color: var(--text-primary);
}

.notif-event-dropdown {
    display: none;
    position: fixed;
    background: #ffffff;
    border: 1px solid var(--accent);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 240px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .notif-event-dropdown {
    background: var(--bg-card);
}

.notif-event-picker.open .notif-event-dropdown {
    display: block;
}

.notif-event-option {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.notif-event-option:last-child {
    border-bottom: none;
}

.notif-event-option:hover {
    background: var(--bg-hover);
}

.notif-event-option.selected {
    background: var(--bg-hover);
}

.notif-event-option-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2px;
}

.notif-event-option-name {
    display: block;
    font-size: 0.88rem;
    color: var(--text-primary);
}

/* Notification Field Errors */
.notif-field-error {
    font-size: 0.8rem;
    color: var(--error, #dc2626);
    margin-top: 0.3rem;
}

#sendNotificationCard input.error,
#sendNotificationCard textarea.error {
    border: 2px solid var(--error, #dc2626);
}

#sendNotificationCard .notif-audience-group.error .notif-audience-card {
    border-color: var(--error, #dc2626);
}

/* Character Count */
.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== PENDING REVIEW SCREEN ===== */
#pendingReviewScreen {
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans', sans-serif;
}

#pendingReviewScreen h2,
#pendingReviewScreen h3,
#pendingReviewScreen h4 {
    font-family: 'Asap', sans-serif;
}

.pending-review-header {
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
}

.pending-review-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.pending-review-logo-img {
    height: 45px;
    width: auto;
}

.pending-review-logo-text {
    height: 23px;
    width: auto;
    position: relative;
    top: 3px;
}

.pending-review-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem 3rem;
}

.pending-review-card {
    width: 100%;
    max-width: 720px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.pending-review-icon {
    margin-bottom: 1rem;
}

.pending-review-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.pending-review-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.pending-review-btn {
    display: inline-block;
    background: var(--text-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.7rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pending-review-btn:hover {
    background: #333;
    color: #ffffff;
}

/* ===== VERIFICATION SECTION ===== */
.verification-section {
    text-align: left;
    margin-top: 1.5rem;
}

.verification-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 1.5rem;
}

.verification-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.verification-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.verification-code-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--bg-primary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.verification-code-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.verification-code {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    color: var(--text-primary);
}

.verification-code.generating {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: normal;
    color: var(--text-muted);
    animation: verifCodePulse 1.2s ease-in-out infinite;
}

@keyframes verifCodePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.verification-option {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.verification-option-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.verification-option-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.verification-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.verification-instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: #E1306C;
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.verification-instagram-btn:hover {
    background: #c72a5e;
    color: #fff;
}


@media (max-width: 600px) {
    .pending-review-header {
        padding: 1rem 1.25rem;
    }
    .pending-review-main {
        padding: 1.5rem 1rem 2rem;
    }
    .pending-review-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
    /* Prevent horizontal scroll */
    .venue-portal,
    .venue-portal .admin-content,
    .venue-portal .admin-page {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Show mobile menu button */
    .venue-portal .mobile-menu-btn {
        display: flex;
    }

    /* Hide recent event views on mobile */
    .recent-event-views {
        display: none;
    }

    /* Recent events - smaller thumb and compact layout */
    .recent-event-thumb {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .recent-event-info h4 {
        font-size: 0.85rem;
    }

    .recent-event-info p {
        font-size: 0.75rem;
    }

    .recent-event-item {
        gap: 10px;
        padding: 10px 0;
    }

    /* Cards should not overflow horizontally */
    .activity-card,
    .chart-card,
    .widget-card,
    .settings-card {
        overflow-x: hidden;
        overflow-y: visible;
        max-width: 100%;
    }

    /* Widget layout - stack on mobile */
    .widget-layout {
        flex-direction: column;
    }

    /* Widget cards grid - ensure single column on mobile */
    .widget-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Widget page - ensure it scrolls properly */
    #page-widget {
        overflow: visible;
    }

    /* Sidebar hidden by default on mobile */
    .venue-portal #adminSidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 200 !important;
        padding: 72px 16px 40px 16px;
        padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .venue-portal #adminSidebar.open {
        transform: translateX(0);
    }

    /* Main content - no sidebar margin on mobile */
    .venue-portal .admin-content {
        margin-left: 0 !important;
        padding: 24px 20px;
        padding-top: 80px;
        padding-bottom: 40px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Admin pages should have enough space at bottom */
    .venue-portal .admin-page {
        padding-bottom: 40px;
    }

    /* Sidebar links full width on mobile */
    .venue-portal .sidebar-link {
        width: 100%;
    }

    /* Dashboard header stacks on mobile */
    .venue-portal .dashboard-header {
        flex-direction: column;
        gap: 16px;
    }

    .venue-portal .header-search {
        width: 100%;
        min-width: unset;
    }

    /* Page header row - stack on mobile */
    .page-header-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch !important;
    }

    .page-header-row .header-btn {
        width: 100%;
        justify-content: center;
    }

    /* Toast notification - bottom center on mobile */
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
    }

    /* Sidebar bottom spacing for mobile */
    .sidebar-bottom {
        padding-bottom: 32px;
        padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
        flex-shrink: 0;
    }
}

/* ===== IPAD / TABLET FIXES ===== */
@media (max-width: 1024px) {
    /* Modal form rows - single column on iPad */
    .modal .form-row,
    .admin-modal .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Modal should not overflow horizontally */
    .modal,
    .admin-modal {
        max-width: calc(100vw - 32px);
        overflow-x: hidden;
    }

    .modal-content,
    .modal-body {
        overflow-x: hidden;
    }

    /* Time inputs should be full width */
    .modal input[type="time"],
    .modal input[type="date"],
    .admin-modal input[type="time"],
    .admin-modal input[type="date"] {
        width: 100%;
        min-width: 0;
    }

    /* Sidebar - adapt to visible viewport on iPad */
    .venue-portal #adminSidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 72px 16px 60px 16px !important;
        box-sizing: border-box;
    }

    /* Ensure sidebar bottom has enough space on iPad */
    .sidebar-bottom {
        padding-bottom: 40px !important;
        margin-bottom: 20px;
        flex-shrink: 0;
    }
}

/* ===== EVENT BOOST BLOCK ===== */
.event-boost-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 20px;
}

.event-boost-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.event-boost-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-boost-icon svg {
    color: var(--text-primary);
}

.event-boost-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.event-boost-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 4px 0 0 0;
    line-height: 1.5;
}

/* Duration Label */
.boost-duration-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.boost-duration-label .required {
    color: var(--error, #ef4444);
}

/* Boost Tier Error */
.boost-tier-error {
    font-size: 0.8rem;
    color: var(--error, #ef4444);
    margin-top: 8px;
    margin-bottom: 0;
}

.boost-tier-grid.error .boost-tier-card {
    border-color: var(--error, #ef4444);
}

/* Boost Tier Grid */
.boost-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.boost-tier-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    text-align: center;
    transition: border-color var(--transition), background var(--transition);
}

.boost-tier-card:hover {
    border-color: var(--accent);
}

.boost-tier-card.selected {
    border-color: var(--accent);
}

.boost-tier-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.boost-tier-unavailable {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.boost-tier-duration {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.boost-tier-price {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

.boost-tier-original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
    margin-right: 4px;
}

.boost-tier-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.boost-tier-card.last-minute {
    border-color: var(--accent);
    background: var(--accent-glow, rgba(209, 115, 89, 0.08));
}

/* Boost Action */
.boost-action {
    display: flex;
    justify-content: center;
}

.boost-action .notif-black-btn {
    gap: 15px;
}

.boost-action .notif-black-btn svg {
    color: #ffffff;
}

/* Boost Pay Success */
.boost-pay-success {
    color: #0a7c28;
    font-size: 0.85rem;
    text-align: center;
    margin: 12px 0 0;
}

/* Boost Pay Error */
.boost-pay-error {
    color: var(--error, #dc2626);
    font-size: 0.85rem;
    text-align: center;
    margin: 12px 0 0;
}

.boost-pay-error a {
    color: var(--error, #dc2626);
    text-decoration: underline;
}

.boost-action .notif-black-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Active Boost Status */
.boost-active-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: var(--accent-glow, rgba(209, 115, 89, 0.08));
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
}

.boost-active-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.boost-active-badge svg {
    color: var(--text-primary);
}

.boost-active-badge svg {
    width: 18px;
    height: 18px;
}

.boost-active-time {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-left: auto;
}

/* Dashboard Active Boosts */
.dashboard-boosts-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.dashboard-boost-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--accent-glow, rgba(209, 115, 89, 0.08));
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
}

.dashboard-boost-row svg {
    color: var(--text-primary);
    flex-shrink: 0;
}

.dashboard-boost-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.dashboard-boost-dot {
    color: var(--text-primary);
    font-weight: 600;
}

.dashboard-boost-time {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.dashboard-boost-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-boost-link:hover {
    color: var(--text-secondary);
}

.boost-extend-section {
    margin-top: 16px;
}

.boost-extend-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Happy Hour Boost - Start Date Picker */
.hh-start-date-group {
    margin-bottom: 16px;
}

.hh-start-date-input {
    display: block;
    margin-top: 6px;
    padding: 10px 14px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-input, #ffffff);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    max-width: 220px;
}

.hh-start-date-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* HH Boost Spots Badge */
.hh-spots-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: #e6f9ed;
    color: #0a7c28;
    border: 1px solid #0a7c28;
    margin-bottom: 16px;
}

.hh-spots-badge.low {
    background: #fff8e6;
    color: #b8860b;
    border-color: #daa520;
}

.hh-spots-badge.sold-out {
    background: #fdeaea;
    color: #c0392b;
    border-color: #e74c3c;
}

.hh-sold-out-msg {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.venue-portal .stat-card {
    background: #ffffff;
    text-align: center;
}

.venue-portal .stat-card .stat-card-top {
    justify-content: center;
}

.venue-portal .stat-card .stat-icon {
    margin: 0 auto;
}

.venue-portal .stat-card p {
    margin-top: 12px !important;
}

.stat-card-link {
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: underline;
}

.stat-card-link:hover {
    color: var(--text-primary);
}

/* Mobile / iPad: single column, flatten wrappers, reorder blocks */
@media (max-width: 1099px) {
    .event-form-layout {
        grid-template-columns: 1fr;
    }

    .evt-col-a,
    .evt-col-b {
        display: contents;
    }

    /* Mobile order: Image → Details → Date → Tickets → Save */
    .evt-block-image   { order: 1; }
    .evt-block-details { order: 2; }
    .evt-block-date    { order: 3; }
    .evt-block-tickets { order: 4; }
    .evt-block-save    { order: 5; }

    .event-form-image-area {
        aspect-ratio: 16 / 9;
    }
}

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

    .event-card-header {
        height: 140px;
    }

    .recent-event-item {
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .widget-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Boost tier cards stack vertically on mobile */
    .boost-tier-grid {
        grid-template-columns: 1fr;
    }

    .boost-tier-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .boost-tier-duration {
        margin-bottom: 0;
    }

    .boost-active-status {
        flex-wrap: wrap;
    }

    .boost-active-time {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    .event-detail-layout {
        grid-template-columns: 1fr;
    }

    .event-detail-image {
        min-height: 200px;
    }

    .event-detail-header h1 {
        font-size: 1.4rem;
    }

    .logo-upload-section {
        flex-direction: column;
        align-items: center;
    }
}


/* ===== DANGER ZONE - CLOSE ACCOUNT ===== */
.settings-card.danger-zone {
    border-color: var(--error);
    background: var(--error-bg);
}

.settings-card.danger-zone h3 {
    color: var(--error);
}

.danger-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--error);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.danger-btn:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 600px) {
    /* Notification stats - single column on small mobile */
    .notification-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Notification compose - single column on mobile */
    .notif-compose-grid {
        grid-template-columns: 1fr;
    }

    .notif-compose-left {
        padding-right: 0;
        border-right: none;
        padding-bottom: 0.5rem;
    }

    .notif-compose-right {
        padding-left: 0;
    }

    .notif-step-line {
        width: 40px;
    }

    /* Notification table - show only title & status on mobile */
    .notif-table .list-header,
    .notif-row {
        grid-template-columns: 1fr 80px;
    }

    .col-notif-message,
    .col-notif-audience,
    .col-notif-cost,
    .col-notif-date,
    .col-notif-recipients,
    .notif-table .list-header > div:nth-child(2),
    .notif-table .list-header > div:nth-child(3),
    .notif-table .list-header > div:nth-child(5),
    .notif-table .list-header > div:nth-child(6),
    .notif-table .list-header > div:nth-child(7) {
        display: none;
    }

    /* Smaller padding on very small screens */
    .venue-portal .admin-content {
        padding: 16px;
        padding-top: 72px;
    }

    /* Stats row - 2 columns on mobile */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card h3 {
        font-size: 1.25rem;
    }

    .stat-card p {
        font-size: 0.75rem;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
    }

    .stat-icon svg {
        width: 16px;
        height: 16px;
    }

    /* Content row - single column */
    .content-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Chart and activity cards */
    .chart-card,
    .activity-card {
        padding: 16px;
    }

    /* Settings cards */
    .settings-card {
        padding: 16px;
    }

    /* Form row - single column on mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Modal adjustments */
    .modal {
        margin: 8px;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }

    .modal-large {
        width: calc(100% - 16px);
        max-width: calc(100vw - 16px);
    }

    /* Widget cards grid */
    .widget-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Toolbar - stack elements */
    .toolbar,
    .events-top-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

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

    .type-btn {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }

    /* Happy hour items - stack on mobile */
    .happy-hour-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .happy-hour-actions {
        align-self: flex-end;
    }

    /* Back button */
    .back-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Page title smaller */
    .page-title {
        font-size: 1.5rem;
    }

    /* Greeting */
    .greeting-title {
        font-size: 1.4rem;
    }

    .greeting-subtitle {
        font-size: 0.85rem;
    }
}

/* ===== INLINE CALENDAR & TIME SLIDER (Event Form) ===== */
.event-calendar-col > label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Flatpickr theme overrides */
.event-calendar-col .flatpickr-calendar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: none;
    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: 100%;
}

.event-calendar-col .flatpickr-calendar.inline {
    box-shadow: none;
    top: 0;
}

.event-calendar-col .flatpickr-months {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0;
}

.event-calendar-col .flatpickr-months .flatpickr-month {
    color: var(--text-primary);
    fill: var(--text-primary);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.event-calendar-col .flatpickr-current-month {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0;
    width: auto;
    left: auto;
}

.event-calendar-col .flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600;
    color: var(--text-primary);
}

.event-calendar-col .flatpickr-months .flatpickr-prev-month,
.event-calendar-col .flatpickr-months .flatpickr-next-month {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    fill: var(--text-secondary);
    padding: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.event-calendar-col .flatpickr-months .flatpickr-prev-month {
    left: 8px;
}

.event-calendar-col .flatpickr-months .flatpickr-next-month {
    right: 8px;
}

.event-calendar-col .flatpickr-months .flatpickr-prev-month:hover,
.event-calendar-col .flatpickr-months .flatpickr-next-month:hover {
    color: var(--accent);
    fill: var(--accent);
}

.event-calendar-col .flatpickr-months .flatpickr-prev-month svg,
.event-calendar-col .flatpickr-months .flatpickr-next-month svg {
    fill: inherit;
}

.evt-year-select {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    cursor: pointer;
    outline: none;
}

.evt-year-select:focus {
    border-color: var(--accent);
}

.evt-selected-date {
    text-align: center;
    padding: 10px 0 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
}

.event-calendar-col .flatpickr-weekdays {
    padding: 0 8px;
}

.event-calendar-col span.flatpickr-weekday {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.event-calendar-col .flatpickr-days {
    padding: 0 8px 8px;
    width: 100%;
}

.event-calendar-col .dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

.event-calendar-col .flatpickr-day {
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    font-size: 0.85rem;
    max-width: none;
    height: 36px;
    line-height: 32px;
}

.event-calendar-col .flatpickr-day:hover {
    background: var(--bg-hover);
    border-color: transparent;
}

.event-calendar-col .flatpickr-day.today {
    border-color: transparent;
    background: transparent;
}

.event-calendar-col .flatpickr-day.today:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.event-calendar-col .flatpickr-day.selected,
.event-calendar-col .flatpickr-day.selected:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.event-calendar-col .flatpickr-day.flatpickr-disabled,
.event-calendar-col .flatpickr-day.flatpickr-disabled:hover {
    color: var(--text-muted);
    opacity: 0.4;
}

.event-calendar-col .flatpickr-day.prevMonthDay,
.event-calendar-col .flatpickr-day.nextMonthDay {
    color: var(--text-muted);
}

/* ===== EVENT TIME RANGE SLIDER ===== */
.evt-time-section {
    margin-top: 20px;
}

.evt-time-section > label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.evt-time-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.evt-time-val {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.evt-time-sep {
    color: var(--text-muted);
    font-size: 1rem;
}

.evt-time-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(209, 115, 89, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.evt-slider {
    padding: 19px 0;
    touch-action: none;
    cursor: pointer;
    user-select: none;
}

.evt-slider-track {
    position: relative;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

.evt-slider-fill {
    position: absolute;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    pointer-events: none;
}

.evt-slider-handle {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    background: var(--accent);
    border: 3px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: grab;
    z-index: 2;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.evt-slider-handle:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%) scale(1.1);
}

.evt-slider.dragging .evt-slider-handle {
    transition: none;
}

.evt-slider-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

.evt-slider-axis span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== FACEBOOK EVENT SYNC ===== */

/* FB source badge on event cards */
.fb-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: #1877F2;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.fb-source-badge svg {
    width: 10px;
    height: 10px;
    fill: #ffffff;
}

/* FB imported label on event detail page */
.fb-imported-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-hover);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.fb-imported-label svg {
    width: 14px;
    height: 14px;
    fill: #1877F2;
    flex-shrink: 0;
}

.fb-imported-label a {
    color: #1877F2;
    text-decoration: none;
    font-weight: 500;
}

.fb-imported-label a:hover {
    text-decoration: underline;
}

/* FB sync status on Settings page */
.fb-sync-status {
    margin-top: 16px;
    padding: 14px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.fb-sync-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fb-sync-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fb-sync-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fb-sync-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.fb-sync-detail.error {
    color: var(--error);
}

.fb-sync-btn {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 6px 14px;
}

.fb-sync-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.fb-sync-btn:disabled:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--text-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

/* Manual edit warning note */
.fb-edit-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: #5D4037;
    margin-bottom: 16px;
}

[data-theme="dark"] .fb-edit-note {
    background: rgba(255, 248, 225, 0.1);
    border-color: rgba(255, 224, 130, 0.3);
    color: var(--text-secondary);
}

.fb-edit-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #F9A825;
}

/* Dashboard: FB connect CTA block */
.fb-connect-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.fb-connect-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fb-connect-cta-icon svg {
    width: 32px;
    height: 32px;
}

.fb-connect-cta-content {
    flex: 1;
    min-width: 0;
}

.fb-connect-cta-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.fb-connect-cta-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.fb-connect-cta .meta-connect-btn {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .fb-connect-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .fb-connect-cta .meta-connect-btn {
        width: 100%;
        text-align: center;
    }
}

/* Dashboard: Social connection indicators */
.dashboard-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.dashboard-social-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-social-icon {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-social-icon.connected {
    border-color: var(--success);
}

.dashboard-social-icon svg:first-child {
    width: 14px;
    height: 14px;
}

.dashboard-social-icon .check-icon,
.dashboard-social-icon .x-icon,
.dashboard-social-icon .spinner-icon {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dashboard-social-icon .check-icon,
.dashboard-social-icon .x-icon {
    padding: 2px;
    color: #ffffff;
    stroke-width: 3;
}

.dashboard-social-icon .check-icon {
    background: var(--success);
    display: none;
}

.dashboard-social-icon .x-icon {
    background: #d44;
    display: none;
}

.dashboard-social-icon .spinner-icon {
    border: 2px solid var(--border);
    border-top-color: var(--text-muted);
    animation: spin 0.8s linear infinite;
    display: none;
    box-sizing: border-box;
}

/* Loading state: show spinner only */
.dashboard-social-icon.loading .spinner-icon {
    display: block;
}

/* Connected state: show checkmark only */
.dashboard-social-icon.connected .check-icon {
    display: block;
}

/* Not connected (no .loading, no .connected): show x only */
.dashboard-social-icon:not(.loading):not(.connected) .x-icon {
    display: block;
}

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