:root {
    --bg-color: #FFFFFF;
    --surface: #FAFAFA;
    --text-main: #09090b;
    --text-muted: #71717a;
    --border: #e4e4e7;
    --primary: #18181b;
    --radius: 12px;
    --container-width: 1200px;
    --gradient-hero: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
p { color: var(--text-muted); font-size: 1.05rem; }
a { text-decoration: none; color: inherit; transition: 0.2s; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 6rem 0; }
.text-center { text-align: center; }

.highlight-container { position: relative; display: inline-block; z-index: 1; }
.highlight-container::after {
    content: ''; position: absolute; left: 0; bottom: 5px; width: 0; height: 15px;
    background-color: rgba(0, 0, 0, 0.1); z-index: -1; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
body.loaded .highlight-container::after { width: 100%; }

.price-tag-badge {
    display: inline-block;
    background-color: #ecfccb; 
    color: #3f6212; 
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid #d9f99d;
    box-shadow: 0 4px 15px rgba(132, 204, 22, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem;
    background: var(--primary); color: white; font-weight: 600;
    border-radius: 8px; border: 2px solid var(--primary); font-size: 1rem; cursor: pointer;
    transition: all 0.3s ease; white-space: nowrap; user-select: none;
}

.btn:active { transform: scale(0.98); }
.btn:hover { background: white; color: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-outline { background: white; border: 2px solid #e4e4e7; color: var(--text-main); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }


.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white !important;  
    transform: translateY(-2px);
}

.paper-plane-btn {
    background: white;
    border: 1px solid #e4e4e7;
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 103;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.paper-plane-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.paper-plane-btn i { font-size: 1.1rem; }

.sub-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.sub-card.active-sub {
    border-left: 5px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.sub-card.cancelled-sub {
    border-left: 5px solid #ef4444;
    opacity: 0.7;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sub-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
}

.sub-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sub-status.status-active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.sub-status.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.sub-details {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
}

.btn-cancel-sub {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-cancel-sub:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
}

.paintbrush-active {
    background: rgba(234, 179, 8, 0.2) !important;
    border: 2px solid #eab308 !important;
}

.cursor-copy {
    cursor: copy !important;
}

@keyframes popIn { 
    0% { transform: scale(0); opacity: 0; } 
    80% { transform: scale(1.1); } 
    100% { transform: scale(1); opacity: 1; } 
}

nav {
    position: fixed; top: 0; width: 100%; 
    z-index: 1500;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05); padding: 0; height: var(--header-height);
    display: flex; align-items: center;
}

.nav-content { display: flex; justify-content: space-between; align-items: center; height: 100%; width: 100%; }
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.05em; color: var(--text-main); text-transform: uppercase; z-index: 102; }

.nav-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem; 
}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    position: relative;
}

.nav-links a:hover { color: var(--text-main); }

.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
    background: black; transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; z-index: 102; padding: 10px; }

.user-area { display: flex; align-items: center; gap: 1rem; border-left: 1px solid #f0f0f0; padding-left: 1.5rem; }

.cart-wrap { position: relative; cursor: pointer; font-size: 1.1rem; transition: 0.2s; padding: 8px; color: #333; }
.cart-wrap:hover { transform: scale(1.1); color: black; }
.cart-badge { 
    position: absolute; top: 0; right: -2px; background: black; color: white; 
    font-size: 0.65rem; width: 16px; height: 16px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.account-dropdown { 
    cursor: pointer; display: flex; align-items: center; gap: 8px; position: relative; padding: 5px;
    user-select: none;
}

.account-dropdown i { font-size: 1.5rem; color: #333; transition: 0.2s; }
.account-dropdown:hover i, .account-dropdown.active i { color: black; transform: scale(1.1); }

#userNameDisplay { display: inline-block; font-weight: 600; font-size: 0.9rem; }

.account-menu {
    position: absolute; 
    top: 100%; 
    margin-top: 10px; 
    right: 0; 
    background: white; 
    border: 1px solid #eee;
    border-radius: 12px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
    width: 220px;
    display: none; 
    flex-direction: column; 
    z-index: 110; 
    overflow: hidden;
    animation: fadeInMenu 0.2s ease-out;
}


.account-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px; 
    background: transparent; 
}

@keyframes fadeInMenu { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.account-dropdown:hover .account-menu,
.account-dropdown.active .account-menu { display: flex; }

.menu-item { padding: 14px 20px; border-bottom: 1px solid #f9f9f9; color: #444; font-size: 0.9rem; cursor: pointer; transition:0.2s; font-weight: 500; }
.menu-item:hover { background: #f9f9f9; color: black; padding-left: 25px; }

.menu-item:last-child { 
    border-bottom: none; 
    color: #ef4444 !important;
    font-weight: 700;
    margin-top: 5px;
    border-top: 1px solid #f5f5f5;
}

.menu-item:last-child:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

.hero { 
    min-height: 85vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: var(--header-height);
    padding-bottom: 2rem;
    text-align: center; 
    max-width: 900px; 
    margin: 0 auto; 
    animation: fadeUp 1s ease-out; 
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; background: var(--gradient-hero); z-index: -1; }

.stats-bar { 
    display: flex; justify-content: center; gap: 4rem; padding: 2rem 0; 
    border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; 
    margin-bottom: 6rem;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number { font-weight: 900; font-size: 1.5rem; display: block; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { 
    background: var(--surface); padding: 2.5rem; border-radius: var(--radius); 
    border: 1px solid var(--border); transition: all 0.4s ease; height: 100%; 
    position: relative; overflow: hidden; text-align: left;
}

.card:hover { transform: translateY(-5px); border-color: #000; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.icon-circle { 
    width: 60px; height: 60px; background: white; border: 1px solid #eee; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #000; margin-bottom: 1.5rem; 
}

.step-number { position: absolute; top: 20px; right: 20px; font-size: 3rem; font-weight: 900; color: #f0f0f0; line-height: 1; pointer-events: none; }

.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.expertise-item { display: flex; flex-direction: column; gap: 10px; padding: 1.5rem; border-left: 2px solid #eee; transition: 0.3s; }
.expertise-item:hover { border-left-color: #000; background: #fafafa; }
.expertise-title { font-weight: 700; font-size: 1.1rem; }

.custom-section { 
    background: #18181b; color: white; border-radius: 24px; padding: 5rem; margin: 6rem auto; 
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; 
}

.custom-list ul { list-style: none; margin-top: 2rem; }
.custom-list li { margin-bottom: 1.2rem; display: flex; align-items: flex-start; gap: 15px; }
.custom-list i { color: white; margin-top: 5px; }
.custom-list strong { color: white; display: block; font-size: 1.1rem; margin-bottom: 2px; }
.custom-list span { color: #a1a1aa; font-size: 0.95rem; }

footer { background: #f9fafb; padding: 4rem 0; border-top: 1px solid #e5e5e5; text-align: center; color: #666; font-size: 0.9rem; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); z-index: 2000; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.open { display: flex; opacity: 1; }

#authModal, #contactModal, #newSectionModal { z-index: 2100; }

.modal-window { background: white; width: 95%; max-width: 1300px; height: 90vh; border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); overflow: hidden; animation: slideUp 0.4s; position: relative; }
.modal-window-small { max-width: 450px; height: auto; border-radius: 12px; overflow: visible; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header { padding: 1.2rem 2rem; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: white; flex-shrink: 0; z-index: 10; }
.close-btn { font-size: 1.5rem; cursor: pointer; color: #999; transition: 0.2s; padding: 5px; }
.close-btn:hover { color: #000; transform: rotate(90deg); }

.modal-body { display: flex; flex: 1; overflow: hidden; position: relative; }
.modal-sidebar { width: 450px; background: white; border-right: 1px solid #eee; overflow-y: auto; display: flex; flex-direction: column; flex-shrink: 0; position: relative; }

.sidebar-tabs { display: flex; padding: 1rem 1rem 0 1rem; gap: 5px; background: white; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #f4f4f5; }
.tab-btn { flex: 1; padding: 0.5rem; text-align: center; border-radius: 4px; background: #f4f4f5; color: #bbb; font-size: 0.75rem; font-weight: 700; white-space: nowrap; transition: 0.3s; cursor: pointer; }
.tab-btn.active { background: #000; color: white; }
.tab-btn.completed { background: #e4e4e7; color: #000; }

.sidebar-content { padding: 2rem; flex: 1; overflow-y: auto; }

.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem; border: 1px solid #e4e4e7; border-radius: 8px; font-family: inherit; font-size: 0.95rem; }
.form-group input:focus { border-color: #000; outline: none; }

.plan-card { border: 1px solid #e4e4e7; border-radius: 12px; padding: 1.5rem; cursor: pointer; transition: 0.2s; margin-bottom: 10px; text-align: left; }
.plan-card:hover { border-color: #000; background: #fafafa; }
.plan-card.selected { border-color: #000; background: #f4f4f5; box-shadow: 0 0 0 2px #000; }
.plan-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; display: flex; justify-content: space-between; }
.plan-desc { font-size: 0.85rem; color: #666; }
.plan-price { font-weight: 900; }

.domain-group { display: flex; gap: 10px; align-items: center; }
.domain-input-wrap { flex: 2; }
.domain-select-wrap { flex: 1; min-width: 100px; }

.domain-status { margin-top: 10px; font-size: 0.9rem; font-weight: 600; min-height: 24px; display: flex; align-items: center; gap: 8px; }
.domain-status.success { color: #10b981; }
.domain-status.error { color: #ef4444; }
.domain-status.loading { color: #3b82f6; }

.email-qty-group { display: flex; gap: 10px; margin-bottom: 15px; }
.email-qty-btn { flex: 1; padding: 10px; border: 1px solid #e4e4e7; border-radius: 8px; background: white; cursor: pointer; font-weight: 600; text-align: center; transition: 0.2s; }
.email-qty-btn:hover { background: #fafafa; }
.email-qty-btn.active { background: #000; color: white; border-color: #000; }

.email-input-wrapper { 
    display: flex; 
    align-items: center; 
    background: white;
    border: 1px solid #e4e4e7; 
    border-radius: 8px; 
    margin-bottom: 12px; 
    transition: all 0.2s ease;
    overflow: hidden;
    padding: 0 15px; 
}

.email-input-wrapper:focus-within { 
    border-color: #000; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    transform: translateY(-1px);
}

.email-prefix-input { 
    border: none !important; 
    outline: none !important; 
    padding: 12px 0 !important; 
    font-size: 0.95rem; 
    flex: 1; 
    color: #000;
    font-weight: 500;
    min-width: 50px; 
}

.email-suffix-display { 
    background: transparent; 
    border: none; 
    color: #9ca3af; 
    font-weight: 400; 
    font-size: 0.95rem; 
    display: flex; 
    align-items: center;
    white-space: nowrap; 
    user-select: none;
    padding-left: 2px;
}

.email-icon-prefix {
    color: #d1d5db;
    margin-right: 10px;
    font-size: 0.9rem;
}

.email-input-wrapper:focus-within .email-icon-prefix {
    color: #000; 
}

.price-recap-box { background: #f9fafb; border: 1px solid #e4e4e7; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.price-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; color: #666; }
.price-row.total { font-weight: 900; color: #000; font-size: 1.5rem; margin-top: 15px; padding-top: 10px; border-top: 1px dashed #ddd; }

.legal-check-wrapper { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; background: #fff1f2; padding: 10px; border:1px solid #fecdd3; border-radius:8px; }
.legal-check-wrapper input { width: 20px; height: 20px; cursor: pointer; margin-top: 2px; }
.legal-check-wrapper label { font-size: 0.85rem; color: #881337; font-weight: 500; cursor: pointer; line-height: 1.4; display: inline; }
.legal-check-wrapper a { text-decoration: underline; color: #881337; font-weight: 700; }

.email-selection-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); z-index: 60; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; animation: fadeIn 0.2s; }
.email-selection-box { background: white; border: 1px solid #eee; box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-radius: 16px; padding: 2rem; width: 100%; max-width: 350px; text-align: center; }
.email-option-btn { display: block; width: 100%; padding: 12px; margin-bottom: 8px; border: 1px solid #eee; border-radius: 8px; background: white; cursor: pointer; transition: 0.2s; font-weight: 600; text-align: left; }
.email-option-btn:hover { background: #fafafa; border-color: #000; }
.email-option-btn i { margin-right: 8px; color: #3b82f6; }

.social-input-group { 
    display: flex; align-items: stretch; border: 1px solid #e4e4e7; border-radius: 8px; 
    margin-bottom: 12px; transition: 0.2s; background: white; overflow: hidden;
}

.social-input-group:focus-within { border-color: #000; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transform: translateY(-1px); }
.social-icon-box { 
    width: 50px; background: #f9fafb; display: flex; align-items: center; justify-content: center; 
    border-right: 1px solid #e4e4e7; color: #666; font-size: 1.1rem; transition: 0.2s;
}

.social-input-group:focus-within .fa-facebook { color: #1877F2; }
.social-input-group:focus-within .fa-instagram { color: #E4405F; }
.social-input-group:focus-within .fa-linkedin { color: #0A66C2; }
.social-input-group:focus-within .fa-tiktok { color: #000000; }
.social-input-group:focus-within .fa-twitter { color: #000000; }

.social-input-field { 
    border: none !important; flex: 1; padding: 12px 15px !important; 
    border-radius: 0 !important; outline: none; font-size: 0.95rem;
}

.upload-area { border: 2px dashed #e5e5e5; border-radius: 12px; padding: 3rem 1.5rem; text-align: center; cursor: pointer; transition: 0.2s; background: #fafafa; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; }
.upload-area:hover { border-color: #000; background: #fff; }

.preview-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }

.nav-buttons-container { margin-top: 2rem; display: flex; gap: 10px; }

.modal-preview { flex: 1; background: #f3f4f6; position: relative; display: flex; flex-direction: column; }
.iframe-container { width: 100%; height: 100%; border: none; background: white; display: none; }
.preview-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #a1a1aa; }

.checklist-container { display: none; width: 100%; height: 100%; flex-direction: column; justify-content: center; align-items: center; background: rgba(255,255,255,0.9); z-index: 50; position: absolute; top:0; left:0; backdrop-filter: blur(5px); }
.checklist-box { background: white; padding: 2.5rem; border-radius: 16px; box-shadow: 0 15px 50px rgba(0,0,0,0.1); width: 340px; text-align: left; border: 1px solid #f0f0f0; }
.checklist-item { margin-bottom: 18px; color: #a1a1aa; font-size: 0.95rem; display: flex; align-items: center; gap: 12px; transition: all 0.3s ease; }
.checklist-item i { width: 24px; text-align: center; font-size: 1.1rem; transition: all 0.3s; }
.checklist-item.active { color: #000; font-weight: 700; transform: translateX(5px); }
.checklist-item.active i { color: #3b82f6; }
.checklist-item.done { color: #10b981; font-weight: 600; opacity: 1; } 
.checklist-item.done i { color: #10b981; transform: scale(1.1); }

.auth-form { display: none; } .auth-form.active { display: block; }
.auth-tabs { display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.auth-tab { cursor: pointer; color: #999; font-weight: 600; } .auth-tab.active { color: #000; border-bottom: 2px solid #000; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #eee; cursor: pointer; transition: 0.2s; }
.cart-item:hover { background: #fafafa; }
.cart-item-name { font-weight:700; font-size:0.95rem; color: #3b82f6; text-decoration: underline; cursor: pointer; }

.profile-row { margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
.profile-label { font-size: 0.75rem; color: #999; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 5px; }
.profile-value { font-size: 1rem; font-weight: 600; }

.pg-step { animation: fadeIn 0.4s; }

#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: white; border-left: 4px solid #000; padding: 15px 20px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); min-width: 300px; transform: translateX(120%); transition: 0.3s; display: flex; gap: 15px; align-items: center; }
.toast.show { transform: translateX(0); }
.toast.success { border-color: #10b981; } .toast.success i { color: #10b981; }
.toast.error { border-color: #ef4444; } .toast.error i { color: #ef4444; }

.mobile-preview-btn { display: none; }
.mobile-preview-back { display: none; }

#aiModal.view-mode .modal-sidebar { display: none !important; }
#aiModal.view-mode .modal-preview { display: flex !important; width: 100%; }
#viewModeCloseBtn { display: none; position: absolute; bottom: 20px; right: 20px; z-index: 150; }
#aiModal.view-mode #viewModeCloseBtn { display: block; }

.hidden { display: none !important; }

.email-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.email-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e4e4e7;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s;
}

.email-item:hover {
    border-color: #d4d4d8;
    background: #fff;
}

.email-item-text {
    font-size: 0.95rem;
    color: #18181b;
    font-weight: 500;
}

.email-actions {
    display: flex;
    gap: 8px;
    opacity: 0.6; 
    transition: opacity 0.2s;
}

.email-item:hover .email-actions {
    opacity: 1;
}

.btn-icon-small {
    background: none;
    border: none;
    cursor: pointer;
    color: #71717a;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon-small:hover {
    background: #e4e4e7;
    color: #000;
}

.btn-icon-delete:hover {
    color: #ef4444; 
    background: #fee2e2;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: visible;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
}

.remove-img-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    transition: transform 0.2s;
}

.remove-img-btn:hover {
    transform: scale(1.1);
    background: #dc2626;
}

#editorToolbar {
    position: absolute;
    bottom: 30px;
    top: auto !important;
    left: 50%;
    transform: translateX(-50%);

    width: auto;
    min-width: 320px;
    max-width: 95%;

    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 10px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    
    gap: 8px;
    z-index: 2500;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transition: all 0.3s ease;

    overflow-x: auto;       
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
}

#editorToolbar::-webkit-scrollbar {
    display: none;
}

.dock-group { display: flex; align-items: center; gap: 10px; }
.dock-center { flex: 1; justify-content: center; border-left: 1px solid rgba(255,255,255,0.1); border-right: 1px solid rgba(255,255,255,0.1); padding: 0 10px; min-height: 24px; }

.dock-btn {
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.dock-btn i { font-size: 1.1rem; margin-bottom: 3px; color: white; }
.dock-btn:hover { color: white; transform: translateY(-2px); }
.dock-btn:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

.dock-btn-save {
    background: white;
    color: black !important;
    border-radius: 30px;
    padding: 8px 16px;
    font-weight: 700;
    flex-direction: row;
    gap: 6px;
}

.dock-btn-save i { color: black; margin: 0; font-size: 0.9rem; }
.dock-btn-save:hover { background: #e4e4e7; }

.dock-btn-publish {
    background: #3b82f6;
    color: white !important;
    border-radius: 30px;
    padding: 8px 16px;
    font-weight: 700;
    flex-direction: row;
    gap: 6px;
    margin-right: 4px;
}
.dock-btn-publish i { color: white; margin: 0; font-size: 0.9rem; }
.dock-btn-publish:hover { background: #2563eb; transform: translateY(-2px); }

.dock-btn-danger:hover { color: #ef4444 !important; }

.tool-label { color: #888; font-size: 0.65rem; margin-bottom: 2px; display: block; text-align: center; }
.color-picker-wrapper { display: flex; flex-direction: column; align-items: center; margin: 0 5px; }
.color-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid white; cursor: pointer; overflow: hidden; position: relative; }
.color-dot input { opacity: 0; width: 100%; height: 100%; cursor: pointer; position: absolute; top:0; left:0; }

.change-img-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
}

.change-img-btn:hover { background: rgba(255,255,255,0.2); }

.edit-status { display: flex; align-items: center; gap: 6px; color: #10b981; font-weight: 700; font-size: 0.75rem; background: rgba(16, 185, 129, 0.1); padding: 4px 10px; border-radius: 20px; }
.edit-pulse { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

@media (max-width: 900px) {
    :root { 
        --radius: 16px; 
        --header-height: 70px; 
    }

    .section-padding { padding: 3rem 0; }
    .hero { padding-top: 7rem; padding-bottom: 3rem; }

    h1 { font-size: 2.2rem; margin-bottom: 1rem; }
    h2 { font-size: 1.8rem; }
    p { font-size: 0.95rem; }

    .grid-3 { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
    }

    .card { 
        padding: 1.5rem; 
        min-height: auto; 
    }

    .icon-circle { width: 50px; height: 50px; font-size: 1.2rem; margin-bottom: 1rem; }
    .step-number { font-size: 2rem; top: 15px; right: 15px; }

    .custom-section { 
        grid-template-columns: 1fr; 
        padding: 2.5rem 1.5rem; 
        margin: 3rem auto; 
        border-radius: 16px;
        gap: 2.5rem;
    }

    .custom-section h2 { font-size: 1.6rem; }

    .stats-bar { 
        gap: 1.5rem; 
        padding: 1.5rem 0; 
        margin-bottom: 2rem;
        flex-direction: row; 
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .stat-item { flex: 1 1 40%; margin-bottom: 10px; }
    .stat-number { font-size: 1.3rem; }

    .nav-actions-wrapper { display: none; }

    #navLinks.active { 
        display: flex; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: white; 
        padding: 1.5rem; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
        gap: 1.5rem; 
        border-top: 1px solid #f0f0f0; 
        z-index: 99;
    }

    .nav-links { 
        display: flex; 
        flex-direction: column; 
        width: 100%; 
        align-items: flex-start;
        gap: 1rem;
    }

    .user-area {
        width: 100%;
        justify-content: flex-start;
        padding-left: 0;
        border-left: none;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .menu-toggle { display: block; font-size: 1.3rem; margin-left: auto; }

    .account-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        width: 180px !important;
        
        background: white !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
        border-radius: 12px !important;
        border: 1px solid #eee !important;
        
        margin-top: 10px;
        display: none;
        flex-direction: column;
        z-index: 2000;
    }

    .account-dropdown {
        position: relative; 
    }

    .account-dropdown.active .account-menu {
        display: flex !important;
    } 

    .modal-window { 
        width: 100%; 
        height: 100%; 
        border-radius: 0; 
        max-width: 100%; 
        margin: 0; 
        display: flex;
        flex-direction: column;
    }

    .modal-header { padding: 1rem; }
    .modal-body { flex-direction: column; }
    .modal-sidebar { width: 100%; height: auto; flex: 1; border-right: none; display: flex; flex-direction: column; }

    .sidebar-tabs { 
        overflow-x: auto; 
        white-space: nowrap; 
        padding: 0.5rem 1rem; 
        border-bottom: 1px solid #eee;
        -webkit-overflow-scrolling: touch;
        flex-shrink: 0;
    }

    .sidebar-tabs::-webkit-scrollbar { display: none; }
    .tab-btn { padding: 0.5rem 1rem; min-width: auto; }

    .sidebar-content { padding: 1.5rem 1.5rem 80px 1.5rem; flex:1; }

    .nav-buttons-container { 
        position: fixed; 
        bottom: 0; 
        left: 0; 
        width: 100%; 
        background: white; 
        border-top: 1px solid #eee; 
        padding: 12px 15px; 
        margin: 0; 
        z-index: 50; 
        box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
        display: flex; 
        gap: 10px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .form-group input, .form-group select, .form-group textarea { font-size: 16px !important; }

    .modal-preview { 
        display: none; 
        width: 100%; 
        height: 100%; 
        position: absolute; 
        top: 0; 
        left: 0; 
        z-index: 20; 
        padding-top: 0 !important;
        background: white; 
    }
    .show-mobile-preview .modal-sidebar { display: none; }
    .show-mobile-preview .modal-preview { display: flex; }

    .mobile-preview-back:not(.hidden) {
        display: flex !important;
        position: fixed !important;
        top: 15px; 
        left: 15px; 
        padding: 8px 16px;
        font-size: 0.85rem;
        z-index: 9999;
        background: #000000; 
        color: white; 
        border-radius: 30px; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        font-weight: 600; 
        cursor: pointer;
        align-items: center; 
        gap: 8px;
    }

    .mobile-preview-btn { 
        display: flex; 
        align-items: center; 
        justify-content: center;
        position: relative;
        width: 100%; 
        margin-bottom: 10px; 
        background: #18181b; 
        color: white; 
        border: 1px solid rgba(255,255,255,0.2); 
        padding: 12px 24px; 
        border-radius: 8px; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
        z-index: 10; 
        font-weight: 700; 
        cursor: pointer; 
        font-size: 1rem;
        animation: none;
    }

    #editorToolbar:not(.hidden) {
        position: fixed !important;
        width: 100% !important;
        left: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        transform: none !important;
        
        border-radius: 0 !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        background: rgba(24, 24, 27, 0.98) !important;
        backdrop-filter: blur(10px);
        
        padding: 8px 5px !important; 
        padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
        
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 2px !important;
        
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        z-index: 5000 !important;
    }

    #editorToolbar::-webkit-scrollbar { display: none; }

    .dock-btn {
        flex-shrink: 0 !important;
        width: 34px !important;
        height: 34px !important;
        background: rgba(255,255,255,0.03);
        border-radius: 6px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .dock-btn i {
        font-size: 0.9rem !important;
        margin: 0 !important;
        color: #d4d4d8 !important;
    }

    .dock-btn span { display: none !important; }

    .dock-group {
        display: flex;
        align-items: center;
        gap: 2px !important;
        padding-right: 4px;
        margin-right: 4px;
        border-right: 1px solid rgba(255,255,255,0.1);
        flex-shrink: 0;
    }

    .dock-center {
        display: flex;
        align-items: center;
        gap: 2px !important;
        padding: 0 !important;
        border: none !important;
        flex-shrink: 0;
    }

    .dock-btn-save {
        position: sticky !important;
        right: 2px;
        height: 34px !important;
        background: #fff !important;
        color: #000 !important;
        width: auto !important;
        padding: 0 12px !important;
        border-radius: 20px !important;
        box-shadow: -5px 0 10px rgba(0,0,0,0.3);
        z-index: 10;
        margin-left: auto !important;
    }
    
    .dock-btn-save i { color: black !important; font-size: 0.8rem !important; margin-right: 4px !important; }
    .dock-btn-save span { display: inline !important; font-size: 0.75rem !important; font-weight: 800; }

    .dock-btn-publish {
        height: 34px !important;
        padding: 0 12px !important;
        border-radius: 20px !important;
    }
    .dock-btn-publish span { display: none !important; }

    #textTools {
        display: flex !important;
        align-items: center;
        gap: 2px !important;
    }

    .color-dot {
        width: 22px !important;
        height: 22px !important;
        border: 1px solid rgba(255,255,255,0.5);
    }

    .tool-separator { display: none !important; }
    
    .mobile-hidden { display: none !important; }
    .desktop-only { display: none !important; }
    .mobile-only-link { display: block; margin-top: 10px; border-top: 1px solid #eee; padding-top: 10px;}
    .desktop-hidden { display: flex; width: 100%; margin-top: 15px; border-radius: 8px; justify-content: center; gap: 10px; }

    .nav-links-wrapper {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-top: 1px solid #f0f0f0;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-links-wrapper.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .header-right-side .cart-wrap {
        font-size: 1.2rem;
        padding: 5px;
    }
    
    .header-right-side .account-dropdown i {
        font-size: 1.4rem;
    }
}

#editorToolbar {
    overflow: visible !important; 
}

.add-menu-popup {
    position: fixed !important; 
    bottom: 90px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    
    background: #27272a;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 6px;
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 10000 !important;
}

.add-menu-popup div {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.add-menu-popup div:hover {
    background: rgba(255,255,255,0.1);
}

.add-menu-popup div i {
    color: #a1a1aa;
    width: 16px;
    text-align: center;
}

.add-menu-popup.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    #editorToolbar:not(.hidden) {
        overflow-x: auto !important;
        transform: none !important;
    }
}

.header-right-side {
    display: flex;
    align-items: center;
}

.mobile-only-link { display: none; }
.desktop-hidden { display: none; }

.nav-links-wrapper {
    display: none;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-links-wrapper a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn { 
    0% { transform: scale(0); opacity: 0; } 
    80% { transform: scale(1.1); } 
    100% { transform: scale(1); opacity: 1; } 
}


.mobile-preview-back {
    display: none !important;
}

@media (max-width: 900px) {
    .mobile-preview-back {
        display: flex !important;
    }
}