/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background animations */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffd700, transparent),
        radial-gradient(2px 2px at 40px 70px, #ffed4e, transparent),
        radial-gradient(1px 1px at 90px 40px, #fff200, transparent),
        radial-gradient(1px 1px at 130px 80px, #ffb347, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: float 20s linear infinite;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 15s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

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

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: pulse 2s infinite;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #fff200, #ffb347);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
}

.tagline {
    font-size: 1.2rem;
    color: #888;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Main content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.welcome-section {
    text-align: center;
}

.welcome-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 1.3rem;
    color: #aaa;
    font-weight: 400;
}

/* Entry form */
.entry-form-container {
    display: flex;
    justify-content: center;
}

.entry-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.entry-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #fff200, #ffb347);
    animation: gradient 3s ease infinite;
}

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

.form-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.form-header p {
    color: #888;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ccc;
    font-size: 1rem;
}

.label-icon {
    font-size: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

.form-input::placeholder {
    color: #666;
}

.form-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-input:focus + .input-glow {
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Yes/No Toggle styles */
.yes-no-toggle {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.toggle-input {
    display: none;
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.yes-btn::before {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
}

.no-btn::before {
    background: linear-gradient(45deg, #ff4757, #ff3742);
}

.toggle-text {
    position: relative;
    z-index: 1;
    color: #ccc;
    transition: color 0.3s ease;
}

.toggle-icon {
    position: relative;
    z-index: 1;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Hover effects */
.yes-btn:hover {
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.no-btn:hover {
    border-color: #ff4757;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.3);
}

/* Selected states */
.toggle-input:checked + .yes-btn::before {
    opacity: 1;
}

.toggle-input:checked + .yes-btn .toggle-text {
    color: #000;
    font-weight: 700;
}

.toggle-input:checked + .yes-btn .toggle-icon {
    opacity: 1;
}

.toggle-input:checked + .yes-btn {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transform: scale(1.02);
}

.toggle-input:checked + .no-btn::before {
    opacity: 1;
}

.toggle-input:checked + .no-btn .toggle-text {
    color: #000;
    font-weight: 700;
}

.toggle-input:checked + .no-btn .toggle-icon {
    opacity: 1;
}

.toggle-input:checked + .no-btn {
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    transform: scale(1.02);
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    border-radius: 10px;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-glow {
    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.5s ease;
}

.submit-btn:hover .btn-glow {
    left: 100%;
}

/* Features section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.feature-card p {
    color: #aaa;
    font-size: 1rem;
}

/* Forum section */
.forum-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    animation: fadeInUp 0.5s ease-out;
}

.forum-section.hidden {
    display: none;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.forum-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #ffd700;
}

.user-info {
    color: #888;
    font-size: 1rem;
}

/* Chat container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    animation: fadeInLeft 0.3s ease-out;
}

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

.message-author {
    font-weight: 600;
    color: #ffd700;
}

.message-time {
    font-size: 0.8rem;
    color: #666;
}

.message-content {
    color: #ccc;
    line-height: 1.5;
}

/* Message input */
.message-input-container {
    display: flex;
    gap: 15px;
}

.message-input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
}

.message-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.send-btn {
    padding: 15px 25px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    border-radius: 10px;
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .entry-form {
        padding: 30px 20px;
    }
    
    .features-section {
        grid-template-columns: 1fr;
    }
    
    .forum-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .message-input-container {
        flex-direction: column;
    }
    
    .send-btn {
        width: 100%;
    }
    
    .x-login-content h3 {
        font-size: 2rem;
    }
    
    .x-login-content p {
        font-size: 1.1rem;
    }
    
    .x-login-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .entry-form {
        padding: 20px 15px;
    }
    
    .x-login-content h3 {
        font-size: 1.8rem;
    }
    
    .x-login-content p {
        font-size: 1rem;
    }
    
    .x-login-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .form-input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

/* Scrollbar styling */
.messages::-webkit-scrollbar {
    width: 8px;
}

.messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.messages::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 4px;
}

.messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ffed4e, #fff200);
} 

/* X Login Styles */
.x-login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.x-login-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.x-login-content p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 40px;
    opacity: 0.9;
}

.x-login-btn {
    position: relative;
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
    border: none;
    border-radius: 50px;
    padding: 20px 40px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(29, 161, 242, 0.3);
    margin-bottom: 30px;
}

.x-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(29, 161, 242, 0.4);
}

.x-login-btn:active {
    transform: translateY(-1px);
}

.x-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    vertical-align: middle;
}

.x-login-btn .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.x-login-btn:hover .btn-glow {
    left: 100%;
}

.login-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-info p {
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.8;
    margin: 0;
}

/* Hide/Show utilities */
.hidden {
    display: none !important;
}

/* Home Page Styles */
.home-section {
    padding: 5px 20px 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #ffd700;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.home-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.home-content {
    display: flex;
    justify-content: center;
    flex: 1;
    min-height: 0;
}

.campaigns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    align-items: start;
}

.campaign-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    height: auto;
}

.campaign-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    margin: 0 auto 8px auto;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.logo-text {
    color: #ffd700;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    opacity: 0.7;
}

.campaign-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.campaign-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: #ffd700;
}

.campaign-status {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.campaign-status.active {
    background: linear-gradient(45deg, #00b894, #00a085);
}

.campaign-status.closed {
    background: linear-gradient(45deg, #636e72, #74b9ff);
}

.campaign-status.complete {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
}

/* Disabled form elements for closed campaigns */
.form-input:disabled {
    background: #2d3436;
    color: #636e72;
    cursor: not-allowed;
    opacity: 0.6;
}

.submit-thread-btn:disabled {
    background: #2d3436 !important;
    color: #636e72 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    box-shadow: none !important;
}

.submit-thread-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.campaign-description {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.3;
    opacity: 0.9;
    margin-bottom: 8px;
    text-align: center;
    flex-shrink: 0;
}

.winner-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 8px;
    text-align: center;
}

.winner-label {
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.winner-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.winner-avatar {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.winner-pfp {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.winner-announcement {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.announcement-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.announcement-text {
    flex: 1;
}

.announcement-title {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.announcement-date {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.submission-form {
    margin-top: 5px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.submit-thread-btn {
    position: relative;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    flex-shrink: 0;
}

.submit-thread-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.submit-thread-btn:active {
    transform: translateY(-1px);
}

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

.submission-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

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

.submission-status.error {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: #ff4757;
}

.submission-status.info {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.campaign-content {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
}

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

.action-btn {
    position: relative;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    border-radius: 15px;
    padding: 20px 30px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.action-btn:active {
    transform: translateY(-1px);
}

/* Community button styles moved to JavaScript for better control */

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

.back-btn {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* Responsive design for home page */
@media (max-width: 768px) {
    .home-section {
        padding: 5px 10px 10px 10px;
        min-height: calc(100vh - 15px);
    }
    
    .home-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 6px;
        margin-bottom: 8px;
    }
    
    .home-header h2 {
        font-size: 1.4rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        width: 100%;
    }
    
    .campaigns-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }
    
    .campaign-card {
        padding: 10px;
        min-height: 280px;
        height: auto;
    }
    
    .logo-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .campaign-header h3 {
        font-size: 1rem;
    }
    
    .campaign-description {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .action-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .submit-thread-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .campaigns-grid {
        gap: 18px;
    }
    
    
    .home-header h2 {
        font-size: 1.8rem;
    }
    
    .campaign-header h3 {
        font-size: 1.1rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .home-section {
        padding: 5px 5px 10px 5px;
        min-height: calc(100vh - 10px);
    }
    
    .home-header {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .home-header h2 {
        font-size: 1.2rem;
    }
    
    .campaign-card {
        padding: 8px;
        min-height: 280px;
        height: auto;
    }
    
    .campaign-header h3 {
        font-size: 0.9rem;
    }
    
    .campaign-description {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .submit-thread-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .form-input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .campaign-logo {
        width: 40px;
        height: 40px;
        margin: 0 auto 6px auto;
    }
    
    .campaign-logo-image {
        width: 100%;
        height: 100%;
    }
}

/* Leaderboard Styles */
.leaderboard-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 20px;
    position: relative;
}

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

.leaderboard-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.leaderboard-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.time-filter-btn {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 8px 16px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-filter-btn.active {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.time-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.chevron {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.leaderboard-table {
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.header-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.table-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(42, 42, 42, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.table-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
}

.table-row.top-three {
    border: 2px solid;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.table-row.gold {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(42, 42, 42, 0.9));
}

.table-row.silver {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(42, 42, 42, 0.9));
}

.table-row.bronze {
    border-color: #cd7f32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(42, 42, 42, 0.9));
}

.cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #ffffff;
}

.rank-cell {
    font-size: 1.2rem;
    font-weight: 700;
}

.crown-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.rank-number {
    color: #ffd700;
    font-size: 1.3rem;
}

.name-cell {
    justify-content: flex-start;
    gap: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.fallback-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    top: 0;
    left: 0;
}

.name {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
}

.twitter-link {
    color: #1da1f2;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.twitter-link:hover {
    color: #0d8bd9;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(29, 161, 242, 0.3);
    transform: translateY(-1px);
}

.twitter-link:visited {
    color: #1da1f2;
}

.mindshare-cell {
    font-size: 1.2rem;
    color: #00ff88;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.smart-cell {
    color: #888;
    font-size: 1.1rem;
}

/* View Leaderboard Button */
.view-leaderboard-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.view-leaderboard-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #ffed4e, #ffd700);
}

.view-leaderboard-btn:active {
    transform: translateY(-1px);
}

.view-leaderboard-btn .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.view-leaderboard-btn:hover .btn-glow {
    left: 100%;
}

/* Loading and Error States */
.loading-row,
.error-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px 20px;
    background: rgba(42, 42, 42, 0.8);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Authorization Loading Container */
.authorization-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.authorization-loading-content {
    text-align: center;
    max-width: 400px;
}

.authorization-loading-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
}

.authorization-loading-content p {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Enhanced Loading Spinner with Rings */
.authorization-loading-content .loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
    border: none;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spin-ring 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #ffd700;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-right-color: #ffed4e;
    animation-delay: 0.3s;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: #fff200;
    animation-delay: 0.6s;
}

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

/* Loading Dots Animation */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    animation: dot-pulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    30% {
        transform: scale(1.3);
        opacity: 1;
    }
}

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

.retry-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Mobile Responsiveness for Leaderboard */
@media (max-width: 768px) {
    .leaderboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .leaderboard-header h2 {
        font-size: 2rem;
    }
    
    .leaderboard-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 50px 1fr 80px;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .header-cell,
    .cell {
        font-size: 0.85rem;
    }
    
    .avatar {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .fallback-avatar {
        font-size: 1rem;
    }
    
    .name {
        font-size: 0.9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    
    .twitter-link {
        font-size: 0.9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
        display: block;
    }
    
    .crown-icon {
        font-size: 1.1rem;
    }
    
    .rank-number {
        font-size: 1rem;
    }
    
    .mindshare-cell {
        font-size: 1rem;
        text-align: right;
        justify-self: end;
        min-width: 80px;
    }
    
    .name-cell {
        justify-content: flex-start;
        gap: 8px;
        overflow: hidden;
    }
    
    .loading-row,
    .error-row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    .leaderboard-section {
        padding: 10px;
    }
    
    .leaderboard-header h2 {
        font-size: 1.5rem;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 40px 1fr 70px;
        gap: 6px;
        padding: 8px 10px;
    }
    
    .header-cell,
    .cell {
        font-size: 0.8rem;
    }
    
    .avatar {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .fallback-avatar {
        font-size: 0.9rem;
    }
    
    .name {
        font-size: 0.8rem;
    }
    
    .twitter-link {
        font-size: 0.8rem;
    }
    
    .crown-icon {
        font-size: 1rem;
    }
    
    .rank-number {
        font-size: 0.9rem;
    }
    
    .mindshare-cell {
        font-size: 0.9rem;
        min-width: 70px;
    }
    
    .name-cell {
        gap: 6px;
    }
}

/* Spin Wheel Styles */
.spin-wheel-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
}

.spin-wheel-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.spin-wheel-header p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.wheel-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spin-wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 8px solid #ffd700;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.spin-wheel:hover {
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.7),
        inset 0 0 25px rgba(0, 0, 0, 0.4);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    border-radius: 50%;
    border: 4px solid #ffd700;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.wheel-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: #000;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

/* Position each section around the wheel (13 sections = 27.7° each) */
.wheel-section:nth-child(2) { transform: translate(-50%, -50%) rotate(13.8deg) translateY(-120px) rotate(-13.8deg); }
.wheel-section:nth-child(3) { transform: translate(-50%, -50%) rotate(41.5deg) translateY(-120px) rotate(-41.5deg); }
.wheel-section:nth-child(4) { transform: translate(-50%, -50%) rotate(69.2deg) translateY(-120px) rotate(-69.2deg); }
.wheel-section:nth-child(5) { transform: translate(-50%, -50%) rotate(96.9deg) translateY(-120px) rotate(-96.9deg); }
.wheel-section:nth-child(6) { transform: translate(-50%, -50%) rotate(124.6deg) translateY(-120px) rotate(-124.6deg); }
.wheel-section:nth-child(7) { transform: translate(-50%, -50%) rotate(152.3deg) translateY(-120px) rotate(-152.3deg); }
.wheel-section:nth-child(8) { transform: translate(-50%, -50%) rotate(180deg) translateY(-120px) rotate(-180deg); }
.wheel-section:nth-child(9) { transform: translate(-50%, -50%) rotate(207.7deg) translateY(-120px) rotate(-207.7deg); }
.wheel-section:nth-child(10) { transform: translate(-50%, -50%) rotate(235.4deg) translateY(-120px) rotate(-235.4deg); }
.wheel-section:nth-child(11) { transform: translate(-50%, -50%) rotate(263.1deg) translateY(-120px) rotate(-263.1deg); }
.wheel-section:nth-child(12) { transform: translate(-50%, -50%) rotate(290.8deg) translateY(-120px) rotate(-290.8deg); }
.wheel-section:nth-child(13) { transform: translate(-50%, -50%) rotate(318.5deg) translateY(-120px) rotate(-318.5deg); }
.wheel-section:nth-child(14) { transform: translate(-50%, -50%) rotate(346.2deg) translateY(-120px) rotate(-346.2deg); }

.wheel-pointer {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ff4757;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-160px);
    filter: drop-shadow(0 0 10px rgba(255, 71, 87, 0.8));
    z-index: 20;
    pointer-events: none;
}

.wheel-base {
    width: 120px;
    height: 20px;
    background: linear-gradient(45deg, #2a2a2a, #444);
    border-radius: 10px;
    margin-top: -10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.wheel-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spin-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.spin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #ffed4e, #ffd700);
}

.spin-btn:active {
    transform: translateY(-1px);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spin-btn .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.spin-btn:hover .btn-glow {
    left: 100%;
}

/* Wheel spinning animation */
.spin-wheel.spinning {
    animation: spin 4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(var(--spin-rotation, 1440deg));
    }
}

/* Responsive design for spin wheel */
@media (max-width: 768px) {
    .spin-wheel-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .spin-wheel-header h3 {
        font-size: 1.5rem;
    }
    
    .spin-wheel-header p {
        font-size: 1rem;
    }
    
    .spin-wheel {
        width: 250px;
        height: 250px;
        border-width: 6px;
    }
    
    .wheel-center {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .wheel-section {
        font-size: 1rem;
        width: 25px;
        height: 25px;
    }
    
    /* Adjust section positions for smaller wheel (13 sections) */
    .wheel-section:nth-child(2) { transform: translate(-50%, -50%) rotate(13.8deg) translateY(-100px) rotate(-13.8deg); }
    .wheel-section:nth-child(3) { transform: translate(-50%, -50%) rotate(41.5deg) translateY(-100px) rotate(-41.5deg); }
    .wheel-section:nth-child(4) { transform: translate(-50%, -50%) rotate(69.2deg) translateY(-100px) rotate(-69.2deg); }
    .wheel-section:nth-child(5) { transform: translate(-50%, -50%) rotate(96.9deg) translateY(-100px) rotate(-96.9deg); }
    .wheel-section:nth-child(6) { transform: translate(-50%, -50%) rotate(124.6deg) translateY(-100px) rotate(-124.6deg); }
    .wheel-section:nth-child(7) { transform: translate(-50%, -50%) rotate(152.3deg) translateY(-100px) rotate(-152.3deg); }
    .wheel-section:nth-child(8) { transform: translate(-50%, -50%) rotate(180deg) translateY(-100px) rotate(-180deg); }
    .wheel-section:nth-child(9) { transform: translate(-50%, -50%) rotate(207.7deg) translateY(-100px) rotate(-207.7deg); }
    .wheel-section:nth-child(10) { transform: translate(-50%, -50%) rotate(235.4deg) translateY(-100px) rotate(-235.4deg); }
    .wheel-section:nth-child(11) { transform: translate(-50%, -50%) rotate(263.1deg) translateY(-100px) rotate(-263.1deg); }
    .wheel-section:nth-child(12) { transform: translate(-50%, -50%) rotate(290.8deg) translateY(-100px) rotate(-290.8deg); }
    .wheel-section:nth-child(13) { transform: translate(-50%, -50%) rotate(318.5deg) translateY(-100px) rotate(-318.5deg); }
    .wheel-section:nth-child(14) { transform: translate(-50%, -50%) rotate(346.2deg) translateY(-100px) rotate(-346.2deg); }
    
    .wheel-pointer {
        border-left-width: 12px;
        border-right-width: 12px;
        border-top-width: 24px;
        transform: translate(-50%, -50%) translateY(-130px);
    }
    
    .wheel-base {
        width: 100px;
        height: 16px;
    }
    
    .spin-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .spin-wheel {
        width: 200px;
        height: 200px;
        border-width: 5px;
    }
    
    .wheel-center {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
    
    .wheel-section {
        font-size: 0.9rem;
        width: 20px;
        height: 20px;
    }
    
    /* Adjust section positions for mobile wheel (13 sections) */
    .wheel-section:nth-child(2) { transform: translate(-50%, -50%) rotate(13.8deg) translateY(-80px) rotate(-13.8deg); }
    .wheel-section:nth-child(3) { transform: translate(-50%, -50%) rotate(41.5deg) translateY(-80px) rotate(-41.5deg); }
    .wheel-section:nth-child(4) { transform: translate(-50%, -50%) rotate(69.2deg) translateY(-80px) rotate(-69.2deg); }
    .wheel-section:nth-child(5) { transform: translate(-50%, -50%) rotate(96.9deg) translateY(-80px) rotate(-96.9deg); }
    .wheel-section:nth-child(6) { transform: translate(-50%, -50%) rotate(124.6deg) translateY(-80px) rotate(-124.6deg); }
    .wheel-section:nth-child(7) { transform: translate(-50%, -50%) rotate(152.3deg) translateY(-80px) rotate(-152.3deg); }
    .wheel-section:nth-child(8) { transform: translate(-50%, -50%) rotate(180deg) translateY(-80px) rotate(-180deg); }
    .wheel-section:nth-child(9) { transform: translate(-50%, -50%) rotate(207.7deg) translateY(-80px) rotate(-207.7deg); }
    .wheel-section:nth-child(10) { transform: translate(-50%, -50%) rotate(235.4deg) translateY(-80px) rotate(-235.4deg); }
    .wheel-section:nth-child(11) { transform: translate(-50%, -50%) rotate(263.1deg) translateY(-80px) rotate(-263.1deg); }
    .wheel-section:nth-child(12) { transform: translate(-50%, -50%) rotate(290.8deg) translateY(-80px) rotate(-290.8deg); }
    .wheel-section:nth-child(13) { transform: translate(-50%, -50%) rotate(318.5deg) translateY(-80px) rotate(-318.5deg); }
    .wheel-section:nth-child(14) { transform: translate(-50%, -50%) rotate(346.2deg) translateY(-80px) rotate(-346.2deg); }
    
    .wheel-pointer {
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 20px;
        transform: translate(-50%, -50%) translateY(-100px);
    }
    
    .wheel-base {
        width: 80px;
        height: 14px;
    }
    
    .spin-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

 