* {
    box-sizing: border-box;
}

:root {
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.12);
    --success: #10b981;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Montserrat', "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
}

body {
    display: flex;
    justify-content: center;
    overflow-y: auto;
}

/* Subtle decorative blobs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}
body::before {
    width: 500px;
    height: 500px;
    background: #dbeafe;
    top: -150px;
    right: -150px;
    animation: float 14s ease-in-out infinite alternate;
}
body::after {
    width: 400px;
    height: 400px;
    background: #ede9fe;
    bottom: -120px;
    left: -120px;
    animation: float 18s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.08); }
}

#mainView,
#designFlowView {
    padding: 48px 36px;
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
    margin: auto;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

#mainView.hidden,
#designFlowView.hidden {
    display: none;
}

#designFlowView .new_w_choice {
    display: flex;
    justify-content: center;
}

.logo img {
    width: 100px;
    padding-bottom: 16px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05) translateY(-2px);
}

#designFlowView .chooseDomain {
    display: block;
    flex-direction: row;
    align-items: center;
}

#twrap {
    position: relative;
    height: 96%;
    display: block;
}

.container {
    text-align: center;
    color: var(--text-primary);
    display: flex;
    width: 100%;
}

.new_w_choice .generateWebsite {
    margin-top: -24px;
}

.new_website .cont_e_new_website .generateWebsite .content-txt {
    padding: 0 10px;
}

#designFlowView .chooseDomain .domch .int {
    padding-right: 100px;
}

.generateWebsite button {
    margin-left: 10px;
    margin-right: 10px;
}

.button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Buttons ── */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 14px;
    padding: 16px 24px;
    width: 100%;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.button:hover {
    border-color: var(--border-hover);
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.button:active {
    transform: translateY(0);
}

/* AI Button — Hero CTA */
.button.ai_button {
    background: #f1f5f9;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
    padding: 18px 24px;
    letter-spacing: 0.02em;
}

.button.ai_button:hover {
    border-color: var(--border-hover);
    background: #f8fafc;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.icon {
    font-size: 18px;
}

.title_buttons {
    font-weight: 700;
    font-family: inherit;
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 28px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ── Form elements ── */
.contf {
    display: flex;
    gap: 25px;
    max-width: 100%;
    flex-wrap: wrap;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-align: left;
}

.required::after {
    content: " *";
    color: #ef4444;
}

input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #ffffff;
    font-size: 15px;
    color: var(--text-primary);
    max-width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:hover {
    border-color: var(--border-hover);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

input::placeholder {
    color: #94a3b8;
}

button.submit {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button.submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.c1,
.c2 {
    min-width: 260px;
}

/* ── Responsive ── */
@media (max-width: 600px) {

    #mainView,
    #designFlowView {
        padding: 36px 24px;
        border-radius: 20px;
        height: auto;
        width: calc(100% - 32px);
        margin: 16px auto;
    }

    .title_buttons {
        font-size: 20px;
    }

    input,
    button,
    .button {
        font-size: 14px;
    }
}

/* ── Footer ── */
.captcha_footer {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 16px 0 0;
    width: 100%;
    margin-top: 8px;
    border-top: 1px solid #f1f5f9;
}

/* ── Action buttons ── */
.button.login_home,
.button.go_to_app {
    background: #f1f5f9;
    color: var(--text-secondary);
    border: 1px solid transparent;
    display: none;
}

.button.pwa_install_btn_cls,
.button.view_plans {
    background: #f1f5f9;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.button.login_home:hover,
.button.go_to_app:hover,
.button.pwa_install_btn_cls:hover,
.button.view_plans:hover {
    background: #e2e8f0;
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.captcha_footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ── Modern divider ── */
.text_between {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-weight: 500;
    font-size: 12px;
    margin: 20px 0;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.text_between::before,
.text_between::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.text_between::before {
    margin-right: 16px;
}

.text_between::after {
    margin-left: 16px;
}

.contca .contca-close-home {
    width: 28px;
    padding: 4px;
    height: 28px;
    z-index: 1;
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contca .contca-close-home:hover {
    background-color: #f1f5f9;
}

.contca .contca-close-home .ui-icon-closethick {
    background-image: url(images/ui-icons_cd0a0a_256x240.png);
}

.logged_in_message {
    font-size: 13px;
    margin: 0;
    padding: 0;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1;
}

/* Logged-in user info row */
.hide_load {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.hide_load .logout_homepage {
    display: flex;
    align-items: center;
}

.hide_load .logout_homepage svg {
    fill: var(--text-muted);
    transition: fill 0.2s;
    display: block;
}

.hide_load .logout_homepage:hover svg {
    fill: var(--text-primary);
}

/* ── Wait spinner ── */
.wait_home {
    margin: 10px auto;
}

@keyframes flickerAnimation {
    0% {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    }

    50% {
        box-shadow: 0 0 15px var(--primary-glow);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    }
}

.flicker-effect {
    animation: flickerAnimation 1.5s 3;
}

@keyframes textFlickerEffect {
    0% {
        text-shadow: none;
        color: inherit;
    }

    25% {
        text-shadow: 0 0 3px var(--primary-glow);
        color: #3b82f6;
    }

    50% {
        text-shadow: 0 0 8px var(--primary-glow), 0 0 12px var(--accent-glow);
        color: #2563eb;
    }

    75% {
        text-shadow: 0 0 3px var(--primary-glow);
        color: #3b82f6;
    }

    100% {
        text-shadow: none;
        color: inherit;
    }
}

.text-flicker-effect {
    animation: textFlickerEffect 1.5s 2;
}