:root {
    --primary-gold: #ffcc00;
    --secondary-gold: #c6a000;
    --bg-dark: #0a0e14;
    --card-bg: rgba(20, 26, 35, 0.85);
    --text-white: #e0e0e0;
    --neon-blue: #00f2ff;
    --form-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 48, 73, 0.1) 0%, rgba(10, 14, 20, 1) 100%);
    z-index: -1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 204, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.highlight {
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.alliance {
    color: #fff;
    opacity: 0.8;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-switcher button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.lang-switcher button:hover, .lang-switcher button.active {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px var(--primary-gold);
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem 5rem 1rem;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.form-container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 204, 0, 0.15);
    box-shadow: var(--form-shadow);
    backdrop-filter: blur(20px);
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

input, textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    border-bottom: 2px solid var(--primary-gold);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.1);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.color-selector {
    display: flex;
    gap: 1.2rem;
    padding: 0.5rem 0;
    margin-top: 0.2rem;
}

.color-opt {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--c);
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px var(--c);
}

.color-opt:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px var(--c);
}

.color-opt.active {
    transform: scale(1.1);
    border: 3px solid #fff;
    box-shadow: 0 0 25px var(--c), inset 0 0 10px rgba(0,0,0,0.5);
}

.color-opt.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: 900;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .color-selector {
        gap: 1rem;
    }
}

button[type="submit"] {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border: none;
    border-radius: 4px;
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.4);
    filter: brightness(1.1);
}

button[type="submit"]:active {
    transform: translateY(0);
}

#statusMessage {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
    animation: fadeIn 0.4s ease forwards;
}

#statusMessage.success {
    background: rgba(0, 255, 128, 0.1);
    color: #00ff80;
    border: 1px solid #00ff80;
}

#statusMessage.error {
    background: rgba(255, 60, 60, 0.1);
    color: #ff3c3c;
    border: 1px solid #ff3c3c;
}

.hidden {
    display: none;
}

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

footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Multilingual spacing adjustments */
body[lang="ja"] label, body[lang="zh"] label, body[lang="ko"] label {
    font-family: 'Inter', "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif;
}
