@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --discord-color: #5865F2;
    --discord-hover: #4752C4;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --background-light: rgba(255, 255, 255, 0.9);
    --background-glass: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.1);
    --border-glass: 1px solid rgba(255, 255, 255, 0.18);
    --border-radius: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 200, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(0.5deg); }
}

.container {
    width: 100%;
    max-width: 650px;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card {
    background: var(--background-light);
    backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    padding: 40px;
    position: relative;
    transition: var(--transition-smooth);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-gradient);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.logo {
    width: 250px;
    height: 250px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: var(--transition-bounce);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-small {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: var(--transition-bounce);
}

.logo:hover, .logo-small:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.header h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    animation: fadeInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--discord-color);
    transition: var(--transition-bounce);
    cursor: pointer;
    position: relative;
}

.avatar::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    padding: 4px;
    background: var(--secondary-gradient);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    opacity: 0;
    transition: var(--transition-smooth);
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
}

.avatar:hover::after {
    opacity: 1;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.user-info h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.4em;
}

.status {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--transition-smooth);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.status.verified {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    box-shadow: 0 4px 15px rgba(21, 87, 36, 0.2);
}

.status.pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    box-shadow: 0 4px 15px rgba(133, 100, 4, 0.2);
}

.logout-btn {
    background: var(--background-glass);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    border: var(--border-glass);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    color: var(--text-primary);
}

.logout-btn:hover::before {
    left: 100%;
}

.discord-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--discord-color);
    color: white;
    padding: 18px 35px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: var(--transition-bounce);
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.3);
}

.discord-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-smooth);
}

.discord-button:hover {
    background: var(--discord-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.4);
}

.discord-button:hover::before {
    left: 100%;
}

.discord-button svg {
    transition: var(--transition-bounce);
}

.discord-button:hover svg {
    transform: rotate(360deg);
}

.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid #f5c6cb;
    animation: shakeError 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(114, 28, 36, 0.1);
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.info {
    background: var(--background-glass);
    backdrop-filter: blur(15px);
    border: var(--border-glass);
    padding: 25px;
    border-radius: 18px;
    margin-top: 25px;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.info ol {
    margin-left: 25px;
}

.info li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.info li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.rules-section {
    margin: 40px 0;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.rules-section h3 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: 600;
    text-align: center;
}

.scroll-indicator {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--background-glass);
    border-radius: 12px;
    border: var(--border-glass);
    backdrop-filter: blur(10px);
}

.scroll-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.scroll-bar {
    height: 100%;
    width: 0%;
    background: var(--secondary-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.scroll-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.scroll-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.rules-content {
    max-height: 450px;
    overflow-y: auto;
    border: var(--border-glass);
    border-radius: 18px;
    padding: 25px;
    background: var(--background-glass);
    backdrop-filter: blur(15px);
    box-shadow: inset 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
}

.rules-content::-webkit-scrollbar {
    width: 8px;
}

.rules-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.rules-content::-webkit-scrollbar-thumb {
    background: var(--secondary-gradient);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.rules-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gradient);
}

.rule {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.rule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-gradient);
    transform: scaleY(0);
    transition: var(--transition-smooth);
}

.rule:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.rule:hover::before {
    transform: scaleY(1);
}

.rule:last-child {
    margin-bottom: 0;
}

.rule h4 {
    color: var(--discord-color);
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
}

.rule p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.rule-intro {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(88, 101, 242, 0.2);
    text-align: center;
}

.rule-intro p {
    font-size: 1.1em;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
}

.consequences-section {
    margin: 30px 0;
    padding: 25px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 87, 34, 0.1) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    position: relative;
}

.consequences-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #ffc107 0%, #ff5722 100%);
    border-radius: 2px;
}

.consequences-section h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.consequences-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.consequences-section li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.license-section {
    margin: 30px 0;
    padding: 25px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border: 1px solid rgba(79, 172, 254, 0.3);
    position: relative;
}

.license-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--success-gradient);
    border-radius: 2px;
}

.license-section h4 {
    color: #4facfe;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.license-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.license-section li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.thank-you {
    margin-top: 30px;
    padding: 25px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(25, 135, 84, 0.1) 100%);
    border: 1px solid rgba(40, 167, 69, 0.3);
    text-align: center;
    position: relative;
}

.thank-you::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #28a745 0%, #198754 100%);
    border-radius: 2px 2px 0 0;
}

.thank-you p {
    color: var(--text-primary);
    font-size: 1.1em;
    line-height: 1.6;
}

.acceptance-section {
    margin-top: 40px;
    text-align: center;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 1.1em;
    gap: 15px;
    padding: 15px;
    border-radius: 15px;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
    opacity: 0.6;
}

.checkbox-container.enabled {
    opacity: 1;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.checkbox-container:hover.enabled {
    background: rgba(40, 167, 69, 0.15);
    color: var(--text-primary);
}

@keyframes highlight {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.02); }
    50% { transform: scale(1.05); }
    75% { transform: scale(1.02); }
}

.checkbox-container input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--discord-color);
    transform: scale(1.2);
    transition: var(--transition-bounce);
}

.checkbox-container input[type="checkbox"]:checked {
    transform: scale(1.4);
}

.checkbox-container input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.accept-button {
    background: var(--success-gradient);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 20px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(79, 172, 254, 0.3);
}

.accept-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition-smooth);
}

.accept-button:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.4);
}

.accept-button:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.accept-button:disabled {
    background: linear-gradient(135deg, #e0e0e0 0%, #cccccc 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-message {
    background: var(--success-gradient);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(79, 172, 254, 0.3);
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

@keyframes successPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-message h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
}

.message {
    padding: 20px;
    border-radius: 15px;
    margin-top: 25px;
    text-align: center;
    font-weight: 500;
    animation: messageSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.2);
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    box-shadow: 0 4px 20px rgba(114, 28, 36, 0.1);
}

.login-section {
    text-align: center;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.accept-button.loading {
    position: relative;
    color: transparent;
}

.accept-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .container {
        max-width: 95%;
    }
    
    .card {
        padding: 25px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .avatar {
        width: 60px;
        height: 60px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .checkbox-container {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .discord-button, .accept-button {
        padding: 15px 25px;
        font-size: 1em;
    }
    
    .rules-content {
        max-height: 300px;
        padding: 20px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-small {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}