/**
 * EventPass Pro — Public Shortcodes Styles
 * Modern, responsive, clean SVG iconography, zero emojis, scoped classes (no global leaks).
 */

:root {
    --ep-pub-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ep-pub-primary: #2563eb;
    --ep-pub-primary-hover: #1d4ed8;
    --ep-pub-whatsapp: #16a34a;
    --ep-pub-whatsapp-hover: #15803d;
    --ep-pub-text: #0f172a;
    --ep-pub-text-muted: #64748b;
    --ep-pub-border: #e2e8f0;
    --ep-pub-bg-card: #ffffff;
    --ep-pub-bg-muted: #f8fafc;
}

/* ══════════════════════════════════════
 * THANK YOU PAGE
 * ══════════════════════════════════════ */
.ep-thankyou-wrap {
    font-family: var(--ep-pub-font);
    max-width: 520px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.ep-thankyou-wrap * {
    box-sizing: border-box;
}

.ep-thankyou-card {
    background: var(--ep-pub-bg-card);
    border-radius: 20px;
    border: 1px solid var(--ep-pub-border);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
}

.ep-ty-header {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    padding: 32px 24px;
    color: #ffffff;
}

.ep-ty-check-wrap {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ep-ty-check-wrap svg {
    width: 32px;
    height: 32px;
    stroke: #ffffff;
}

.ep-ty-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.ep-ty-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.ep-ty-body {
    padding: 28px 24px;
}

.ep-ty-badge-details {
    background: var(--ep-pub-bg-muted);
    border: 1px solid var(--ep-pub-border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
}

.ep-ty-row {
    padding: 8px 0;
    font-size: 13px;
    color: var(--ep-pub-text);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #edf2f7;
}

.ep-ty-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ep-ty-row:first-child {
    padding-top: 0;
}

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

.ep-ty-qr-box {
    margin: 0 auto 24px;
    display: inline-block;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--ep-pub-border);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.ep-ty-qr-img {
    width: 180px;
    height: 180px;
    display: block;
}

.ep-ty-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ep-ty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.ep-ty-btn svg {
    width: 18px;
    height: 18px;
}

.ep-ty-btn-primary {
    background: var(--ep-pub-primary);
    color: #ffffff;
}

.ep-ty-btn-primary:hover {
    background: var(--ep-pub-primary-hover);
    color: #ffffff;
}

.ep-ty-btn-whatsapp {
    background: var(--ep-pub-whatsapp);
    color: #ffffff;
}

.ep-ty-btn-whatsapp:hover {
    background: var(--ep-pub-whatsapp-hover);
    color: #ffffff;
}

.ep-ty-btn-secondary {
    background: var(--ep-pub-bg-muted);
    color: var(--ep-pub-text);
    border: 1px solid var(--ep-pub-border);
}

.ep-ty-btn-secondary:hover {
    background: #edf2f7;
}

/* ══════════════════════════════════════
 * STAFF PORTAL
 * ══════════════════════════════════════ */
.ep-staff-app {
    font-family: var(--ep-pub-font);
    max-width: 800px;
    margin: 20px auto 40px;
    background: #0f172a;
    border-radius: 20px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #1e293b;
    box-sizing: border-box;
}

.ep-staff-app * {
    box-sizing: border-box;
}

.ep-staff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

.ep-staff-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ep-staff-title svg {
    width: 22px;
    height: 22px;
    stroke: #3b82f6;
}

.ep-staff-counter {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.ep-staff-search-wrap {
    padding: 16px 24px;
    position: relative;
}

.ep-staff-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #1e293b;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.ep-staff-search-input:focus {
    border-color: #3b82f6;
}

.ep-staff-search-icon {
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.ep-staff-search-icon svg {
    width: 18px;
    height: 18px;
}

.ep-staff-results {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ep-staff-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ep-staff-card-info {
    flex: 1;
    min-width: 200px;
}

.ep-staff-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.ep-staff-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ep-staff-meta svg {
    width: 14px;
    height: 14px;
}

.ep-staff-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ep-staff-action-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.ep-staff-action-btn:hover {
    background: #1d4ed8;
}

.ep-staff-action-btn.is-inside {
    background: #475569;
}

.ep-staff-action-btn.is-inside:hover {
    background: #334155;
}

/* ══════════════════════════════════════
 * COUNTDOWN
 * ══════════════════════════════════════ */
.ep-countdown-widget {
    font-family: var(--ep-pub-font);
    max-width: 500px;
    margin: 30px auto;
    text-align: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 24px;
    padding: 36px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #334155;
    box-sizing: border-box;
}

.ep-cd-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #60a5fa;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.ep-cd-header svg {
    width: 16px;
    height: 16px;
}

.ep-cd-units {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ep-cd-unit {
    text-align: center;
}

.ep-cd-value {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 16px;
    min-width: 64px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ep-cd-label {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ep-cd-sep {
    font-size: 24px;
    color: #475569;
    font-weight: 800;
    padding-bottom: 18px;
}

/* ══════════════════════════════════════
 * STATS & PUBLIC LISTS
 * ══════════════════════════════════════ */
.ep-public-stats {
    font-family: var(--ep-pub-font);
    max-width: 640px;
    margin: 24px auto;
}

.ep-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.ep-stat-box {
    background: #ffffff;
    border: 1px solid var(--ep-pub-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ep-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--ep-pub-text);
}

.ep-stat-title {
    font-size: 12px;
    color: var(--ep-pub-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.ep-public-list-wrap {
    font-family: var(--ep-pub-font);
    max-width: 800px;
    margin: 24px auto;
}

.ep-public-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--ep-pub-border);
    border-radius: 12px;
    overflow: hidden;
    font-size: 13px;
}

.ep-public-table th,
.ep-public-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--ep-pub-border);
}

.ep-public-table th {
    background: var(--ep-pub-bg-muted);
    color: var(--ep-pub-text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

/* ══════════════════════════════════════
 * STAFF & TEAM APP PORTAL (ROMA DASHBOARD)
 * ══════════════════════════════════════ */
.ep-portal-app {
    font-family: var(--ep-pub-font);
    max-width: 640px;
    margin: 32px auto;
    background: #f8fafc;
    border: 1px solid var(--ep-pub-border);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.ep-portal-app * {
    box-sizing: border-box;
}

.ep-portal-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.ep-portal-date {
    font-size: 12px;
    color: var(--ep-pub-text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.ep-portal-greeting {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.ep-portal-username {
    font-size: 24px;
    font-weight: 800;
    color: var(--ep-pub-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.ep-portal-logo-box {
    width: 48px;
    height: 48px;
    background: #0f172a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.ep-portal-logo {
    max-width: 54px;
    max-height: 54px;
    object-fit: contain;
    border-radius: 12px;
}

/* Banner */
.ep-portal-banner {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-radius: 16px;
    padding: 16px 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px -4px rgba(2, 132, 199, 0.35);
}

.ep-portal-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ep-portal-banner-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.9;
    display: block;
    margin-bottom: 2px;
}

.ep-portal-banner-msg {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* User Profile Card */
.ep-portal-profile-card {
    background: #ffffff;
    border: 1px solid var(--ep-pub-border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.ep-portal-profile-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ep-portal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.ep-portal-profile-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--ep-pub-text);
    margin-bottom: 3px;
}

.ep-portal-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.ep-portal-role-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
}

.ep-portal-edit-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ep-portal-edit-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* Sections */
.ep-portal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ep-portal-section-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--ep-pub-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ep-portal-fav-hint {
    font-size: 11px;
    font-weight: 700;
    color: var(--ep-pub-text-muted);
}

/* Apps Grid */
.ep-portal-apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.ep-portal-app-card {
    background: #ffffff;
    border: 1px solid var(--ep-pub-border);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ep-portal-app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.ep-portal-fav-star {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #f59e0b;
    font-size: 13px;
}

.ep-portal-app-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
    transition: transform 0.2s ease;
}

.ep-portal-app-card:hover .ep-portal-app-icon-wrap {
    transform: scale(1.06);
}

.ep-portal-app-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-pub-text);
    text-align: center;
}

/* Action Buttons Grid */
.ep-portal-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ep-portal-action-pill {
    background: #ffffff;
    border: 1px solid var(--ep-pub-border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.15s ease;
}

.ep-portal-action-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    color: #0f172a;
}

.ep-portal-logout-pill {
    color: #ef4444;
}

.ep-portal-logout-pill:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Footer */
.ep-portal-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: var(--ep-pub-text-muted);
    font-weight: 600;
}

@media (max-width: 480px) {
    .ep-portal-apps-grid,
    .ep-portal-actions-grid {
        grid-template-columns: 1fr;
    }
}

