/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff6b6b 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Container */
.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Page Management */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Premium Landing Page */
.premium-landing {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.landing-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 25%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.1) 50%,
        rgba(255, 107, 107, 0.1) 100%
    );
}

.premium-container {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Create Link Section */
.create-link-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.create-link-subtitle {
    margin: 10px 0 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-style: italic;
}

.create-link-section:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Country Input Group */
.country-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.country-select {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    appearance: none;
    cursor: pointer;
}

.detect-btn {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.detect-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #667eea;
    transform: scale(1.05);
}

.detect-btn:active {
    transform: scale(0.95);
}

.auto-detect-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 10px 0 0 0;
    font-style: italic;
}

/* Success Page Styles */
.success-message {
    text-align: center;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    margin: 30px 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.success-message p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

.auto-redirect-info {
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.auto-redirect-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.country-select option {
    background: #2c3e50;
    color: white;
    padding: 10px;
}

.country-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Country Leaderboard Section */
.country-leaderboard-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.country-leaderboard-section h2 {
    text-align: center;
    color: white;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.country-leaderboard-section p {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.country-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.country-leader-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.country-leader-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.country-leader-rank {
    font-weight: bold;
    color: #ffd700;
    font-size: 1.1rem;
    min-width: 30px;
}

.country-leader-info {
    flex: 1;
    margin-left: 15px;
}

.country-leader-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.country-leader-country {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 2px;
}

.country-leader-score {
    color: #ff6b9d;
    font-weight: bold;
    font-size: 1rem;
}

/* Empty Leaderboard State */
.empty-leaderboard {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.empty-message {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
}

/* Fresh vote animation */
.results-container.fresh-vote {
    animation: freshVotePulse 2s ease-in-out;
}

@keyframes freshVotePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    100% { transform: scale(1); }
}

.results-container.fresh-vote .vote-count {
    animation: countUpdate 1s ease-in-out;
}

@keyframes countUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #667eea; }
    100% { transform: scale(1); }
}

/* Typography */
/* Premium Header Styles */
.premium-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.title-animation-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.title-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
    display: block;
}

.premium-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.glass-text {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    margin: 0 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #667eea);
    margin: 15px auto;
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.premium-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out 0.4s both;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.subtitle-icon {
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

.title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.loved {
    color: #ff6b6b;
}

.hated {
    color: #4ecdc4;
}

.subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-weight: 300;
}

/* Header */
.header {
    margin-bottom: 40px;
}

/* Input Section */
/* Premium Input Section */
.premium-input-section {
    margin: 40px 0;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 30px 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 2s ease;
}

.glass-container:hover::before {
    left: 100%;
}

/* Enhanced Premium Input */
.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    z-index: 3;
    color: rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.premium-input {
    width: 100%;
    padding: 22px 60px 22px 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.premium-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
    transition: all 0.3s ease;
}

.premium-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-input:focus::placeholder {
    color: rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.premium-input:focus + .input-glow {
    opacity: 0.4;
}

.premium-input:focus ~ .input-icon {
    color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.input-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 25px;
    background: linear-gradient(45deg, #ff6b6b, #667eea, #ff6b6b);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Input validation states */

.premium-input:invalid:not(:placeholder-shown) {
    border-color: rgba(244, 67, 54, 0.6);
}

.premium-input:invalid:not(:placeholder-shown) + .input-glow {
    background: linear-gradient(45deg, #f44336, #ff9800);
}

/* Enhanced input animations */
.input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 3;
    pointer-events: none;
}

.input-wrapper:hover::before {
    transform: translateX(100%);
}

/* Floating label effect */
.input-wrapper.has-value .input-icon,
.premium-input:focus ~ .input-icon {
    transform: translateY(-50%) translateX(-5px) scale(0.9);
    color: #667eea;
}

/* Input character counter */
.input-wrapper::after {
    content: attr(data-chars) '/20';
    position: absolute;
    right: 20px;
    bottom: -25px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-wrapper.show-counter::after {
    opacity: 1;
}

.input-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 10px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hint-icon {
    font-size: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.input-section {
    margin-bottom: 40px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#user-name, #new-user-name {
    padding: 18px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    outline: none;
    transition: all 0.3s ease;
}

#user-name:focus, #new-user-name:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Buttons */
/* Premium Button */
.premium-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(255, 107, 107, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.premium-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(255, 107, 107, 0.4),
        0 5px 15px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #ff6b6b 0%, #667eea 50%, #ff6b6b 100%);
}

.premium-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    font-size: 1.2rem;
    animation: rocket 2s ease-in-out infinite;
}

@keyframes rocket {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-5deg); }
    75% { transform: translateY(3px) rotate(5deg); }
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.premium-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

.btn-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 25px;
    background: linear-gradient(45deg, #ff6b6b, #667eea, #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.premium-btn:hover .btn-glow {
    opacity: 0.3;
}

.primary-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.6);
}

.secondary-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

.whatsapp-icon {
    font-size: 1.3rem;
}

/* Premium Stats */
.premium-stats {
    margin: 40px 0;
    animation: fadeInUp 1s ease-out 1s both;
}

.stats-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stats-icon {
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.premium-stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.premium-stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon-container {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.stat-emoji {
    font-size: 1.2rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(45deg, #ff6b6b, #667eea);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-stat-item:hover .stat-glow {
    opacity: 0.1;
}

/* Features Preview */
.features-preview {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1rem;
}

/* Fun Stats */
.fun-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    gap: 20px;
}

.stat-item {
    text-align: center;
    color: white;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffeaa7;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Share Preview */
.share-preview {
    margin-bottom: 30px;
}

.preview-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.preview-card:hover {
    transform: scale(1);
}

.preview-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    display: block;
}

.preview-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.preview-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b6b;
}

/* Share Buttons */
.share-buttons {
    margin-bottom: 30px;
}

/* Excitement Text */
.excitement-text {
    text-align: center;
    margin-bottom: 30px;
}

.excitement-text p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

/* Results Card */
.results-card {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 30px 25px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.user-name-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.vote-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.vote-item {
    flex: 1;
    text-align: center;
}

.vote-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.vote-count {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.vote-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.vs-divider {
    font-size: 1.2rem;
    font-weight: 700;
    color: #999;
    margin: 0 15px;
}

.result-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,107,107,0.1);
    border-radius: 15px;
}

.percentage-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.love-bar {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    transition: width 0.8s ease;
}

.hate-bar {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    transition: width 0.8s ease;
}

/* Voting Section */
.voting-section {
    margin-bottom: 30px;
}

.voting-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.voting-section p {
    color: rgba(255,255,255,0.8);
    text-align: center;
    margin-bottom: 20px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Motivation Text */
.motivation-text {
    text-align: center;
    margin-bottom: 30px;
}

.motivation-text p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Competition Element */
.competition-element {
    margin: 30px 0;
}

.leaderboard-preview {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.leaderboard-preview h3 {
    color: #ffeaa7;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.leader-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
}

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

.leader-name {
    font-weight: 600;
}

.leader-score {
    font-weight: 500;
    color: #ff6b6b;
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.9) 100%);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.4s ease-out;
}

.enhanced-modal {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.95) 0%, 
        rgba(118, 75, 162, 0.95) 50%,
        rgba(255, 107, 107, 0.95) 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 25px;
    width: 95%;
    max-width: 550px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.modal-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Modal Header */
.modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.voting-title {
    color: white;
}

.title-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.voting-title h2 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    font-weight: 400;
    opacity: 0.9;
}

.friend-name-highlight {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 10px 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.voting-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

/* Enhanced Modal Body */
.modal-body {
    padding: 0 30px 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.voting-question {
    margin-bottom: 25px;
}

.voting-question p {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.friend-name-inline {
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vote-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.vote-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 10px 0;
}

.divider-text {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    position: relative;
}

.divider-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.vote-buttons {
    display: flex;
    gap: 15px;
}

/* Enhanced Vote Buttons */
.enhanced-vote-btn {
    width: 100%;
    padding: 25px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.vote-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.vote-text {
    flex: 1;
    text-align: left;
    color: white;
}

.vote-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.vote-description {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

.vote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.vote-btn:hover::before {
    left: 100%;
}

.love-btn {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(238, 90, 36, 0.8));
    color: white;
    border: 1px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.love-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9), rgba(238, 90, 36, 0.9));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.4);
    border: 1px solid rgba(255, 107, 107, 0.5);
}

.love-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5);
}

.hate-btn {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.8), rgba(68, 160, 141, 0.8));
    color: white;
    border: 1px solid rgba(78, 205, 196, 0.3);
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.3);
}

.hate-btn:hover {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.9), rgba(68, 160, 141, 0.9));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(78, 205, 196, 0.4);
    border: 1px solid rgba(78, 205, 196, 0.5);
}

.hate-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 25px rgba(78, 205, 196, 0.5);
}

.vote-emoji {
    font-size: 1.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.vote-btn:hover .vote-emoji {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.love-btn:hover .vote-emoji {
    animation: heartbeat 0.6s ease-in-out infinite alternate;
}

.hate-btn:hover .vote-emoji {
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1.3) rotate(-2deg); }
}

@keyframes shake {
    0%, 100% { transform: scale(1.2) rotate(5deg); }
    25% { transform: scale(1.25) rotate(-3deg); }
    75% { transform: scale(1.15) rotate(3deg); }
}

/* Glass ripple effect on click */
.vote-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.vote-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Voting Footer */
.voting-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.voting-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.disclaimer-icon {
    font-size: 1rem;
}

.voting-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 0.8rem;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 0.9rem;
}

/* Particle Effects */
.vote-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-vote-btn:hover .vote-particles {
    opacity: 1;
}

.vote-particles::before,
.vote-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 2s infinite ease-in-out;
}

.vote-particles::before {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.vote-particles::after {
    top: 60%;
    right: 25%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

/* Premium Share Page */
.premium-share-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.share-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.element {
    position: absolute;
    font-size: 2rem;
    animation: floatElement 8s ease-in-out infinite;
    opacity: 0.6;
}

.element-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 25%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.element-4 {
    top: 60%;
    right: 25%;
    animation-delay: 1s;
}

.element-5 {
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 0.8; }
    50% { transform: translateY(10px) rotate(180deg); opacity: 0.4; }
    75% { transform: translateY(-15px) rotate(270deg); opacity: 0.7; }
}

.premium-share-container {
    position: relative;
    z-index: 2;
}

/* Premium Share Header */
.premium-share-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.success-animation {
    position: relative;
    margin-bottom: 20px;
}

.success-icon {
    font-size: 4rem;
    animation: bounce 2s infinite;
    display: block;
    margin-bottom: 15px;
}

.success-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.particle-2 {
    top: 60%;
    right: 25%;
    animation-delay: 1s;
}

.particle-3 {
    bottom: 30%;
    left: 60%;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.8; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

.premium-share-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.glass-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 16px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.premium-share-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.subtitle-accent {
    animation: sparkle 2s ease-in-out infinite;
}

/* Premium Preview Card */
.premium-preview {
    margin: 30px 0;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 25px;
    background: linear-gradient(45deg, #ff6b6b, #667eea, #ff6b6b);
    opacity: 0.3;
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    backdrop-filter: blur(10px);
}

.preview-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.preview-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.preview-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.glass-instructions {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.step-icon {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.instruction-step p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.love-text {
    color: #ff6b6b;
    font-weight: 600;
}

.hate-text {
    color: #4ecdc4;
    font-weight: 600;
}

.platform-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.instruction-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.divider-text {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 2;
    position: relative;
}

.divider-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* Premium Share Actions */
.premium-actions {
    margin: 30px 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.primary-action {
    margin-bottom: 20px;
}

.premium-whatsapp-btn {
    width: 100%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    padding: 20px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 30px rgba(37, 211, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(37, 211, 102, 0.4),
        0 5px 15px rgba(18, 140, 126, 0.3);
}

.btn-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.whatsapp-icon {
    font-size: 1.5rem;
    z-index: 2;
}

.icon-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.btn-content {
    flex: 1;
    text-align: center;
    margin: 0 15px;
}

.btn-text {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.btn-subtitle {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

.btn-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.premium-whatsapp-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.secondary-actions {
    display: flex;
    gap: 15px;
}

.premium-secondary-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-secondary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Motivation Section */
.motivation-section {
    margin: 30px 0;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.motivation-card {
    padding: 20px;
    text-align: center;
}

.motivation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.motivation-icon {
    font-size: 1.5rem;
}

.motivation-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.motivation-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.tip-icon {
    font-size: 1rem;
}

/* Premium Share Stats */
.premium-share-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.premium-share-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.premium-share-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.premium-share-stats .stat-icon {
    font-size: 1rem;
}

/* Premium Leaderboard Page */
.premium-leaderboard-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.leaderboard-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-trophies {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.trophy {
    position: absolute;
    font-size: 2.5rem;
    animation: floatTrophy 10s ease-in-out infinite;
    opacity: 0.4;
}

.trophy-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.trophy-2 {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.trophy-3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 4s;
}

.trophy-4 {
    top: 50%;
    right: 20%;
    animation-delay: 1s;
}

.trophy-5 {
    bottom: 10%;
    right: 5%;
    animation-delay: 3s;
}

@keyframes floatTrophy {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.4; }
    25% { transform: translateY(-30px) rotate(90deg); opacity: 0.6; }
    50% { transform: translateY(15px) rotate(180deg); opacity: 0.3; }
    75% { transform: translateY(-20px) rotate(270deg); opacity: 0.5; }
}

.premium-leaderboard-container {
    position: relative;
    z-index: 2;
}

/* Premium Leaderboard Header */
.premium-leaderboard-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.leaderboard-animation {
    position: relative;
    margin-bottom: 20px;
}

.leaderboard-icon {
    font-size: 4rem;
    animation: bounce 2s infinite;
    display: block;
    margin-bottom: 15px;
}

.crown-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    pointer-events: none;
}

.crown-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    animation: crownFloat 4s ease-in-out infinite;
}

.crown-particle-1 {
    top: 15%;
    left: 25%;
    animation-delay: 0s;
}

.crown-particle-2 {
    top: 70%;
    right: 20%;
    animation-delay: 1.5s;
}

.crown-particle-3 {
    bottom: 20%;
    left: 70%;
    animation-delay: 3s;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.8; }
    50% { transform: translateY(-25px) scale(1.3); opacity: 1; }
}

.premium-leaderboard-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.premium-leaderboard-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Leaderboard Filters */
.leaderboard-filters {
    margin: 25px 0;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, #ff6b6b, #667eea);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* Full Leaderboard Container */
.full-leaderboard-container {
    margin: 25px 0;
    animation: fadeInUp 1s ease-out 0.6s both;
    max-height: 70vh;
    overflow-y: auto;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 60px 1fr 100px 120px 100px;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px 15px 0 0;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.leaderboard-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 15px 15px;
    backdrop-filter: blur(10px);
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px 120px 100px;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.leaderboard-row.top-three {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.05));
    border-left: 3px solid #ffd700;
}

.rank-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.name-cell {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
}

.country-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

.country-flag {
    font-size: 1.2rem;
}

.votes-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.vote-breakdown {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
}

.love-votes {
    color: #ff6b6b;
}

.hate-votes {
    color: #4ecdc4;
}

.total-votes {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.score-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.score-bar {
    width: 60px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.score-bar .love-bar {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    height: 100%;
}

.score-bar .hate-bar {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    height: 100%;
}

.score-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Loading and Error States */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.retry-btn {
    background: linear-gradient(135deg, #ff6b6b, #667eea);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.no-data {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Leaderboard Actions */
.leaderboard-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Leaderboard Stats */
.leaderboard-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    font-size: 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-card .stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 50px 1fr 80px 100px 80px;
        gap: 10px;
        padding: 12px 15px;
        font-size: 0.8rem;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .leaderboard-stats {
        gap: 15px;
    }
    
    .stat-card {
        padding: 12px 15px;
    }
    
    .leaderboard-actions {
        flex-direction: column;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

/* Friend Voting Cards */
.friend-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.friend-info {
    color: white;
}

.friend-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.friend-status {
    font-size: 0.9rem;
    opacity: 0.8;
}

.vote-friend-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vote-friend-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Responsive Design */
@media (min-width: 480px) {
    .container {
        max-width: 450px;
        padding: 30px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .input-group {
        flex-direction: row;
        gap: 15px;
    }
    
    #user-name, #new-user-name {
        flex: 1;
    }
    
    .primary-btn {
        flex-shrink: 0;
        padding: 18px 25px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 500px;
        padding: 40px;
    }
    
    .vote-buttons {
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .action-buttons button {
        flex: 1;
        max-width: 200px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Pulse Animation for Buttons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Shake Animation for Errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}
