:root {
    --primary: #23d5d5;
    --primary-hover: #1ebbbb;
    --glass-bg: rgba(3, 7, 12, 0.9);
    --glass-border: rgba(35, 213, 213, 0.25);
    --text-main: #ffffff;
    --text-muted: rgba(220, 230, 245, 0.7);
    --bg-color: #02050a;
}

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

body {
    font-family: 'General Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(circle at 50% -18%, rgba(35, 213, 213, 0.045), transparent 58%);
}

/* Background elements */
#particles-js { position: fixed; width: 100%; min-height: 100vh; height: 100%; top: 0; left: 0; z-index: -2; opacity: 0.95; pointer-events: none; }
.ambient-glow {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: radial-gradient(circle at 50% 8%, rgba(35, 213, 213, 0.04), transparent 55%);
    pointer-events: none;
}

.container { max-width: 900px; margin: 0 auto; padding: 50px 20px; position: relative; z-index: 10; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUpAnim 0.8s ease forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeUpAnim { to { opacity: 1; transform: translateY(0); } }

/* Hero Header */
.hero-header { text-align: center; margin-bottom: 10px; padding: 40px 0 10px 0; }
.top-brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 5px;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(35, 213, 213, 0.1));
}
.top-brand-logo:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 0 25px rgba(35, 213, 213, 0.8));
}
.logo-title {
    font-family: 'Outfit', sans-serif;
    font-size: 110px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 16px;
    background: linear-gradient(to bottom right, #ffffff, #23d5d5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 auto;
    padding-left: 16px;
    margin-bottom: -5px;
}
.hero-subtitle {
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: rgba(220, 230, 245, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}
.creator-badge {
    font-family: 'General Sans', sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: rgba(220, 230, 245, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto 0 auto;
    width: fit-content;
}
.author-link {
    font-weight: 700;
    font-size: 22px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    position: relative;
    padding-bottom: 2px;
}
.author-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--primary);
}
.author-link:hover {
    text-shadow: 0 0 15px rgba(35, 213, 213, 0.8);
    transform: translateY(-2px);
}
.author-link:hover::after {
    width: 100%;
}

/* Description Card */
.description-card {
    text-align: center;
    padding: 35px;
    margin-bottom: 60px;
    background-color: rgba(8, 14, 23, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(35, 213, 213, 0.1) !important;
    border-top: 1px solid rgba(35, 213, 213, 0.15) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
}
.desc-headline {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.desc-headline span {
    color: var(--primary);
    font-weight: 700;
}
.desc-subline {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}
.desc-subline span {
    color: rgba(35,213,213,0.8);
    font-weight: 500;
}

/* Glass Panels */
.glass-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(35, 213, 213, 0.02) 100%);
    background-color: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(35, 213, 213, 0.3); 
    border-radius: 20px; padding: 40px; margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 20px rgba(35, 213, 213, 0.03);
}

.glass-panel h2 {
    font-size: 1.2rem; font-weight: 600; color: #fff;
    margin-bottom: 25px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; letter-spacing: 1px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.input-group { margin-bottom: 24px; }

label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.95rem; font-weight: 500; color: rgba(220,230,245,0.8); }
.help-toggle { 
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem; 
    color: var(--primary); 
    font-weight: 700; 
    cursor: pointer; 
    background: rgba(35, 213, 213, 0.1); 
    border: 1px solid rgba(35, 213, 213, 0.3);
    padding: 4px 10px 4px 12px; 
    border-radius: 20px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    text-transform: uppercase; 
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(35, 213, 213, 0.05);
}
.help-toggle svg { margin-bottom: 1px; }
.help-toggle:hover { 
    background: var(--primary); 
    color: var(--bg-color); 
    box-shadow: 0 0 15px rgba(35, 213, 213, 0.5); 
    transform: translateY(-1px);
}

.helper-text { display: block; margin-top: 12px; font-size: 0.9rem; color: rgba(200,215,235,0.8); background: rgba(0, 0, 0, 0.5); padding: 20px; border-radius: 12px; border-left: 3px solid var(--primary); line-height: 1.6; animation: slideDown 0.3s ease forwards; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.helper-text.hidden { display: none; }
.helper-text a { color: var(--primary); text-decoration: none; font-weight: 600; }
.helper-text a:hover { text-decoration: underline; }
.helper-text code { background: rgba(35, 213, 213, 0.1); color: var(--primary); padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; border: 1px solid rgba(35, 213, 213, 0.2); font-family: monospace;}
.helper-intro { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px dashed var(--glass-border); }

input, textarea, select {
    width: 100%; padding: 14px 18px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
    color: var(--text-main); font-family: inherit; font-size: 1rem; transition: all 0.3s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
textarea { resize: none; overflow: hidden; }
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323d5d5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}
select option { background: var(--bg-color); color: var(--text-main); }
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--primary); background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 15px rgba(35, 213, 213, 0.2), inset 0 0 10px rgba(35, 213, 213, 0.1);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(35, 213, 213, 0.3); border-radius: 16px; padding: 50px 20px; text-align: center; transition: all 0.3s ease; background: rgba(0,0,0,0.2); cursor: pointer; position: relative; overflow: hidden;
}
.upload-zone::before { content:''; position:absolute; top:0;left:0;right:0;bottom:0; background: radial-gradient(circle at center, rgba(35, 213, 213, 0.06) 0%, transparent 70%); opacity:0; transition: opacity 0.3s; }
.upload-zone:hover::before, .upload-zone.dragover::before { opacity: 1; }
.upload-zone.dragover { border-color: var(--primary); background: rgba(35, 213, 213, 0.05); transform: scale(1.02); }
.upload-icon { font-size: 3rem; margin-bottom: 15px; text-shadow: 0 0 20px rgba(35, 213, 213, 0.3); }
.upload-zone p { font-weight: 500; font-size: 1.1rem; margin-bottom: 5px; color: #fff;}
.upload-zone .sub-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; font-weight: 400; }
.file-list { margin-top: 20px; text-align: left; display: flex; flex-wrap: wrap; gap: 12px; position:relative; z-index:2; }
.file-chip {
    background: rgba(35, 213, 213, 0.1); border: 1px solid rgba(35, 213, 213, 0.2); padding: 8px 16px; border-radius: 24px; font-size: 0.85rem; display: flex; align-items: center; gap: 10px; color: #fff; box-shadow: 0 0 10px rgba(35, 213, 213, 0.05);
}

.lead-form-picker-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(35, 213, 213, 0.055);
    border: 1px solid rgba(35, 213, 213, 0.18);
    border-radius: 14px;
    color: rgba(235, 248, 255, 0.9);
    box-shadow: inset 0 0 18px rgba(35, 213, 213, 0.025);
}
.lead-form-picker-row p {
    margin: 0;
    font-size: 0.92rem;
}
.lead-form-picker-row strong {
    color: var(--primary);
}
.lead-form-picker-btn {
    padding: 8px 15px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.lead-form-modal-content {
    max-width: 640px;
}
.lead-form-modal-copy {
    color: var(--text-muted);
    margin-bottom: 18px;
}
.lead-form-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}
.lead-form-option {
    width: 100%;
    text-align: left;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 14px;
    padding: 14px 16px;
}
.lead-form-option:hover {
    border-color: rgba(35, 213, 213, 0.42);
    background: rgba(35, 213, 213, 0.08);
    transform: translateY(-1px);
}
.lead-form-option:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}
.lead-form-option:disabled:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}
.lead-form-option-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}
.lead-form-option-meta {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.78rem;
    word-break: break-word;
}
.lead-form-default-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(35, 213, 213, 0.14);
    border: 1px solid rgba(35, 213, 213, 0.3);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
.lead-form-status-pill {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.lead-form-error {
    margin-top: 14px;
    color: rgba(255, 120, 120, 0.95);
    font-size: 0.9rem;
}
.lead-form-error.hidden {
    display: none;
}
.lead-form-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

/* Buttons & Alerts */
.billing-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: inset 0 0 15px rgba(255, 170, 0, 0.05);
}
.billing-warning svg {
    color: #ffaa00;
    flex-shrink: 0;
    margin-top: 1px;
}
.billing-warning strong {
    color: #ffaa00;
}

/* Upload Progress Bar */
.upload-progress-container {
    width: 100%;
    background: rgba(35, 213, 213, 0.1);
    border: 1px solid rgba(35, 213, 213, 0.2);
    border-radius: 12px;
    height: 38px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
}
.upload-progress-container.hidden { display: none; }
.upload-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(35,213,213,0.6) 0%, var(--primary) 100%);
    transition: width 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(35,213,213,0.4);
}
.upload-progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    pointer-events: none;
}
@keyframes progressPulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.pulse { animation: progressPulse 1.5s infinite; }

button { font-family: 'General Sans', sans-serif; cursor: pointer; border: none; border-radius: 12px; font-weight: 600; transition: all 0.3s ease; letter-spacing: 0.5px; }
.primary-btn {
    width: 100%; padding: 18px; background: var(--primary); color: var(--bg-color); font-size: 1.1rem; display: flex; justify-content: center; align-items: center; gap: 12px;
    box-shadow: 0 0 20px rgba(35, 213, 213, 0.3);
}
.primary-btn:hover {
    background: #ffffff; color: var(--primary); transform: translateY(-2px); box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}
.primary-btn:disabled { background: #1a1a1a; color: #555; cursor: not-allowed; transform: none; box-shadow: none; border: 1px solid #333;}
.secondary-btn { padding: 12px 24px; background: rgba(35, 213, 213, 0.1); color: var(--primary); border: 1px solid rgba(35, 213, 213, 0.3); position:relative; z-index:2;}
.secondary-btn:hover { background: var(--primary); color: var(--bg-color); box-shadow: 0 0 15px rgba(35, 213, 213, 0.4); }

/* Modal & Loader */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,15,26,0.9); display: flex; justify-content: center; align-items: center; z-index: 100; backdrop-filter: blur(15px); }
.modal.hidden { display: none; }
.modal-content { width: 90%; max-width: 550px; border-top: 3px solid var(--primary); }
.code-block { background: rgba(0,0,0,0.6); padding: 20px; border-radius: 10px; font-family: monospace; font-size: 0.9rem; margin: 25px 0; white-space: pre-wrap; word-break: break-all; color: var(--primary); border: 1px solid rgba(35, 213, 213, 0.2); }
.loader { width: 22px; height: 22px; border: 3px solid rgba(35, 213, 213, 0.2); border-radius: 50%; border-top-color: var(--bg-color); animation: spin 1s linear infinite; }
.loader.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .logo-title { font-size: 60px; } }
@media (max-width: 768px) { .lead-form-picker-row, .lead-form-modal-actions { flex-direction: column; align-items: stretch; } }

/* Hide Native Number Spinners */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] {
    -moz-appearance: textfield;
}
