:root {
    --bg-primary: #0b0f19;
    --bg-surface: rgba(18, 24, 38, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius-lg: 16px;
    --radius-md: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: linear-gradient(180deg, #0f172a 0%, #0b0f19 100%);
    background-color: var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 999px;
}

.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.header-username {
    font-size: 13px;
    font-weight: 600;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    margin-left: 4px;
}
.btn-logout:hover {
    color: var(--accent-red);
}

.main-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.step-header {
    margin-bottom: 24px;
}

.step-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.step-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.step-header p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-discord {
    background: #5865F2;
    color: #ffffff;
    width: 100%;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}
.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
}
.btn-primary:hover {
    background: #2563eb;
}

.btn-confirm {
    background: var(--accent-green);
    color: #ffffff;
    margin-top: 14px;
    width: 100%;
}
.btn-confirm:hover {
    background: #16a34a;
}

.btn-block {
    width: 100%;
    margin-top: 24px;
}

.input-group label,
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.input-with-button {
    display: flex;
    gap: 8px;
}

input, select {
    width: 100%;
    background: rgba(11, 15, 25, 0.8);
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

input:focus, select:focus {
    border-color: var(--accent-blue);
}

.roblox-card {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.roblox-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    background: #111;
    margin-bottom: 12px;
}

.roblox-name {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.roblox-handle {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.badge-success {
    font-size: 11px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.id-section {
    margin-top: 20px;
    background: rgba(11, 15, 25, 0.7);
    border: 1px dashed var(--border-color);
    padding: 18px;
    border-radius: var(--radius-md);
}

.id-header {
    margin-bottom: 10px;
}

.id-helper {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.id-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.id-input-container input {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    letter-spacing: 2px;
    max-width: 140px;
    text-align: center;
}

.id-preview-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    flex: 1;
}

.id-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.full-id-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 2px;
}

.id-status {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 600;
}
.id-status.available {
    color: var(--accent-green);
}
.id-status.taken {
    color: var(--accent-red);
}

.id-card-display {
    margin-top: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.id-card-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.id-card-body {
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: center;
}

.card-avatar {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #000;
}

.card-details {
    flex: 1;
}

.card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.card-label {
    color: var(--text-muted);
    font-weight: 600;
}

.card-value {
    color: var(--text-primary);
    font-weight: 600;
}

.card-row.highlight {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

.card-value-id {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    color: var(--accent-blue);
    font-size: 15px;
    letter-spacing: 1px;
}

.success-banner {
    text-align: center;
    margin-bottom: 24px;
}

.success-icon {
    width: 50px;
    height: 50px;
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.hidden {
    display: none !important;
}
