

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

:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f4f4f5;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --border-primary: #e4e4e7;
    --border-secondary: #d4d4d8;
    --border-hover: #a1a1aa;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-tertiary: #71717a;
    --text-muted: #a1a1aa;
    --accent: #16a34a;
    --accent-soft: #dcfce7;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-primary);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: rgba(22, 163, 74, 0.2);
    color: var(--text-primary);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-secondary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

a { text-decoration: none; color: inherit; }

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    transition: opacity 0.2s;
}

.nav-brand span { color: var(--text-muted); }

.nav-brand:hover { opacity: 0.75; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-links a.nav-active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    font-weight: 600;
}

.nav-links form button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
}

.nav-links form button:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-menu-label { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-section {
    padding: 5rem 0 4rem;
}

.page-header {
    max-width: 44rem;
    margin-bottom: 3rem;
}

.page-badge {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-block;
}

.page-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.page-desc {
    font-size: 1.0625rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    max-width: 40rem;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    z-index: 0;
}

.hero {
    position: relative;
    min-height: 42rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 5rem 1.5rem 4rem;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(255,255,255,0.6), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 52rem;
}

.hero-badge {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    color: var(--text-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 999px;
    background: var(--bg-secondary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(135deg, #000000 0%, #52525b 55%, #a1a1aa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    max-width: 34rem;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.25);
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.25s ease;
}

.card-hover:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.card-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    max-width: 34rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.625rem;
    font-family: var(--font-sans);
}

.form-label .req { color: var(--accent); }

.form-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--border-hover);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.05);
}

.form-input::placeholder { color: var(--text-muted); }

textarea.form-input {
    min-height: 9rem;
    resize: vertical;
    line-height: 1.6;
}

select.form-input {
    appearance: auto;
    cursor: pointer;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.input-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.5rem;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-success {
    background: var(--accent-soft);
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.ticket-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 1rem;
    overflow: hidden;
}

.ticket-head {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ticket-title {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ticket-body { padding: 1.5rem; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: var(--font-sans);
    border-radius: 999px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-gray { background: var(--bg-tertiary); color: var(--text-tertiary); }
.badge-green { background: var(--accent-soft); color: #166534; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-dark { background: #18181b; color: #fff; }


.chat-thread { display: flex; flex-direction: column; gap: 1rem; }

.chat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-item.user { align-items: flex-start; }
.chat-item.admin { align-items: flex-end; }

.chat-meta {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    color: var(--text-muted);
}

.chat-bubble {
    max-width: 75%;
    padding: 0.875rem 1.125rem;
    border-radius: 1rem;
    font-size: 0.90625rem;
    line-height: 1.65;
    white-space: pre-line;
    word-break: break-word;
}

.chat-item:not(.admin) .chat-bubble {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-top-left-radius: 0.25rem;
    color: var(--text-primary);
}

.chat-item.admin .chat-bubble {
    background: #18181b;
    color: #ffffff;
    border-top-right-radius: 0.25rem;
}

.stat-card {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.875rem;
    background: var(--bg-card);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.table-wrap {
    border: 1px solid var(--border-primary);
    border-radius: 0.875rem;
    overflow-x: auto;
    background: var(--bg-card);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th {
    text-align: left;
    padding: 0.75rem 1.25rem;
    font-size: 0.6875rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    white-space: nowrap;
}

.table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-primary);
    vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }

.table tbody tr {
    transition: background 0.15s ease;
}

.table tbody tr:hover { background: var(--bg-card-hover); }

.mono {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.template-card {
    border: 1px solid var(--border-primary);
    border-radius: 0.875rem;
    background: var(--bg-card);
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
}

.template-card:hover {
    border-color: var(--border-secondary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.template-body {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    white-space: pre-line;
    max-height: 9rem;
    overflow-y: auto;
    margin-top: 0.75rem;
}

.template-tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}

.pagination .pagination-links { display: flex; gap: 0.25rem; }

.pagination .pagination-links a,
.pagination .pagination-links span {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.pagination .pagination-links a:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.pagination .pagination-links span[aria-current="page"] {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

.pagination .pagination-links span.disabled-link { opacity: 0.4; cursor: not-allowed; }

.auth-card {
    max-width: 420px;
    margin: 4rem auto;
}

.site-footer {
    border-top: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--text-muted); }

.footer-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 260px;
}

.footer-col-title {
    font-size: 0.6875rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.footer-col a { color: var(--text-secondary); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

.alert-flash {
    margin-bottom: 1.5rem;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.fade-up {
    opacity: 0;
    animation: fadeUp 0.7s ease-out forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { min-height: 34rem; padding: 4rem 1rem 3rem; }
    .chart-bubble { max-width: 90%; }
    .chat-bubble { max-width: 90%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .nav-container { padding: 0 1rem; }
    .nav-brand { font-size: 1rem; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-primary);
        padding: 0.375rem 0;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s ease;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a, .nav-links form {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9375rem !important;
        font-weight: 500;
        border-radius: 0;
        border-bottom: 1px solid var(--border-primary);
    }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .table th, .table td { padding: 0.625rem 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
    .fade-up { animation: none; opacity: 1; }
}

/* --- Steps indicator --- */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    min-width: 88px;
}

.step-dot {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.step-dot.active {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12), 0 6px 18px rgba(22, 163, 74, 0.25);
}

.step-dot.done {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.step-item.active .step-label {
    color: var(--text-primary);
    font-weight: 800;
}

.step-item.done .step-label { color: var(--accent); }

.step-line {
    width: 96px;
    height: 3px;
    border-radius: 2px;
    background: var(--border-primary);
    margin: 21.5px 0.75rem 0;
    transition: all 0.25s ease;
}

.step-line.done { background: var(--accent); }

.step-dot-ic {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.service-grid > *,
.grid-3 > *,
.grid-2 > *,
.grid-4 > *,
.summary-bar > * {
    min-width: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

.service-grid > *,
.grid-3 > *,
.grid-2 > *,
.grid-4 > *,
.summary-bar > * {
    min-width: 0;
}

.service-tag {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border: 2px solid var(--border-primary);
    border-radius: 0.875rem;
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.service-tag input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-tag:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

.service-tag.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.service-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-hover);
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}

.service-tag.selected .service-radio {
    border-color: var(--accent);
    background: var(--accent);
}

.service-tag.selected .service-radio::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.srv-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    flex: 1;
}

.srv-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.srv-sub {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.service-tag:hover .service-icon,
.service-tag.selected .service-icon { color: var(--accent); }

.btn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.summary-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
}

.summary-bar > div { min-width: 0; }

.summary-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.admin-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 700px) {
    .steps { justify-content: center; }
    .step-line { width: 56px; }
    .service-grid { grid-template-columns: 1fr; }
    .summary-bar { grid-template-columns: 1fr; gap: 0.5rem; }
    .btn-row { flex-direction: column-reverse; align-items: stretch; }
    .btn-row .btn { justify-content: center; }
    .admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; }
}

.cf-turnstile-wrap {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    overflow: visible;
    margin: 0.5rem 0;
    transform: translateX(-14px);
}

.cf-turnstile-wrap .cf-turnstile {
    max-width: 100%;
}

/* widget turnstile default 300px; pastikan selalu muat di HP sempit */
@media (max-width: 380px) {
    .cf-turnstile-wrap .cf-turnstile { zoom: 0.92; }
}

@media (max-width: 330px) {
    .cf-turnstile-wrap .cf-turnstile { zoom: 0.8; }
}

.hero-badge {
    letter-spacing: 0.3px;
}

@media (max-width: 600px) {
    .container { padding: 0 1rem; }
    .card { padding: 1.25rem; }
    .hero { padding: 4rem 1rem 3rem; }
    .page-section { padding: 3.5rem 0 3rem; }
    .steps { gap: 0.25rem; margin-bottom: 2.5rem; }
    .step-item { min-width: 0; }
    .step-dot { width: 38px; height: 38px; font-size: 0.9375rem; }
    .step-line { width: 34px; margin: 17.5px 0.1rem 0; }
    .step-label { font-size: 0.75rem; }
    .service-tag { padding: 1.25rem; }
    .service-icon { margin-top: 0.75rem; }
    .btn-row { margin-top: 1.5rem; }
    .summary-bar { margin-top: 0; }
    .hero-title { font-size: clamp(2.125rem, 13vw, 3rem); }
    .hero-description { font-size: 0.9375rem; }
    .form-hint { font-size: 0.6875rem; }
}

@media (max-width: 380px) {
    .step-label { display: none; }
}

img, svg { max-width: 100%; }

:where(h1, h2, h3, p, a, strong, span, label, div) {
    overflow-wrap: break-word;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.service-grid > *,
.grid-3 > *,
.grid-2 > *,
.grid-4 > *,
.summary-bar > * {
    min-width: 0;
}

.hero-badge {
    max-width: 100%;
    text-align: left;
}


