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

:root {
    --dark: #0a0a1a;
    --light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #e2e8f0;
    --text-muted: #64748b;
    --radius: 20px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

/* Background */
.bg-shapes {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.35;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: #7c3aed;
    top: -250px;
    right: -200px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #06b6d4;
    bottom: -200px;
    left: -150px;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: #ec4899;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Glass */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

/* Header */
.header {
    padding: 40px 0 60px;
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--light);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    opacity: 0.7;
}

.lang-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.lang-select option {
    background: #1a1a2e;
    color: var(--text);
}

/* Main */
.main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 40px 0 80px;
}

.template-card {
    width: 100%;
    max-width: 460px;
    padding: 50px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.template-preview {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.15));
    margin-bottom: 24px;
}

.template-preview i {
    font-size: 2.2rem;
    color: #a78bfa;
}

.template-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.template-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.price-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.price-row .form-input {
    flex: 1;
}

.price-row .btn {
    width: auto;
    padding: 12px 24px;
    white-space: nowrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--glass-border);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-decoration: none;
    width: calc(100% - 40px);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
    width: 100%;
    max-width: 360px;
    padding: 32px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover { color: var(--light); }

.modal h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus { border-color: rgba(124, 58, 237, 0.5); }
.form-input::placeholder { color: var(--text-muted); }

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

/* Modal price */
.modal-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .template-card { padding: 36px 24px; }
    .price-row { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
}
