/* ═══════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════ */
:root {
    --primary:      #FF7A00;
    --primary-dark: #E56A00;
    --primary-soft: rgba(255,122,0,0.12);
    --bg-main:  #0A0A0A;
    --bg-card:  #141414;
    --bg-elev:  #1C1C1C;
    --border:   #2A2A2A;
    --text-main:  #FFFFFF;
    --text-muted: #9A9A9A;
    --success: #22C55E;
    --danger:  #EF4444;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

html, body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; color: inherit; }
input { font-family: inherit; outline: none; }

/* ═══ Buttons ═══ */
.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    transition: all .15s;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.ld-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,122,0,0.3);
}
.ld-btn-primary:active { transform: scale(0.96); }
.ld-btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.ld-btn-outline:active { background: var(--primary-soft); }
.ld-btn-lg { padding: 13px 22px; font-size: 14.5px; border-radius: 12px; }
.ld-btn-block { width: 100%; padding: 13px; }

/* ═══ Topbar ═══ */
.ld-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.ld-logo img { height: 34px; width: auto; }
.ld-topbar-right { display: flex; gap: 8px; }

/* ═══ Hero ═══ */
.ld-hero {
    padding: 40px 20px 34px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,122,0,0.22), transparent 55%),
        linear-gradient(180deg, #0A0A0A, #050505);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.ld-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(255,122,0,0.18), transparent 70%);
    pointer-events: none;
}
.ld-hero-inner { max-width: 520px; margin: 0 auto; position: relative; z-index: 1; }

.ld-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,122,0,0.12);
    border: 1px solid rgba(255,122,0,0.35);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}

.ld-hero-title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.6px;
    line-height: 1.1;
    margin-bottom: 8px;
}
.ld-brand { color: #fff; }
.ld-brand-accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ld-hero-sub {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.ld-hero-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 26px;
    align-items: center;
}
.ld-hero-benefits li {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ld-check {
    color: var(--success);
    font-weight: 900;
    font-size: 15px;
    background: rgba(34,197,94,0.15);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ld-hero-cta {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══ Tabs ═══ */
.ld-tabs-wrap {
    position: sticky;
    top: 59px;
    z-index: 90;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
}
.ld-tabs {
    display: flex;
    gap: 6px;
    max-width: 620px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
}
.ld-tab {
    flex: 1;
    padding: 11px 8px;
    border-radius: 9px;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    transition: all .2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.ld-tab.active {
    background: var(--primary-soft);
    color: var(--primary);
}
.ld-tab-count { font-size: 11px; opacity: 0.8; }

/* ═══ Content ═══ */
.ld-content {
    display: none;
    max-width: 620px;
    margin: 0 auto;
    padding: 16px;
}
.ld-content.active { display: block; animation: ldFade .3s; }

@keyframes ldFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══ Search ═══ */
.ld-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--bg-elev);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    color: var(--text-muted);
}
.ld-search:focus-within {
    border-color: var(--primary);
    color: var(--primary);
}
.ld-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 14px;
}
.ld-search input::placeholder { color: #666; }

/* ═══ Panel Cards ═══ */
.ld-panel-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    transition: border-color .15s;
}
.ld-panel-card:hover { border-color: var(--primary); }

.ld-panel-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #000;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
}
.ld-panel-logo img { width: 100%; height: 100%; object-fit: cover; }

.ld-panel-info { flex: 1; min-width: 0; }
.ld-panel-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.ld-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--primary);
    text-decoration: none;
    padding: 2px 8px;
    background: rgba(255,122,0,0.08);
    border: 1px solid rgba(255,122,0,0.22);
    border-radius: 6px;
    font-weight: 600;
    transition: all .15s;
    margin-bottom: 5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ld-panel-link:active { background: rgba(255,122,0,0.16); }

.ld-lock-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #FACC15;
    background: rgba(250,204,21,0.10);
    border: 1px dashed rgba(250,204,21,0.4);
    padding: 4px 10px;
    border-radius: 7px;
    letter-spacing: 0.2px;
    margin-top: 3px;
}

.ld-create-btn {
    background: var(--primary);
    color: #fff;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform .15s;
}
.ld-create-btn:active { transform: scale(0.94); }

.ld-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ═══ Services Grid ═══ */
.ld-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ld-service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 150px;
    justify-content: center;
    transition: all .15s;
}
.ld-service-card:active {
    transform: scale(0.97);
    border-color: var(--primary);
}
.ld-service-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
}
.ld-service-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.ld-service-title {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.ld-service-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.ld-note {
    text-align: center;
    margin-top: 20px;
    padding: 14px;
    background: var(--primary-soft);
    border: 1px solid rgba(255,122,0,0.25);
    border-radius: 12px;
    font-size: 12.5px;
    color: var(--primary);
    font-weight: 600;
}

/* ═══ Footer CTA ═══ */
.ld-footer-cta {
    max-width: 620px;
    margin: 20px auto 10px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(255,122,0,0.12), rgba(255,122,0,0.02));
    border: 1px solid rgba(255,122,0,0.28);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.ld-footer-cta-text { display: flex; flex-direction: column; gap: 2px; }
.ld-footer-cta-text strong { font-size: 14.5px; }
.ld-footer-cta-text span { font-size: 12px; color: var(--text-muted); }

.ld-copyright {
    text-align: center;
    padding: 24px 16px 90px;
    font-size: 11.5px;
    color: #555;
}

/* ═══ Modal ═══ */
.ld-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ld-modal.show {
    display: flex;
    animation: ldFade .2s;
}
.ld-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 24px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    animation: ldPop .25s;
}
@keyframes ldPop {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.ld-modal-icon { font-size: 40px; margin-bottom: 12px; }
.ld-modal-title { font-size: 19px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px; }
.ld-modal-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.5;
}
.ld-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ld-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-elev);
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ld-modal-close:active { background: #333; }

/* ═══ Floating Buttons ═══ */
.ld-floating {
    position: fixed;
    right: 14px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 95;
}
.ld-float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform .15s;
}
.ld-float-btn:active { transform: scale(0.9); }
.ld-float-btn svg { width: 26px; height: 26px; }
.ld-float-wa {
    background: #25D366;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}
.ld-float-tg {
    background: #229ED9;
    box-shadow: 0 6px 20px rgba(34,158,217,0.4);
}

/* ═══ Mobile tweaks ═══ */
@media (max-width: 400px) {
    .ld-hero-title { font-size: 28px; }
    .ld-hero-cta .ld-btn-lg { padding: 11px 16px; font-size: 13.5px; }
    .ld-services-grid { grid-template-columns: 1fr; }
    .ld-footer-cta { flex-direction: column; text-align: center; }
}