@keyframes card-enter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes stagger-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.license-check-page {
    padding: 100px 20px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 800px at 10% -20%, #2a1a59 0%, transparent 60%), radial-gradient(1000px 700px at 120% 10%, #2d0b3a 0%, transparent 60%), linear-gradient(180deg, #090510 0%, #0b0616 100%);
}

.license-card {
    position: relative;
    width: 100%;
    max-width: 750px;
    background: rgba(29, 41, 57, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    text-align: center;
    animation: card-enter 0.7s ease-out;
    transition: transform 0.2s ease-out;
}

.license-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 35px 35px;
    opacity: 0.5;
    z-index: 1;
}

.license-card > * {
    position: relative;
    z-index: 2;
}

.license-card h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #c3b2f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.license-card p.lead {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.license-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.license-form input[type="text"] {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    background-color: transparent;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.license-form input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(138, 99, 210, 0.3);
}

.license-form .btn {
    padding: 14px 25px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.result-area {
    margin-top: 30px;
    min-height: 280px;
}

.welcome-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    animation: stagger-in 0.8s ease-out;
}

.welcome-area .mascot-wrapper {
    margin-bottom: 20px;
}

.welcome-area p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.mascot-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-image {
    position: relative;
    z-index: 3;
    max-width: 170px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
}

.mascot-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.mascot-bg .ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid;
    animation: spin 20s linear infinite;
}

.mascot-bg .ring-1 {
    border-color: rgba(168, 129, 227, 0.2);
    border-style: dotted;
}
.mascot-bg .ring-2 {
    width: 80%; height: 80%;
    top: 10%; left: 10%;
    border-color: rgba(168, 129, 227, 0.3);
    animation-duration: 30s;
    animation-direction: reverse;
}
.mascot-bg .ring-3 {
    width: 60%; height: 60%;
    top: 20%; left: 20%;
    border-color: rgba(168, 129, 227, 0.1);
    border-style: dashed;
    animation-duration: 25s;
}

.mascot-bg .hex-grid {
    position: absolute;
    top: 10%; left: 10%;
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(138, 99, 210, 0.2) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
    border-radius: 50%;
}

.result-box {
    text-align: left;
    display: flex;
    gap: 25px;
    align-items: center;
    animation: stagger-in 0.5s ease forwards;
}

.result-mascot {
    flex-shrink: 0;
}

.result-content-wrapper {
    width: 100%;
    padding: 25px;
    border-radius: 16px;
    background: rgba(16, 24, 32, 0.5);
    border: 1px solid;
}

.result-header {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.result-icon svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.result-title h3 {
    font-size: 1.4rem;
    margin: 0;
}

.result-title p {
    font-size: 0.95rem;
    margin: 5px 0 0 0;
    color: var(--text-dark);
}

.result-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    font-size: 0.95rem;
}

.detail-item strong {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 4px;
}

.detail-item span {
    font-weight: 600;
}

.stagger-in {
    opacity: 0;
    animation: stagger-in 0.5s ease-out forwards;
    animation-delay: var(--delay, 0ms);
}

.result-box.success .result-content-wrapper { border-color: rgba(52, 211, 153, 0.4); }
.result-box.success .result-header { border-color: rgba(52, 211, 153, 0.2); }
.result-box.success .result-icon, .result-box.success h3 { color: #34D399; }

.result-box.warning .result-content-wrapper { border-color: rgba(245, 158, 11, 0.4); }
.result-box.warning .result-header { border-color: rgba(245, 158, 11, 0.2); }
.result-box.warning .result-icon, .result-box.warning h3 { color: #F59E0B; }

.result-box.error .result-content-wrapper, .result-box.banned .result-content-wrapper { border-color: rgba(248, 113, 113, 0.4); }
.result-box.error .result-header, .result-box.banned .result-header { border-color: rgba(248, 113, 113, 0.2); }
.result-box.error .result-icon, .result-box.banned .result-icon { color: #F87171; }

.result-box.banned .detail-item.ban-reason { grid-column: 1 / -1; }

@media(max-width: 768px) {
    .result-box {
        flex-direction: column;
    }
    .result-mascot .mascot-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
    .mascot-image {
        max-width: 120px;
    }
    .result-details {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 600px) {
    .license-card h1 { font-size: 2rem; }
    .license-form { grid-template-columns: 1fr; }
}