/* Re:Fresh 26W Event - Light Theme Styles */

/* ===== Custom Font Faces ===== */

/* LINE Seed JP - Japanese primary font */
@font-face {
    font-family: 'LINE Seed JP';
    src: url('../assets/fonts/LINESeedJP_TTF_Th.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed JP';
    src: url('../assets/fonts/LINESeedJP_TTF_Rg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed JP';
    src: url('../assets/fonts/LINESeedJP_TTF_Bd.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed JP';
    src: url('../assets/fonts/LINESeedJP_TTF_Eb.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Myriad Web Pro - English primary font */
@font-face {
    font-family: 'Myriad Web Pro';
    src: url('../assets/fonts/MyriadWebPro.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Myriad Web Pro';
    src: url('../assets/fonts/MyriadWebPro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Myriad Web Pro';
    src: url('../assets/fonts/MyriadWebPro-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Override base styles with light theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e1e5e9;
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --accent-blue: #4a90d9;
    --accent-purple: #9b59b6;
    --accent-pink: #e91e63;
    --accent-green: #27ae60;
    --accent-yellow: #f39c12;
    --accent-orange: #e67e22;

    /* Event-specific */
    --event-primary: #e91e63;
    --event-secondary: #9b59b6;
    --event-accent: #00bcd4;
    --event-gold: #ffd700;
    --event-silver: #c0c0c0;
    --event-bronze: #cd7f32;
}

body {
    font-family: 'Myriad Web Pro', 'LINE Seed JP', 'Noto Sans JP', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Event Header */
.event-header {
    background: linear-gradient(135deg, #e91e63 0%, #9b59b6 50%, #00bcd4 100%);
    border-bottom: none;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
}

.event-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></svg>');
    background-size: 30px 30px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

.event-logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.event-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* Login Bar */
.nav-right-group {
    margin-left: auto;
}

.login-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn {
    background: linear-gradient(135deg, var(--event-primary), var(--event-secondary));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.login-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.user-info {
    color: var(--text-primary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
}

.logout-btn:hover {
    color: var(--event-primary);
}

/* Login Modal */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay.active {
    display: flex;
}

.login-modal {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.login-modal h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-modal-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* Event Navigation */
.event-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}

.event-nav-link {
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.event-nav-link:hover {
    color: var(--text-primary);
    border-color: var(--event-primary);
    background: rgba(233, 30, 99, 0.05);
}

.event-nav-link.active {
    background: linear-gradient(135deg, var(--event-primary), var(--event-secondary));
    color: white;
    border-color: transparent;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Countdown */
.countdown-section {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.08), rgba(155, 89, 182, 0.08));
    border: 1px solid rgba(233, 30, 99, 0.2);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    margin-bottom: 32px;
}

.countdown-title {
    font-size: 1.1rem;
    color: var(--event-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 24px;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.countdown-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--event-primary), var(--event-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Rule Cards */
.rule-section {
    margin-bottom: 32px;
}

.rule-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.rule-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rule-icon {
    font-size: 2rem;
}

.rule-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rule-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.rule-content ul,
.rule-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.rule-content li {
    margin-bottom: 8px;
}

.rule-content strong {
    color: var(--text-primary);
}

.rule-content code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--event-primary);
}

/* Points Table */
.points-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

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

.points-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

.points-table tr:hover {
    background: rgba(233, 30, 99, 0.03);
}

.rank-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-sss-plus {
    background: linear-gradient(135deg, #ffd700, #ff6b9d);
    color: #000;
}

.rank-ap {
    background: linear-gradient(135deg, #ff6a00, #ee0979);
    color: #fff;
}

.rank-sss {
    background: linear-gradient(135deg, #c55dff, #ff6b9d);
    color: #fff;
}

.rank-ss {
    background: linear-gradient(135deg, #4a90d9, #9b59b6);
    color: #fff;
}

.rank-s {
    background: var(--accent-green);
    color: #fff;
}

/* Chart Cards */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(233, 30, 99, 0.15);
    border-color: var(--event-primary);
}

.chart-image {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--bg-secondary), #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.chart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chart-content {
    padding: 16px;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.chart-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.chart-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.chart-level {
    background: linear-gradient(135deg, var(--event-primary), var(--event-secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.chart-creator {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.chart-comment {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.chart-actions {
    display: flex;
    gap: 8px;
}

.chart-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.2s;
}

.chart-btn:hover {
    opacity: 0.85;
}

.chart-btn-download {
    background: var(--accent-green);
    color: white;
}

.chart-btn-video {
    background: #ff0000;
    color: white;
}

/* Submit Form */
.submit-section {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--event-primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15);
}

/* Image Upload */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-secondary);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--event-primary);
    background: rgba(233, 30, 99, 0.03);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.upload-text {
    color: var(--text-secondary);
}

.upload-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 16px;
}

/* OCR Result */
.ocr-result {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.ocr-result-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--event-primary);
}

.ocr-result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.ocr-result-item:last-child {
    border-bottom: none;
}

.ocr-result-label {
    color: var(--text-secondary);
}

.ocr-result-value {
    font-weight: 700;
    color: var(--event-secondary);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--event-primary), var(--event-secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Ranking */
.ranking-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ranking-header {
    background: linear-gradient(135deg, var(--event-primary), var(--event-secondary));
    padding: 20px 24px;
    text-align: center;
}

.ranking-header h2 {
    font-size: 1.5rem;
    color: white;
}

.ranking-list {
    list-style: none;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.ranking-item:hover {
    background: rgba(233, 30, 99, 0.03);
}

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

.ranking-position {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 16px;
}

.ranking-position.gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.ranking-position.silver {
    background: linear-gradient(135deg, #e8e8e8, #b0b0b0);
    color: #000;
}

.ranking-position.bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #fff;
}

.ranking-position.normal {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ranking-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.ranking-fp {
    text-align: right;
}

.ranking-fp-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--event-primary), var(--event-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ranking-fp-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 16px;
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--event-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* Responsive */
@media (max-width: 600px) {
    .event-logo {
        font-size: 1.5rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 12px 16px;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        flex-wrap: wrap;
    }

    .ranking-fp {
        width: 100%;
        text-align: left;
        margin-top: 8px;
        padding-left: 64px;
    }
}

/* ============================================
   Notification System v2 — Control Center Style
   ============================================ */

/* Bell Icon in Header */
.notif-bell-header {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    z-index: 10;
}

.notif-bell-btn-v2 {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-bell-btn-v2:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.notif-bell-btn-v2.has-notif {
    animation: bellPulse 2s ease-in-out infinite;
}

@keyframes bellPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 68, 68, 0);
    }
}

.notif-bell-icon {
    width: 20px;
    height: 20px;
    stroke: white;
}

.notif-badge-v2 {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff4444, #ff1744);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(255, 23, 68, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.9);
    animation: badgePopV2 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePopV2 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* Notification Backdrop */
.notif-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 14999;
    opacity: 0;
    transition: opacity 0.25s;
}

.notif-backdrop.active {
    display: block;
    opacity: 1;
}

/* Notification Panel v2 — Control Center */
.notif-panel-v2 {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    width: 380px;
    max-height: 520px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 15000;
    overflow: hidden;
    flex-direction: column;
}

.notif-panel-v2.active {
    display: flex;
    animation: panelSlideInV2 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes panelSlideInV2 {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.92);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notif-panel-header-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.notif-panel-header-v2 h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
}

.notif-panel-close-v2 {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.15s;
}

.notif-panel-close-v2:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Tabs v2 */
.notif-tabs-v2 {
    display: flex;
    padding: 4px 8px;
    gap: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
}

.notif-tab-v2 {
    flex: 1;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    border-radius: 8px;
    transition: all 0.2s;
}

.notif-tab-v2:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.04);
}

.notif-tab-v2.active {
    color: var(--event-primary);
    background: rgba(233, 30, 99, 0.08);
}

/* Notification List v2 */
.notif-list-v2 {
    overflow-y: auto;
    max-height: 380px;
    padding: 6px 0;
}

.notif-item-v2 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

.notif-item-v2:hover {
    background: rgba(233, 30, 99, 0.04);
}

.notif-item-v2.unread {
    background: rgba(233, 30, 99, 0.06);
}

.notif-item-v2.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--event-primary), var(--event-secondary));
    border-radius: 0 3px 3px 0;
}

.notif-item-icon-v2 {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 30, 99, 0.06);
    border-radius: 10px;
}

.notif-item-body-v2 {
    flex: 1;
    min-width: 0;
}

.notif-item-title-v2 {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
    color: #1a1a2e;
}

.notif-item-desc-v2 {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
}

.notif-item-date-v2 {
    font-size: 0.65rem;
    color: #bbb;
    margin-top: 4px;
}

.notif-dot-v2 {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4444, #e91e63);
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.5);
}

.notif-empty-v2 {
    text-align: center;
    padding: 48px 20px;
    color: #999;
    font-size: 0.8rem;
    line-height: 1.6;
}

.notif-loading-v2 {
    text-align: center;
    padding: 48px 20px;
    color: #999;
    font-size: 0.8rem;
}

/* ============================================
   Plate Popup Overlay — Achievement Display
   ============================================ */

.plate-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    overflow: hidden;
}

.plate-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.plate-popup-overlay.closing {
    animation: platePopupOut 0.3s ease-in forwards;
}

@keyframes platePopupOut {
    to {
        opacity: 0;
    }
}

.plate-popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.95) 100%);
    animation: plateBackdropIn 0.4s ease-out;
}

@keyframes plateBackdropIn {
    0% {
        background: rgba(255, 255, 255, 0.8);
    }

    100% {
        background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.95) 100%);
    }
}

.plate-popup-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 32px;
    max-width: 600px;
    width: 90%;
    animation: plateContentIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes plateContentIn {
    0% {
        transform: scale(0) rotate(-15deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.05) rotate(3deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.plate-popup-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.3) 0%, transparent 70%);
    animation: plateGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes plateGlowPulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.plate-popup-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 24px;
    text-align: center;
    background: linear-gradient(90deg, #ff6b9d, #c961de, #6fc2ff, #ff6b9d);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: plateRainbow 3s linear infinite;
    text-shadow: none;
}

@keyframes plateRainbow {
    to {
        background-position: 200% center;
    }
}

.plate-popup-img-wrap {
    position: relative;
    z-index: 3;
}

.plate-popup-img {
    max-width: 100%;
    max-height: 45vh;
    border-radius: 16px;
    filter: drop-shadow(0 0 30px rgba(233, 30, 99, 0.7)) drop-shadow(0 0 60px rgba(155, 89, 182, 0.5));
    animation: plateImgIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both, plateImgGlow 4s linear 1s infinite;
}

@keyframes plateImgIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes plateImgGlow {
    0% {
        filter: drop-shadow(0 0 25px #e91e63) drop-shadow(0 0 50px #e91e63);
    }

    25% {
        filter: drop-shadow(0 0 25px #9b59b6) drop-shadow(0 0 50px #9b59b6);
    }

    50% {
        filter: drop-shadow(0 0 25px #00bcd4) drop-shadow(0 0 50px #00bcd4);
    }

    75% {
        filter: drop-shadow(0 0 25px #ffd700) drop-shadow(0 0 50px #ffd700);
    }

    100% {
        filter: drop-shadow(0 0 25px #e91e63) drop-shadow(0 0 50px #e91e63);
    }
}

.plate-popup-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    z-index: 10;
    animation: plateActionsIn 0.5s ease-out 0.4s both;
}

@keyframes plateActionsIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.plate-popup-dl-btn {
    background: linear-gradient(135deg, var(--event-primary), var(--event-secondary));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.35);
}

.plate-popup-dl-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 32px rgba(233, 30, 99, 0.5);
}

.plate-popup-close-btn {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.plate-popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.03);
}

/* Mobile */
@media (max-width: 600px) {
    .notif-bell-header {
        right: 12px;
    }

    .notif-bell-btn-v2 {
        width: 34px;
        height: 34px;
    }

    .notif-bell-icon {
        width: 16px;
        height: 16px;
    }

    .notif-panel-v2 {
        right: 8px;
        left: 8px;
        width: auto;
        top: 12px;
        max-height: 70vh;
    }

    .plate-popup-title {
        font-size: 1.3rem;
    }

    .plate-popup-actions {
        flex-direction: column;
        align-items: center;
    }

    .plate-popup-content {
        padding: 24px 16px;
    }
}