.client-app {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.client-app.wizard-mode {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.progress-bar {
    margin-top: 14px;
    height: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--hint) 18%, transparent);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--button), var(--accent));
    transition: width 0.25s ease;
}

.step-labels {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hint);
}

.step-labels span.active { color: var(--accent); }
.step-labels span.done { color: var(--text); }

.client-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: color-mix(in srgb, var(--section-bg) 86%, transparent);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 6px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    z-index: 20;
}

.client-nav-btn {
    appearance: none;
    border: 0;
    background: none;
    color: var(--hint);
    padding: 8px 4px 7px;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border-radius: 16px;
    cursor: pointer;
}

.client-nav-btn.active {
    background: color-mix(in srgb, var(--button) 22%, transparent);
    color: var(--text);
}

.client-nav-btn .nav-icon { font-size: 18px; line-height: 1; }

.hero-card {
    background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 14%, var(--section-bg)), var(--section-bg));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}

.hero-card p {
    margin: 0;
    color: var(--hint);
    font-size: 13px;
    line-height: 1.45;
}

.menu-grid { display: grid; gap: 10px; }

.menu-tile {
    appearance: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--section-bg);
    color: var(--text);
    padding: 0;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.menu-tile:active { transform: scale(0.985); }

.menu-tile-accent {
    width: 4px;
    flex-shrink: 0;
}

.menu-tile-accent.ad { background: linear-gradient(180deg, #ff6b6b, #f0b429); }
.menu-tile-accent.server { background: linear-gradient(180deg, var(--button), var(--accent)); }

.menu-tile-body { padding: 16px 14px 16px 12px; flex: 1; }

.menu-tile-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.menu-tile-icon { font-size: 22px; line-height: 1; }

.menu-tile-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.menu-tile-desc {
    font-size: 12px;
    color: var(--hint);
    line-height: 1.4;
}

.menu-tile-arrow {
    margin-left: auto;
    color: var(--hint);
    font-size: 18px;
    padding-right: 14px;
    align-self: center;
}

.section-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.chip {
    appearance: none;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 50%, var(--section-bg));
    color: var(--text);
    border-radius: 999px;
    padding: 9px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.chip.active {
    border-color: color-mix(in srgb, var(--button) 55%, var(--border));
    background: color-mix(in srgb, var(--button) 20%, transparent);
    color: var(--text);
}

.format-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.format-card {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--section-bg);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}

.format-card.active {
    border-color: color-mix(in srgb, var(--button) 50%, var(--border));
    background: color-mix(in srgb, var(--button) 14%, var(--section-bg));
}

.format-card-icon { font-size: 22px; }
.format-card-title { font-size: 14px; font-weight: 700; }
.format-card-desc { font-size: 11px; color: var(--hint); margin-top: 2px; }

.review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.review-row:last-child { border-bottom: 0; }

.review-key {
    font-size: 12px;
    color: var(--hint);
    flex-shrink: 0;
}

.review-val {
    font-size: 13px;
    font-weight: 650;
    text-align: right;
    word-break: break-word;
}

.review-edit {
    appearance: none;
    border: 0;
    background: none;
    color: var(--link);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-top: 4px;
}

.form-section {
    margin-bottom: 18px;
}

.form-section:last-child { margin-bottom: 0; }

.wizard-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.wizard-actions .btn { flex: 1; }

.link-row {
    text-align: center;
    margin-top: 16px;
}

.link-row a {
    color: var(--link);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.success-box {
    text-align: center;
    padding: 32px 16px;
}

.success-box .ok-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.success-box .card-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.field-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: var(--hint);
    line-height: 1.35;
}
