/* Thinc Events Frontend Dashboard Aesthetics */
.em-frontend-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
}
.em-frontend-wrapper h1, .em-frontend-wrapper h2, .em-frontend-wrapper h3, .em-frontend-wrapper h4 {
    color: #111;
    font-weight: 700;
}
.em-frontend-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.em-frontend-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

.em-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #f0f2f5;
    color: #555;
}
.em-badge-primary { background: #eef2ff; color: #4f46e5; }
.em-badge-accent { background: #fdf2f8; color: #db2777; }

.em-pill-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}
.em-btn-zoom { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.em-btn-zoom:hover { background: #bae6fd; }
.em-btn-meet { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.em-btn-meet:hover { background: #a7f3d0; }
.em-btn-stream { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }
.em-btn-stream:hover { background: #e5e7eb; }

.em-ticket-tier {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 15px;
    background: #fafafa;
    transition: border-color 0.2s ease;
}
.em-ticket-tier:hover { border-color: #7835d6; background: #fff; }

.em-purchase-btn {
    background: linear-gradient(135deg, #7835d6 0%, #aa5ddc 100%);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    text-align: center;
    display: block;
}
.em-purchase-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(120,53,214,0.3); }

/* Grid Layouts */
.em-speakers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.em-speaker-card { background: #fff; border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #eee; border-top: 4px solid #7835d6; }

/* Modern Table */
.em-agenda-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.em-agenda-table th { background: #f8f9fa; padding: 15px; font-weight: 600; color: #555; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; border-bottom: 2px solid #eee; text-align: left;}
.em-agenda-table td { padding: 15px; border-bottom: 1px solid #f0f0f1; color: #444; }
.em-agenda-table tr:last-child td { border-bottom: none; }
.em-agenda-time { font-family: monospace; font-size: 13px; color: #7835d6; font-weight: 600; background: #f3ebfc; padding: 4px 8px; border-radius: 4px; }

/* Ticket Quantity Widget - Sleek Modern Pill */
.em-ticket-qty-widget {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 99px; /* Modern Pill Shape */
    overflow: hidden;
    width: 140px;
    height: 48px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.em-ticket-qty-widget.em-is-active {
    border-color: #7835d6;
    box-shadow: 0 0 0 4px rgba(120, 53, 214, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.em-ticket-qty-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    user-select: none;
}

.em-ticket-qty-btn:hover {
    color: #7835d6;
    background: #f8fafc;
}

.em-ticket-qty-btn:active {
    background: #f1f5f9;
}

.em-ticket-qty-input {
    width: 50px !important;
    height: 100%;
    border: none !important;
    border-left: 1px solid #f1f5f9 !important;
    border-right: 1px solid #f1f5f9 !important;
    border-radius: 0 !important;
    text-align: center;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
    appearance: textfield;
    transition: all 0.2s ease;
}

.em-ticket-qty-input:focus {
    outline: none !important;
    background: #fdfaff !important;
}

.em-ticket-qty-input::-webkit-outer-spin-button,
.em-ticket-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Pulse Animation for Interaction Feedback */
@keyframes em-pulse-widget {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); border-color: #7835d6; }
    100% { transform: scale(1); }
}

.em-pulse {
    animation: em-pulse-widget 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Member Dashboard Specific Styles */
.em-member-dashboard {
    padding: 20px 0;
}

.em-action-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}
.em-action-pill:hover { background: #e2e8f0; color: #1e293b; }
.em-action-pill.danger:hover { background: #fee2e2; color: #ef4444; border-color: #fecaca; }

.em-status-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.em-status-tag.active { background: #dcfce7; color: #15803d; }
.em-status-tag.redeemed { background: #fee2e2; color: #b91c1c; }

.em-btn-small {
    display: inline-block;
    padding: 6px 14px;
    background: #7835d6;
    color: #fff !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}
.em-btn-small:hover { background: #5d25ac; transform: translateY(-1px); }

.em-empty-state {
    padding: 40px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

/* Compact Event Cards */
.em-event-card-compact {
    display: flex;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.em-event-card-compact:hover { transform: translateY(-4px); box-shadow: 0 12px 20px rgba(0,0,0,0.06); border-color: #7835d6; }
.em-event-card-img {
    width: 100px;
    min-width: 100px;
    background-size: cover;
    background-position: center;
    border-right: 1px solid #f1f5f9;
}
.em-event-card-content { padding: 15px; flex: 1; }
.em-btn-outline {
    display: inline-block;
    padding: 4px 12px;
    border: 1.5px solid #7835d6;
    color: #7835d6 !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
}
.em-btn-outline:hover { background: #7835d6; color: #fff !important; }
