/* ── Vista City Apply-Subdomain ────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg-1: #0a0a14;
    --bg-2: #14141f;
    --bg-3: #1c1c2a;
    --accent: #c044e0;
    --accent-light: #d97cf0;
    --accent-dark: #8a2faf;
    --text: #f4f4f8;
    --text-muted: rgba(255,255,255,0.55);
    --border: rgba(255,255,255,0.08);
    --green: #10b981;
    --red: #ef4444;
    --orange: #f97316;
}
html, body {
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent); top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: #6366f1; bottom: -100px; right: -100px; }

.apply-wrap {
    position: relative; z-index: 1;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex; align-items: flex-start; justify-content: center;
}
.apply-card {
    background: rgba(28,28,42,0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    max-width: 760px; width: 100%;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.apply-header { text-align: center; margin-bottom: 28px; }
.apply-logo {
    width: 64px; height: 64px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    box-shadow: 0 12px 28px rgba(192,68,224,0.35);
}
.apply-header h1 {
    font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
}
.apply-header p {
    color: var(--text-muted); font-size: 13px; margin-top: 4px;
}

.apply-section {
    margin-top: 24px;
    padding: 22px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.apply-section-title {
    font-size: 13px; font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.apply-field { margin-bottom: 14px; }
.apply-field-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.apply-field label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--text-muted); margin-bottom: 6px;
}
.apply-field label small { font-weight: 400; opacity: 0.7; }
.apply-field .req { color: var(--red); }
.apply-field input,
.apply-field select,
.apply-field textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit; font-size: 13px;
    transition: border-color 0.18s, background 0.18s;
}
.apply-field input:focus,
.apply-field select:focus,
.apply-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0,0,0,0.5);
}
.apply-field input[readonly] {
    background: rgba(255,255,255,0.03);
    color: var(--text-muted); cursor: not-allowed;
}
.apply-field textarea { resize: vertical; min-height: 80px; }
.apply-hint {
    font-size: 11px; color: var(--text-muted); margin-top: 4px;
}

.apply-actions {
    margin-top: 24px;
    display: flex; justify-content: flex-end;
}
.apply-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700; font-size: 14px;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 8px 22px rgba(192,68,224,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.apply-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(192,68,224,0.5);
}
.apply-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.apply-msg {
    margin-top: 14px; padding: 10px 14px; border-radius: 10px;
    font-size: 13px; display: none;
}
.apply-msg.error {
    display: block;
    background: rgba(239,68,68,0.1); color: var(--red);
    border: 1px solid rgba(239,68,68,0.3);
}

.apply-success, .apply-error {
    text-align: center; padding: 40px 20px;
}
.apply-success i, .apply-error i {
    font-size: 64px; margin-bottom: 18px; display: block;
}
.apply-success i { color: var(--green); }
.apply-error i { color: var(--red); }
.apply-success h2, .apply-error h2 {
    font-size: 22px; font-weight: 800; margin-bottom: 10px;
}
.apply-success p, .apply-error p {
    color: var(--text-muted); margin: 8px 0;
}
.apply-error code {
    background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 4px;
    font-family: monospace; font-size: 11px;
}

@media (max-width: 600px) {
    .apply-field-row { grid-template-columns: 1fr; }
    .apply-card { padding: 24px; }
}
