:root {
    --gold: #d4a03f;
    --gold-bright: #f9df92;
    --black: #030405;
    --panel: rgba(6, 10, 18, 0.92);
    --muted: rgba(255, 255, 255, 0.72);
    --border: rgba(255, 215, 0, 0.18);
    --shadow: 0 32px 110px rgba(0, 0, 0, 0.5);
    --transition: 240ms ease;
    --accent: #ff6b9d;
    --accent-light: #ff94c2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(255, 184, 60, 0.18), transparent 24%),
        radial-gradient(circle at left center, rgba(255, 215, 0, 0.1), transparent 32%),
        linear-gradient(180deg, #05070d 0%, #020205 42%, #05070d 100%);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 72px 72px;
}

.background-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.6;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: 5%;
    left: 8%;
    background: radial-gradient(circle, rgba(212, 160, 55, 0.3), transparent 70%);
    animation: float 12s ease-in-out infinite;
}

.orb-2 {
    width: 280px;
    height: 280px;
    top: 20%;
    right: 8%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25), transparent 70%);
    animation: float 14s ease-in-out infinite 2s;
}

.orb-3 {
    width: 320px;
    height: 320px;
    bottom: 8%;
    left: 12%;
    background: radial-gradient(circle, rgba(212, 160, 55, 0.2), transparent 70%);
    animation: float 16s ease-in-out infinite 4s;
}

.orb-4 {
    width: 260px;
    height: 260px;
    bottom: 10%;
    right: 12%;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.25), transparent 70%);
    animation: float 15s ease-in-out infinite 3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -30px); }
    66% { transform: translate(-20px, 30px); }
}


@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 40px) scale(1.1); }
}

/* Page Header */
.page-header {
    position: sticky;
    top: 0;
    background: rgba(3, 4, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    animation: slideDown 600ms ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header-inner {
    max-width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--muted);
    transition: color var(--transition);
}

.brand-lockup:hover {
    color: var(--gold-bright);
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--black);
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(212, 160, 63, 0.3);
    transition: all var(--transition);
    animation: fadeInScale 600ms ease 100ms both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.brand-mark:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 160, 63, 0.4);
}

.brand-lockup div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-lockup .eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
}

.brand-lockup .brand-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--muted);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ghost-button {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.ghost-button:hover {
    background: rgba(212, 160, 63, 0.1);
    border-color: var(--gold-bright);
    color: var(--gold-bright);
}

/* Main Content */
main {
    position: relative;
    z-index: 1;
    max-width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 20px;
}

/* Signup Hero Section */
.signup-hero {
    display: grid;
    grid-template-columns: 1.1fr minmax(280px, 420px);
    gap: 60px;
    align-items: start;
    animation: fadeInUp 800ms ease 200ms both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-copy .eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 600;
}

.hero-copy h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--muted);
    background: linear-gradient(135deg, #fff 0%, var(--gold-bright) 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 800ms ease 300ms both;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 500px;
    animation: fadeInUp 800ms ease 350ms both;
}

.signup-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(212, 160, 63, 0.15), rgba(212, 160, 63, 0.08));
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.badge:nth-child(1) {
    animation: fadeInUp 800ms ease 400ms both;
}

.badge:nth-child(2) {
    animation: fadeInUp 800ms ease 500ms both;
}

.badge:nth-child(3) {
    animation: fadeInUp 800ms ease 600ms both;
}

.badge:hover {
    background: linear-gradient(135deg, rgba(212, 160, 63, 0.25), rgba(212, 160, 63, 0.15));
    border-color: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 160, 63, 0.2);
}

/* Signup Panel */
.signup-panel {
    background: linear-gradient(135deg, rgba(6, 10, 18, 0.95), rgba(15, 24, 36, 0.85));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(25px);
    box-shadow: 0 32px 110px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 800ms ease 400ms both;
}

.signup-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 160, 63, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeInUp 600ms ease both;
}

.form-group:nth-child(1) { animation-delay: 450ms; }
.form-group:nth-child(2) { animation-delay: 500ms; }
.form-group:nth-child(3) { animation-delay: 550ms; }
.form-group:nth-child(4) { animation-delay: 600ms; }
.form-group:nth-child(5) { animation-delay: 650ms; }
.form-group:nth-child(6) { animation-delay: 700ms; }
.form-group:nth-child(7) { animation-delay: 750ms; }

.form-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gold-bright);
    text-shadow: 0 2px 8px rgba(212, 160, 63, 0.15);
}

.form-group input,
.form-group select {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 160, 63, 0.25);
    border-radius: 14px;
    color: var(--muted);
    font-size: 14px;
    font-family: inherit;
    transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(212, 160, 63, 0.15), 0 0 20px rgba(212, 160, 63, 0.3);
    transform: translateY(-2px);
}

.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 160, 63, 0.4);
}

/* Country Select */
.country-group {
    position: relative;
}

.country-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

#country {
    flex: 1;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f9df92' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.country-logo-preview {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.country-logo-preview img {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

/* Signup Button */
.signup-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, #d4953f 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 999px;
    color: var(--black);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 32px rgba(212, 160, 63, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 800ms ease 800ms both;
}

.signup-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.signup-btn:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(212, 160, 63, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    background-position: 200% 0;
}

.signup-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.signup-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(3, 4, 5, 0.3);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 32px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(46, 204, 113, 0.08));
    border: 1px solid rgba(46, 204, 113, 0.4);
    border-radius: 20px;
    animation: successPop 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(46, 204, 113, 0.3);
    animation: iconBounce 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

.success-message h3 {
    font-size: 20px;
    color: #2ecc71;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.success-message p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* Error Message */
.error-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 32px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.08));
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 20px;
    animation: errorShake 600ms ease;
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes errorShake {
    0%, 100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
    10% { transform: translateX(-6px) translateY(0); }
    20% { transform: translateX(6px) translateY(0); }
    30% { transform: translateX(-6px) translateY(0); }
    40% { transform: translateX(6px) translateY(0); }
}

.error-icon {
    font-size: 36px;
    color: #e74c3c;
    animation: pulse 1s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.error-message h3 {
    font-size: 20px;
    color: #e74c3c;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.error-message p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    position: relative;
    z-index: 1;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Footer */
.form-footer {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
}

.form-footer a {
    color: var(--gold-bright);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.form-footer a:hover {
    color: var(--gold);
}

/* Page Footer */
.page-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 960px) {
    .signup-hero {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .signup-panel {
        padding: 32px;
    }

    main {
        padding: 60px 20px;
    }
}

@media (max-width: 640px) {
    .page-header-inner {
        flex-direction: column;
        gap: 16px;
        padding: 14px;
    }

    .brand-lockup {
        width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    main {
        padding: 40px 16px;
    }

    .hero-copy h1 {
        font-size: 28px;
        margin-top: 8px;
    }

    .hero-copy .eyebrow {
        font-size: 11px;
    }

    .hero-description {
        font-size: 14px;
        margin-top: 8px;
    }

    .signup-badges {
        gap: 8px;
        margin-top: 16px;
    }

    .badge {
        font-size: 10px;
        padding: 8px 14px;
    }

    .signup-panel {
        padding: 24px;
        border-radius: 18px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 14px;
    }

    .signup-btn {
        padding: 14px 24px;
        font-size: 12px;
        margin-top: 8px;
    }

    .success-message,
    .error-message {
        padding: 28px 20px;
    }

    .success-icon,
    .error-icon {
        width: 48px;
        height: 48px;
    }

    .success-message h3,
    .error-message h3 {
        font-size: 18px;
    }

    .success-message p,
    .error-message p {
        font-size: 13px;
    }

    .page-footer {
        padding: 24px 16px;
        font-size: 12px;
    }
}
