:root {
    --brand: #393085;
    --brand-hover: #2e2669;
    --brand-light: #f0eef8;
    --brand-muted: rgba(57, 48, 133, 0.55);
    --sidebar-w: 260px;
    --sidebar-collapsed: 72px;
    --header-h: 64px;
    --bg: #f4f5f7;
    --surface: #ffffff;
    --border: #e8eaef;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
    --radius: 12px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.hpanel-body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    color: #1a1a2e;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.hpanel-app {
    display: flex;
    min-height: 100vh;
}

/* ?? Sidebar ?? */
.hpanel-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: width 0.25s ease, transform 0.25s ease;
}

.hpanel-app.is-collapsed .hpanel-sidebar {
    width: var(--sidebar-collapsed);
}

.hpanel-sidebar-head {
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.hpanel-sidebar-head.has-logo {
    justify-content: center;
    padding: 0 0.875rem;
}
.hpanel-sidebar-head.has-logo .hpanel-logo-img {
    height: 42px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.hpanel-app.is-collapsed .hpanel-sidebar-head {
    justify-content: center;
}
.hpanel-app.is-collapsed .hpanel-sidebar-head.has-logo {
    padding: 0;
    border-bottom-color: transparent;
    height: 0;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.hpanel-app.is-collapsed .hpanel-sidebar-head.has-logo .hpanel-logo-img,
.hpanel-app.is-collapsed .hpanel-sidebar-head .hpanel-logo,
.hpanel-app.is-collapsed .hpanel-sidebar-head .hpanel-brand-name {
    display: none !important;
}

.hpanel-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.hpanel-brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--brand);
    white-space: nowrap;
    overflow: hidden;
}

.hpanel-app.is-collapsed .hpanel-brand-name,
.hpanel-app.is-collapsed .hpanel-nav-label,
.hpanel-app.is-collapsed .hpanel-nav-text,
.hpanel-app.is-collapsed .hpanel-nav-chevron {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.hpanel-nav {
    padding: 0.75rem 0.625rem;
}

.hpanel-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.18) transparent;
}
.hpanel-sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}
.hpanel-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.hpanel-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.16);
    border-radius: 999px;
}
.hpanel-sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.28);
}
.hpanel-sidebar-scroll:hover::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.22);
}

.hpanel-nav-bottom {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    background: #fafbff;
    padding: 0.375rem 0.625rem 0.625rem;
}

.hpanel-nav-bottom .hpanel-nav-label {
    padding-top: 0.5rem;
}

.hpanel-nav-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-muted);
    padding: 1rem 0.75rem 0.375rem;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.hpanel-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    margin-bottom: 2px;
    border-radius: 8px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.hpanel-nav-item:hover {
    background: var(--brand-light);
}

.hpanel-nav-item.is-active {
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--brand);
}

.hpanel-nav-item.is-locked {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

.hpanel-app.is-email-locked .hpanel-nav-item.is-locked:hover {
    background: transparent;
}

.hpanel-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

.hpanel-nav-group { margin-bottom: 2px; }
.hpanel-nav-parent {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.hpanel-nav-chevron {
    margin-left: auto;
    font-size: 1rem;
    line-height: 1;
    color: var(--brand-muted);
    transition: transform 0.15s;
    display: inline-block;
}
.hpanel-nav-chevron.is-open { transform: rotate(90deg); }
.hpanel-nav-children {
    padding: 0.15rem 0 0.35rem 0.5rem;
}
.hpanel-nav-child {
    padding: 0.45rem 0.75rem 0.45rem 2.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--brand-muted);
}
.hpanel-nav-child.is-active {
    color: var(--brand);
    font-weight: 600;
}
.hpanel-app.is-collapsed .hpanel-nav-children { display: none !important; }
.ticket-canned-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}
.ticket-canned-bar .hpanel-select { flex: 1; min-width: 180px; }

.hpanel-sidebar-foot {
    padding: 0.5rem 0.625rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
}

.hpanel-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--brand-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hpanel-collapse-btn svg {
    width: 14px;
    height: 14px;
}

.hpanel-collapse-btn:hover {
    background: var(--brand-light);
    color: var(--brand);
    border-color: rgba(57, 48, 133, 0.2);
}

.hpanel-app.is-collapsed .hpanel-sidebar-foot {
    justify-content: center;
}

.hpanel-collapse-btn .hpanel-nav-text {
    display: none;
}

/* ?? Main ?? */
.hpanel-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
}

.hpanel-app.is-collapsed .hpanel-main {
    margin-left: var(--sidebar-collapsed);
}

.hpanel-header {
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 40;
}

.hpanel-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hpanel-page-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0;
}

.hpanel-breadcrumb {
    font-size: 0.8125rem;
    color: var(--brand-muted);
}

.hpanel-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hpanel-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 10px;
    color: var(--brand);
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.hpanel-icon-btn:hover {
    background: var(--brand-light);
}

.hpanel-icon-btn svg {
    width: 20px;
    height: 20px;
}

.hpanel-user-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
    font-family: inherit;
}

.hpanel-user-btn:hover {
    border-color: var(--brand);
}

.hpanel-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
}

.hpanel-user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand);
}

.hpanel-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.375rem;
    z-index: 60;
}

.hpanel-dropdown a,
.hpanel-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.625rem 0.875rem;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--brand);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

.hpanel-dropdown a:hover,
.hpanel-dropdown button:hover {
    background: var(--brand-light);
}

.hpanel-dropdown .is-danger { color: #dc2626; }

.hpanel-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hpanel-page {
    flex: 1;
    min-height: 0;
}

.hpanel-page-head {
    margin-bottom: 1.25rem;
}

.hpanel-page-desc {
    margin: 0.375rem 0 0;
    font-size: 0.875rem;
    color: var(--brand-muted);
}

.hpanel-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.hpanel-footer.is-slim .hpanel-footer-inner {
    justify-content: center;
}
.hpanel-footer.is-slim .hpanel-footer-copy {
    margin-left: 0;
    font-size: 0.6875rem;
    color: var(--brand-muted);
    text-align: center;
    width: 100%;
}

.hpanel-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.hpanel-footer-copy {
    font-size: 0.75rem;
    color: var(--brand-muted);
    margin-left: auto;
}

.hpanel-logo-img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
}
.hpanel-app.is-collapsed .hpanel-logo-img {
    height: 28px;
    max-width: 36px;
}
.panel-logo-preview {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.35rem;
    background: #fff;
}
.panel-logo-fallback { flex-shrink: 0; }

.notify-target-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.notify-target-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.notify-target-card strong {
    font-size: 0.8125rem;
    color: var(--brand);
    margin-bottom: 0.15rem;
}
@media (max-width: 640px) {
    .notify-target-grid { grid-template-columns: 1fr; }
}

.admin-section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0 0 1rem;
    padding: 0.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.admin-section-tab {
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--brand-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.admin-section-tab:hover {
    background: var(--brand-light);
    color: var(--brand);
}
.admin-section-tab.is-active {
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 600;
}

.hpanel-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.hpanel-pagination-meta {
    font-size: 0.8125rem;
    color: var(--brand-muted);
}
.hpanel-pagination-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.hpanel-page-num {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--brand);
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--surface);
}
.hpanel-page-num.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.hpanel-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.hpanel-info-item dt {
    font-size: 0.75rem;
    color: var(--brand-muted);
    margin-bottom: 0.25rem;
}

.hpanel-info-item dd {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand);
}

@media (min-width: 768px) {
    .hpanel-footer-copy {
        text-align: right;
    }
}

/* ?? Admin dashboard widgets ?? */
.dash-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.dash-widget {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    min-height: 132px;
    display: flex;
    align-items: stretch;
}

.dash-widget-body {
    flex: 1;
    padding: 1rem 1rem 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    z-index: 1;
}

.dash-widget-value {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand);
    margin-bottom: 0.25rem;
}

.dash-widget-value.is-green { color: #16a34a; }
.dash-widget-value.is-orange { color: #ea580c; }
.dash-widget-value.is-blue { color: #2563eb; }
.dash-widget-value.is-red { color: #dc2626; }

.dash-widget-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--brand-muted);
    margin-bottom: auto;
}

.dash-widget-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.875rem;
    padding: 0.625rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--brand-muted);
}

.dash-widget-foot strong {
    color: var(--brand);
    font-weight: 600;
}

.dash-widget-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(57, 48, 133, 0.08);
    pointer-events: none;
}

.dash-widget-icon svg {
    width: 48px;
    height: 48px;
}

.dash-widgets-colored {
    margin-bottom: 1.5rem;
}

.dash-widget-tone {
    border: none;
    color: #fff;
    min-height: 120px;
}

.dash-widget-tone .dash-widget-value,
.dash-widget-tone .dash-widget-label,
.dash-widget-tone .dash-widget-sub {
    color: #fff;
}

.dash-widget-tone .dash-widget-label {
    opacity: 0.95;
    margin-bottom: 0.25rem;
}

.dash-widget-sub {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.125rem;
}

.dash-widget-tone .dash-widget-icon {
    color: rgba(255, 255, 255, 0.18);
}

.dash-widget-tone.is-pink { background: linear-gradient(135deg, #e11d8f, #db2777); }
.dash-widget-tone.is-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.dash-widget-tone.is-green { background: linear-gradient(135deg, #16a34a, #15803d); }
.dash-widget-tone.is-slate { background: linear-gradient(135deg, #64748b, #475569); }

a.dash-widget-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.dash-widget-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dash-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}
.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--brand);
    color: #fff;
}
.dash-panel-head h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}
.dash-panel-head a {
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 500;
}
.dash-panel-head a:hover { text-decoration: underline; }
.dash-table { margin: 0; }
.dash-cell-main { font-weight: 600; color: var(--brand); font-size: 0.875rem; }
.dash-cell-sub { font-size: 0.75rem; color: var(--brand-muted); }
.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dash-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
}
.dash-list li:last-child { border-bottom: none; }
.dash-list li div strong {
    display: block;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 0.125rem;
}
.dash-list li div span {
    display: block;
    color: var(--brand-muted);
    font-size: 0.75rem;
}
.dash-list-amount {
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}
.dash-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--brand-muted);
    font-size: 0.875rem;
}
.dash-list-staff li { align-items: center; }
.dash-staff-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.dash-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}
.dash-filter-tab {
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--brand-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
}
.dash-filter-tab.is-active,
.dash-filter-tab:hover {
    background: var(--brand-light);
    color: var(--brand);
    border-color: rgba(57, 48, 133, 0.2);
}
.dash-filter-tab.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

@media (max-width: 1200px) {
    .dash-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
    .dash-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .dash-widgets { grid-template-columns: 1fr; }
    .dash-widget-value { font-size: 1.375rem; }
    .hpanel-footer-inner { flex-direction: column; align-items: flex-start; }
    .hpanel-footer-copy { margin-left: 0; }
}

/* ?? Cards & widgets ?? */
.hpanel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.hpanel-welcome {
    background: linear-gradient(135deg, var(--brand) 0%, #4a3a9f 100%);
    color: #fff;
    border: none;
    padding: 1.75rem 2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.hpanel-welcome h2 {
    margin: 0 0 0.375rem;
    font-size: 1.375rem;
    font-weight: 600;
}

.hpanel-welcome p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.9375rem;
}

.hpanel-welcome-actions {
    display: flex;
    gap: 0.625rem;
}

.hpanel-btn-white {
    background: #fff;
    color: var(--brand);
    padding: 0.625rem 1.125rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.hpanel-btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
    padding: 0.625rem 1.125rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
}

.hpanel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hpanel-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.hpanel-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hpanel-stat-icon svg { width: 22px; height: 22px; }

.hpanel-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.2;
}

.hpanel-stat-label {
    font-size: 0.8125rem;
    color: var(--brand-muted);
    margin-top: 0.125rem;
}

.hpanel-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.hpanel-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 1.25rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--brand);
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hpanel-quick-item:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}

.hpanel-quick-item svg {
    width: 28px;
    height: 28px;
    stroke: var(--brand);
}

.hpanel-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0 0 1rem;
}

.hpanel-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hpanel-card-pad { padding: 1.25rem; }

/* ?? Utilities ?? */
.btn-brand {
    background: var(--brand);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-brand:hover { background: var(--brand-hover); color: #fff; }

.panel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.hpanel-alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.hpanel-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.hpanel-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.impersonate-banner {
    background: var(--brand);
    color: #fff;
    padding: 0.625rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.data-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 0.75rem 1rem; font-weight: 600;
    color: var(--brand); border-bottom: 1px solid var(--border);
    background: rgba(57,48,133,.03);
}
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: rgba(57,48,133,.02); }

.badge-status {
    display: inline-flex; padding: 0.125rem 0.625rem;
    border-radius: 999px; font-size: 0.75rem; font-weight: 500;
}
.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #f3f4f6; color: #4b5563; }
.badge-suspended { background: #fee2e2; color: #991b1b; }

.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.stat-card .stat-value { color: var(--brand); font-size: 1.875rem; font-weight: 700; }
.stat-card .stat-label { color: var(--brand-muted); font-size: 0.8125rem; }

.hpanel-mobile-toggle {
    display: none;
    width: 40px; height: 40px;
    border: none; background: transparent;
    border-radius: 10px; color: var(--brand); cursor: pointer;
}

.hpanel-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 45;
}

[x-cloak] { display: none !important; }

@media (max-width: 1023px) {
    .hpanel-sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-w) !important;
    }
    /* Mobilde daraltma (collapsed) durumunu yok say ? metinler kaybolmas?n */
    .hpanel-app.is-collapsed .hpanel-sidebar {
        width: var(--sidebar-w) !important;
    }
    .hpanel-app.is-collapsed .hpanel-sidebar-head,
    .hpanel-app.is-collapsed .hpanel-sidebar-head.has-logo {
        justify-content: flex-start;
        padding: 0 1rem;
        border-bottom-color: var(--border);
    }
    .hpanel-app.is-collapsed .hpanel-sidebar-head.has-logo .hpanel-logo-img,
    .hpanel-app.is-collapsed .hpanel-sidebar-head .hpanel-logo,
    .hpanel-app.is-collapsed .hpanel-sidebar-head .hpanel-brand-name,
    .hpanel-app.is-collapsed .hpanel-brand-name,
    .hpanel-app.is-collapsed .hpanel-nav-label,
    .hpanel-app.is-collapsed .hpanel-nav-text,
    .hpanel-app.is-collapsed .hpanel-nav-chevron {
        display: initial;
        opacity: 1;
        width: auto;
        height: auto;
        overflow: visible;
        position: static;
    }
    .hpanel-app.is-collapsed .hpanel-nav-text,
    .hpanel-app.is-collapsed .hpanel-brand-name,
    .hpanel-app.is-collapsed .hpanel-nav-label {
        display: inline !important;
    }
    .hpanel-app.is-collapsed .hpanel-nav-children { display: block !important; }
    .hpanel-app.is-collapsed .hpanel-sidebar-foot { display: none; }
    .hpanel-app.is-collapsed .hpanel-main { margin-left: 0 !important; }
    .hpanel-app.mobile-open .hpanel-sidebar {
        transform: translateX(0);
    }
    .hpanel-app.mobile-open .hpanel-overlay {
        display: block;
    }
    .hpanel-main { margin-left: 0 !important; }
    .hpanel-mobile-toggle { display: flex; align-items: center; justify-content: center; }
    .hpanel-collapse-btn { display: none !important; }
    .hpanel-user-name { display: none; }
    .hpanel-grid-2 { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
    .hpanel-collapse-btn { display: flex; }
    .hpanel-app.is-collapsed .hpanel-collapse-btn svg { transform: rotate(180deg); }
}

/* ?? Page layout helpers ?? */
.hpanel-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.hpanel-toolbar-meta { font-size: 0.875rem; color: var(--brand-muted); margin: 0; }
.hpanel-link-back {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--brand);
    text-decoration: none;
    margin-bottom: 1rem;
}
.hpanel-link-back:hover { text-decoration: underline; }
.hpanel-link { color: var(--brand); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.hpanel-link:hover { text-decoration: underline; }
.hpanel-link-danger { color: #dc2626; background: none; border: none; cursor: pointer; font-size: 0.875rem; padding: 0; }
.hpanel-link-danger:hover { text-decoration: underline; }
.hpanel-muted { color: var(--brand-muted); }
.hpanel-max-w-sm { max-width: 640px; }
.hpanel-max-w-md { max-width: 768px; }
.hpanel-max-w-lg { max-width: 960px; }
.hpanel-max-w-xl { max-width: 1120px; }
.hpanel-table-wrap { overflow-x: auto; }
.hpanel-table-empty { text-align: center; padding: 2.5rem 1rem !important; color: var(--brand-muted); }
.hpanel-pagination { display: flex; justify-content: center; gap: 0.375rem; margin-top: 1rem; flex-wrap: wrap; }
.hpanel-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--brand);
    background: var(--surface);
    border: 1px solid var(--border);
}
.hpanel-page-link.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.hpanel-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.hpanel-grid-2-wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.hpanel-span-2 { grid-column: 1 / -1; }
.hpanel-detail-list { display: flex; flex-direction: column; gap: 0.875rem; font-size: 0.875rem; }
.hpanel-detail-row { display: flex; justify-content: space-between; gap: 1rem; }
.hpanel-detail-row dt { color: var(--brand-muted); }
.hpanel-detail-row dd { margin: 0; font-weight: 500; text-align: right; }
.hpanel-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; font-size: 0.875rem; }
.hpanel-detail-grid dt { color: var(--brand-muted); margin-bottom: 0.25rem; }
.hpanel-detail-grid dd { margin: 0; font-weight: 500; }
.hpanel-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.hpanel-btn-outline {
    background: var(--surface);
    color: var(--brand);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
}
.hpanel-btn-outline:hover { border-color: var(--brand); }
.hpanel-search-form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hpanel-search-form .hpanel-input { flex: 1; min-width: 200px; }

/* ?? Forms ?? */
.hpanel-form { display: flex; flex-direction: column; gap: 1.25rem; }
.hpanel-form-section { padding-top: 1.25rem; border-top: 1px solid var(--border); }
.hpanel-form-section:first-child { padding-top: 0; border-top: none; }
.hpanel-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hpanel-form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hpanel-form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hpanel-field { display: flex; flex-direction: column; gap: 0.375rem; }
.hpanel-field-span-2 { grid-column: span 2; }
.hpanel-label { font-size: 0.875rem; font-weight: 500; color: var(--brand); }
.hpanel-label-sm { font-size: 0.75rem; font-weight: 500; color: var(--brand-muted); }
.hpanel-input,
.hpanel-select,
.hpanel-textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1a1a2e;
    background: var(--surface);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hpanel-input:focus,
.hpanel-select:focus,
.hpanel-textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(57, 48, 133, 0.12);
}
.hpanel-input-mono { font-family: ui-monospace, monospace; }
.hpanel-input-sm { width: auto; min-width: 8rem; }
.hpanel-textarea { resize: vertical; min-height: 80px; }
.hpanel-form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.25rem; }
.hpanel-type-toggle { display: flex; gap: 0.5rem; }
.hpanel-type-toggle button {
    flex: 1;
    padding: 0.625rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    background: var(--brand-light);
    color: var(--brand);
}
.hpanel-type-toggle button.is-active { background: var(--brand); color: #fff; }
.hpanel-check-group { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.hpanel-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--brand);
    cursor: pointer;
}
.hpanel-check-label input { accent-color: var(--brand); }
.hpanel-inline-form { display: inline; }

.hpanel-input-group {
    display: flex;
    align-items: stretch;
}
.hpanel-input-group .hpanel-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}
.hpanel-input-addon {
    border: 1px solid var(--border);
    border-left: none;
    background: var(--brand-light);
    color: var(--brand);
    padding: 0 0.875rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.hpanel-input-addon:hover { background: rgba(57, 48, 133, 0.12); }

/* ?? Customer detail ?? */
.cust-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.cust-detail-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.cust-detail-title h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--brand);
}
.cust-detail-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cust-breadcrumb {
    font-size: 0.8125rem;
    color: var(--brand-muted);
    margin-bottom: 1rem;
}
.cust-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}
.cust-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--brand-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.cust-tab svg { width: 16px; height: 16px; }
.cust-tab:hover { color: var(--brand); }
.cust-tab.is-active {
    color: var(--brand);
    border-bottom-color: var(--brand);
    font-weight: 600;
}
.cust-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: start;
}
.cust-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.cust-panel-title {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand);
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--border);
}
.cust-kv { margin: 0; }
.cust-kv > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(57, 48, 133, 0.06);
    font-size: 0.8125rem;
}
.cust-kv > div:last-child { border-bottom: none; }
.cust-kv dt { color: var(--brand-muted); font-weight: 500; }
.cust-kv dd { margin: 0; font-weight: 600; color: var(--brand); text-align: right; }
.cust-kv .is-danger dt,
.cust-kv .is-danger dd { color: #dc2626; }
.cust-action-stack { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.cust-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8f9fb;
    color: var(--brand);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.cust-action-btn svg { width: 16px; height: 16px; }
.cust-action-btn:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-light); }
.cust-action-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.cust-action-btn-wide { margin-top: 0.5rem; }
.cust-action-btn.is-danger-text { color: #dc2626; }

@media (max-width: 1100px) {
    .cust-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .hpanel-form-grid,
    .hpanel-form-grid-3,
    .hpanel-form-grid-4,
    .hpanel-grid-2-wide { grid-template-columns: 1fr; }
    .hpanel-field-span-2,
    .hpanel-span-2 { grid-column: auto; }
}

.hpanel-empty-state {
    max-width: 520px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hpanel-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--brand);
}

.hpanel-empty-icon svg {
    width: 28px;
    height: 28px;
}

.hpanel-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.hpanel-product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hpanel-product-head h3 {
    margin: 0.35rem 0 0;
    font-size: 1.125rem;
    color: var(--brand);
}

.hpanel-product-group {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-muted);
}

.hpanel-product-form {
    margin-top: auto;
}

/* Ticket chat */
.ticket-room {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    min-height: 560px;
}

.ticket-room-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.ticket-room-title {
    margin: 0.35rem 0 0.25rem;
    font-size: 1.125rem;
    color: var(--brand);
}

.ticket-room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--brand-muted);
}

.ticket-room-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ticket-status-form .hpanel-select {
    min-width: 180px;
}

.ticket-chat {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    background: linear-gradient(180deg, #f8f9fc 0%, #f3f4f8 100%);
    max-height: 480px;
    min-height: 320px;
}

.ticket-msg {
    display: flex;
    margin-bottom: 0.875rem;
}

.ticket-msg.is-mine { justify-content: flex-end; }
.ticket-msg.is-theirs { justify-content: flex-start; }
.ticket-msg.is-system { justify-content: center; }

.ticket-msg-inner {
    max-width: min(72%, 640px);
}

.ticket-msg.is-mine .ticket-msg-inner {
    background: var(--brand);
    color: #fff;
    border-radius: 14px 14px 4px 14px;
    padding: 0.75rem 0.875rem;
}

.ticket-msg.is-theirs .ticket-msg-inner {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px 14px 14px 4px;
    padding: 0.75rem 0.875rem;
}

.ticket-msg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
}

.ticket-msg.is-mine .ticket-msg-head { color: rgba(255,255,255,0.85); }
.ticket-msg.is-theirs .ticket-msg-head { color: var(--brand-muted); }

.ticket-msg-body {
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.ticket-msg-read {
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    opacity: 0.75;
    text-align: right;
}

.ticket-msg-system {
    background: rgba(57, 48, 133, 0.08);
    color: var(--brand-muted);
    border-radius: 999px;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    text-align: center;
}

.ticket-msg.is-system .ticket-msg-time {
    text-align: center;
    font-size: 0.6875rem;
    color: var(--brand-muted);
    margin-top: 0.25rem;
}

.ticket-compose {
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
    background: #fff;
}

.ticket-compose-closed {
    text-align: center;
    color: var(--brand-muted);
    font-size: 0.875rem;
}

.ticket-compose-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.ticket-live-dot {
    font-size: 0.75rem;
    color: var(--brand-muted);
}

.ticket-live-dot::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 0.35rem;
    animation: ticket-pulse 1.2s infinite;
}

@keyframes ticket-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-list-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.125rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ticket-list-item:hover {
    border-color: rgba(57, 48, 133, 0.25);
    box-shadow: 0 4px 14px rgba(57, 48, 133, 0.06);
}

.ticket-list-item.is-unread {
    border-left: 3px solid var(--brand);
}

.ticket-list-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ticket-list-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--brand-muted);
}

.ticket-list-item-preview {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--brand-muted);
}

.ticket-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}

.ticket-unread-pill {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border-radius: 999px;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
}

.is-unread-row {
    background: rgba(57, 48, 133, 0.03);
}

.hpanel-notify-wrap { position: relative; }

.hpanel-notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hpanel-notify-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(360px, 90vw);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    z-index: 50;
    overflow: hidden;
}

.hpanel-notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.hpanel-link-btn {
    background: none;
    border: none;
    color: var(--brand);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
}

.hpanel-notify-empty {
    padding: 1.25rem;
    text-align: center;
    color: var(--brand-muted);
    font-size: 0.875rem;
}

.hpanel-notify-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}

.hpanel-notify-list li.is-unread {
    background: rgba(57, 48, 133, 0.04);
}

.hpanel-notify-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
    text-align: left;
    padding: 0.875rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.hpanel-notify-item strong {
    font-size: 0.8125rem;
    color: var(--brand);
}

.hpanel-notify-item span {
    font-size: 0.75rem;
    color: var(--brand-muted);
}

.hpanel-notify-item em {
    font-size: 0.6875rem;
    color: var(--brand-muted);
    font-style: normal;
}

.hpanel-notify-foot {
    display: block;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.8125rem;
    color: var(--brand);
    text-decoration: none;
    border-top: 1px solid var(--border);
}

.notify-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notify-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.125rem;
}

.notify-item.is-unread {
    border-left: 3px solid var(--brand);
}

.notify-item-body p {
    margin: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--brand-muted);
}

.hpanel-toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    pointer-events: none;
}

.hpanel-toast {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 280px;
    max-width: 420px;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
    font-size: 0.875rem;
    pointer-events: auto;
    animation: toast-in 0.35s ease;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

.hpanel-toast[x-cloak], .hpanel-toast[style*="display: none"] {
    animation: toast-out 0.35s ease forwards;
}

@keyframes toast-out {
    to { opacity: 0; transform: translateX(18px); }
}

.hpanel-toast.is-success {
    border-left: 4px solid #22c55e;
}

.hpanel-toast.is-error {
    border-left: 4px solid #ef4444;
}

.hpanel-toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hpanel-toast.is-success .hpanel-toast-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.hpanel-toast.is-error .hpanel-toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.toast-enter { transition: all 0.35s ease; }
.toast-leave { transition: all 0.35s ease; opacity: 0; transform: translateX(12px); }

.ticket-chat-empty {
    text-align: center;
    color: var(--brand-muted);
    font-size: 0.875rem;
    padding: 2rem 1rem;
}

.hpanel-notify-head-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hpanel-link-btn.is-danger-text { color: #dc2626; }

.address-list { display: flex; flex-direction: column; gap: 0.75rem; }
.address-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.875rem;
    background: #fafbff;
    position: relative;
}
.address-default-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-light);
    border-radius: 999px;
    padding: 0.125rem 0.5rem;
    margin-bottom: 0.35rem;
}

.customer-picker { position: relative; }
.customer-picker-dropdown {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    max-height: 16rem;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(57, 48, 133, 0.12);
}
.customer-picker-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f2f7;
}
.customer-picker-option:last-child { border-bottom: none; }
.customer-picker-option:hover { background: #f6f5ff; }
.customer-picker-name {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    color: var(--brand);
    font-size: 0.875rem;
}
.customer-picker-meta {
    font-size: 0.75rem;
    color: var(--brand-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.customer-picker-hint {
    margin: 0;
    padding: 0.75rem 0.9rem;
    font-size: 0.8125rem;
    color: var(--brand-muted);
}
.customer-pick-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafbff;
}
.customer-pick-selected-info {
    min-width: 0;
    flex: 1;
}
.customer-pick-selected-info strong {
    color: var(--brand);
    font-size: 0.875rem;
}
.customer-pick-change {
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--brand);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
}
.customer-pick-change:hover {
    border-color: var(--brand);
    background: var(--brand-light, #f1f0fb);
}

.svc-usage-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.svc-gauge-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    min-width: 220px;
    flex: 1;
}
.svc-gauge-card.is-compact { padding: 0.75rem 0.9rem; min-width: 160px; }
.svc-gauge {
    --pct: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(var(--brand) calc(var(--pct) * 1%), #e8e9f2 0);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    position: relative;
}
.svc-gauge::before {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #fff;
}
.svc-gauge span {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand);
}
.svc-gauge.is-sm { width: 48px; height: 48px; }
.svc-gauge.is-sm::before { inset: 5px; }
.svc-gauge.is-sm span { font-size: 0.6875rem; }
.svc-manage-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
}
.svc-manage-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--brand);
}
.svc-manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}
.svc-manage-brand { min-width: 0; flex: 1; }
.svc-panel-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}
.svc-logo { display: inline-flex; line-height: 0; }
.svc-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
.svc-login-btn.is-cpanel {
    background: #ff6c2c;
    color: #fff;
}
.svc-login-btn.is-cpanel:hover { background: #e85f22; color: #fff; }
.svc-login-btn.is-whm {
    background: #1a1a2e;
    color: #fff;
}
.svc-login-btn.is-whm:hover { background: #111122; color: #fff; }
.svc-login-btn.is-webmail {
    background: #fff;
    color: var(--brand);
    border-color: var(--border);
}
.svc-login-btn.is-webmail:hover { background: var(--brand-light); }
.svc-login-btn.is-plesk {
    background: #52b5eb;
    color: #fff;
    border-color: #52b5eb;
}
.svc-login-btn.is-plesk:hover { background: #3a9fd4; color: #fff; }
.svc-login-btn-ico { display: inline-flex; }
.svc-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-left: 0.35rem;
    vertical-align: middle;
    background: #cbd5e1;
}
.svc-live-dot.is-live { background: #22c55e; }
.svc-live-dot.is-loading {
    background: #f59e0b;
    animation: svc-pulse 0.9s ease-in-out infinite;
}
.svc-usage-alert {
    margin: 0.75rem 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.875rem;
    line-height: 1.45;
}
.svc-usage-alert strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}
.svc-usage-alert.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}
.svc-usage-alert.is-warn {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}
@keyframes svc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.hpanel-secret {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.hpanel-secret .hpanel-input-mono {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.65rem;
    min-width: 7rem;
    font-size: 0.8125rem;
    background: #f8fafc;
    border: none;
}
.hpanel-secret-btn {
    border: none;
    border-left: 1px solid var(--border);
    background: var(--brand-light);
    color: var(--brand);
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.hpanel-secret-btn:hover { background: rgba(57, 48, 133, 0.14); }
.svc-related {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
}
@media (max-width: 860px) {
    .svc-related { grid-template-columns: 1fr; }
}
.svc-related-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
}
.svc-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.svc-related-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}
.svc-related-list li + li { border-top: 1px solid var(--border); }
.svc-related-list a {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0;
    text-decoration: none;
    color: inherit;
}
.svc-related-list a:hover strong { color: var(--brand); }
.svc-related-list small { display: block; margin-top: 0.15rem; }
.svc-related-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.svc-related-cta { display: inline-flex; }

.svc-feature-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.svc-feature-logos.is-compact {
    margin-top: 0.75rem;
    gap: 0.5rem;
}
.svc-feature-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    min-height: 52px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.svc-feature-logos.is-compact .svc-feature-logo {
    min-height: 40px;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
}
.svc-feature-logo img {
    display: block;
    max-height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}
.svc-feature-logos.is-compact .svc-feature-logo img {
    max-height: 26px;
    max-width: 110px;
}
.svc-tech-card .svc-feature-logos {
    gap: 0.85rem;
}
.svc-tech-card .svc-feature-logo {
    min-height: 64px;
    padding: 0.75rem 1rem;
}
.svc-tech-card .svc-feature-logo img {
    max-height: 44px;
    max-width: 160px;
}

.svc-suspended-card {
    max-width: 640px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.35rem;
    box-shadow: 0 8px 24px rgba(153, 27, 27, 0.06);
}
.svc-suspended-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #b91c1c;
    margin-bottom: 0.85rem;
}
.svc-suspended-title {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
    color: #991b1b;
}
.svc-suspended-lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--brand-muted);
    line-height: 1.5;
}
.svc-suspended-reason {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}
.svc-suspended-reason p {
    margin: 0;
    font-size: 0.875rem;
    color: #9a3412;
    line-height: 1.5;
}
.svc-suspended-invoices {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
}
.svc-suspended-invoices li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}
.svc-suspended-invoices li:last-child { border-bottom: none; }
.svc-suspended-invoices span.hpanel-muted {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}
.svc-suspended-inv-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-wait-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(30, 27, 75, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.order-wait-box {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    text-align: center;
    max-width: 22rem;
    box-shadow: 0 16px 40px rgba(57, 48, 133, 0.2);
}
.order-wait-box p {
    margin: 0.85rem 0 0.35rem;
    font-weight: 700;
    color: var(--brand);
}
.order-wait-box span {
    font-size: 0.8125rem;
    color: var(--brand-muted);
    line-height: 1.45;
}
.order-wait-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid #e8e9f2;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: order-spin 0.8s linear infinite;
}
@keyframes order-spin { to { transform: rotate(360deg); } }


.hpanel-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}
.hpanel-check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.invoice-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.invoice-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.125rem;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.invoice-card:hover {
    border-color: rgba(57, 48, 133, 0.25);
    box-shadow: 0 6px 18px rgba(57, 48, 133, 0.08);
}
.invoice-card.is-overdue { border-left: 3px solid #ef4444; }
.invoice-card-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; }
.invoice-card-amount { font-size: 1.375rem; font-weight: 700; color: var(--brand); margin: 0.75rem 0 0.35rem; }
.invoice-card-foot { font-size: 0.75rem; color: var(--brand-muted); }
.invoice-detail-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }

/* Kasa y?netimi */
.cash-toolbar { margin: 0 0 1rem; }
.cash-filter-fields {
    display: grid;
    grid-template-columns: 140px 140px minmax(180px, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: end;
}
.cash-entry-card { margin-bottom: 1.25rem; }
.cash-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cash-entry-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.cash-td-date { white-space: nowrap; font-size: 0.8125rem; }
.cash-td-amount { font-weight: 700; white-space: nowrap; }
.cash-td-amount.is-in { color: #0a7a3e; }
.cash-td-amount.is-out { color: #b42318; }

/* M??teri faturalar?m */
.client-invoice-metrics { margin-bottom: 1rem; }
.client-invoice-service-bar {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.client-invoice-table tr.is-overdue-row td:first-child {
    box-shadow: inset 3px 0 0 #ef4444;
}
.invoice-havale-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(57, 48, 133, 0.14);
    background: linear-gradient(135deg, #f4f1fb 0%, #ffffff 70%);
}
.invoice-havale-cta-text strong {
    display: block;
    color: var(--brand);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.invoice-havale-cta-text p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--brand-muted);
    max-width: 36rem;
}
.invoice-havale-cta-btn { white-space: nowrap; }
.invoice-havale-hero {
    background: linear-gradient(160deg, #f4f1fb 0%, #ffffff 60%);
    border-color: rgba(57, 48, 133, 0.14);
}
.invoice-havale-form-card {
    background: linear-gradient(180deg, #faf9fc 0%, #ffffff 40%);
}

@media (max-width: 900px) {
    .cash-filter-fields {
        grid-template-columns: 1fr 1fr;
    }
    .cash-filter-search,
    .cash-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .cash-filter-fields { grid-template-columns: 1fr; }
}

.invoice-lines-card { padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; }
.invoice-lines-table { width: 100%; border-collapse: collapse; }
.invoice-lines-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-muted);
    padding: 0.75rem 0.875rem;
    background: var(--surface-2, #f8fafc);
    border-bottom: 1px solid var(--border);
}
.invoice-lines-table td {
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.invoice-lines-table tr:last-child td { border-bottom: none; }
.invoice-lines-table .hpanel-input { margin: 0; }
.invoice-line-total {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}
.invoice-line-remove {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--brand-muted);
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
}
.invoice-line-remove:hover { color: #ef4444; border-color: #fecaca; background: #fef2f2; }
.invoice-totals {
    margin-top: 1rem;
    margin-left: auto;
    max-width: 320px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    background: var(--surface);
}
.invoice-totals-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--brand-muted);
}
.invoice-totals-row strong { color: var(--text, #0f172a); font-weight: 600; }
.invoice-totals-row.is-grand {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
    font-size: 0.9375rem;
    color: var(--text, #0f172a);
}
.invoice-totals-row.is-grand strong { color: var(--brand); font-size: 1.0625rem; }
.invoice-pay-box {
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 0.875rem;
    background: #fafbff;
    font-size: 0.875rem;
}

.product-form-page { max-width: 720px; }
.product-form-card { overflow: hidden; padding: 0; }
.btn-brand-lg { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }
.btn-brand.is-danger { background: #dc2626; }
.btn-brand.is-danger:hover { background: #b91c1c; }

.hpanel-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}
.hpanel-confirm-dialog {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
.hpanel-confirm-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand);
}
.hpanel-confirm-message {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    color: var(--brand-muted);
    line-height: 1.5;
}
.hpanel-confirm-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: -0.35rem 0 1.15rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.8125rem;
    color: var(--brand);
    line-height: 1.45;
    cursor: pointer;
}
.hpanel-confirm-check input {
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.hpanel-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.625rem;
}
.is-danger-text { color: #dc2626 !important; }

.server-test-dialog {
    text-align: center;
}
.server-test-dialog .hpanel-confirm-actions {
    justify-content: center;
}
.server-test-icon {
    width: 52px;
    height: 52px;
    margin: 0.15rem auto 0.85rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
}
.server-test-icon.is-success {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}
.server-test-icon.is-error {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}
.server-test-dialog.is-success .hpanel-confirm-title { color: #15803d; }
.server-test-dialog.is-error .hpanel-confirm-title { color: #b91c1c; }

/* ?? Client dashboard ?? */
.client-dash { margin-top: -0.25rem; }
.dash-widgets-5 { grid-template-columns: repeat(5, 1fr); margin-bottom: 1rem; }
.dash-widget-tone.is-metric-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.dash-widget-tone.is-metric-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.dash-widget-tone.is-metric-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.dash-widget-tone.is-metric-dark { background: linear-gradient(135deg, #475569, #334155); }
.dash-widget-tone.is-metric-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.dash-widget-tone.is-metric-green .dash-widget-foot,
.dash-widget-tone.is-metric-blue .dash-widget-foot,
.dash-widget-tone.is-metric-red .dash-widget-foot,
.dash-widget-tone.is-metric-dark .dash-widget-foot,
.dash-widget-tone.is-metric-teal .dash-widget-foot {
    border-top-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.client-domain-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    border: 1px solid var(--border);
}
.client-domain-banner-text {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand);
}
.client-domain-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 240px;
    max-width: 520px;
}
.client-domain-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.9375rem;
    background: #fff;
}
.client-domain-btn { white-space: nowrap; padding: 0.7rem 1.25rem; }

.client-dash-grid { gap: 1.25rem; }
.client-dash-panel { overflow: hidden; }
.dash-panel-head.is-dark {
    background: #2f3441;
    color: #fff;
    border-bottom: none;
    padding: 0.875rem 1rem;
}
.dash-panel-head.is-dark h3 { color: #fff; font-size: 0.9375rem; }
.dash-panel-head.is-dark a { color: rgba(255,255,255,0.85); font-size: 0.8125rem; }

.client-dash-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
    padding: 0 0.75rem;
}
.client-dash-tab {
    border: none;
    background: transparent;
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    color: var(--brand-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.client-dash-tab.is-active {
    color: var(--brand);
    border-bottom-color: var(--brand);
    font-weight: 600;
}

.client-dash-table th,
.client-dash-table td { font-size: 0.8125rem; }
.hpanel-btn-mini {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    background: #fff;
}
.hpanel-btn-mini:hover { background: var(--brand-light); }
.hpanel-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--brand-muted);
    text-decoration: none;
}
.hpanel-btn-icon svg { width: 16px; height: 16px; }
.hpanel-btn-icon:hover { color: var(--brand); background: var(--brand-light); }

.badge-info { background: #dbeafe; color: #1d4ed8; }

.client-dash-empty {
    padding: 2rem 1.25rem;
    text-align: center;
}
.client-dash-empty.is-compact { padding: 1.25rem; }
.client-dash-empty-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    opacity: 0.35;
}
.client-dash-empty p { margin: 0 0 0.35rem; font-size: 0.875rem; }

/* Basit m??teri form / kredi sayfalar? */
.simple-page { max-width: 720px; }
.credit-page { max-width: 920px; }
.simple-page-card { margin-bottom: 0; }
.simple-page-title {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.01em;
}
.simple-page-lead {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    color: var(--brand-muted);
    line-height: 1.45;
}
.simple-page-form { gap: 1rem; }
.simple-page-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.simple-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    padding-top: 0.25rem;
}
.simple-page-note {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.65rem;
    margin: 0 0 1.15rem;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    background: #f8f7fb;
    font-size: 0.8125rem;
}
.simple-page-note span { color: var(--brand-muted); }
.simple-page-note strong { color: var(--brand); }
.simple-page-note em {
    font-style: normal;
    color: var(--brand-muted);
}

.credit-top {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    align-items: stretch;
}
.credit-balance-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.credit-autopay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(57, 48, 133, 0.1);
}
.credit-autopay strong {
    display: block;
    font-size: 0.875rem;
    color: var(--brand);
    margin-bottom: 0.15rem;
}
.credit-autopay span { font-size: 0.75rem; }
.credit-autopay button {
    flex-shrink: 0;
    padding: 0.4rem 0.9rem;
    font-size: 0.8125rem;
}

@media (max-width: 720px) {
    .simple-page-row,
    .credit-top { grid-template-columns: 1fr; }
}


.client-ticket-list { padding: 0.25rem 0; }
.client-ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}
.client-ticket-item:hover { background: #fafbff; }
.client-ticket-item strong { display: block; font-size: 0.875rem; color: var(--brand); }

.client-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.client-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
}
.client-activity-ip {
    font-size: 0.75rem;
    background: #f3f4f6;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    color: #4b5563;
}

@media (max-width: 1200px) {
    .dash-widgets-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .dash-widgets-5 { grid-template-columns: 1fr 1fr; }
    .client-domain-banner { flex-direction: column; align-items: stretch; }
    .client-domain-search { max-width: none; }
}
@media (max-width: 480px) {
    .dash-widgets-5 { grid-template-columns: 1fr; }
}

/* ?? Module menu (admin) ?? */
.module-page { max-width: 1100px; }
.module-category-grid {
    margin-top: 0.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.module-category-card {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.125rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, transform 0.15s;
}
.module-category-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.module-category-card.is-orange { border-top: 3px solid #ea580c; }
.module-category-card.is-blue { border-top: 3px solid #2563eb; }
.module-category-card.is-green { border-top: 3px solid #16a34a; }
.module-category-card.is-purple { border-top: 3px solid #7c3aed; }
.module-category-card.is-teal { border-top: 3px solid #0d9488; }
.module-category-card.is-brand { border-top: 3px solid var(--brand); }
.module-detail-head.is-teal { border-left: 4px solid #0d9488; }
.module-detail-head.is-teal .module-detail-icon { background: #f0fdfa; color: #0d9488; }
.module-category-card.is-teal .module-menu-icon { background: #f0fdfa; color: #0d9488; }
.module-menu-card.is-green { border-top: 3px solid #16a34a; }
.module-menu-card.is-green .module-menu-icon { background: #ecfdf5; color: #16a34a; }
.module-detail-head.is-green { border-left: 4px solid #16a34a; }
.module-detail-head.is-green .module-detail-icon { background: #ecfdf5; color: #16a34a; }
.module-menu-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.module-menu-label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-muted);
}
.module-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}
.module-menu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.module-menu-card:hover { box-shadow: var(--shadow-sm); }
.module-menu-card.is-disabled { opacity: 0.72; }
.module-menu-card.is-orange { border-top: 3px solid #ea580c; }
.module-menu-card.is-blue { border-top: 3px solid #2563eb; }
.module-menu-card.is-purple { border-top: 3px solid #7c3aed; }
.module-menu-card.is-slate { border-top: 3px solid #64748b; }
.module-menu-card.is-brand { border-top: 3px solid var(--brand); }
.module-menu-card-link {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1rem 0.75rem;
    text-decoration: none;
    color: inherit;
}
.module-menu-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--brand-light);
    color: var(--brand);
}
.module-menu-card.is-orange .module-menu-icon { background: #fff7ed; color: #ea580c; }
.module-menu-card.is-blue .module-menu-icon { background: #eff6ff; color: #2563eb; }
.module-menu-card.is-purple .module-menu-icon { background: #f5f3ff; color: #7c3aed; }
.module-menu-card.is-slate .module-menu-icon { background: #f8fafc; color: #64748b; }
.module-menu-icon svg { width: 22px; height: 22px; }
.module-menu-icon.has-logo,
.module-detail-icon.has-logo {
    background: #fff !important;
    padding: 0.35rem;
}
.module-brand-logo {
    width: 100%;
    height: 100%;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    display: block;
}
.module-detail-icon.has-logo .module-brand-logo {
    max-width: 48px;
    max-height: 48px;
}
.module-menu-body { flex: 1; min-width: 0; }
.module-menu-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.module-menu-title-row strong {
    font-size: 0.9375rem;
    color: var(--brand);
}
.module-menu-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}
.module-menu-desc {
    margin: 0;
    font-size: 0.75rem;
    color: var(--brand-muted);
}
.module-menu-arrow {
    color: var(--brand-muted);
    font-size: 1.125rem;
    line-height: 1;
    margin-top: 0.25rem;
}
.module-menu-foot {
    border-top: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    background: #fafbff;
}
.module-menu-action {
    border: none;
    background: transparent;
    color: var(--brand-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.35rem 0.25rem;
}
.module-menu-action:hover { color: var(--brand); }
.module-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.module-badge.is-success { background: #dcfce7; color: #166534; }
.module-badge.is-danger { background: #fee2e2; color: #991b1b; }
.module-badge.is-muted { background: #f3f4f6; color: #6b7280; }
.module-badge.is-slug {
    background: #ede9fe;
    color: #5b21b6;
    font-family: ui-monospace, monospace;
    text-transform: lowercase;
}
.module-badge.is-version { background: #e0f2fe; color: #0369a1; }
.module-badge.is-type { background: #fef3c7; color: #92400e; }
.module-page-note {
    margin: 1.25rem 0 0;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.module-detail-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.module-detail-head.is-orange { border-left: 4px solid #ea580c; }
.module-detail-head.is-blue { border-left: 4px solid #2563eb; }
.module-detail-head.is-purple { border-left: 4px solid #7c3aed; }
.module-detail-head.is-slate { border-left: 4px solid #64748b; }
.module-detail-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-light);
    color: var(--brand);
    flex-shrink: 0;
}
.module-detail-head.is-orange .module-detail-icon { background: #fff7ed; color: #ea580c; }
.module-detail-head.is-blue .module-detail-icon { background: #eff6ff; color: #2563eb; }
.module-detail-head.is-purple .module-detail-icon { background: #f5f3ff; color: #7c3aed; }
.module-detail-head.is-slate .module-detail-icon { background: #f8fafc; color: #64748b; }
.module-detail-icon svg { width: 26px; height: 26px; }
.module-detail-info { flex: 1; min-width: 0; }
.module-detail-info h2 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--brand);
}
.module-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
}
.module-log-list { display: flex; flex-direction: column; gap: 0.625rem; }
.module-log-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.875rem;
    background: #fafbff;
}
.module-log-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.module-log-sub {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--brand-muted);
    flex-wrap: wrap;
}
.settings-form-tab .module-badge { margin-left: 0.35rem; vertical-align: middle; }
@media (max-width: 768px) {
    .module-menu-grid { grid-template-columns: 1fr; }
    .module-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .module-detail-head { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .module-category-grid { grid-template-columns: 1fr; }
}

.hpanel-field-hint {
    font-size: 0.75rem;
    color: var(--brand-muted);
    margin: 0.35rem 0 0;
    line-height: 1.45;
}

.hpanel-input-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.hpanel-input-prefix {
    font-size: 0.8125rem;
    color: var(--brand-muted);
    white-space: nowrap;
}

.hpanel-check-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.settings-page { max-width: 720px; }
.settings-form-card { overflow: hidden; padding: 0; }
.settings-form-tabs,
.product-form-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: #fafbff;
    padding: 0 0.5rem;
}
.settings-form-tab,
.product-form-tab {
    border: none;
    background: transparent;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--brand-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.settings-form-tab.is-active,
.product-form-tab.is-active {
    color: var(--brand);
    border-bottom-color: var(--brand);
    background: #fff;
}
.settings-form-body,
.product-form-body { padding: 1.25rem 1.35rem; }
.settings-form-foot,
.product-form-foot {
    padding: 1rem 1.35rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    background: #fafbff;
}
.settings-tab-heading {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand);
}
.settings-tab-desc {
    margin: 0 0 1.25rem;
    font-size: 0.8125rem;
    color: var(--brand-muted);
    line-height: 1.5;
}

/* Admin avatars & staff */
.admin-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 700;
}
.admin-avatar.is-xs { width: 28px; height: 28px; font-size: 0.75rem; }
.admin-avatar.is-sm { width: 36px; height: 36px; font-size: 0.875rem; }
.admin-avatar.is-md { width: 40px; height: 40px; font-size: 0.9375rem; }
.admin-avatar.is-lg { width: 72px; height: 72px; font-size: 1.375rem; }
.profile-avatar-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.staff-cell { display: flex; align-items: center; gap: 0.75rem; }
.staff-perm-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.staff-permissions-box {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.staff-perm-group { margin-top: 0.875rem; }
.staff-perm-group-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-muted);
    margin-bottom: 0.5rem;
}
.ticket-msg-sender { display: flex; align-items: center; gap: 0.5rem; }
.hpanel-user-btn .admin-avatar { margin-right: 0.15rem; }

/* Automation settings */
.auto-cron-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.5rem;
}
.auto-cron-cmd {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.auto-cron-cmd code {
    flex: 1;
    min-width: 12rem;
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    word-break: break-all;
}
.auto-cron-last { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--brand-muted); }
.auto-section {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}
.auto-subheading {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 1.25rem 0 0.35rem;
    color: var(--brand);
}
.auth-phone-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.auth-dial {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}
.auth-phone-row input {
    border-radius: 0 8px 8px 0 !important;
}

/* Breadcrumb */
.hpanel-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:0.35rem; font-size:0.8125rem; color:var(--brand-muted); }
.hpanel-breadcrumb-sep { opacity:0.5; }
.hpanel-breadcrumb-item.is-current { color:var(--brand); font-weight:600; }

/* Icon action buttons */
.btn-icon-action {
    display:inline-flex; align-items:center; gap:0.35rem;
    padding:0.35rem 0.65rem; border-radius:8px; border:1px solid var(--border);
    background:#fff; color:var(--brand); font-size:0.8125rem; text-decoration:none; cursor:pointer;
}
.btn-icon-action svg { width:15px; height:15px; }
.btn-icon-action.is-danger { color:#b91c1c; }
.btn-icon-action.is-xs, .btn-brand.is-xs, .hpanel-btn-outline.is-xs { padding:0.25rem 0.5rem; font-size:0.75rem; }
.hpanel-toolbar-actions { display:flex; flex-wrap:wrap; gap:0.5rem; align-items:center; }

/* Invoice sheet */
.invoice-sheet {
    padding: 2rem 2.25rem;
    background:
        linear-gradient(180deg, #faf9fc 0%, #ffffff 28%);
}
.invoice-sheet-head {
    display: flex;
    justify-content: space-between;
    gap: 1.75rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(57, 48, 133, 0.12);
    padding-bottom: 1.5rem;
    margin-bottom: 0.25rem;
}
.invoice-sheet-brand { display:flex; gap:1rem; align-items:flex-start; }
.invoice-sheet-logo { height:52px; width:auto; max-width:200px; object-fit:contain; display:block; }
.invoice-company-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    max-width: 24rem;
}
.invoice-company-info { line-height: 1.5; }
.invoice-company-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand);
    margin: 0;
    letter-spacing: -0.01em;
}
.invoice-company-tax,
.invoice-company-address {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: var(--brand-muted);
}
.invoice-company-address { margin-top: 0.4rem; }
.invoice-sheet-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    background: var(--brand);
    padding: 0.28rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.55rem;
}
.invoice-sheet-number {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.55rem;
    letter-spacing: -0.02em;
}
.invoice-sheet-status { margin-bottom: 0.85rem; }
.invoice-sheet-meta { text-align: right; min-width: 13rem; }
.invoice-sheet-meta-list { margin: 0; display: grid; gap: 0.4rem; }
.invoice-sheet-meta-list div { display: flex; justify-content: flex-end; gap: 0.85rem; font-size: 0.8125rem; }
.invoice-sheet-meta-list dt { color: var(--brand-muted); margin: 0; }
.invoice-sheet-meta-list dd { margin: 0; font-weight: 600; color: var(--brand); }
.invoice-sheet-parties {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.75rem;
    margin-top: 1.5rem;
    padding: 1.15rem 1.25rem;
    background: #f8f7fb;
    border-radius: 10px;
}
.invoice-sheet-parties h4 {
    margin: 0 0 0.55rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-muted);
    font-weight: 700;
}
.invoice-sheet-parties p { margin: 0.18rem 0; font-size: 0.875rem; }
.invoice-sheet-address { margin-top: 0.55rem !important; color: var(--brand-muted); white-space: pre-line; }
.invoice-sheet-totals { margin: 0; display: grid; gap: 0.45rem; }
.invoice-sheet-totals div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
.invoice-sheet-totals dt { margin: 0; color: var(--brand-muted); }
.invoice-sheet-totals dd { margin: 0; font-weight: 600; }
.invoice-sheet-totals .is-total {
    margin-top: 0.4rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(57, 48, 133, 0.12);
}
.invoice-sheet-totals .is-total dd { font-size: 1.1rem; color: var(--brand); }
.invoice-sheet-items { margin-top: 1.75rem; }
.invoice-sheet-table { width: 100%; border-collapse: collapse; }
.invoice-sheet-table th,
.invoice-sheet-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(57, 48, 133, 0.08);
    font-size: 0.875rem;
    text-align: left;
}
.invoice-sheet-table th {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-muted);
    background: #f3f1f8;
    font-weight: 700;
}
.invoice-sheet-table tbody tr:last-child td { border-bottom-color: transparent; }
.invoice-sheet-table .is-num { text-align: right; white-space: nowrap; }
.invoice-sheet-table tfoot td {
    border-bottom: none;
    padding-top: 0.55rem;
    padding-bottom: 0.35rem;
    color: var(--brand-muted);
    text-align: right;
}
.invoice-sheet-table tfoot .is-num { color: var(--brand); font-weight: 600; }
.invoice-sheet-table tfoot .is-grand td {
    padding-top: 0.85rem;
    border-top: 2px solid var(--brand);
    color: var(--brand);
    font-weight: 700;
    font-size: 0.95rem;
}
.invoice-sheet-footer {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(57, 48, 133, 0.18);
    font-size: 0.75rem;
    color: var(--brand-muted);
}
.invoice-sheet-footer p { margin: 0; }

.invoice-view-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.invoice-view-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}
.invoice-view-doc { overflow: hidden; }
.invoice-doc-card {
    border-color: rgba(57, 48, 133, 0.1);
    box-shadow: 0 10px 30px rgba(57, 48, 133, 0.06);
}
.invoice-view-doc .invoice-sheet { box-shadow: none; border: none; }
.invoice-pay-ok { margin: 0; font-size: 0.875rem; color: #16a34a; font-weight: 600; }
.invoice-official-card {
    background: linear-gradient(160deg, #f4f1fb 0%, #ffffff 55%);
    border-color: rgba(57, 48, 133, 0.14);
}
.invoice-official-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(57, 48, 133, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}
.public-invoice-body { background: #f5f4f8; margin: 0; padding: 1.5rem; }
.public-invoice-wrap { max-width: 880px; margin: 0 auto; }

@media (max-width: 900px) {
    .invoice-view-layout { grid-template-columns: 1fr; }
    .invoice-sheet-meta { text-align: left; }
    .invoice-sheet-meta-list div { justify-content: flex-start; }
    .invoice-sheet-parties { grid-template-columns: 1fr; }
}
@media (max-width:720px){
    .invoice-sheet { padding: 1.25rem; }
}

@media print {
    @page { margin: 12mm; size: A4; }
    html, body {
        background: #fff !important;
        color: #000 !important;
    }
    .no-print,
    .hpanel-sidebar,
    .hpanel-header,
    .hpanel-overlay,
    .hpanel-footer,
    .impersonate-banner,
    .client-banner-wrap,
    .hpanel-toast-wrap,
    .confirm-modal,
    .dash-filter-tabs,
    .admin-section-tabs {
        display: none !important;
    }
    .hpanel-app,
    .hpanel-main,
    .hpanel-content,
    .hpanel-page {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    .invoice-view-layout { display: block; }
    .invoice-view-doc,
    .invoice-sheet,
    .hpanel-card {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #fff !important;
    }
    .invoice-sheet { padding: 0 !important; background: #fff !important; }
    .invoice-sheet-parties { background: #f8f8f8 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .invoice-sheet-table th { background: #f3f4f6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .public-invoice-body { padding: 0 !important; }
}

/* Banks */
.bank-accounts-grid, .pay-methods-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1rem; }
.bank-account-card { padding:1.25rem; }
.bank-account-card.is-inactive { opacity:0.65; }
.bank-account-head { display:flex; gap:0.85rem; align-items:center; margin-bottom:1rem; }
.bank-account-head h3 { margin:0; font-size:1rem; }
.bank-logo { height:40px; width:auto; max-width:120px; object-fit:contain; }
.bank-logo-fallback { width:44px; height:44px; border-radius:10px; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.bank-account-dl { margin:0; display:grid; gap:0.5rem; }
.bank-account-dl div { display:grid; grid-template-columns:110px 1fr; gap:0.5rem; font-size:0.875rem; }
.bank-account-dl dt { color:var(--brand-muted); }
.bank-account-dl dd { margin:0; }
.iban-row { display:flex; flex-wrap:wrap; gap:0.5rem; align-items:center; }
.pay-method-card { padding:1.25rem; text-decoration:none; color:inherit; display:flex; flex-direction:column; gap:0.35rem; transition:border-color .15s; }
.pay-method-card:hover { border-color:var(--brand); }

/* Checkout pay page */
.pay-page { max-width: 980px; margin: 0 auto; }
.pay-page .hpanel-link-back { display:inline-block; margin-bottom: 1rem; }
.pay-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.25rem;
    align-items: start;
}
.pay-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
}
.pay-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand);
}
.pay-muted { margin: 0 0 1rem; color: var(--brand-muted); font-size: 0.875rem; }
.pay-method-list { display: grid; gap: 0.65rem; margin-top: 1rem; }
.pay-method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background .15s;
}
.pay-method-row:hover { border-color: var(--brand); background: #f8fafc; }
.pay-method-row.is-disabled { opacity: 0.5; pointer-events: none; }
.pay-method-info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.pay-method-info strong { font-size: 0.95rem; }
.pay-method-info span { font-size: 0.8rem; color: var(--brand-muted); }
.pay-method-price { font-weight: 700; white-space: nowrap; color: var(--brand); }
.pay-facts { display: grid; gap: 0.55rem; margin: 0.85rem 0 1rem; }
.pay-facts > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
.pay-facts span { color: var(--brand-muted); }
.pay-facts strong { font-weight: 600; }
.pay-facts .is-total {
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}
.pay-facts .is-total strong { font-size: 1.05rem; color: var(--brand); }
.pay-cta { width: 100%; margin-top: 0.35rem; }
.pay-back-link { display: inline-block; margin-top: 1rem; font-size: 0.875rem; color: var(--brand-muted); text-decoration: none; }
.pay-back-link:hover { color: var(--brand); }
.pay-iframe-wrap {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
}
.pay-summary .pay-card-title { margin-bottom: 0.75rem; }
@media (max-width: 820px) {
    .pay-layout { grid-template-columns: 1fr; }
    .pay-side { order: -1; }
}

/* Order wizard payment */
.order-pay-block { margin: 1rem 0 0.75rem; }
.order-pay-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-muted);
    margin-bottom: 0.55rem;
}
.order-pay-list { display: grid; gap: 0.45rem; }
.order-pay-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
}
.order-pay-option.is-selected { border-color: var(--brand); background: #f8fafc; }
.order-pay-option.is-disabled { opacity: 0.45; cursor: not-allowed; }
.order-pay-option input { margin: 0; }
.order-pay-option-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.order-pay-option-label { font-size: 0.875rem; font-weight: 600; }
.order-pay-option-note { font-size: 0.75rem; color: var(--brand-muted); }
.order-pay-option-amount { font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.order-pay-hint { margin: 0.5rem 0 0; font-size: 0.75rem; color: #b45309; }

/* Template vars */
.tpl-vars-box { margin:1.25rem 0; padding:1rem; border:1px solid var(--border); border-radius:12px; background:#f8fafc; }
.tpl-var-group { margin-top:0.85rem; }
.tpl-var-group strong { display:block; font-size:0.8125rem; margin-bottom:0.4rem; }
.tpl-var-chips { display:flex; flex-wrap:wrap; gap:0.35rem; }
.tpl-var { cursor:pointer; background:#fff; border:1px solid var(--border); border-radius:6px; padding:0.2rem 0.45rem; font-size:0.75rem; color:var(--brand); }
.tpl-var:hover { background:#eef2ff; }
.tpl-var.is-suggested { border-color:#393085; background:#eef2ff; font-weight:600; }

/* Square action icons (invoice/order lists) */
.action-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
}
.action-btn-group form { display: inline-flex; margin: 0; }
.btn-sq {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    padding: 0;
    flex-shrink: 0;
}
.btn-sq svg { width: 16px; height: 16px; }
.btn-sq.is-success { background: #22c55e; }
.btn-sq.is-success:hover { background: #16a34a; }
.btn-sq.is-edit { background: #3b82f6; }
.btn-sq.is-edit:hover { background: #2563eb; }
.btn-sq.is-view { background: #0ea5e9; }
.btn-sq.is-view:hover { background: #0284c7; }
.btn-sq.is-danger { background: #ef4444; }
.btn-sq.is-danger:hover { background: #dc2626; }

/* Automation accordion */
.auto-accordion {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 0.85rem;
    overflow: hidden;
    background: #fff;
}
.auto-accordion-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: #f8fafc;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--brand);
    text-align: left;
}
.auto-accordion-head.is-open { border-bottom: 1px solid var(--border); }
.auto-accordion-chevron { transition: transform .15s ease; opacity: 0.7; }
.auto-accordion-chevron.is-open { transform: rotate(180deg); }
.auto-accordion-body { padding: 1rem 1.1rem 1.15rem; }

/* Country searchable picker */
.geo-country-picker { position: relative; }
.geo-country-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
    cursor: pointer;
    width: 100%;
}
.auth-country-trigger {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 0.875rem;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.geo-country-caret { opacity: 0.55; font-size: 0.75rem; }
.geo-country-dropdown {
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    padding: 0.5rem;
}
.geo-country-search { margin-bottom: 0.4rem; }
.geo-country-list { max-height: 240px; overflow: auto; }
.geo-country-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.65rem;
    border: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    color: #1a1a2e;
}
.geo-country-option:hover,
.geo-country-option.is-active { background: var(--brand-light, #f1f0fb); }
.geo-country-meta { color: var(--brand-muted); font-size: 0.75rem; }
.geo-country-empty {
    margin: 0;
    padding: 0.75rem;
    text-align: center;
    color: var(--brand-muted);
    font-size: 0.8125rem;
}

/* Product cPanel module config */
.module-limit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 0.75rem;
}
.module-limit-row .hpanel-field { margin: 0; }
.module-limit-unlimited {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.65rem;
    white-space: nowrap;
    font-size: 0.8125rem;
    color: var(--brand-muted);
}
.hpanel-switch {
    position: relative;
    width: 42px;
    height: 24px;
    display: inline-block;
    flex-shrink: 0;
}
.hpanel-switch input { opacity: 0; width: 0; height: 0; }
.hpanel-switch-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s;
}
.hpanel-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .15s;
}
.hpanel-switch input:checked + .hpanel-switch-slider { background: #22c55e; }
.hpanel-switch input:checked + .hpanel-switch-slider::before { transform: translateX(18px); }
.module-server-mode {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.module-server-mode label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    cursor: pointer;
}
.module-feature-logos {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.module-whm-box {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    background: #f8fafc;
}
.module-whm-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.module-whm-host {
    margin-top: 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand);
    font-family: ui-monospace, monospace;
}
.module-simple-toggles {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.1rem;
}
.module-simple-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}
.module-simple-toggle strong {
    display: block;
    font-size: 0.9rem;
    color: var(--brand);
}
.module-simple-toggle small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: var(--brand-muted);
}



/* ?? Public order wizard ?? */
.order-wizard {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.25rem 0 1.5rem;
}
.order-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    background:
        radial-gradient(1200px 180px at 0% 0%, rgba(57, 48, 133, 0.10), transparent 55%),
        linear-gradient(180deg, #fff 0%, #f8f8fc 100%);
    border: 1px solid var(--border);
}
.order-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
}
.order-hero-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.order-hero-sub {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    color: var(--brand-muted);
}
.order-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 2rem;
    max-width: 720px;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.order-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--brand-muted);
    min-width: 7rem;
    padding: 0.15rem 0.35rem;
    transition: color 0.2s ease;
}
.order-step:disabled { cursor: default; opacity: 0.5; }
.order-step-num {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--surface);
    color: var(--brand-muted);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.order-step-label { font-size: 0.8125rem; font-weight: 500; text-align: center; }
.order-step.is-active .order-step-num,
.order-step.is-done .order-step-num {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.order-step.is-active .order-step-num { transform: scale(1.06); }
.order-step.is-active { color: var(--brand); }
.order-step.is-done { color: var(--brand); }
.order-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 0.4rem 1rem;
    max-width: 5.5rem;
    transition: background 0.25s ease;
}
.order-step-line.is-done { background: var(--brand); }
.order-panel { min-height: 12rem; }
.order-panel-enter {
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.order-panel-enter-start {
    opacity: 0;
    transform: translateY(8px);
}
.order-panel-enter-end {
    opacity: 1;
    transform: translateY(0);
}
.order-panel-lead {
    text-align: center;
    color: var(--brand-muted);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    line-height: 1.55;
}
.order-inline-error {
    margin: -0.75rem auto 1.25rem;
    max-width: 640px;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.875rem;
    text-align: center;
}
.order-period-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.order-period-card {
    position: relative;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.6rem 1rem 1.85rem;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.order-period-card:hover {
    border-color: rgba(57, 48, 133, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.order-period-card.is-selected {
    border-color: var(--brand);
    background: linear-gradient(180deg, #fff 0%, rgba(57, 48, 133, 0.04) 100%);
    box-shadow: 0 0 0 3px rgba(57, 48, 133, 0.12);
    transform: translateY(-2px);
}
.order-period-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 0.75rem;
}
.order-period-price {
    display: block;
    font-size: 1.85rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}
.order-period-price small { font-size: 1rem; font-weight: 600; margin-left: 0.15rem; }
.order-period-check {
    position: absolute;
    left: 50%;
    bottom: -0.7rem;
    transform: translateX(-50%);
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(57, 48, 133, 0.25);
}
.order-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.btn-brand-lg {
    padding: 0.8rem 2.1rem;
    font-size: 0.9375rem;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-brand-lg:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(57, 48, 133, 0.22);
}
.order-domain-card { max-width: 640px; margin: 0 auto 1.25rem; }
.order-domain-modes { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.order-domain-mode {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.85rem; border: 1px solid var(--border); border-radius: 999px;
    font-size: 0.8125rem; cursor: pointer; color: var(--brand-muted);
}
.order-domain-mode.is-active {
    border-color: var(--brand); color: var(--brand); background: var(--brand-light);
}
.order-domain-mode input { accent-color: var(--brand); }
.order-cart-card { max-width: 640px; margin: 0 auto 1rem; }
.order-cart-row {
    display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
    padding: 0.35rem 0;
}
.order-cart-row.is-sub { font-size: 0.875rem; color: var(--brand-muted); }
.order-cart-product { font-weight: 600; color: var(--brand); }
.order-cart-price { font-weight: 600; white-space: nowrap; }
.order-cart-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--border);
    font-size: 1rem;
}
.order-cart-total strong { font-size: 1.15rem; color: var(--brand); }
.order-guest-note {
    max-width: 640px; margin: 0 auto 1rem;
    border: 1px dashed rgba(57, 48, 133, 0.3);
    background: var(--brand-light);
}
@media (max-width: 720px) {
    .order-hero { padding: 1.1rem 1.15rem; border-radius: 14px; }
    .order-hero-title { font-size: 1.25rem; }
    .order-steps {
        border-radius: 16px;
        padding: 0.75rem 0.5rem;
        max-width: none;
    }
    .order-period-grid { grid-template-columns: 1fr; }
    .order-step-label { font-size: 0.7rem; }
    .order-step { min-width: 4.5rem; }
}

/* ?? Domain accordion + cart ?? */
.order-domain-acc {
    max-width: 860px;
    margin: 0 auto 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.order-acc-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.order-acc-item.is-open {
    border-color: rgba(57, 48, 133, 0.35);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}
.order-acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.15rem;
    border: none;
    background: #f5f5f8;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}
.order-acc-item.is-open .order-acc-head { background: #374151; color: #fff; }
.order-acc-arrow { width: 1rem; display: inline-block; }
.order-acc-body { padding: 1.15rem; }
.order-domain-check-row { display: flex; gap: 0.5rem; align-items: stretch; }
.order-domain-check-row .hpanel-input { flex: 1; }
.order-check-btn { border-radius: 999px; padding: 0.65rem 1.25rem; white-space: nowrap; }
.order-domain-promo { text-align: center; margin: 0.85rem 0 0; font-size: 0.875rem; color: var(--brand-muted); }
.order-domain-own-promo {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.95rem 1.05rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(57, 48, 133, 0.08), rgba(57, 48, 133, 0.02));
    border: 1px solid rgba(57, 48, 133, 0.18);
}
.order-domain-own-promo-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
}
.order-domain-own-promo-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #1a1a2e;
}
.order-domain-own-promo-text strong { color: var(--brand); }
.order-dns-box {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(5, 150, 105, 0.22);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.07), rgba(5, 150, 105, 0.02));
}
.order-dns-box-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.order-dns-box-icon {
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #059669;
    color: #fff;
}
.order-dns-box-head strong {
    display: block;
    font-size: 0.9rem;
    color: #065f46;
    margin-bottom: 0.15rem;
}
.order-dns-box-head p {
    margin: 0;
    font-size: 0.8125rem;
    color: #047857;
    line-height: 1.4;
}
.order-dns-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.order-dns-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(5, 150, 105, 0.18);
}
.order-dns-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
}
.order-dns-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875rem;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
}
.order-dns-copy {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    font-family: inherit;
}
.order-dns-copy:hover { border-color: var(--brand); background: var(--brand-light); }
.order-tld-results { margin-top: 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; }
.order-tld-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.order-tld-row.is-available:hover,
.order-tld-row.is-selected {
    border-color: var(--brand);
    background: var(--brand-light);
}
.order-tld-row.is-taken { opacity: 0.95; }
.order-tld-name { font-weight: 600; color: var(--brand); }
.order-tld-status { font-size: 0.8125rem; color: var(--brand-muted); }
.order-tld-row.is-available .order-tld-status { color: #059669; }
.order-tld-row.is-taken .order-tld-status { color: #b45309; }
.order-tld-price { font-weight: 700; color: #1a1a2e; }
.order-tld-actions { display: flex; gap: 0.35rem; justify-content: flex-end; }
.order-tld-btn { padding: 0.35rem 0.65rem !important; font-size: 0.75rem !important; white-space: nowrap; }

.order-check-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.order-check-modal {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    text-align: center;
    min-width: 240px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.order-check-modal strong { display: block; margin-top: 0.85rem; color: var(--brand); }
.order-check-modal p { margin: 0.35rem 0 0; color: var(--brand-muted); font-size: 0.875rem; }
.order-check-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 3px solid #e2e8f0;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: order-spin 0.7s linear infinite;
}
@keyframes order-spin { to { transform: rotate(360deg); } }

.domain-tool-page { max-width: 720px; }
.domain-tool-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.domain-tool-nav-link {
    display: inline-flex;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--brand-muted);
    font-size: 0.8125rem;
    text-decoration: none;
}
.domain-tool-nav-link:hover { border-color: var(--brand); color: var(--brand); }
.domain-tool-nav-link.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.domain-search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
}
.domain-result-list { margin-top: 1rem; display: grid; gap: 0.5rem; }
.domain-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}
.domain-result-row.is-available { border-color: #bbf7d0; background: #f0fdf4; }
.domain-result-row.is-taken { border-color: #fde68a; background: #fffbeb; }
.domain-result-main { display: flex; flex-direction: column; gap: 0.15rem; }
.domain-result-main span { font-size: 0.8rem; color: var(--brand-muted); }
.domain-result-actions { display: flex; align-items: center; gap: 0.65rem; }
.domain-result-price { font-weight: 700; white-space: nowrap; }

.domain-manage { max-width: 920px; }
.domain-manage-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: flex-start;
}
.domain-manage-title {
    margin: 0.15rem 0 0;
    font-size: 1.55rem;
    color: var(--brand);
    letter-spacing: -0.02em;
    word-break: break-all;
}
.domain-manage-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.25rem;
    margin: 0;
    min-width: 220px;
}
.domain-manage-meta dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-muted);
}
.domain-manage-meta dd { margin: 0.1rem 0 0; font-weight: 600; }
.domain-manage-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem 0;
}
.domain-manage-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--brand-muted);
    font-size: 0.875rem;
    text-decoration: none;
}
.domain-manage-tab:hover { border-color: var(--brand); color: var(--brand); }
.domain-manage-tab.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.domain-manage-panel { margin-top: 0; }
.domain-child-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}
.domain-child-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}
.domain-child-list li > div { display: flex; flex-direction: column; gap: 0.15rem; }
@media (max-width: 640px) {
    .order-tld-row { grid-template-columns: 1fr auto; }
    .order-tld-actions { grid-column: 1 / -1; }
    .domain-search-bar { grid-template-columns: 1fr; }
    .domain-result-row { flex-direction: column; align-items: flex-start; }
    .domain-manage-meta { grid-template-columns: 1fr 1fr; width: 100%; }
    .domain-child-list li { flex-direction: column; align-items: flex-start; }
}

.order-cart-wrap { max-width: none; margin: 0 auto; }
.order-cart-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
}
.order-cart-title { margin: 0; font-size: 1.4rem; color: var(--brand); letter-spacing: -0.02em; }
.order-cart-layout {
    display: grid;
    grid-template-columns: 1.65fr 0.95fr;
    gap: 1.35rem;
    align-items: start;
}
.order-cart-table-wrap {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.order-cart-table { width: 100%; border-collapse: collapse; }
.order-cart-table thead th {
    background: #374151;
    color: #fff;
    text-align: left;
    padding: 0.85rem 1.1rem;
    font-size: 0.8125rem;
    font-weight: 600;
}
.order-cart-table td {
    padding: 1.1rem;
    border-top: 1px solid var(--border);
    vertical-align: top;
}
.order-cart-item-name { font-weight: 700; color: #1a1a2e; }
.order-cart-item-meta { font-size: 0.8125rem; color: #be185d; margin-top: 0.15rem; }
.order-cart-item-domain { font-size: 0.8125rem; color: var(--brand-muted); margin-top: 0.15rem; }
.order-cart-period { min-width: 8rem; }
.order-cart-amount { font-weight: 700; white-space: nowrap; text-align: right; }
.order-cart-foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: center;
}
.order-cart-secure {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    min-width: 0;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(5, 150, 105, 0.02));
    border: 1px solid rgba(5, 150, 105, 0.22);
}
.order-ssl-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    background: #059669;
    color: #fff;
}
.order-ssl-icon svg {
    width: 14px;
    height: 14px;
}
.order-ssl-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}
.order-ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    max-width: 100%;
    background: #059669;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.order-ssl-badge svg {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
}
.order-ssl-desc {
    font-size: 12px;
    line-height: 1.35;
    color: #047857;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.order-summary-card {
    border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
    background: var(--surface); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.order-summary-head {
    background: #374151; color: #fff; padding: 0.85rem 1rem; font-weight: 700; font-size: 0.9375rem;
}
.order-summary-body { padding: 1rem; }
.order-summary-row {
    display: flex; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem;
    font-size: 0.875rem; color: var(--brand-muted);
}
.order-summary-row .is-accent { color: #ea580c; font-weight: 700; }
.order-summary-total {
    margin: 1rem 0; padding-top: 0.85rem; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 0.35rem;
}
.order-summary-total span { font-size: 0.75rem; color: var(--brand-muted); letter-spacing: 0.02em; }
.order-summary-total strong { font-size: 1.5rem; color: #16a34a; }
.order-summary-cta {
    width: 100%; justify-content: center; border-radius: 8px;
    padding: 0.9rem 1rem; font-size: 1rem; font-weight: 700;
}
.order-guest-hint { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--brand-muted); text-align: center; }
@media (max-width: 900px) {
    .order-cart-layout { grid-template-columns: 1fr; }
    .order-domain-check-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .order-panel-enter,
    .order-period-card,
    .order-step-num,
    .order-step-line,
    .order-tld-row,
    .btn-brand-lg {
        transition: none !important;
    }
    .order-period-card:hover,
    .order-period-card.is-selected,
    .order-tld-row.is-available:hover,
    .btn-brand-lg:hover:not(:disabled) {
        transform: none;
    }
    .order-panel-enter-start {
        opacity: 1;
        transform: none;
    }
}

/* Hesap ? Do?rulama / G?venlik */
.security-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}
.security-card {
    border: 1px solid var(--border, #ebe9f2);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    background: linear-gradient(180deg, #fafafc 0%, #fff 100%);
}
.security-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}
.security-card-title {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand, #393085);
}
.security-card-meta {
    margin: 0;
    font-size: 0.8rem;
    color: var(--brand-muted, rgba(57,48,133,0.55));
    word-break: break-all;
}
.security-badge {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #f1f0f7;
    color: rgba(57,48,133,0.65);
    border: 1px solid #ebe9f2;
}
.security-badge.is-ok {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}
.security-badge.is-warn {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}
.security-totp-setup {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.security-qr {
    border-radius: 12px;
    border: 1px solid #ebe9f2;
    background: #fff;
}
.security-secret {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    background: #f3f4f8;
    color: #393085;
    word-break: break-all;
}
.security-alert-box {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}
.security-alert-box strong { display: block; margin-bottom: 0.35rem; }
.security-alert-box p { margin: 0 0 0.65rem; font-size: 0.8125rem; }
.security-recovery-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.4rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    font-weight: 700;
}
.security-recovery-list li {
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    text-align: center;
}

/* M??teri panel duyuru / uyar?lar */
.client-banner-wrap {
    margin: 0 1.25rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.client-announcement-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.client-announcement {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem 1rem 0.95rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: #fff;
    overflow: hidden;
}
.client-announcement-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}
.client-announcement-icon {
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    margin-left: 0.35rem;
}
.client-announcement-content {
    flex: 1;
    min-width: 0;
}
.client-announcement-meta {
    margin-bottom: 0.35rem;
}
.client-announcement-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}
.client-announcement-title {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: inherit;
}
.client-announcement-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.92;
    white-space: pre-wrap;
}
.client-announcement-close {
    flex-shrink: 0;
    align-self: flex-start;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    opacity: 0.75;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}
.client-announcement-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.45);
}

.client-announcement.is-info {
    background: #f5f7ff;
    border-color: #d7defa;
    color: #312e81;
}
.client-announcement.is-info .client-announcement-accent { background: #4f46e5; }
.client-announcement.is-info .client-announcement-icon { background: #e0e7ff; color: #4338ca; }
.client-announcement.is-info .client-announcement-badge { background: #e0e7ff; color: #3730a3; }

.client-announcement.is-warning {
    background: #fff8f1;
    border-color: #fde2c4;
    color: #9a3412;
}
.client-announcement.is-warning .client-announcement-accent { background: #f59e0b; }
.client-announcement.is-warning .client-announcement-icon { background: #ffedd5; color: #c2410c; }
.client-announcement.is-warning .client-announcement-badge { background: #ffedd5; color: #9a3412; }

.client-announcement.is-success {
    background: #f0fdf6;
    border-color: #bbf7d0;
    color: #065f46;
}
.client-announcement.is-success .client-announcement-accent { background: #16a34a; }
.client-announcement.is-success .client-announcement-icon { background: #dcfce7; color: #15803d; }
.client-announcement.is-success .client-announcement-badge { background: #dcfce7; color: #166534; }

.client-announcement.is-danger {
    background: #fff5f5;
    border-color: #fecaca;
    color: #991b1b;
}
.client-announcement.is-danger .client-announcement-accent { background: #dc2626; }
.client-announcement.is-danger .client-announcement-icon { background: #fee2e2; color: #b91c1c; }
.client-announcement.is-danger .client-announcement-badge { background: #fee2e2; color: #991b1b; }

.client-announce-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.875rem;
    line-height: 1.45;
}
.client-announce-bar-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}
.client-announce-bar-body strong { font-size: 0.9rem; }
.client-announce-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.client-announce-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 10px;
    background: #393085;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}
.client-announce-cta:hover { background: #2e2669; }
.client-announce-dismiss {
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.55;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
}
.client-announce-dismiss:hover { opacity: 1; background: rgba(0,0,0,0.06); }
.client-announce-bar.is-info {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}
.client-announce-bar.is-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}
.client-announce-bar.is-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.client-announce-bar.is-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.client-announce-bar.is-security {
    background: linear-gradient(90deg, #f5f3ff 0%, #eef2ff 100%);
    border-color: #ddd6fe;
    color: #4338ca;
}
.client-announce-bar.is-security .client-announce-cta {
    background: #4338ca;
}
.client-announce-bar.is-security .client-announce-cta:hover {
    background: #3730a3;
}
