@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(88, 101, 242, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(87, 242, 135, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(237, 66, 69, 0.06) 0%, transparent 50%);
    z-index: 0;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(88, 101, 242, 0.5);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.card {
    background: rgba(30, 31, 48, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(88, 101, 242, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: cardEntry 0.6s ease-out;
}

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

.logo-section {
    text-align: center;
    margin-bottom: 8px;
}

.logo-img {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.5));
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-img.spinning {
    animation: spin 2s linear infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.5)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(88, 101, 242, 0.8)); }
}

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

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5865F2, #57F287);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #a0a3b1;
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Features - Home */
.features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 25px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.3);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.5rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.15);
    border-radius: 10px;
}

.feature h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.feature p {
    font-size: 0.8rem;
    color: #a0a3b1;
}

/* CAPTCHA */
.captcha-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.captcha-img {
    border-radius: 10px;
    border: 2px solid rgba(88, 101, 242, 0.3);
    max-width: 260px;
    height: auto;
}

.refresh-btn {
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: rgba(88, 101, 242, 0.3);
    transform: rotate(180deg);
}

.input-group {
    position: relative;
}

.captcha-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(88, 101, 242, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 8px;
    text-align: center;
    text-transform: uppercase;
    outline: none;
    transition: all 0.3s ease;
}

.captcha-input::placeholder {
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 0.85rem;
    color: #666;
}

.captcha-input:focus {
    border-color: #5865F2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.6);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
    width: 100%;
    font-size: 1.05rem;
    padding: 16px;
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(88, 101, 242, 0.6);
}

.btn-emoji {
    width: 20px;
    height: 20px;
}

/* Error message */
.error-msg {
    background: rgba(237, 66, 69, 0.15);
    border: 1px solid rgba(237, 66, 69, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #ED4245;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Steps */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step span {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
}

.step.active .step-num {
    background: rgba(88, 101, 242, 0.2);
    border-color: #5865F2;
    color: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
}

.step.active span {
    color: #5865F2;
}

.step.completed .step-num {
    background: rgba(87, 242, 135, 0.2);
    border-color: #57F287;
    color: #57F287;
}

.step.completed span {
    color: #57F287;
}

.step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    border-radius: 1px;
}

.step-line.active-line {
    background: linear-gradient(90deg, #57F287, #5865F2);
}

/* Verifying loader */
.loader-section {
    text-align: center;
    margin: 30px 0;
}

.pulse-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.pulse-ring:nth-child(2) { animation-delay: 0.5s; }
.pulse-ring:nth-child(3) { animation-delay: 1s; }

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.pulse-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.loader-text {
    color: #a0a3b1;
    font-size: 0.9rem;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Success */
.success-icon-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.success-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto;
}

.checkmark {
    width: 90px;
    height: 90px;
    border-radius: 50%;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #57F287;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke-linecap: round;
    stroke: #57F287;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

.success-title {
    font-size: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #57F287, #5865F2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(87, 242, 135, 0.08);
    border: 1px solid rgba(87, 242, 135, 0.2);
    border-radius: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #57F287;
}

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

.success-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(87, 242, 135, 0.06);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #c0c4d0;
    animation: slideIn 0.4s ease-out both;
}

.detail-item:nth-child(1) { animation-delay: 0.2s; }
.detail-item:nth-child(2) { animation-delay: 0.4s; }
.detail-item:nth-child(3) { animation-delay: 0.6s; }
.detail-item:nth-child(4) { animation-delay: 0.8s; }

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

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

.close-msg {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Error page */
.error-icon-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.error-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto;
}

.error-x {
    width: 90px;
    height: 90px;
}

.error-title {
    font-size: 1.8rem;
    text-align: center;
    color: #ED4245;
    margin-bottom: 10px;
    background: none;
    -webkit-text-fill-color: #ED4245;
}

/* Stats footer */
.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: #555;
}

.mini-emoji {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Confetti */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.confetti-piece {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Servers Section */
.servers-section {
    margin: 24px 0 16px;
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.servers-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(88, 101, 242, 0.1);
    border-bottom: 1px solid rgba(88, 101, 242, 0.15);
}

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

.servers-header h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.server-count {
    color: #a0a3b1;
    font-weight: 400;
    font-size: 0.85rem;
}

.servers-list {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(88, 101, 242, 0.3) transparent;
}

.servers-list::-webkit-scrollbar {
    width: 6px;
}

.servers-list::-webkit-scrollbar-track {
    background: transparent;
}

.servers-list::-webkit-scrollbar-thumb {
    background: rgba(88, 101, 242, 0.3);
    border-radius: 3px;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
    animation: slideIn 0.3s ease-out both;
}

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

.server-item:hover {
    background: rgba(88, 101, 242, 0.08);
}

.server-icon-wrapper {
    flex-shrink: 0;
}

.server-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.server-icon-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.server-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.server-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-role {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    width: fit-content;
}

.role-owner {
    background: rgba(254, 231, 92, 0.15);
    color: #FEE75C;
    border: 1px solid rgba(254, 231, 92, 0.3);
}

.role-admin {
    background: rgba(237, 66, 69, 0.15);
    color: #ED4245;
    border: 1px solid rgba(237, 66, 69, 0.3);
}

.role-moderator {
    background: rgba(88, 101, 242, 0.15);
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.role-member {
    background: rgba(255, 255, 255, 0.08);
    color: #a0a3b1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.owner-badge {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 500px) {
    .container { padding: 12px; }
    .card { padding: 28px 20px; }
    h1 { font-size: 1.5rem; }
    .captcha-img { max-width: 200px; }
    .captcha-input { letter-spacing: 5px; font-size: 1rem; }
}
