:root {
    --bg-dark: #09090b;
    --card-bg: rgba(24, 24, 27, 0.6);
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --accent: #06b6d4;
    --text-main: #f4f4f5;
    --text-secondary: #e4e4e7;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --font-family: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-main);
    font-family: var(--font-family);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}

.background-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -20%;
    left: -20%;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent), transparent);
    bottom: -20%;
    right: -20%;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 30px);
    }
}

.main-nav {
    width: 100%;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
}

.nav-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.app-container {
    width: 100%;
    max-width: 900px;
    padding: 30px 20px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
}

.brand span {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.6);
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row>* {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="datetime-local"],
input[type="file"],
textarea,
select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: white;
    padding: 12px 14px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color-scheme: dark;
}

option {
    background-color: #18181b;
    color: white;
    padding: 10px;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.checkbox-container {
    display: flex;
    align-items: flex-end;
    min-height: 48px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0;
}

input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 12px;
}

.type-selector-container {
    margin-bottom: 20px;
}

.custom-select-wrapper {
    position: relative;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.custom-select-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.custom-select-wrapper .type-icon {
    position: absolute;
    left: 20px;
    color: var(--primary);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 1;
}

.custom-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 40px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 14px;
    color-scheme: dark;
}

.custom-select-wrapper select option {
    background-color: #18181b;
    color: white;
    padding: 12px;
}

.custom-select-wrapper select:focus {
    background: transparent;
    box-shadow: none;
}

.custom-select-wrapper .chevron {
    position: absolute;
    right: 20px;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.custom-select-wrapper:focus-within .chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.custom-select-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}



.customization-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.customization-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.customization-section i {
    color: var(--primary);
}

.color-picker-wrapper {
    width: 100%;
    height: 50px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    padding: 4px;
    background: var(--input-bg);
}

input[type="color"] {
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.preview-section {
    position: sticky;
    top: 100px;
    align-self: start;
    height: fit-content;
    z-index: 10;
}

.preview-sticky-content {
    position: sticky;
    top: 30px;
}

.preview-container {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

#qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    display: none;
    z-index: 2;
}

#qr-placeholder {
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.5;
}

#qr-placeholder i {
    font-size: 4rem;
}

#qr-placeholder p {
    font-size: 0.9rem;
    margin: 0;
}

#qr-loader {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-section {
    margin-top: 80px;
    margin-bottom: 60px;
    text-align: center;
}

.info-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(to right, #fff, #a1a1aa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform 0.3s;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: white;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.step-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: white;
}

.step-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 250px;
    margin: 0 auto;
}

footer {
    border-top: none;
    margin-top: 80px;
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

footer:hover {
    opacity: 1;
}

footer p {
    margin: 0;
    color: var(--text-muted);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}




.hidden {
    display: none !important;
}

.mt-2 {
    margin-top: 10px;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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