:root {
    --bg-body: #ffffff; --bg-secondary: #f8fafc; --bg-card: #ffffff; --bg-glass: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b; --text-muted: #64748b;
    --primary: #dc2626; --primary-dark: #b91c1c; --primary-light: #fecaca;
    --accent: #0f172a; --border: #e2e8f0; --shadow: 0 10px 30px -10px rgba(220, 38, 38, 0.12);
    --admin-bg: #1e1e2e; --admin-sidebar: #11111b; --admin-input: #313244; --admin-text: #cdd6f4;
}
html.dark-mode {
    --bg-body: #0f172a; --bg-secondary: #1e293b; --bg-card: #1e293b; --bg-glass: rgba(30, 41, 59, 0.85);
    --text-main: #f1f5f9; --text-muted: #94a3b8; --primary: #ef4444; --primary-dark: #dc2626;
    --primary-light: rgba(239, 68, 68, 0.15); --accent: #ef4444; --border: #334155; --shadow: 0 10px 30px -10px rgba(220, 38, 38, 0.25);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { width: 100%; max-width: 100vw; overflow-x: hidden; scroll-behavior: smooth; }
body { width: 100%; max-width: 100vw; overflow-x: hidden; font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--bg-body); color: var(--text-main); transition: background-color 0.3s ease, color 0.3s ease; }
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: 0.3s; } ul { list-style: none; } img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; }
.section-padding { padding: 80px 0; }
.section-padding:not(#hero-section) { content-visibility: auto; contain-intrinsic-size: auto 500px; }
.btn { display: inline-block; padding: 14px 36px; background: var(--primary); color: #fff; border-radius: 8px; font-weight: 600; border: 2px solid transparent; cursor: pointer; font-size: 15px; }
.btn:hover { background: transparent; border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

#preloader { display: none !important; }
#back-to-top { position: fixed; bottom: 100px; right: 30px; width: 45px; height: 45px; background: var(--accent); color: #fff; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; z-index: 998; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: 0.3s; }
#back-to-top:hover { background: var(--primary); transform: translateY(-3px); }

nav { position: sticky; top: 0; background: var(--bg-glass); backdrop-filter: blur(14px); padding: 10px 0; z-index: 1000; border-bottom: 1px solid var(--border); width: 100%; }
nav .container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}
.logo-img {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    object-position: left center;
    border-radius: 0;
    background: transparent !important;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    display: block;
}
.logo-link:hover .logo-img { transform: scale(1.03); }
.logo-text-wrap { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; min-width: 0; flex-shrink: 0; }
.logo-text { font-size: 28px; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; font-family: 'Outfit', sans-serif; white-space: nowrap; }
.logo-tagline { font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
html.dark-mode .logo-text { color: #fff; }
html.dark-mode .logo-tagline { color: #cbd5e1; }
.nav-links { display: flex; gap: 20px; align-items: center; flex-wrap: nowrap; flex-shrink: 0; }
.nav-btn-admin { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; padding: 8px 16px; border-radius: 20px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); transition: 0.3s; white-space: nowrap; }
.nav-btn-admin:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.theme-toggle { cursor: pointer; font-size: 20px; color: var(--text-main); }
.menu-toggle { display: none; font-size: 24px; cursor: pointer; }
.lang-switcher { position: relative; }
.lang-current { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-main); transition: 0.3s; user-select: none; white-space: nowrap; }
.lang-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); flex-shrink: 0; display: block; }
.lang-current:hover { border-color: var(--primary); color: var(--primary); }
.lang-current .fa-chevron-down { font-size: 10px; transition: transform 0.3s; }
.lang-current.open .fa-chevron-down { transform: rotate(180deg); }
.lang-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; min-width: 150px; box-shadow: var(--shadow); overflow: hidden; z-index: 1100; }
.lang-menu.show { display: block; }
.lang-option { padding: 10px 16px; cursor: pointer; font-size: 14px; font-weight: 500; transition: 0.2s; display: flex; align-items: center; gap: 10px; color: var(--text-main); }
.lang-option:hover { background: var(--bg-secondary); color: var(--primary); }
.lang-option.active { background: var(--primary); color: #fff; }

.hero { min-height: 92vh; display: flex; align-items: center; position: relative; overflow: hidden; background: #0a0404; color: #fff; text-align: center; width: 100%; }
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(1.08) contrast(1.12) saturate(1.15);
    transform: scale(1.04);
    content-visibility: auto;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 5, 5, 0.42) 0%, rgba(30, 10, 10, 0.32) 50%, rgba(15, 23, 42, 0.48) 100%),
        linear-gradient(to bottom, rgba(10, 4, 4, 0.05), rgba(10, 4, 4, 0.55));
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-content { position: relative; z-index: 2; }
@keyframes heroKenBurns {
    from { transform: scale(1.02); }
    to { transform: scale(1.07); }
}
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #dc2626, #0f172a, #dc2626); z-index: 3; }
.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.55));
}
.hero p {
    font-size: 1.15rem;
    color: #f1f5f9;
    margin-bottom: 35px;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); height: 350px; object-fit: cover; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--primary); }
.about-text p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }

.why-us { background-color: var(--bg-secondary); width: 100%; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.why-card { background: var(--bg-card); padding: 30px; border-radius: 16px; text-align: center; border: 1px solid var(--border); transition: 0.3s; position: relative; overflow: hidden; }
.why-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transition: transform 0.3s; }
.why-card:hover::before { transform: scaleX(1); }
.why-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.why-icon { font-size: 40px; color: var(--primary); margin-bottom: 20px; }

.section-header { text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); }
.section-header h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--primary); margin: 12px auto 0; border-radius: 2px; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.service-card { background: var(--bg-card); border-radius: 18px; overflow: hidden; border: 1px solid var(--border); transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--primary); }
.service-img { height: 180px; width: 100%; object-fit: cover; }
.service-content { padding: 25px; }
.service-content h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--primary); }
.service-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.service-demo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 10px;
    transition: 0.25s ease;
}
.service-demo-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.service-links-block {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.service-links-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
}
.service-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.service-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    transition: 0.25s ease;
}
.service-link-chip:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.12);
}
.service-link-chip i { font-size: 11px; opacity: 0.85; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.portfolio-card { background: var(--bg-card); border-radius: 18px; overflow: hidden; border: 1px solid var(--border); transition: 0.3s; }
.portfolio-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.portfolio-img { height: 200px; width: 100%; object-fit: cover; }
.portfolio-content { padding: 20px; }
.portfolio-content h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-main); }
.portfolio-content p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--bg-card); padding: 30px; border-radius: 16px; border: 1px solid var(--border); transition: 0.3s; position: relative; }
.testimonial-card:hover { border-color: var(--primary); }
.testimonial-card::before { content: '\201C'; position: absolute; top: 10px; right: 20px; font-size: 80px; color: var(--primary-light); font-family: serif; line-height: 1; }
.testi-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 15px; }
.testi-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.testi-name { font-weight: 700; color: var(--text-main); font-size: 0.95rem; }
.testi-role { font-size: 0.8rem; color: var(--text-muted); }

.timeline-section { background-color: var(--bg-secondary); width: 100%; }
.timeline { position: relative; max-width: 1000px; margin: 40px auto 0; }
.timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--border); top: 0; bottom: 0; left: 50%; margin-left: -2px; }
.container-time { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.container-time::after { content: ''; position: absolute; width: 20px; height: 20px; right: -10px; background-color: var(--bg-body); border: 4px solid var(--primary); top: 22px; border-radius: 50%; z-index: 1; }
.left { left: 0; } .right { left: 50%; } .right::after { left: -10px; }
.time-content { padding: 20px 30px; background-color: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.time-content:hover { border-color: var(--primary); }
.time-year { font-weight: 700; color: var(--primary); margin-bottom: 5px; display: block; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat-item { text-align: center; padding: 30px; background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border); transition: 0.3s; }
.stat-item:hover { border-color: var(--primary); }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--primary); margin-bottom: 5px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-box { background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid var(--border); }
.contact-company-block { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.contact-company-brand { font-family: 'Outfit', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--text-main); margin: 0 0 6px; line-height: 1.3; }
.contact-company-pt { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); margin: 0; line-height: 1.5; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 30px; }
.info-item i { font-size: 24px; color: var(--primary); margin-right: 20px; margin-top: 5px; }
.form-control { width: 100%; padding: 15px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; color: var(--text-main); margin-bottom: 15px; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.contact-form { position: relative; }

footer { background: var(--accent); padding: 60px 0 20px; text-align: center; color: #94a3b8; width: 100%; }
.footer-logo-link { display: inline-flex; align-items: center; gap: 18px; margin-bottom: 15px; }
.footer-logo-mark .footer-logo-img,
.footer-logo-img {
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    object-position: left center;
    border-radius: 0;
    background: transparent !important;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
    display: block;
}
.footer-text-wrap { display: flex; flex-direction: column; gap: 4px; line-height: 1.2; text-align: left; flex-shrink: 0; }
.footer-logo-text { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: -0.5px; font-family: 'Outfit', sans-serif; }
.footer-logo-tagline { font-size: 13px; font-weight: 500; color: #cbd5e1; letter-spacing: 0.03em; }
.wa-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 999; transition: 0.3s; }
.wa-float:hover { transform: scale(1.1); }

.dash-card-click { cursor: pointer; transition: transform 0.2s, border-color 0.2s; }
.dash-card-click:hover { transform: translateY(-2px); border-color: var(--primary); }
.visitor-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 8px; }
.visitor-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #45475a; }
.visitor-table { min-width: 1100px; }
.visitor-table code { font-size: 12px; color: #cdd6f4; background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; }
.visitor-page-cell { max-width: 220px; word-break: break-word; font-size: 13px; }
.visitor-page-cell a { color: #89b4fa; }
.vis-status { font-size: 12px; font-weight: 600; white-space: nowrap; }
.vis-status.online { color: #a6e3a1; }
.vis-status.online i { font-size: 8px; vertical-align: middle; margin-right: 4px; }
.site-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #45475a; color: #cdd6f4; }
.site-badge-main { background: rgba(220,38,38,0.2); color: #fca5a5; }
.site-badge-web { background: rgba(59,130,246,0.2); color: #93c5fd; }

#admin-panel, #login-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--admin-bg); color: var(--admin-text); z-index: 2000; }
#login-modal { background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.admin-container { display: flex; height: 100%; }
.admin-sidebar { width: 250px; background: var(--admin-sidebar); padding: 20px; display: flex; flex-direction: column; border-right: 1px solid #45475a; overflow-y: auto; flex-shrink: 0; }
.admin-sidebar-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #45475a; }
.admin-sidebar-logo img { height: 56px; border-radius: 0; object-fit: contain; background: transparent; }
.admin-sidebar-logo span { color: #fff; font-weight: 700; font-size: 18px; font-family: 'Outfit', sans-serif; }
.admin-nav button { background: none; border: none; color: var(--admin-text); width: 100%; text-align: left; padding: 15px; cursor: pointer; border-radius: 8px; margin-bottom: 5px; font-size: 16px; transition: 0.2s; display: flex; align-items: center; gap: 10px; }
.admin-nav button:hover, .admin-nav button.active { background: var(--primary); color: #fff; }
.admin-content { flex: 1; padding: 40px; overflow-y: auto; min-width: 0; }
.admin-section { display: none; } .admin-section.active { display: block; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #45475a; flex-wrap: wrap; gap: 10px; }
.form-group-admin { margin-bottom: 20px; }
.form-group-admin label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: #bac2de; }
.admin-input { width: 100%; padding: 12px; background: var(--admin-input); border: 1px solid #45475a; color: #fff; border-radius: 6px; font-family: inherit; }
.admin-input:focus { outline: none; border-color: var(--primary); }
.repeater-item { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 8px; margin-bottom: 15px; border: 1px solid #45475a; transition: 0.3s; }
.json-tools { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.btn-json { padding: 10px 20px; border-radius: 6px; border: none; cursor: pointer; font-weight: bold; color: #fff; font-size: 14px; white-space: nowrap; }
.btn-download { background: #a6e3a1; color: #1e1e2e; } .btn-upload { background: #89b4fa; color: #1e1e2e; } .btn-save { background: var(--primary); color: #fff; } .btn-cancel { background: #f38ba8; color: #1e1e2e; }
.btn-remove { background: #f38ba8; color: #1e1e2e; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; float: right; }
.login-box { background: var(--bg-card); padding: 40px; border-radius: 16px; width: 100%; max-width: 480px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid var(--border); }
.login-box h3 { color: var(--text-main); margin-bottom: 20px; font-size: 22px; }
.login-box .login-logo { height: 120px; margin: 0 auto 24px; }
#login-modal .admin-input { background-color: #f1f5f9 !important; color: #1e293b !important; border: 1px solid #cbd5e1 !important; margin-bottom: 20px; text-align: center; }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: rgba(0,0,0,0.2); border-radius: 8px; overflow: hidden; }
.admin-table th { background: rgba(255,255,255,0.05); padding: 12px; text-align: left; font-size: 14px; color: #f87171; white-space: nowrap; }
.admin-table td { padding: 12px; border-top: 1px solid #45475a; font-size: 13px; color: #cdd6f4; }

.admin-logo-preview { max-width: 280px; max-height: 176px; border-radius: 8px; margin-top: 10px; border: 2px solid #45475a; }
.admin-logo-preview--on-light { background: #f8fafc; padding: 12px; }
.admin-logo-preview--on-dark { background: #0f172a; padding: 12px; border-color: #334155; }
.admin-lang-select { display: flex; gap: 5px; background: rgba(0,0,0,0.3); border-radius: 8px; padding: 4px; }
.admin-lang-btn { padding: 6px 14px; border: none; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 700; background: transparent; color: #6c7086; transition: 0.2s; }
.admin-lang-btn.active { background: var(--primary); color: #fff; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.dash-card { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 12px; border-left: 4px solid var(--primary); }
.dash-card h4 { color: #a6adc8; font-size: 13px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.dash-card .num { font-size: 28px; font-weight: 700; color: #f5f5f5; }

.file-upload-wrapper { position: relative; overflow: hidden; display: inline-block; cursor: pointer; margin-top: 8px; }
.file-upload-wrapper btn { background: #45475a; color: #cdd6f4; padding: 8px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.file-upload-wrapper input[type=file] { position: absolute; left: 0; top: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.pi-card { background: rgba(255,255,255,0.04); border: 1px solid #45475a; border-radius: 12px; padding: 20px; margin-bottom: 16px; transition: 0.2s; }
.pi-card:hover { border-color: #585b70; }
.pi-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.pi-card-title { font-weight: 700; font-size: 16px; color: #f5f5f5; }
.pi-card-meta { font-size: 12px; color: #7f849c; }
.pi-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pi-btn { padding: 6px 14px; border: none; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600; transition: 0.15s; display: inline-flex; align-items: center; gap: 5px; }
.pi-btn-view { background: #89b4fa; color: #1e1e2e; } .pi-btn-edit { background: #f9e2af; color: #1e1e2e; } .pi-btn-delete { background: #f38ba8; color: #1e1e2e; } .pi-btn-print { background: #a6e3a1; color: #1e1e2e; }
.pi-btn-create { background: var(--primary); color: #fff; padding: 10px 22px; font-size: 14px; }
.pi-btn:hover { opacity: 0.85; }
.pi-status { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.pi-status-draft { background: #45475a; color: #cdd6f4; } .pi-status-sent { background: #89b4fa; color: #1e1e2e; } .pi-status-accepted, .pi-status-paid { background: #a6e3a1; color: #1e1e2e; } .pi-status-rejected, .pi-status-overdue { background: #f38ba8; color: #1e1e2e; }
.pi-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .pi-form-grid .full-span { grid-column: 1 / -1; }
.pi-items-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.pi-items-table th { background: rgba(255,255,255,0.06); padding: 8px 10px; text-align: left; font-size: 12px; color: #f87171; border-bottom: 1px solid #45475a; }
.pi-items-table td { padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.pi-items-table input { background: var(--admin-input); border: 1px solid #45475a; color: #fff; border-radius: 4px; padding: 6px 8px; width: 100%; font-size: 13px; }
.pi-total-row { display: flex; justify-content: flex-end; gap: 30px; padding: 8px 0; font-size: 14px; }
.pi-total-row.grand { font-size: 18px; font-weight: 700; color: #f9e2af; border-top: 2px solid #45475a; padding-top: 12px; margin-top: 4px; }
.pi-empty { text-align: center; padding: 60px 20px; color: #6c7086; }

.print-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 3000; overflow-y: auto; padding: 30px; backdrop-filter: blur(4px); }
.print-overlay.show { display: flex; justify-content: center; align-items: flex-start; }
.print-container { background: #fff; color: #1e293b; max-width: 800px; width: 100%; padding: 40px; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); font-family: 'Plus Jakarta Sans', sans-serif; position: relative; box-sizing: border-box; }
#print-content { width: 100%; max-width: 100%; box-sizing: border-box; overflow: visible; }
.print-close { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 24px; cursor: pointer; color: #64748b; z-index: 10; }
.print-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 30px; }
.print-actions button { padding: 10px 24px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 14px; }
.print-btn-pdf { background: #dc2626; color: #fff; }
.print-btn-close { background: #e2e8f0; color: #475569; }

.doc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 35px; border-bottom: 3px solid #dc2626; padding-bottom: 25px; flex-wrap: wrap; }
.doc-header-left { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 240px; }
.doc-header-left img { height: 64px; width: auto; max-width: 100%; }
.doc-header-left .doc-brand { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 700; color: #dc2626; line-height: 1.2; }
.doc-header-left .doc-brand-sub { font-size: 10px; color: #64748b; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; }
.doc-header-right { text-align: right; flex: 0 0 auto; }
.doc-type-label { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 700; color: #0f172a; letter-spacing: 1px; }
.doc-meta-line { font-size: 13px; color: #64748b; margin-top: 4px; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.doc-party-box { background: #f8fafc; padding: 18px; border-radius: 8px; border-left: 4px solid #dc2626; }
.doc-party-label { font-size: 11px; font-weight: 700; color: #dc2626; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.doc-party-name { font-weight: 700; font-size: 15px; color: #0f172a; margin-bottom: 4px; }
.doc-party-pt { font-size: 13px; font-weight: 600; color: #334155; margin-top: 4px; line-height: 1.4; }
.doc-party-detail { font-size: 13px; color: #64748b; line-height: 1.6; }
.doc-section-title { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700; color: #0f172a; margin: 24px 0 12px; padding-bottom: 6px; border-bottom: 2px solid #e2e8f0; }
.doc-items-table { width: 100%; max-width: 100%; border-collapse: collapse; margin: 12px 0; table-layout: fixed; }
.doc-items-table th { background: #0f172a; color: #fff; padding: 8px 6px; font-size: 11px; text-transform: uppercase; text-align: left; }
.doc-items-table th:last-child, .doc-items-table td:last-child { text-align: right; }
.doc-items-table td { padding: 8px 6px; font-size: 11px; border-bottom: 1px solid #e2e8f0; color: #334155; vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
.doc-items-table th:nth-child(1), .doc-items-table td:nth-child(1) { width: 7%; text-align: center; }
.doc-items-table th:nth-child(2), .doc-items-table td:nth-child(2) { width: 34%; }
.doc-items-table th:nth-child(3), .doc-items-table td:nth-child(3) { width: 10%; text-align: center; }
.doc-items-table th:nth-child(4), .doc-items-table td:nth-child(4) { width: 24%; text-align: right; white-space: nowrap; font-size: 10px; }
.doc-items-table th:nth-child(5), .doc-items-table td:nth-child(5) { width: 25%; text-align: right; white-space: nowrap; font-size: 10px; }
.doc-totals { margin-left: auto; width: 100%; max-width: 340px; margin-top: 16px; box-sizing: border-box; }
.doc-total-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; color: #475569; }
.doc-total-row span:first-child { flex: 1 1 auto; min-width: 0; }
.doc-total-row span:last-child { flex: 0 0 auto; white-space: nowrap; text-align: right; }
.doc-total-row.grand { font-size: 16px; font-weight: 700; color: #dc2626; border-top: 2px solid #0f172a; padding-top: 10px; margin-top: 6px; }
.doc-terms {
    font-size: 13px;
    color: #334155;
    line-height: 1.7;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 4px;
    white-space: normal;
}
.doc-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-between; font-size: 11px; color: #94a3b8; }

#toast-container { position: fixed; top: 24px; right: 24px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast { padding: 14px 18px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,0.18); animation: toastIn 0.25s ease; }
.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }
.toast-info { background: #0f172a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media print {
    #public-view, #login-modal, #admin-panel, #preloader, #back-to-top, .wa-float, #toast-container, #portfolio-modal, #nav-overlay { display: none !important; }
    .print-overlay { display: block !important; position: static !important; background: #fff !important; padding: 0 !important; backdrop-filter: none !important; overflow: visible !important; width: 100% !important; height: auto !important; z-index: auto !important; }
    .print-container { position: static !important; width: 100% !important; max-width: 100% !important; padding: 20px !important; box-shadow: none !important; border-radius: 0 !important; margin: 0 !important; background: #fff !important; color: #1e293b !important; }
    .print-container, .print-container * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .print-close, .print-actions { display: none !important; }
    .doc-items-table th { background: #0f172a !important; color: #fff !important; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; } .about-grid, .contact-grid { grid-template-columns: 1fr; } .nav-links { display: none; } .menu-toggle { display: block; }
    .nav-links.show-mobile { display: flex; flex-direction: column; position: absolute; top: 90px; left: 0; width: 100%; background: var(--bg-card); padding: 20px; gap: 15px; border-bottom: 1px solid var(--border); z-index: 1000; }
    .timeline::after { left: 31px; } .container-time { width: 100%; padding-left: 70px; padding-right: 25px; } .container-time::after { left: 21px; } .right { left: 0; }
    .admin-sidebar { width: 60px; } .admin-sidebar .admin-sidebar-logo span, .admin-nav button span { display: none; } .admin-sidebar .admin-sidebar-logo img { height: 44px; } .admin-nav button { text-align: center; font-size: 20px; justify-content: center; }
    .logo-img { height: 42px; max-width: 120px; }
    .logo-text { font-size: 22px; } .logo-tagline { font-size: 10px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; } .doc-header { flex-direction: column; gap: 20px; } .doc-parties { grid-template-columns: 1fr; } .pi-form-grid { grid-template-columns: 1fr; }
}
