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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0072BB 0%, #004a7c 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 3px solid #FAE204;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.emblem {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

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

h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #FAE204;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}

.subtitle {
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.9;
}

main {
    max-width: 600px;
    margin: 0 auto;
}

.disclaimer-top {
    background: #855205;
    color: #FAE204;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    border: 2px solid #FAE204;
    font-size: 0.95rem;
}

.input-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(250, 226, 4, 0.3);
}

.input-group {
    margin-bottom: 20px;
}

.input-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #FAE204;
    font-size: 0.95rem;
}

input[type="text"] {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border: 2px solid #FAE204;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #855205;
    box-shadow: 0 0 0 3px rgba(250, 226, 4, 0.3);
}

.char-counter {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #FAE204;
    text-align: right;
}

.hint {
    margin-top: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.preview-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid rgba(250, 226, 4, 0.2);
}

.preview-section h3 {
    color: #FAE204;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.link-preview {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #fff;
    min-height: 50px;
    border: 1px solid rgba(250, 226, 4, 0.3);
}

.button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

button {
    flex: 1;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #FAE204 0%, #d4c004 100%);
    color: #000;
    box-shadow: 0 4px 12px rgba(250, 226, 4, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(250, 226, 4, 0.6);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: linear-gradient(135deg, #855205 0%, #6b4104 100%);
    color: #FAE204;
    box-shadow: 0 4px 12px rgba(133, 82, 5, 0.4);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(133, 82, 5, 0.6);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fake-badge {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

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

.fake-badge.hidden {
    display: none;
}

.qr-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    border: 3px solid #FAE204;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#qrCanvas {
    max-width: 100%;
    height: auto;
    display: none;
    margin: 0 auto;
}

#qrCanvas.visible {
    display: block;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(250, 226, 4, 0.2);
}

footer p {
    margin: 5px 0;
    color: #FAE204;
}

.small {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .emblem {
        width: 90px;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .input-section {
        padding: 20px;
    }
}
