* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 48px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.logo .suit {
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.logo .suit:hover {
    transform: scale(1.2) rotate(-5deg);
}

.logo .spade { color: #fff; }
.logo .heart { color: #e74c3c; }
.logo .club { color: #fff; }
.logo .diamond { color: #e74c3c; }

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.event-date {
    font-size: 18px;
    color: #ffd700;
    font-weight: 500;
}

/* Login Screen Styles */
.login-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
}

.login-subtitle {
    color: #aaa;
    font-size: 16px;
    margin-top: 10px;
}

.check-email-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.check-email-text {
    color: #aaa;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.check-email-text strong {
    color: #fff;
}

.resend-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #aaa;
}

.resend-link a {
    color: #667eea;
    text-decoration: none;
}

.resend-link a:hover {
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 16px;
}

.back-link a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.back-link a:hover {
    color: #fff;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.user-email {
    color: #aaa;
}

.logout-btn {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.logout-btn:hover {
    text-decoration: underline;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 16px;
}

/* Seats Status */
.seats-status {
    text-align: center;
}

.seats-display {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.seat {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.seat.filled {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: #fff;
}

.seat.empty {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    color: #666;
}

.seat.alternate {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    color: #000;
}

.seats-text {
    font-size: 24px;
    font-weight: 700;
}

.seats-text.full {
    color: #e74c3c;
}

.seats-text.available {
    color: #00b894;
}

.alternate-status {
    margin-top: 12px;
    padding: 10px;
    background: rgba(253, 203, 110, 0.2);
    border-radius: 8px;
    font-size: 14px;
}

/* Attendees List */
.attendees-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attendee {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
}

.attendee.alternate {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    color: #000;
}

.attendee.alternate::after {
    content: ' (Alt)';
    font-size: 12px;
    opacity: 0.8;
}

.no-attendees {
    color: #888;
    font-style: italic;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

input::placeholder {
    color: #666;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
}

.btn:active:not(:disabled) {
    transform: scale(0.97);
    box-shadow: none;
}

.btn-primary:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tab-content {
    display: none;
}

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

/* Messages */
.message {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.message.success {
    background: rgba(0, 184, 148, 0.2);
    border: 1px solid #00b894;
    color: #00b894;
}

.message.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.message.show {
    display: block;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* Responsive */
@media (max-width: 380px) {
    .seat {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    h1 {
        font-size: 24px;
    }
}

/* Pull to refresh hint */
.refresh-hint {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 20px;
}

/* Feedback Button and Modal */
.feedback-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 184, 148, 0.5);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: pulse-glow 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 6px;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 184, 148, 0.5); }
    50% { box-shadow: 0 4px 30px rgba(0, 184, 148, 0.8); }
}

.feedback-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 184, 148, 0.7);
    animation: none;
}

.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.feedback-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.feedback-header h2 {
    font-size: 20px;
    margin: 0;
}

.feedback-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
}

.feedback-close:hover {
    color: #fff;
}

.feedback-type-select {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.feedback-type-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #aaa;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.feedback-type-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.feedback-type-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
}

.feedback-textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 16px;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.feedback-textarea::placeholder {
    color: #666;
}

.feedback-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.feedback-submit:hover {
    opacity: 0.9;
}

.feedback-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Plus One Toggle */
.plus-one-toggle {
    margin-bottom: 20px;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.toggle-container:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.toggle-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    cursor: pointer;
}

.toggle-label {
    font-size: 16px;
    color: #fff;
}

#actionCard h2 {
    font-size: 20px;
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: normal;
    color: #fff;
}

/* Preferences Section */
.prefs-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prefs-toggle:last-child {
    border-bottom: none;
}

.prefs-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.prefs-label-main {
    font-size: 15px;
    color: #fff;
}

.prefs-label-sub {
    font-size: 12px;
    color: #888;
}

.prefs-switch {
    position: relative;
    width: 50px;
    height: 28px;
}

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

.prefs-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 28px;
}

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

.prefs-switch input:checked + .prefs-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.prefs-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin: 16px 0 8px 0;
}

.prefs-section-title:first-child {
    margin-top: 0;
}

.settings-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.settings-btn:hover {
    text-decoration: underline;
}

/* Request Access Link */
.request-access-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #aaa;
}

.request-access-link a {
    color: #667eea;
    text-decoration: none;
}

.request-access-link a:hover {
    text-decoration: underline;
}

.sms-disclosure {
    margin-top: 16px;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    text-align: center;
}

.sms-disclosure a {
    color: #667eea;
}

/* Honeypot - hidden from users, visible to bots */
.ohnohoney {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Verification code input */
.code-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-family: monospace;
}

/* Upcoming Events */
.upcoming-events {
    margin-top: 20px;
}

.upcoming-events h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 12px;
}

.upcoming-event-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upcoming-event-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.upcoming-event-card.expanded {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
}

.upcoming-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upcoming-event-date {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.upcoming-event-spots {
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.upcoming-event-spots.available {
    background: rgba(0, 184, 148, 0.2);
    color: #00b894;
}

.upcoming-event-spots.full {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.upcoming-event-spots.signed-up {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.upcoming-event-details {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.upcoming-event-card.expanded .upcoming-event-details {
    display: block;
}

.upcoming-event-players {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.upcoming-event-players .attendee {
    font-size: 13px;
    padding: 5px 12px;
}

.upcoming-event-action {
    margin-top: 12px;
}

.upcoming-event-action .btn {
    padding: 12px;
    font-size: 14px;
}

.expand-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.upcoming-event-card.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Admin Panel Styles */
.admin-gear {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.admin-gear:hover {
    opacity: 1;
    transform: rotate(45deg);
}

header {
    position: relative;
}

.admin-panel {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.admin-panel h2 {
    color: #ffd700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-panel h2::before {
    content: '\2699\FE0F';
}

.admin-section {
    margin-bottom: 20px;
}

.admin-section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.status-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-btn {
    padding: 10px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-btn.active {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.status-btn.status-draft { border-color: #95a5a6; }
.status-btn.status-draft.active { background: rgba(149, 165, 166, 0.3); color: #95a5a6; }
.status-btn.status-open { border-color: #00b894; }
.status-btn.status-open.active { background: rgba(0, 184, 148, 0.3); color: #00b894; }
.status-btn.status-closed { border-color: #e74c3c; }
.status-btn.status-closed.active { background: rgba(231, 76, 60, 0.3); color: #e74c3c; }
.status-btn.status-completed { border-color: #667eea; }
.status-btn.status-completed.active { background: rgba(102, 126, 234, 0.3); color: #667eea; }

/* Registration Status Styles */
.registration-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.registration-count {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.registration-count.signed-up {
    background: rgba(0, 184, 148, 0.2);
    color: #00b894;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.registration-count.declined {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.registration-count.not-responded {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.registration-list {
    max-height: 300px;
    overflow-y: auto;
}

.registration-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
}

.registration-item:last-child {
    margin-bottom: 0;
}

.registration-name {
    font-weight: 500;
}

.registration-plus-one {
    font-size: 12px;
    color: #aaa;
    margin-left: 8px;
}

.registration-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.registration-status-badge.signed-up {
    background: rgba(0, 184, 148, 0.2);
    color: #00b894;
}

.registration-status-badge.player {
    background: rgba(0, 184, 148, 0.2);
    color: #00b894;
}

.registration-status-badge.alternate {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.registration-status-badge.waitlist {
    background: rgba(253, 203, 110, 0.2);
    color: #fdcb6e;
}

.registration-status-badge.declined {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.registration-status-badge.not-responded {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
}

.registration-loading {
    text-align: center;
    color: #aaa;
    padding: 20px;
}

.create-event-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.create-event-form input[type="date"] {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 16px;
}

.create-event-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.btn-admin {
    background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%);
    color: #000;
}

.btn-admin:hover {
    opacity: 0.9;
}

.current-event-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.current-event-status.status-draft { background: #95a5a6; color: #fff; }
.current-event-status.status-open { background: #00b894; color: #fff; }
.current-event-status.status-closed { background: #e74c3c; color: #fff; }
.current-event-status.status-completed { background: #667eea; color: #fff; }

/* Decline Button Styles */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.declined-state h2 {
    color: #95a5a6;
}

.upcoming-event-spots.declined {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
}

/* Contact Notice Banner */
.contact-notice {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.contact-notice-title {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.contact-notice-content {
    color: #4a5568;
}

.contact-notice-content strong {
    color: #1a202c;
    font-weight: 600;
}

.contact-notice-content .gold {
    color: #b7791f;
}

.contact-notice-content .contact-download {
    color: #667eea;
    font-weight: 600;
    text-decoration: underline;
}

.contact-notice-dismiss {
    float: right;
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    margin-left: 10px;
}

.contact-notice-dismiss:hover {
    text-decoration: underline;
}

/* Passkey Login */
.passkey-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.passkey-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.passkey-divider-text {
    color: #aaa;
    font-size: 13px;
}

.passkey-login-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
}

/* Passkey Preferences */
.passkey-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.passkey-register-btn {
    width: 100%;
    margin-top: 8px;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 80px; /* above feedback button */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    max-width: 90vw;
    word-wrap: break-word;
    text-align: center;
}

.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error { background: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }
.toast-success { background: rgba(0, 184, 148, 0.2); color: #00b894; border: 1px solid rgba(0, 184, 148, 0.3); }

/* Focus states */
.btn:focus-visible, .tab:focus-visible, .status-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Text overflow hardening */
.attendee, .registration-name, .upcoming-event-date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
