/* ============================================================
   Event Notifications Plugin - Public Styles
   Mobile-first responsive design
   ============================================================ */

/* ── Base & Typography ── */
.event-notifications-form-wrapper,
.event-notifications-dashboard {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
}

/* ── Form Sections ── */
.form-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
    font-size: 1rem;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-field input[type="text"],
.form-field input[type="url"],
.form-field input[type="datetime-local"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

/* Fix datetime-local on mobile */
.form-field input[type="datetime-local"] {
    min-height: 46px;
}

.form-field textarea {
    resize: vertical;
}

.form-field .description {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.required {
    color: #d63638;
}

/* ── Visibility Toggle ── */
.en-visibility-toggle {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.en-radio-option {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.en-radio-option input[type="radio"] {
    margin-right: 6px;
    accent-color: #2271b1;
}

.en-radio-option:has(input:checked) {
    border-color: #2271b1;
    background: #f0f6ff;
}

.en-radio-option span {
    font-weight: 600;
    color: #333;
}

.en-radio-option small {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ── Notifications ── */
.notification-item {
    background: #f9f9f9;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    position: relative;
}

.notification-item h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #2271b1;
    font-size: 0.95rem;
}

.remove-notification {
    margin-top: 10px;
    background: #d63638;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.remove-notification:hover {
    background: #b32d2e;
}

/* ── Messages ── */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 14px 16px;
    border-radius: 6px;
    margin-top: 16px;
    border-left: 4px solid #28a745;
    font-size: 14px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 14px 16px;
    border-radius: 6px;
    margin-top: 16px;
    border-left: 4px solid #dc3545;
    font-size: 14px;
}

/* ── Dashboard / Events Grid ── */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

.event-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.event-card-header {
    padding: 16px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.event-card-header h3 {
    margin: 0;
    font-size: 16px;
    flex: 1;
    line-height: 1.3;
}

.event-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.event-card-body {
    padding: 16px 18px;
}

.event-card-body p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.event-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
}

.stat {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 80px;
}

.stat-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
}

.event-date {
    margin: 8px 0 0 0;
    color: #999;
    font-size: 12px;
}

.event-card-footer {
    padding: 12px 16px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.event-card-footer .button {
    flex: 1;
    min-width: 90px;
    text-align: center;
}

/* ── Modal ── */
.en-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-overflow-scrolling: touch;
}

.en-modal-content {
    background-color: #fff;
    margin: 10% auto 5%;
    padding: 20px 18px;
    border-radius: 10px;
    width: 92%;
    max-width: 680px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.en-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}

.en-modal-close:hover,
.en-modal-close:focus {
    color: #000;
}

.notification-item-modal {
    padding: 14px;
    margin: 12px 0;
    background: #f9f9f9;
    border-left: 4px solid #2271b1;
    border-radius: 6px;
}

.notification-item-modal h4 {
    margin: 0 0 8px 0;
    color: #2271b1;
    font-size: 0.95rem;
}

.notification-item-modal p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #999;
}

.notification-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-status-pending {
    background: #fcf9e8;
    color: #8a6d3b;
}

.notification-status-sent {
    background: #d4edda;
    color: #155724;
}

.notification-status-failed {
    background: #f8d7da;
    color: #721c24;
}

/* ── Buttons ── */
.button {
    display: inline-block;
    padding: 11px 20px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    min-height: 44px; /* Touch target */
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.button:hover {
    background: #135e96;
    color: #fff;
}

.button-primary {
    background: #2271b1;
}

.button-primary:hover {
    background: #135e96;
}

.button-secondary {
    background: #6c757d;
}

.button-secondary:hover {
    background: #5a6268;
}

.button-large {
    padding: 14px 28px;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

.button-small {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 36px;
}

.button-link-delete {
    background: #d63638;
}

.button-link-delete:hover {
    background: #b32d2e;
}

/* ── Event Page ── */
.event-page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px;
}

.event-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 24px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.event-page-header h1 {
    margin: 0 0 12px 0;
    font-size: 1.6rem;
    line-height: 1.25;
}

.event-description {
    font-size: 15px;
    line-height: 1.6;
    margin: 16px 0;
}

.event-attachment {
    margin-top: 16px;
}

.event-attachment h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.event-attachment img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive iframe embeds */
.event-attachment iframe {
    width: 100%;
    border-radius: 6px;
}

.event-page-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* ── Notifications Timeline ── */
.event-notifications-schedule {
    background: #fff;
    padding: 20px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notifications-timeline {
    margin-top: 16px;
}

.timeline-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: -20px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-marker {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    margin: 0 0 6px 0;
    color: #2271b1;
    font-size: 15px;
}

.timeline-content p {
    margin: 0 0 6px 0;
    color: #666;
    font-size: 14px;
}

.timeline-date {
    font-size: 12px;
    color: #999;
}

/* ── Subscribe & Share Sections ── */
.event-subscribe-section,
.event-share-section {
    background: #fff;
    padding: 20px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.subscription-status {
    text-align: center;
    padding: 24px 16px;
}

.subscription-status.subscribed {
    background: #d4edda;
    border-radius: 8px;
}

.status-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    line-height: 60px;
    margin-bottom: 12px;
}

.subscription-form h3,
.event-share-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
    font-size: 1rem;
}

/* ── Share Section ── */
.share-options {
    margin-top: 16px;
}

.share-link,
.share-qr {
    margin-bottom: 16px;
}

.share-link label,
.share-qr label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.link-copy-wrapper {
    display: flex;
    gap: 8px;
}

.link-copy-wrapper input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.qr-code-container {
    text-align: center;
}

.qr-code-container img {
    max-width: 160px;
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* ── Event Link in Dashboard ── */
.event-share-info {
    background: #f9f9f9;
    padding: 12px 14px;
    border-radius: 6px;
    margin: 12px 0;
}

.event-link-display {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

.event-link-display input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
}

.event-link-display button {
    padding: 8px 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    min-height: 38px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.event-link-display button:hover {
    background: #135e96;
}

.subscribers-count {
    font-size: 12px;
    color: #666;
    margin: 4px 0 0 0;
}

/* ── Bell Subscription ── */
.bell-subscription {
    text-align: center;
}

.bell-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
}

.bell-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.bell-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bell-button.subscribed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.bell-icon {
    font-size: 22px;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(14deg);
    }

    20%,
    40% {
        transform: rotate(-14deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

.bell-button:hover .bell-icon {
    animation: bellRing 0.5s ease-in-out;
}

.subscription-hint {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

#subscription-status {
    margin-top: 16px;
}

.status-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 8px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.warning-message {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* ── Floating Bell Widget ── */
.event-subscribe-floating-footer {
    position: fixed;
    bottom: 24px;
    right: 20px;
    left: auto;
    transform: none;
    background: #fff;
    padding: 8px 14px 8px 18px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
    max-width: calc(100vw - 40px);
}

.event-subscribe-floating-footer:hover {
    transform: translateY(-4px);
}

.floating-bell {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.bell-text-floating {
    font-weight: 600;
    color: #444;
    font-size: 13px;
    white-space: nowrap;
}

.floating-btn {
    padding: 8px !important;
    font-size: 18px !important;
    border-radius: 50% !important;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: unset;
}

.floating-btn .bell-icon {
    margin-right: 0 !important;
}

.floating-btn .bell-text {
    display: none;
}

.floating-status {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    left: auto;
    transform: none;
    background: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    max-width: 280px;
    text-align: right;
    border: 1px solid #eee;
    font-size: 13px;
    white-space: normal;
}

/* ── Edit Event Form Styles ── */
.event-edit-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

.event-edit-form-container .form-group {
    margin-bottom: 18px;
}

.event-edit-form-container .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.event-edit-form-container .form-group input[type="text"],
.event-edit-form-container .form-group input[type="url"],
.event-edit-form-container .form-group input[type="datetime-local"],
.event-edit-form-container .form-group textarea,
.event-edit-form-container .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.event-edit-form-container .form-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.event-edit-form-container .form-actions .button {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.current-file {
    padding: 10px;
    background: #f0f0f0;
    border-radius: 6px;
}

/* ── Public Events Listing ── */
.en-public-events-wrapper {
    font-family: inherit;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px;
}

.en-public-events-header {
    text-align: center;
    margin-bottom: 28px;
}

.en-public-events-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    background: linear-gradient(135deg, #1a73e8, #6a1de8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.en-public-events-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Grid */
.en-events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

/* Card */
.en-event-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.08);
    border: 1px solid rgba(26, 115, 232, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.en-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(26, 115, 232, 0.14);
}

/* Expiry badge */
.en-expiry-badge {
    display: block;
    background: #e8f0fe;
    color: #1a73e8;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-bottom: 1px solid rgba(26, 115, 232, 0.1);
}

.en-expiry-badge.en-expiry-urgent {
    background: #fce8e6;
    color: #c5221f;
    border-bottom-color: rgba(197, 34, 31, 0.2);
}

/* Card body */
.en-event-card-body {
    padding: 16px 18px 10px;
    flex: 1;
}

.en-event-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.35;
}

.en-event-description {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 10px;
}

.en-event-media-hint {
    font-size: 0.8rem;
    color: #888;
}

/* Card footer */
.en-event-card-footer {
    padding: 12px 18px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

/* Buttons */
.en-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
    min-height: 42px;
    -webkit-tap-highlight-color: transparent;
}

.en-btn-view {
    background: #e8f0fe;
    color: #1a73e8;
    flex: 1;
}

.en-btn-view:hover {
    background: #c5d8fb;
    color: #1a73e8;
}

.en-btn-subscribe {
    background: linear-gradient(135deg, #1a73e8, #6a1de8);
    color: #fff;
    flex: 1;
}

.en-btn-subscribe:hover {
    opacity: 0.88;
}

.en-btn-subscribe:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.en-event-date {
    color: #aaa;
    font-size: 0.72rem;
}

/* Empty state */
.en-no-events {
    text-align: center;
    padding: 48px 20px;
    color: #888;
}

.en-no-events-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* Subscribe modal */
.en-subscribe-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end; /* Sheet from bottom on mobile */
    justify-content: center;
    padding: 0;
}

.en-subscribe-modal {
    background: #fff;
    border-radius: 16px 16px 0 0; /* Bottom sheet style */
    padding: 28px 24px 32px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
}

.en-subscribe-modal h4 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
}

.en-subscribe-modal input[type="text"],
.en-subscribe-modal input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.en-subscribe-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.en-subscribe-modal-actions .en-btn {
    flex: 1;
}

.en-modal-msg {
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 20px;
}

.en-modal-msg.success { color: #1e7e34; }
.en-modal-msg.error   { color: #c5221f; }

/* ── Single Event Page ── */
body.event-notification-page {
    background-color: #000;
    color: #fff;
}

.event-attachment.pdf-attachment {
    width: 100%;
    height: 100vh;
}

.event-attachment.pdf-attachment iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.event-attachment.image-attachment {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    min-height: 50vh;
}

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

.event-attachment.video-attachment {
    width: 100%;
    padding: 12px;
}

.event-attachment.video-attachment iframe {
    width: 100%;
    height: 56.25vw; /* 16:9 aspect ratio */
    max-height: 70vh;
    border: none;
    border-radius: 8px;
    display: block;
}

.event-subscribe-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(0, 0, 0, 0.88);
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Small phones (≤ 480px) ── */
@media (max-width: 480px) {
    .event-notifications-form-wrapper,
    .event-notifications-dashboard {
        padding: 12px;
    }

    .form-section {
        padding: 14px 12px;
    }

    .event-page-wrapper {
        padding: 10px;
    }

    .event-page-header {
        padding: 20px 14px;
        border-radius: 10px;
    }

    .event-page-header h1 {
        font-size: 1.35rem;
    }

    .bell-button {
        font-size: 15px;
        padding: 12px 20px;
    }

    .en-events-grid {
        gap: 14px;
    }

    .event-subscribe-floating-footer {
        bottom: 16px;
        right: 12px;
        padding: 6px 10px 6px 14px;
        gap: 8px;
    }

    .bell-text-floating {
        font-size: 12px;
        max-width: 140px;
        white-space: normal;
        line-height: 1.3;
    }

    .en-modal-content,
    .en-subscribe-modal {
        border-radius: 14px 14px 0 0;
        padding: 22px 16px 28px;
    }

    .event-card-footer {
        flex-direction: column;
    }

    .event-card-footer .button {
        width: 100%;
    }

    .en-visibility-toggle {
        flex-direction: column;
    }
}

/* ── Tablets (481px – 767px) ── */
@media (min-width: 481px) and (max-width: 767px) {
    .en-events-grid {
        grid-template-columns: 1fr;
    }

    .en-subscribe-modal {
        border-radius: 16px;
        max-width: 90vw;
        margin: auto;
    }

    .en-subscribe-modal-overlay {
        align-items: center;
        padding: 16px;
    }
}

/* ── Phablets & up (≥ 600px) ── */
@media (min-width: 600px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .en-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .event-page-content {
        grid-template-columns: 1fr;
    }

    .event-page-header h1 {
        font-size: 1.9rem;
    }
}

/* ── Desktop (≥ 768px) ── */
@media (min-width: 768px) {
    .form-section {
        padding: 26px;
    }

    .event-notifications-form-wrapper,
    .event-notifications-dashboard {
        padding: 24px;
    }

    .event-page-wrapper {
        padding: 24px;
    }

    .event-page-header {
        padding: 40px;
        border-radius: 12px;
    }

    .event-page-header h1 {
        font-size: 2rem;
    }

    .event-page-content {
        grid-template-columns: 2fr 1fr;
        gap: 28px;
    }

    .en-modal-content {
        margin: 6% auto;
        padding: 30px;
        border-radius: 12px;
    }

    .en-subscribe-modal-overlay {
        align-items: center;
        padding: 16px;
    }

    .en-subscribe-modal {
        border-radius: 16px;
        padding: 32px;
    }

    .event-attachment.video-attachment iframe {
        height: 60vh;
    }

    .bell-text-floating {
        font-size: 14px;
    }
}

/* ── Wide desktop (≥ 1024px) ── */
@media (min-width: 1024px) {
    .en-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}