: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;
    --surface-2: #f8fafc;
    --border: #e8eaef;
    --text: #1a1a2e;
    --text-muted: #64748b;
    --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;
    --impersonate-h: 0px;
    color-scheme: light;
}

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

body.hpanel-body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.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;
    position: relative;
}
.hpanel-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}
.hpanel-sidebar-head.has-logo {
    justify-content: center;
    padding: 0 0.875rem;
}
.hpanel-sidebar-head.has-logo .hpanel-sidebar-brand {
    justify-content: center;
}
.hpanel-sidebar-head.has-logo .hpanel-logo-img {
    height: 42px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.hpanel-sidebar-head.has-logo .hpanel-logo-img.is-theme-dark {
    display: none;
}
html[data-theme="dark"] .hpanel-sidebar-head.has-logo .hpanel-logo-img.is-theme-light {
    display: none;
}
html[data-theme="dark"] .hpanel-sidebar-head.has-logo .hpanel-logo-img.is-theme-dark {
    display: block;
}
.panel-logo-preview.is-dark-preview {
    background: #141821;
    border-color: #2a3142;
}
.hpanel-sidebar-close {
    display: none;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hpanel-sidebar-close svg {
    width: 20px;
    height: 20px;
}
.hpanel-sidebar-close:hover {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand);
}
.hpanel-sidebar-head.has-logo .hpanel-sidebar-close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
}
.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;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    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.5rem;
    margin-bottom: 0.55rem;
    flex-wrap: wrap;
}
.ticket-canned-select {
    appearance: none;
    flex: 1;
    min-width: 160px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--brand-muted);
    font-size: 0.8125rem;
    padding: 0.15rem 1.4rem 0.15rem 0;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}
.ticket-canned-select:hover,
.ticket-canned-select:focus {
    color: var(--brand);
    outline: none;
}
.ticket-canned-link {
    font-size: 0.75rem;
    color: var(--brand-muted);
    text-decoration: none;
}
.ticket-canned-link:hover { color: var(--brand); }

.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;
    min-width: 0;
    max-width: 100%;
    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;
    gap: 0.75rem;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 40;
    overflow: visible;
}

.hpanel-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.admin-global-search {
    position: relative;
    flex: 1;
    max-width: 28rem;
    min-width: 10rem;
    margin-left: 0.5rem;
}
.admin-global-search-field {
    position: relative;
    display: flex;
    align-items: center;
}
.admin-global-search-icon {
    position: absolute;
    left: 0.7rem;
    width: 1rem;
    height: 1rem;
    color: var(--brand-muted);
    pointer-events: none;
    display: flex;
}
.admin-global-search-icon svg {
    width: 1rem;
    height: 1rem;
}
.admin-global-search-input {
    width: 100%;
    padding-left: 2.1rem !important;
    padding-right: 2rem !important;
    height: 2.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.admin-global-search-input::placeholder {
    color: var(--brand-muted);
    font-weight: 500;
    opacity: 1;
}
.admin-global-search-hint {
    position: absolute;
    right: 0.7rem;
    font-size: 0.75rem;
    color: var(--brand-muted);
}
.admin-global-search-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
    z-index: 80;
    overflow: hidden;
}
.admin-global-search-scroll {
    max-height: min(68vh, 22rem);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding: 0.4rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.45) transparent;
}
.admin-global-search-scroll::-webkit-scrollbar {
    width: 8px;
}
.admin-global-search-scroll::-webkit-scrollbar-track {
    background: transparent;
    margin: 0.4rem 0;
}
.admin-global-search-scroll::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.admin-global-search-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.55);
    border: 2px solid transparent;
    background-clip: padding-box;
}
.admin-global-search-group-title {
    padding: 0.5rem 0.9rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-muted);
    pointer-events: none;
    user-select: none;
}
.admin-global-search-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.6rem 0.85rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.admin-global-search-item:hover,
.admin-global-search-item.is-active {
    background: var(--brand-light);
}
.admin-global-search-badge {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.18rem 0.4rem;
    border-radius: 6px;
    line-height: 1.2;
}
.admin-global-search-badge.is-customer {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}
.admin-global-search-badge.is-service {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}
.admin-global-search-item-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
.admin-global-search-item strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand);
}
.admin-global-search-item-body > span {
    font-size: 0.75rem;
    color: var(--brand-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-global-search-empty {
    padding: 0.95rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--brand-muted);
}
@media (max-width: 720px) {
    .admin-global-search {
        display: none;
    }
}

.hpanel-page-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hpanel-page-title-mobile {
    display: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hpanel-breadcrumb {
    font-size: 0.8125rem;
    color: var(--brand-muted);
}

.hpanel-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.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;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.hpanel-page {
    flex: 1;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
}

.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: var(--surface);
}
.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: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-top: 1.15rem;
}
.hpanel-page-num {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.45rem;
    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: 600;
    background: var(--surface, #fff);
    line-height: 1;
}
.hpanel-page-num.is-nav {
    min-width: auto;
    padding: 0 0.7rem;
    font-weight: 550;
}
a.hpanel-page-num:hover {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 6%, var(--surface, #fff));
}
.hpanel-page-num.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.hpanel-page-num.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
.hpanel-page-ellipsis {
    min-width: 1.25rem;
    text-align: center;
    color: var(--brand-muted);
    font-size: 0.85rem;
    user-select: none;
}

.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;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.dash-widget-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* T?klanmayan ?zet kart? ? sol men?ye y?nlendir */
.dash-widget-nolink {
    cursor: default;
    user-select: none;
    text-decoration: none;
    color: inherit;
}
.dash-widget-nolink .dash-widget-foot-hover {
    display: none;
}
.dash-widget-nolink:hover .dash-widget-foot-idle,
.dash-widget-nolink:focus-visible .dash-widget-foot-idle,
.dash-widget-nolink:active .dash-widget-foot-idle {
    display: none;
}
.dash-widget-nolink:hover .dash-widget-foot-hover,
.dash-widget-nolink:focus-visible .dash-widget-foot-hover,
.dash-widget-nolink:active .dash-widget-foot-hover {
    display: inline;
}
.dash-widget-nolink:hover,
.dash-widget-nolink:focus-visible {
    box-shadow: var(--shadow-md);
}
.dash-widget-nolink:focus {
    outline: none;
}
.dash-widget-nolink:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}

.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); }
.list-date-stack {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--brand);
    line-height: 1.35;
}
.list-date-stack span:last-child {
    color: var(--brand-muted);
    font-weight: 500;
}
.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: stretch;
}
.dash-grid-top-pair {
    margin-bottom: 1rem;
}
.dash-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.dash-feed li + li {
    border-top: 1px solid var(--border);
}
.dash-feed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.dash-feed-row:hover {
    background: var(--brand-light);
}
.dash-feed-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.dash-feed-body strong,
.dash-feed-customer {
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}
.dash-feed-customer:hover {
    color: var(--brand);
    text-decoration: underline;
}
.dash-feed-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}
a.dash-feed-meta:hover {
    color: var(--brand);
    text-decoration: underline;
}
.dash-feed-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
}
.dash-feed-amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}
.dash-feed-amount.is-paid {
    color: #16a34a;
}
.dash-feed-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .dash-feed-amount.is-paid { color: #4ade80; }
html[data-theme="dark"] .dash-feed-body strong,
html[data-theme="dark"] .dash-feed-customer { color: var(--text); }
@media (max-width: 900px) {
    .dash-grid-top-pair { grid-template-columns: 1fr; }
}
.dash-grid-2 > .dash-panel {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}
.dash-grid-2 > .dash-panel-span-2 {
    grid-column: 1 / -1;
}
.dash-grid-2 > .dash-panel > .dash-list,
.dash-grid-2 > .dash-panel > .hpanel-table-wrap {
    flex: 1;
    min-width: 0;
}
.dash-grid-2 .hpanel-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dash-grid-2.client-dash-grid .hpanel-table-wrap {
    overflow-x: auto;
}
.dash-table-inline {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
}
.dash-table-inline th,
.dash-table-inline td {
    vertical-align: top;
    overflow: hidden;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.dash-table-inline th:nth-child(1),
.dash-table-inline td:nth-child(1) { width: 20%; }
.dash-table-inline th:nth-child(2),
.dash-table-inline td:nth-child(2) { width: 28%; }
.dash-table-inline th:nth-child(3),
.dash-table-inline td:nth-child(3) { width: 14%; }
.dash-table-inline th:nth-child(4),
.dash-table-inline td:nth-child(4) { width: 14%; }
.dash-table-inline th:nth-child(5),
.dash-table-inline td:nth-child(5) { width: 14%; }
.dash-table-inline th:nth-child(6),
.dash-table-inline td:nth-child(6),
.dash-table-inline .dash-table-action-col {
    width: 2.75rem;
    padding-left: 0.25rem;
    padding-right: 0.65rem;
    text-align: right;
    vertical-align: middle;
    overflow: visible;
}
.dash-table-inline td:nth-child(6) .btn-sq,
.dash-table-inline .dash-table-action-col .btn-sq {
    margin: 0;
    vertical-align: middle;
}
.dash-table-inline .dash-cell-main,
.dash-table-inline .dash-cell-sub,
.dash-table-inline td.dash-cell-main {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-table-inline .list-date-stack {
    white-space: nowrap;
}
.dash-table-inline .list-date-stack span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}
.dash-col > .dash-panel {
    margin-bottom: 0;
}
.dash-compact-link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
.dash-compact-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.dash-compact-body strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand);
}
.dash-compact-product {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--brand);
}
.dash-compact-host {
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--brand-muted);
}
.dash-compact-meta {
    font-size: 0.75rem;
    color: var(--brand-muted);
}
.dash-compact-dates {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--brand);
}
.dash-compact-badge {
    margin-top: 0.25rem;
}
.dash-compact-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
    text-align: right;
}
.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-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    min-height: 220px;
    flex: 1;
}
a.dash-empty-state-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
a.dash-empty-state-link:hover,
a.dash-empty-state-link:focus-visible {
    background: color-mix(in srgb, var(--brand) 4%, var(--surface, #fff));
}
a.dash-empty-state-link:focus {
    outline: none;
}
a.dash-empty-state-link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
    outline-offset: -2px;
}
.dash-row-link {
    cursor: pointer;
}
html[data-theme="dark"] a.dash-empty-state-link:hover,
html[data-theme="dark"] a.dash-empty-state-link:focus-visible {
    background: color-mix(in srgb, #fff 4%, var(--surface, #111827));
}
.dash-empty-state-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.15rem;
    color: #c5c9d4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-empty-state-icon svg {
    width: 100%;
    height: 100%;
}
.dash-empty-state-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #6b7280;
    margin: 0 0 0.45rem;
    letter-spacing: -0.01em;
}
.dash-empty-state-desc {
    margin: 0;
    max-width: 18rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #9ca3af;
}
html[data-theme="dark"] .dash-empty-state-icon { color: #4b5563; }
html[data-theme="dark"] .dash-empty-state-title { color: #9ca3af; }
html[data-theme="dark"] .dash-empty-state-desc { color: #6b7280; }
.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: var(--brand);
}
.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);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.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; }

@media (max-width: 820px) {
    .hpanel-card-pad { padding: 1rem; }
    .hpanel-card { overflow-x: clip; }
}

.bulk-pay-meta {
    margin: 0.35rem 0 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
}
.bulk-pay-line {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    min-width: 0;
}
.bulk-pay-line > span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.bulk-pay-line > strong {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ?? 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 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--brand);
    color: #fff;
    padding: 0.55rem 1.25rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
body.is-impersonating {
    --impersonate-h: 48px;
}
body.is-impersonating .hpanel-sidebar {
    top: var(--impersonate-h);
}
body.is-impersonating .hpanel-header {
    top: var(--impersonate-h);
}
body.is-impersonating .hpanel-app {
    padding-top: var(--impersonate-h);
}
body.is-impersonating .hpanel-main {
    min-height: calc(100vh - var(--impersonate-h));
}

.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;
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        overscroll-behavior: none;
        touch-action: pan-y;
    }
    /* 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);
        height: var(--header-h);
        min-height: var(--header-h);
        overflow: visible;
        opacity: 1;
        pointer-events: auto;
    }
    .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;
        touch-action: none;
        overscroll-behavior: none;
    }
    .hpanel-sidebar-close {
        display: inline-flex;
    }
    .hpanel-sidebar-head.has-logo {
        padding-right: 3.25rem;
    }
    .hpanel-sidebar-foot { display: none; }
    .hpanel-main { margin-left: 0 !important; width: 100%; max-width: 100vw; }
    .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; }
    .hpanel-header { padding: 0 0.75rem; }
    .hpanel-content { padding: 1rem; }
    .hpanel-page-title {
        display: none;
    }
    .hpanel-page-title-mobile {
        display: block;
    }
}

/* Mobil men? a??kken arka plan (site) kaymas?n */
html.hpanel-nav-lock,
html.hpanel-nav-lock body.hpanel-body {
    overflow: hidden !important;
    overscroll-behavior: none;
    height: 100%;
    touch-action: none;
}
body.hpanel-body.is-nav-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}
html.hpanel-nav-lock .hpanel-sidebar,
html.hpanel-nav-lock .hpanel-sidebar-scroll,
html.hpanel-nav-lock .hpanel-nav-bottom {
    touch-action: pan-y;
}

@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-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.35rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand);
    background: #fff;
    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: var(--text);
    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 var(--border);
    font-size: 0.8125rem;
}
.cust-kv > div:last-child { border-bottom: none; }
.cust-kv dt {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-muted);
    font-weight: 500;
    min-width: 0;
}
.cust-kv-fa {
    flex-shrink: 0;
    width: 1.05rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--brand);
    opacity: 0.88;
}
.cust-kv dd { margin: 0; font-weight: 600; color: var(--text); text-align: right; }
.cust-kv .is-danger dt,
.cust-kv .is-danger dd { color: #dc2626; }
.cust-info-block {
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2, #f8fafc);
}
.cust-info-block-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-muted);
    margin-bottom: 0.35rem;
}
.cust-info-block-text {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.45;
    word-break: break-word;
}
.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: var(--surface-2);
    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; }
.cust-action-btn.cust-action-btn-danger {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff7f7;
}
.cust-action-btn.cust-action-btn-danger:hover:not(:disabled) {
    color: #fff;
    background: #dc2626;
    border-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;
    height: min(72vh, 740px);
    min-height: 520px;
    max-height: calc(100vh - 140px);
}

.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: var(--surface);
    flex-shrink: 0;
}

.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-handoff {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    flex-wrap: wrap;
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
    flex-shrink: 0;
}

.ticket-handoff-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--brand-muted);
    line-height: 1.3;
}

.ticket-handoff-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #94a3b8;
}

.ticket-handoff-dot.is-free { background: #94a3b8; }
.ticket-handoff-dot.is-mine { background: #16a34a; }
.ticket-handoff-dot.is-other { background: #d97706; }

.ticket-handoff-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ticket-handoff-actions form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.ticket-handoff-assign {
    gap: 0.35rem;
}

.ticket-handoff-select {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 8px;
    padding: 0.3rem 1.75rem 0.3rem 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.3;
    min-width: 10.5rem;
    max-width: 14rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    cursor: pointer;
}

.ticket-handoff-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8125rem;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
}

.ticket-handoff-btn:hover {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    color: var(--brand);
}

.ticket-handoff-btn.is-primary {
    border-color: transparent;
    background: var(--brand);
    color: #fff;
}

.ticket-handoff-btn.is-primary:hover {
    filter: brightness(1.05);
    color: #fff;
}

.ticket-status-form .hpanel-select {
    min-width: 180px;
}

.ticket-chat {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1.15rem 1.25rem;
    background: var(--surface-2);
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--brand-muted) 45%, transparent) transparent;
}

.ticket-chat::-webkit-scrollbar {
    width: 8px;
}

.ticket-chat::-webkit-scrollbar-track {
    background: transparent;
}

.ticket-chat::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--brand-muted) 40%, transparent);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.ticket-chat::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--brand-muted) 65%, transparent);
    background-clip: padding-box;
    border: 2px solid transparent;
}

.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: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px 14px 14px 4px;
    padding: 0.75rem 0.875rem;
    color: var(--text);
}

.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-body:empty { display: none; }
.ticket-msg-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}
.ticket-msg-att {
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    max-width: 220px;
    background: rgba(0,0,0,0.03);
    cursor: zoom-in;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ticket-msg-att:hover { transform: translateY(-1px); border-color: var(--brand); box-shadow: 0 8px 22px rgba(15,23,42,.14); }
.ticket-msg-att img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
}
.ticket-msg.is-mine .ticket-msg-att {
    border-color: rgba(255,255,255,0.25);
}
.ticket-image-preview[hidden] { display: none; }
.ticket-image-preview { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 1rem; }
.ticket-image-preview-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(15,23,42,.76); backdrop-filter: blur(4px); cursor: zoom-out; }
.ticket-image-preview-dialog { position: relative; z-index: 1; width: min(1040px,96vw); max-height: 92vh; overflow: hidden; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.32); }
.ticket-image-preview-head { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; gap: 1rem; padding: .65rem .75rem .65rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); font-size: .9rem; font-weight: 600; }
.ticket-image-preview-close { display: inline-grid; place-items: center; flex: 0 0 auto; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--border); border-radius: .65rem; background: transparent; color: inherit; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.ticket-image-preview-close:hover { background: rgba(148,163,184,.14); }
.ticket-image-preview-body { display: grid; place-items: center; min-height: 180px; max-height: calc(92vh - 3.25rem); padding: 1rem; overflow: auto; background: rgba(15,23,42,.045); }
.ticket-image-preview-body img { display: block; max-width: 100%; max-height: calc(92vh - 5.25rem); width: auto; height: auto; border-radius: .5rem; object-fit: contain; }
body.ticket-image-preview-open { overflow: hidden; }
@media (max-width: 640px) {
    .ticket-image-preview { padding: .5rem; }
    .ticket-image-preview-dialog { width: 100%; max-height: 94vh; border-radius: .8rem; }
    .ticket-image-preview-body { padding: .5rem; max-height: calc(94vh - 3.25rem); }
    .ticket-image-preview-body img { max-height: calc(94vh - 4.25rem); }
}
.ticket-compose-attach {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    color: var(--brand-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    flex-shrink: 0;
}
.ticket-compose-attach:hover { color: var(--brand); }

.ticket-msg-edit-btn {
    margin-left: 0.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.6875rem;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.85;
    padding: 0;
}
.ticket-msg-edit-btn:hover { opacity: 1; }
.ticket-msg-edit-form { margin-top: 0.5rem; }
.ticket-msg-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ticket-msg-read {
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    opacity: 0.75;
    text-align: right;
}

.ticket-msg-system {
    background: var(--brand-light);
    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: 0.85rem 1.15rem 1rem;
    background: var(--surface);
    flex-shrink: 0;
}

.ticket-compose-closed {
    text-align: center;
    color: var(--brand-muted);
    font-size: 0.875rem;
}

.ticket-compose-form {
    margin: 0;
}

.ticket-compose-box {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    padding: 0.65rem 0.75rem 0.55rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ticket-compose-box:focus-within {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
    background: var(--surface);
}

.ticket-compose-input {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.45;
    resize: none;
    min-height: 44px;
    max-height: 180px;
    padding: 0.15rem 0.15rem 0.45rem;
    outline: none;
    overflow-y: auto;
}

.ticket-compose-input::placeholder {
    color: var(--brand-muted);
    opacity: 0.85;
}

.ticket-compose-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.35rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.ticket-compose-hint {
    flex: 1;
    font-size: 0.71875rem;
    color: var(--brand-muted);
    line-height: 1.3;
}

.ticket-compose-send {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.ticket-compose-send:hover {
    filter: brightness(1.06);
}

.ticket-compose-send:active {
    transform: translateY(1px);
}

.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.55rem;
}

.ticket-list-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.ticket-list-item:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    box-shadow: var(--shadow-sm);
    background: color-mix(in srgb, var(--brand) 4%, var(--surface));
}

.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-head strong {
    color: var(--brand);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-list-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--brand-muted);
}

.ticket-list-item-preview {
    margin: 0.45rem 0 0;
    font-size: 0.8125rem;
    color: var(--brand-muted);
    line-height: 1.45;
}

.ticket-hub-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.ticket-hub-toolbar.is-end { justify-content: flex-end; }
.ticket-hub-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--brand-muted);
}
.ticket-hub-dot { opacity: 0.55; }
.ticket-hub-notice {
    margin: 0 0 1rem;
    padding: 0.8rem 0.95rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--brand-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}
.ticket-hub-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.15rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}
.ticket-hub-pager-info {
    font-size: 0.8125rem;
    color: var(--brand-muted);
}
.ticket-hub-pager .hpanel-pagination {
    margin-top: 0;
}

.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: var(--brand-light);
}

.hpanel-notify-wrap {
    position: relative;
    flex-shrink: 0;
}

.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;
    pointer-events: none;
}

.hpanel-notify-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 360px;
    max-width: min(360px, calc(100vw - 1.5rem));
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    z-index: 80;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.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;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.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: 12px;
    padding: 0.95rem 1.05rem;
    background: #fff;
    position: relative;
}
.address-card.is-default {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    background: color-mix(in srgb, var(--brand-light) 45%, #fff);
}
.address-card.is-editing {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent);
}
.address-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.address-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}
.address-card-actions form { margin: 0; display: inline; }
.address-card-line {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand);
    line-height: 1.45;
    word-break: break-word;
}
.address-card-meta {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--brand-muted);
    line-height: 1.4;
}
.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;
}
.addr-empty {
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: #fafafa;
}
.addr-empty p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--brand-muted);
}

.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: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(57, 48, 133, 0.12);
    color: var(--text, #1e1b4b);
    scrollbar-width: thin;
    scrollbar-color: rgba(57, 48, 133, 0.28) transparent;
}
.customer-picker-dropdown::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.customer-picker-dropdown::-webkit-scrollbar-track {
    background: transparent;
    margin: 0.35rem 0;
}
.customer-picker-dropdown::-webkit-scrollbar-thumb {
    background: rgba(57, 48, 133, 0.22);
    border-radius: 999px;
}
.customer-picker-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(57, 48, 133, 0.38);
}
.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 var(--border-soft, #f1f2f7);
    color: inherit;
    text-decoration: none !important;
}
.customer-picker-option,
.customer-picker-option:link,
.customer-picker-option:visited,
.customer-picker-option:hover,
.customer-picker-option:active,
.customer-picker-option:focus {
    color: inherit;
    text-decoration: none !important;
}
.customer-picker-option strong,
.customer-picker-option span {
    color: inherit;
    text-decoration: none !important;
}
.customer-picker-option:last-child { border-bottom: none; }
.customer-picker-option:hover,
.customer-picker-option.is-active { background: rgba(57, 48, 133, 0.06); }
.customer-picker-footer {
    display: block;
    width: 100%;
    border: none;
    border-top: 1px solid var(--border, #ebe9f2);
    background: var(--surface-2, #fafafc);
    color: var(--brand, #393085);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: left;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
    text-decoration: none !important;
}
.customer-picker-footer:hover { background: rgba(57, 48, 133, 0.06); }
.customer-list-search { align-items: center; }
.customer-list-search .customer-picker { position: relative; }
.customer-list-total {
    margin: 0 0 0 auto;
    white-space: nowrap;
    font-size: 0.8125rem;
}
.customer-picker-name {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    color: var(--brand);
    font-size: 0.875rem;
}
.customer-picker-name strong {
    color: var(--brand);
    font-weight: 650;
}
.customer-picker-meta {
    font-size: 0.75rem;
    color: var(--brand-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    text-decoration: none !important;
}
.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: var(--surface-2, #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: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    min-width: 220px;
    flex: 1;
    color: var(--text);
}
.svc-gauge-card.is-compact { padding: 0.75rem 0.9rem; min-width: 160px; }
.svc-gauge-card strong { color: var(--text); }
.svc-gauge {
    --pct: 0;
    --gauge-track: var(--border);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(var(--brand) calc(var(--pct) * 1%), var(--gauge-track) 0);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    position: relative;
}
.svc-gauge::before {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--surface);
}
.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-gauge.is-ssl span {
    display: grid;
    place-items: center;
    color: inherit;
}
.svc-gauge.is-ssl.is-ssl-ok {
    background: conic-gradient(#16a34a calc(var(--pct) * 1%), var(--gauge-track) 0);
    color: #16a34a;
}
.svc-gauge.is-ssl.is-ssl-warn {
    background: conic-gradient(#d97706 calc(var(--pct) * 1%), var(--gauge-track) 0);
    color: #d97706;
}
.svc-gauge.is-ssl.is-ssl-bad {
    background: conic-gradient(#dc2626 calc(var(--pct) * 1%), var(--gauge-track) 0);
    color: #dc2626;
}
.svc-gauge.is-ssl.is-ssl-muted {
    background: conic-gradient(#94a3b8 calc(var(--pct) * 1%), var(--gauge-track) 0);
    color: #64748b;
}
.svc-gauge-card.is-ssl-ok { border-color: #86efac; }
.svc-gauge-card.is-ssl-warn { border-color: #fcd34d; }
.svc-gauge-card.is-ssl-bad { border-color: #fca5a5; }
.svc-gauge-card.is-ssl-muted { border-color: var(--border); }
.svc-ssl-hint {
    margin: 0.15rem 0 0;
    font-size: 0.625rem;
    line-height: 1.2;
    color: var(--muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9.5rem;
}

.svc-manage-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    color: var(--text);
}
.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: var(--surface);
    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.is-sonicpanel {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.svc-login-btn.is-sonicpanel:hover { background: #1e293b; color: #fff; }
.svc-sonic-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.svc-sonic-logo {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}
.svc-login-btn-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    background: #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: var(--surface);
}
.hpanel-secret .hpanel-input-mono {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.65rem;
    min-width: 7rem;
    font-size: 0.8125rem;
    background: var(--surface-2);
    border: none;
    color: var(--text);
}
.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-client-block {
    max-width: 100%;
    min-width: 0;
    border-left: 3px solid var(--brand, #393085);
}
.svc-client-block-body {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
    max-height: 18rem;
    overflow: auto;
    padding: 0.75rem 0.9rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.hpanel-grid-2-wide > .hpanel-card {
    min-width: 0;
}
.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: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    color: var(--text);
}
.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-renew-box {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--brand-border, #e2e8f0);
}
.svc-renew-title {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--brand);
}
.svc-renew-form {
    display: grid;
    gap: 0.55rem;
    max-width: 280px;
}
.svc-renew-form .btn-brand {
    justify-self: start;
    margin-top: 0.25rem;
}

.svc-pkg-accordion {
    margin-top: 1rem;
}
.svc-pkg-accordion .auto-accordion-body {
    overflow: visible;
}
.svc-pkg-actions {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: 1fr;
}
.svc-pkg-actions .svc-renew-form {
    max-width: none;
    width: 100%;
}
.svc-pkg-actions .hpanel-select,
.svc-pkg-accordion .hpanel-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
@media (min-width: 900px) {
    .svc-pkg-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.svc-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}
.svc-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.svc-meta-badge.is-host {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 500;
}
.svc-meta-badge.is-product {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.svc-meta-badge.is-cycle {
    background: #f8fafc;
    color: #475569;
}
.svc-meta-badge.is-due.is-ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}
.svc-meta-badge.is-due.is-mid {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}
.svc-meta-badge.is-due.is-soon {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}
.svc-meta-badge.is-due.is-overdue {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.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: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    min-height: 52px;
    box-shadow: var(--shadow-sm);
}
.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: var(--surface);
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.35rem;
    box-shadow: var(--shadow-md);
    color: var(--text);
}
.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: var(--surface);
    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-empty {
    overflow: hidden;
}
.client-invoice-empty .dash-empty-state {
    min-height: 260px;
    padding: 2.75rem 1.5rem;
}

.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 var(--border);
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--surface) 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, var(--brand-light) 0%, var(--surface) 60%);
    border-color: var(--border);
}
.invoice-havale-form-card {
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 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: 860px; }
.product-form-card { overflow: hidden; padding: 0; }

.product-stats-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin: 0 0 1.25rem;
}
.product-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 118px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.04));
}
.product-stat-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.05rem 1.15rem 0.9rem;
}
.product-stat-value {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.product-stat-value.is-money { color: #16a34a; }
.product-stat-value.is-count { color: #2563eb; }
.product-stat-caption {
    margin-top: 0.3rem;
    font-size: 0.8125rem;
    color: var(--brand-muted, #64748b);
}
.product-stat-watermark {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    opacity: 0.4;
    pointer-events: none;
    line-height: 0;
}
.product-stat-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.15rem;
    background: #f1f5f9;
    border-top: 1px solid var(--border, #e2e8f0);
    font-size: 0.8125rem;
    color: var(--brand-muted, #64748b);
}
.product-stat-foot strong {
    color: var(--text, #0f172a);
    font-weight: 600;
}
.product-stat-foot strong.is-count {
    color: #2563eb;
}
.product-stat-card.is-link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.product-stat-card.is-link:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.product-stat-card.is-compact {
    min-height: 0;
    min-width: 10.5rem;
    max-width: 12.5rem;
}
.product-stat-card.is-compact .product-stat-body {
    padding: 0.7rem 0.8rem 0.55rem;
}
.product-stat-card.is-compact .product-stat-value {
    font-size: 1.25rem;
}
.product-stat-card.is-compact .product-stat-caption {
    font-size: 0.72rem;
    margin-top: 0.15rem;
}
.product-stat-card.is-compact .product-stat-watermark {
    right: 0.5rem;
    opacity: 0.32;
}
.product-stat-card.is-compact .product-stat-watermark svg {
    width: 34px;
    height: 34px;
}
.product-stat-card.is-compact .product-stat-foot {
    padding: 0.4rem 0.8rem;
    font-size: 0.72rem;
}
.product-name-link {
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}
.product-name-link:hover { text-decoration: underline; }
.product-list-table td { vertical-align: middle; }
.product-svc-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--surface, #fff);
    text-decoration: none;
    min-width: 6.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.product-svc-pill:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.product-svc-pill-active {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
}
.product-svc-pill-total {
    font-size: 0.7rem;
    color: var(--brand-muted, #64748b);
    font-weight: 500;
}
.product-svc-page {
    width: 100%;
    max-width: none;
}
.product-svc-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}
.product-svc-intro {
    margin-bottom: 1rem;
}
.product-svc-title {
    margin: 0 0 0.55rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text, #0f172a);
    line-height: 1.3;
}
.product-svc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}
.product-svc-meta-item {
    font-size: 0.8125rem;
    color: var(--brand-muted, #64748b);
}
.product-svc-meta-item.is-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
}
.product-svc-toolbar-card {
    margin-bottom: 1rem;
}
.product-svc-search {
    margin-top: 0.85rem;
}
.product-svc-head-wrap { margin-bottom: 1.15rem; }
.product-svc-head-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
}
.product-svc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
}
.product-svc-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--surface, #fff);
    color: var(--brand-muted, #64748b);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.product-svc-filter:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--text, #0f172a);
}
.product-svc-filter.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
@media (max-width: 640px) {
    .product-stats-cards { grid-template-columns: 1fr; }
}
html[data-theme="dark"] .product-stat-card {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: none;
}
html[data-theme="dark"] .product-stat-foot {
    background: rgba(148, 163, 184, 0.08);
    border-top-color: var(--border);
}
html[data-theme="dark"] .product-stat-watermark { color: #64748b; opacity: 0.3; }
html[data-theme="dark"] .product-stat-foot strong { color: var(--text); }
html[data-theme="dark"] .product-stat-foot strong.is-count,
html[data-theme="dark"] .product-stat-value.is-count { color: #60a5fa; }
html[data-theme="dark"] .product-stat-value.is-money { color: #4ade80; }
html[data-theme="dark"] .product-stat-card.is-link:hover {
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}
html[data-theme="dark"] .product-svc-pill {
    background: var(--surface);
    border-color: var(--border);
}
html[data-theme="dark"] .product-svc-pill:hover {
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
html[data-theme="dark"] .product-svc-pill-active { color: #60a5fa; }
html[data-theme="dark"] .product-svc-pill-total { color: var(--brand-muted); }
html[data-theme="dark"] .product-svc-title { color: var(--text); }
html[data-theme="dark"] .product-svc-filter {
    background: var(--surface);
    border-color: var(--border);
    color: var(--brand-muted);
}
html[data-theme="dark"] .product-svc-filter:hover {
    color: var(--text);
    border-color: rgba(96, 165, 250, 0.4);
}
html[data-theme="dark"] .product-svc-filter.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.product-addon-row {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-top: 0.75rem;
    background: var(--surface-2, #f8fafc);
}
.product-addon-row-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin-top: 0.75rem;
}
.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;
}
.hpanel-confirm-dialog.is-wide {
    max-width: 520px;
}
.hpanel-confirm-form .hpanel-field {
    margin-bottom: 0.85rem;
}
.hpanel-confirm-form .hpanel-confirm-check {
    margin: 0 0 0.65rem;
}
.hpanel-confirm-form .hpanel-confirm-actions {
    margin-top: 1.1rem;
}
.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;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--surface-2), var(--brand-light));
    border: 1px solid var(--border);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.client-domain-banner-text {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand);
    white-space: nowrap;
    flex-shrink: 0;
}
.client-domain-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
}
.client-domain-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: var(--surface);
    color: var(--text);
    box-sizing: border-box;
    height: 2.35rem;
}
.client-domain-btn {
    white-space: nowrap;
    padding: 0 0.9rem;
    height: 2.35rem;
    flex-shrink: 0;
    font-size: 0.8125rem;
}

.client-dash-grid { gap: 1.25rem; }
.client-dash-panel { overflow: hidden; max-width: 100%; min-width: 0; }
.client-dash-panel > .hpanel-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.client-dash-panel .client-dash-table {
    min-width: 560px;
}
.dash-panel-head.is-dark {
    background: #2f3441;
    color: #fff;
    border-bottom: none;
    padding: 0.875rem 1rem;
    gap: 0.65rem;
    min-width: 0;
}
.dash-panel-head.is-dark h3 {
    color: #fff;
    font-size: 0.9375rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-panel-head.is-dark a {
    color: rgba(255,255,255,0.85);
    font-size: 0.8125rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.client-dash-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    padding: 0 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.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;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}
.client-dash-tab:hover {
    color: var(--brand);
}
.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: var(--surface);
}
.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: var(--brand-light);
    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);
}

/* Yeni destek talebi */
.ticket-create {
    width: 100%;
    max-width: none;
}
.ticket-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
    align-items: start;
    width: 100%;
}
.ticket-create-form-card { min-width: 0; }
.ticket-create-head { margin-bottom: 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.ticket-create-form { margin-top: 0.15rem; }
.ticket-closed-warn {
    margin: 0 0 1.15rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
    background: color-mix(in srgb, var(--brand) 7%, transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.ticket-closed-warn-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}
.ticket-closed-warn-text strong { color: var(--brand); font-weight: 650; }
.ticket-closed-warn-text .hpanel-link {
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ticket-closed-warn-text > span { color: var(--brand-muted); }
.ticket-closed-warn .btn-brand {
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
}
.ticket-reopen-form { margin-top: 0.75rem; }
.ticket-reopen-hint {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: var(--brand-muted);
}
.ticket-create-side {
    min-width: 0;
    position: sticky;
    top: 1rem;
}
.ticket-create-help {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(57, 48, 133, 0.08), transparent 55%),
        var(--surface);
    border-color: rgba(57, 48, 133, 0.14);
}
.ticket-create-help-kicker {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.45rem;
}
.ticket-create-help-title {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.ticket-create-help-text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--brand-muted);
    line-height: 1.55;
}
.ticket-create-help-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.55rem;
}
.ticket-create-help-link {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--brand-muted);
    text-decoration: none;
}
.ticket-create-help-link:hover { color: var(--brand); text-decoration: underline; }
.ticket-create-tips-block {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(57, 48, 133, 0.12);
}
.ticket-create-tips-title {
    margin: 0 0 0.7rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand);
}
.ticket-create-tips-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}
.ticket-create-tips-list li {
    position: relative;
    padding-left: 0.95rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text);
}
.ticket-create-tips-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.55;
}

.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; }
}
@media (max-width: 1100px) {
    .ticket-create-layout { grid-template-columns: 1fr; }
    .ticket-create-side { position: static; }
}


.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: var(--brand-light); }
.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: var(--surface-2);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    color: var(--text-muted);
}

@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 {
        gap: 0.5rem;
        padding: 0.55rem 0.65rem;
        margin-bottom: 0.85rem;
    }
    .client-domain-banner-text {
        display: none;
    }
    .client-domain-search {
        max-width: none;
        margin-left: 0;
        width: 100%;
    }
    .client-domain-input {
        height: 2.25rem;
        padding: 0.4rem 0.65rem;
        font-size: 0.8125rem;
    }
    .client-domain-input::placeholder {
        content: none;
    }
    .client-domain-btn {
        height: 2.25rem;
        padding: 0 0.75rem;
        font-size: 0.75rem;
    }
    .dash-panel-head.is-dark {
        padding: 0.75rem 0.85rem;
        flex-wrap: nowrap;
    }
    .dash-panel-head.is-dark h3 {
        font-size: 0.875rem;
    }
    .client-dash-panel > .hpanel-table-wrap,
    .dash-grid-2.client-dash-grid .hpanel-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
@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: var(--surface) !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: var(--surface-2);
}
.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: var(--surface-2);
    color: var(--text);
}
.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: 1080px; }
.settings-shell {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.settings-nav {
    background: var(--surface-2);
    border-right: 1px solid var(--border);
    padding: 0.85rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.settings-nav-group { display: flex; flex-direction: column; gap: 0.2rem; }
.settings-nav-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-muted);
    padding: 0.2rem 0.65rem 0.35rem;
}
.settings-nav-item {
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted, var(--brand-muted));
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
}
.settings-nav-item:hover { background: var(--brand-light); color: var(--brand); }
.settings-nav-item.is-active {
    background: var(--surface);
    color: var(--brand);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--border);
}
.settings-main { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.settings-main-body { padding: 1.15rem 1.25rem 1.35rem; color: var(--text); }
.settings-main-foot {
    margin-top: auto;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    background: var(--surface-2);
}
.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: var(--surface-2);
    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: var(--surface);
}
.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: var(--surface-2);
}
.settings-tab-heading {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand);
}
.settings-tab-desc {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: var(--brand-muted);
    line-height: 1.5;
}
.settings-tab-panel .auto-accordion { margin-top: 0.65rem; }
.settings-tab-panel .auto-accordion:first-of-type { margin-top: 0.15rem; }

@media (max-width: 860px) {
    .settings-shell { grid-template-columns: 1fr; }
    .settings-nav {
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem 0.5rem;
        padding: 0.75rem;
    }
    .settings-nav-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
        align-items: center;
    }
    .settings-nav-label {
        width: 100%;
        padding: 0.35rem 0.35rem 0.15rem;
    }
    .settings-nav-item { padding: 0.45rem 0.65rem; }
}

/* 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, var(--surface-2) 0%, var(--brand-light) 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, var(--surface-2) 0%, var(--surface) 28%);
    color: var(--text);
}
.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: var(--surface-2);
    border-radius: 10px;
    color: var(--text);
}
.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: var(--surface-2);
    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-side-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}
.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;
}
.easy-inv-body {
    margin: 0;
    padding: 2rem 1rem 2.5rem;
    background: #eef1f5;
    color: #1f2937;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.easy-inv-body [x-cloak] { display: none !important; }
.easy-inv {
    max-width: 860px;
    margin: 0 auto;
}
.easy-inv-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    padding: 1.75rem 1.85rem 1.5rem;
}
.easy-inv-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.easy-inv-party-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.45rem;
}
.easy-inv-party-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.easy-inv-party-line {
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.45;
}
.easy-inv-party-right { text-align: right; }
.easy-inv-logo {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin: 0 0 0.65rem auto;
    display: block;
}
.easy-inv-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}
.easy-inv-mid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.25rem;
}
.easy-inv-title {
    margin: 0 0 0.75rem;
    font-size: 1.55rem;
    font-weight: 800;
    color: #111827;
}
.easy-inv-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 4.25rem;
    padding: 0.85rem 1rem;
    border-radius: 4px;
    background: #f3f4f6;
}
.easy-inv-status strong {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.easy-inv-status span {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}
.easy-inv-status.is-paid {
    background: #ecfdf5;
}
.easy-inv-status.is-paid strong { color: #059669; }
.easy-inv-status.is-unpaid strong,
.easy-inv-status.is-overdue strong { color: #4b5563; }
.easy-inv-status.is-overdue { background: #fff7ed; }
.easy-inv-status.is-overdue strong { color: #c2410c; }
.easy-inv-status.is-cancelled { background: #f8fafc; }
.easy-inv-status.is-cancelled strong { color: #64748b; }
.easy-inv-dates {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    min-width: 11rem;
}
.easy-inv-dates div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.84rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.25rem;
}
.easy-inv-dates span { color: #6b7280; }
.easy-inv-dates strong { color: #111827; font-weight: 650; }
.easy-inv-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.easy-inv-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.easy-inv-action:hover { background: #dbeafe; }
.easy-inv-alert {
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.easy-inv-alert.is-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.easy-inv-alert.is-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.easy-inv-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
}
.easy-inv-table th,
.easy-inv-table td {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    text-align: left;
}
.easy-inv-table th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 700;
}
.easy-inv-table .is-num { text-align: right; white-space: nowrap; }
.easy-inv-table tbody tr:nth-child(even) td { background: #fafafa; }
.easy-inv-table tfoot td {
    background: #f9fafb;
    font-weight: 600;
}
.easy-inv-table tfoot .is-grand td {
    background: #f3f4f6;
    font-weight: 800;
    font-size: 0.95rem;
}
.easy-inv-thanks {
    text-align: center;
    padding: 1.25rem 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}
.easy-inv-pay {
    margin-top: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}
.easy-inv-pay-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    background: #4b5563;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.8rem 1rem;
    cursor: pointer;
    text-align: left;
}
.easy-inv-pay-chevron {
    display: inline-flex;
    width: 1rem;
    transform: rotate(90deg);
    transition: transform 0.15s ease;
    font-weight: 700;
}
.easy-inv-pay-chevron.is-open { transform: rotate(-90deg); }
.easy-inv-pay-body {
    padding: 1rem 1.05rem 1.15rem;
    background: #fff;
}
.easy-inv-pay-label {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #374151;
}
.easy-inv-pay-methods {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
}
.easy-inv-pay-method {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    background: #fafafa;
}
.easy-inv-pay-method:has(input:checked) {
    border-color: #22c55e;
    background: #f0fdf4;
}
.easy-inv-pay-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.easy-inv-pay-check {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
}
.easy-inv-pay-method:has(input:checked) .easy-inv-pay-check {
    border-color: #22c55e;
    background: #22c55e;
}
.easy-inv-pay-method:has(input:checked) .easy-inv-pay-check::after {
    content: "";
    position: absolute;
    left: 0.28rem;
    top: 0.1rem;
    width: 0.28rem;
    height: 0.5rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.easy-inv-pay-method-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}
.easy-inv-pay-method-text strong { font-size: 0.9rem; }
.easy-inv-pay-method-text small { font-size: 0.75rem; color: #6b7280; }
.easy-inv-pay-method-amt {
    font-weight: 700;
    white-space: nowrap;
    color: #111827;
}
.easy-inv-pay-actions {
    display: flex;
    justify-content: flex-end;
}
.easy-inv-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: 6px;
    background: #22c55e;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}
.easy-inv-continue:hover { background: #16a34a; }
.easy-inv-continue.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}
.easy-inv-back {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
}
.easy-inv-pay-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.15rem;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
    color: #6b7280;
}
.easy-inv-pay-facts strong { color: #111827; margin-left: 0.2rem; }
.easy-inv-footer {
    text-align: center;
    margin-top: 1.15rem;
}
.easy-inv-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.easy-inv-footer a:hover { text-decoration: underline; }
@media (max-width: 720px) {
    .easy-inv-body { padding: 1rem 0.75rem 1.5rem; }
    .easy-inv-card { padding: 1.15rem; }
    .easy-inv-parties,
    .easy-inv-mid { grid-template-columns: 1fr; }
    .easy-inv-party-right { text-align: left; }
    .easy-inv-logo { margin-left: 0; }
    .easy-inv-actions { flex-direction: row; flex-wrap: wrap; }
}
@media print {
    .easy-inv-body { background: #fff; padding: 0; }
    .easy-inv-card { box-shadow: none; border: none; }
    .no-print { display: none !important; }
}

/* Eski public-invoice s?n?flar? (geriye d?n?k) */
.public-invoice-body { background: #eef1f5; 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(min(100%, 280px), 1fr));
    gap: 1rem;
}
@media (max-width: 820px) {
    .bank-accounts-grid,
    .pay-methods-grid {
        grid-template-columns: 1fr;
    }
}
.bank-account-card {
    position: relative;
    display: block;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    cursor: default;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hpanel-card.bank-account-card {
    /* Admin listesi: hpanel-card ?er?evesini kullan */
    padding: 1.25rem;
}
label.bank-account-card {
    cursor: pointer;
}
label.bank-account-card:hover {
    border-color: rgba(57, 48, 133, 0.35);
}
label.bank-account-card.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-light);
    background: linear-gradient(180deg, var(--surface) 0%, var(--brand-light) 100%);
}
.bank-account-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.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: 1.05rem;
    color: var(--text);
    line-height: 1.3;
}
.bank-account-titles {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.bank-account-pick-hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand);
}
.bank-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
}
.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;
    flex-shrink: 0;
}
.bank-account-dl {
    margin: 0 0 1rem;
    display: grid;
    gap: 0.55rem;
}
.bank-account-dl div {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.5rem 0.75rem;
    font-size: 0.875rem;
    align-items: start;
}
.bank-account-dl dt { color: var(--brand-muted); }
.bank-account-dl dd {
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.iban-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.bank-iban-block {
    margin-top: 0.25rem;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.bank-iban-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin-bottom: 0.4rem;
}
.bank-iban-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.bank-iban-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}
.bank-iban-copy { flex-shrink: 0; }

.bank-transfer-page {
    width: 100%;
    max-width: none;
}
.bank-transfer-note {
    margin-bottom: 1.15rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.bank-transfer-note p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    color: var(--text);
}
.bank-transfer-section { margin-bottom: 1.35rem; }
.bank-transfer-section-head {
    margin-bottom: 0.85rem;
}
.bank-transfer-section-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    color: var(--brand);
}
.bank-transfer-section-head p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--brand-muted);
    line-height: 1.45;
}
.bank-transfer-form-card {
    max-width: none;
}
.bank-transfer-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.bank-transfer-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.bank-transfer-form-actions .btn-brand {
    min-width: 14rem;
}
@media (max-width: 720px) {
    .bank-accounts-grid {
        grid-template-columns: 1fr;
    }
    .bank-transfer-form-grid {
        grid-template-columns: 1fr;
    }
    .bank-account-dl div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

.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.is-bank-transfer { max-width: 1120px; }
.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-layout.is-bank-transfer {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.5rem;
}
.pay-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    color: var(--text);
}
.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: var(--brand-light); }
.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: visible;
    background: var(--surface-2);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    position: relative;
    width: 100%;
    max-width: 100%;
}
.pay-iframe-wrap iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-height: 520px;
    border: 0;
    background: #fff;
}
@media (max-width: 820px) {
    .pay-layout,
    .pay-layout.is-bank-transfer { grid-template-columns: 1fr; }
    .pay-side { order: -1; }
    .pay-iframe-wrap {
        overflow: auto;
        min-height: 70vh;
        border-radius: 10px;
    }
    .pay-iframe-wrap iframe {
        min-height: 70vh;
        height: 70vh;
    }
}

/* 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: var(--surface);
}
.order-pay-option.is-selected { border-color: var(--brand); background: var(--brand-light); }
.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; color: var(--text); }
.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; color: var(--text); }
.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:var(--surface-2); }
.tpl-var-group { margin-top:0.85rem; }
.tpl-var-group strong { display:block; font-size:0.8125rem; margin-bottom:0.4rem; color:var(--text); }
.tpl-var-chips { display:flex; flex-wrap:wrap; gap:0.35rem; }
.tpl-var { cursor:pointer; background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:0.2rem 0.45rem; font-size:0.75rem; color:var(--brand); }
.tpl-var:hover { background:var(--brand-light); }
.tpl-var.is-suggested { border-color:var(--brand); background:var(--brand-light); 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: var(--surface);
}
.auto-accordion-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--surface-2);
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--brand);
    text-align: left;
    font-family: inherit;
}
.auto-accordion-head.is-open { border-bottom: 1px solid var(--border); }
.auto-accordion-chevron { transition: transform .15s ease; opacity: 0.7; color: var(--brand-muted); }
.auto-accordion-chevron.is-open { transform: rotate(180deg); }
.auto-accordion-body {
    padding: 1rem 1.1rem 1.15rem;
    background: var(--surface);
    color: var(--text);
}

/* 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, var(--surface) 0%, var(--surface-2) 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: var(--text);
    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, var(--surface) 0%, var(--brand-light) 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: var(--text);
    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: var(--surface-2);
    color: var(--text);
    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: var(--text);
}
.order-domain-own-promo-text strong { color: var(--brand); }
.order-dns-box {
    margin-top: 0.8rem;
    padding: 0.8rem;
    border-radius: 10px;
    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.6rem;
    margin-bottom: 0.65rem;
}
.order-dns-box-icon {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #059669;
    color: #fff;
}
.order-dns-box-head strong {
    display: block;
    font-size: 0.82rem;
    color: #065f46;
    margin-bottom: 0.15rem;
}
.order-dns-box-head p {
    margin: 0;
    font-size: 0.75rem;
    color: #047857;
    line-height: 1.4;
}
.order-dns-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}
.order-dns-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    background: var(--surface);
    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.78rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
}
.order-dns-copy {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    min-width: 4.6rem;
    padding: 0.28rem 0.48rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    font-family: inherit;
}
.order-dns-copy:hover { border-color: var(--brand); background: var(--brand-light); }
@media (max-width: 720px) {
    .order-dns-list { grid-template-columns: 1fr; }
    .order-dns-box { padding: 0.7rem; }
}
@media (max-width: 420px) {
    .order-dns-list li { grid-template-columns: auto minmax(0, 1fr); }
    .order-dns-copy { grid-column: 1 / -1; width: 100%; }
}

.order-req-box {
    max-width: 640px;
    margin: 1.25rem auto 0;
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    text-align: left;
}
.order-req-head {
    margin-bottom: 1rem;
}
.order-req-head strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}
.order-req-head p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.order-req-field + .order-req-field {
    margin-top: 0.9rem;
}
.order-req-optional {
    font-weight: 400;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-left: 0.35rem;
}
.order-req-required {
    color: #dc2626;
    margin-left: 0.2rem;
}
.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: var(--text); }
.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: var(--surface);
    border: 1px solid var(--border);
    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 var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: order-spin 0.7s linear infinite;
}
@keyframes order-spin { to { transform: rotate(360deg); } }

.domain-hub { max-width: none; width: 100%; }
.domain-hub-head { margin-bottom: 1.15rem; }
.domain-hub-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.domain-hub-back { margin-top: 0.25rem; white-space: nowrap; }
.domain-hub-title {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    color: var(--brand);
}
.domain-hub-lead {
    margin: 0.4rem 0 0;
    max-width: 40rem;
    font-size: 0.95rem;
    color: var(--brand-muted);
    line-height: 1.45;
}

/* M??teri sayfa intro / istatistik chip */
.client-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
.client-intro-main {
    flex: 1 1 12rem;
    min-width: 0;
}
.client-intro-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}
.client-intro-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 8%, var(--surface-2));
    color: var(--brand-muted);
    font-size: 0.65rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.client-intro-main:not(:has(.client-intro-title)):not(:has(.client-intro-lead)):not(:has(.client-intro-steps)) {
    display: flex;
    align-items: center;
}
.client-intro-main:not(:has(.client-intro-title)):not(:has(.client-intro-lead)):not(:has(.client-intro-steps)) .client-intro-kicker {
    margin-bottom: 0;
}
.client-intro-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--brand);
    line-height: 1.25;
}
.client-intro-lead {
    margin: 0.3rem 0 0;
    max-width: 36rem;
    font-size: 0.8125rem;
    color: var(--brand-muted);
    line-height: 1.45;
}
.client-intro-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.client-intro-main:not(:has(.client-intro-title)):not(:has(.client-intro-lead)) .client-intro-steps {
    margin-top: 0;
}
.client-intro-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.5rem 0.22rem 0.28rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: 0.72rem;
    font-weight: 550;
    color: var(--brand-muted);
}
.client-intro-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 14%, var(--surface));
    color: var(--brand);
    font-size: 0.62rem;
    font-weight: 700;
}
.client-intro-aside {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex: 0 0 auto;
}
.client-stat-chip {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    line-height: 1;
}
.client-stat-chip strong {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand);
}
.client-stat-chip span {
    margin-top: 0;
    font-size: 0.68rem;
    font-weight: 550;
    text-transform: none;
    letter-spacing: 0;
    color: var(--brand-muted);
}
.client-intro-back {
    font-size: 0.78rem;
    font-weight: 550;
    color: var(--brand-muted);
    text-decoration: none;
    white-space: nowrap;
}
.client-intro-back:hover { color: var(--brand); }

.domain-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.15rem;
}
.domain-hub-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.domain-list-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    min-width: 220px;
}
.domain-list-search .hpanel-input {
    flex: 1;
    min-width: 160px;
    max-width: 320px;
}
.domain-hub-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.domain-list-meta {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    color: var(--brand-muted);
}
.domain-table tr.is-muted-row td {
    opacity: 0.78;
}
.domain-hub-empty {
    padding: 1.5rem 1.25rem;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    margin-bottom: 1.25rem;
}
.domain-hub-empty h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--brand); }
.domain-hub-empty p { margin: 0 0 1rem; color: var(--brand-muted); font-size: 0.9rem; }
.domain-hub-empty-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.domain-table-wrap {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: auto;
    background: var(--surface);
}
.domain-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
.domain-table th,
.domain-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    vertical-align: middle;
    color: var(--text);
}
.domain-table th {
    background: var(--surface-2);
    color: var(--brand-muted);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.domain-table tr:last-child td { border-bottom: 0; }
.domain-table-name {
    font-size: 0.95rem;
    color: var(--brand);
    word-break: break-all;
}
.domain-table-actions {
    text-align: right;
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
    align-items: center;
}
.domain-due-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-muted);
}
.domain-due-hint.is-urgent {
    color: #b45309;
}
.domain-due-hint.is-muted {
    color: #9ca3af;
    font-weight: 500;
}
.domain-renew-cta {
    font-size: 0.8125rem;
    padding: 0.4rem 0.7rem;
    white-space: nowrap;
}
@media (max-width: 820px) {
    .domain-table-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .domain-renew-cta,
    .domain-table-actions .btn-brand,
    .domain-table-actions .hpanel-btn-outline {
        text-align: center;
        justify-content: center;
    }
}

.domain-list { display: grid; gap: 0.75rem; }
.domain-list-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}
.domain-list-main h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--brand);
    word-break: break-all;
}
.domain-list-main > p {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    color: var(--brand-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}
.domain-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    margin: 0.75rem 0 0;
}
.domain-list-meta dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-muted);
}
.domain-list-meta dd { margin: 0.1rem 0 0; font-weight: 600; font-size: 0.875rem; }
.domain-list-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex-shrink: 0;
}

.domain-search-panel {
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    margin-bottom: 1rem;
}
.domain-search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: end;
}
.domain-search-field { display: grid; gap: 0.35rem; }
.domain-search-submit { align-self: end; min-height: 2.65rem; padding-inline: 1.25rem; }
.domain-search-hint {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    color: var(--brand-muted);
}
.domain-search-hint code {
    font-size: 0.78rem;
    background: var(--surface-2);
    color: var(--text);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
}

.domain-alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.domain-alert.is-danger { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.domain-alert.is-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.domain-price-board {
    margin-top: 1.25rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}
.domain-price-board-head h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--brand);
}
.domain-price-board-head p {
    margin: 0.25rem 0 0.85rem;
    font-size: 0.8rem;
    color: var(--brand-muted);
}
.domain-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}
.domain-price-chip {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.domain-price-chip strong { color: var(--brand); font-size: 0.9rem; }
.domain-price-chip span { font-size: 0.8rem; font-weight: 600; color: var(--text); }

.domain-result-list { margin-top: 1rem; display: grid; gap: 0.55rem; }
.domain-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.05rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
}
.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; min-width: 0; }
.domain-result-main strong { word-break: break-all; color: var(--text); }
.domain-result-main span { font-size: 0.8rem; color: var(--brand-muted); }
.domain-result-actions { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.domain-result-price { font-weight: 700; white-space: nowrap; color: var(--text); }
.domain-buy-form {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.domain-buy-ns {
    flex: 1 1 100%;
    display: grid;
    gap: 0.45rem;
    margin-top: 0.15rem;
}
.domain-buy-years {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--brand-muted);
}
.domain-buy-years select {
    min-width: 5.5rem;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.domain-transfer-panel {
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    max-width: 560px;
}
.domain-transfer-quote {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}
.domain-transfer-quote strong {
    font-size: 1.05rem;
    color: var(--brand);
    word-break: break-all;
}
.domain-transfer-quote span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-muted);
    white-space: nowrap;
}
.domain-transfer-form { display: grid; gap: 0.85rem; }
.domain-transfer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.domain-transfer-total {
    min-height: 2.65rem;
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-weight: 700;
    color: var(--text);
}
.domain-transfer-total.is-muted { font-weight: 500; color: var(--brand-muted); font-size: 0.85rem; }

.domain-manage {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 1.5rem;
}
.domain-manage-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.domain-manage-back {
    color: var(--brand-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}
.domain-manage-back:hover { color: var(--brand); }

.domain-manage-hero {
    display: grid;
    gap: 1.25rem;
    padding: 1.35rem 1.4rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background:
        radial-gradient(900px 180px at 0% 0%, rgba(57, 48, 133, 0.12), transparent 55%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    margin-bottom: 1rem;
}
.domain-manage-hero-main { min-width: 0; }
.domain-manage-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
    color: var(--brand-muted);
}
.domain-manage-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 750;
    color: var(--text);
    letter-spacing: -0.03em;
    word-break: break-word;
    line-height: 1.2;
}
.domain-manage-lead {
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 42rem;
}
.domain-manage-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}
.domain-manage-stat {
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.domain-manage-stat.is-warn {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
}
.domain-manage-stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin-bottom: 0.3rem;
}
.domain-manage-stat-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.domain-manage-alert {
    margin-bottom: 1rem;
    padding: 0.9rem 1.05rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
}
.domain-manage-alert p { margin: 0.25rem 0; }
.domain-manage-alert span { color: var(--text-muted); font-size: 0.8125rem; }
.domain-manage-alert.is-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.28);
}
.domain-manage-alert.is-warn {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}
.domain-manage-alert.is-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #b91c1c;
}

.domain-manage-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0 0 1rem;
}
.domain-manage-tab {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.domain-manage-tab strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}
.domain-manage-tab span {
    font-size: 0.72rem;
    color: var(--brand-muted);
}
.domain-manage-tab:hover {
    border-color: rgba(57, 48, 133, 0.35);
    transform: translateY(-1px);
}
.domain-manage-tab.is-active {
    border-color: var(--brand);
    background: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(57, 48, 133, 0.08);
}
.domain-manage-tab.is-active strong { color: var(--brand); }

.domain-manage-panel {
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    margin-bottom: 1rem;
}
.domain-manage-panel-head {
    margin-bottom: 1.1rem;
}
.domain-manage-panel-head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}
.domain-manage-panel-head p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.domain-manage-muted {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.domain-ns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
}
.domain-manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 1rem;
}
.domain-manage-security {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.domain-manage-panel-wide { grid-column: 1 / -1; }
.domain-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.domain-toggle-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
}
.domain-toggle-status.is-on {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}
.domain-toggle-status.is-off {
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.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.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
}
.domain-child-list li > div { display: flex; flex-direction: column; gap: 0.15rem; }

html[data-theme="dark"] .domain-manage-hero {
    background:
        radial-gradient(900px 180px at 0% 0%, rgba(168, 176, 255, 0.14), transparent 55%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
html[data-theme="dark"] .domain-manage-tab:hover {
    border-color: rgba(168, 176, 255, 0.4);
}
html[data-theme="dark"] .domain-manage-tab.is-active {
    box-shadow: 0 0 0 3px rgba(168, 176, 255, 0.14);
}
html[data-theme="dark"] .domain-toggle-status.is-on {
    background: rgba(74, 222, 128, 0.12);
    color: #86efac;
}
html[data-theme="dark"] .domain-manage-alert.is-danger {
    color: #fca5a5;
}
html[data-theme="dark"] .domain-manage-stat-value,
html[data-theme="dark"] .domain-manage-title,
html[data-theme="dark"] .domain-manage-panel-head h2 {
    color: var(--text);
}

@media (max-width: 900px) {
    .domain-manage-stats { grid-template-columns: 1fr 1fr; }
    .domain-manage-tabs { grid-template-columns: 1fr 1fr; }
    .domain-manage-security { grid-template-columns: 1fr; }
}
@media (max-width: 840px) {
    .domain-transfer-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .domain-ns-grid { grid-template-columns: 1fr; }
    .domain-manage-stats { grid-template-columns: 1fr 1fr; }
    .domain-manage-tabs { grid-template-columns: 1fr; }
    .domain-child-list li { flex-direction: column; align-items: flex-start; }
    .domain-manage-hero { padding: 1.15rem 1.1rem; }
    .order-tld-row { grid-template-columns: 1fr auto; }
    .order-tld-actions { grid-column: 1 / -1; }
    .domain-transfer-row { grid-template-columns: 1fr; }
    .domain-search-bar { grid-template-columns: 1fr; }
    .domain-search-submit { width: 100%; }
    .domain-result-row,
    .domain-list-card { flex-direction: column; align-items: flex-start; }
    .domain-list-actions { flex-direction: row; width: 100%; }
}

.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: var(--text); }
.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; color: var(--text); }
.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: 10px;
    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 */
.verify-status {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.8fr);
    gap: 1.25rem;
    align-items: start;
    margin: 0 0 1.25rem;
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}
.verify-status.is-complete {
    border-color: rgba(5, 150, 105, 0.28);
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(16, 185, 129, 0.1), transparent 55%),
        var(--surface);
}
.verify-status.is-partial {
    border-color: rgba(217, 119, 6, 0.28);
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(251, 191, 36, 0.12), transparent 55%),
        var(--surface);
}
.verify-status.is-empty {
    border-color: rgba(57, 48, 133, 0.14);
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(57, 48, 133, 0.07), transparent 55%),
        var(--surface);
}
.verify-status-badge {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(57, 48, 133, 0.08);
}
.verify-status.is-complete .verify-status-badge {
    color: #065f46;
    background: #ecfdf5;
}
.verify-status.is-partial .verify-status-badge {
    color: #9a3412;
    background: #fff7ed;
}
.verify-status-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.verify-status-text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--brand-muted);
    line-height: 1.5;
}
.verify-status-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}
.verify-status-checklist li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8125rem;
    color: var(--brand-muted);
}
.verify-status-checklist li.is-done {
    color: var(--text);
    font-weight: 600;
}
.verify-check-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(57, 48, 133, 0.08);
    color: var(--brand-muted);
    flex-shrink: 0;
}
.verify-status-checklist li.is-done .verify-check-mark {
    background: #ecfdf5;
    color: #065f46;
}
.security-card.is-verified {
    border-color: rgba(5, 150, 105, 0.22);
    background: linear-gradient(180deg, #f4fdf8 0%, #fff 70%);
}
.verify-card-ok {
    margin-top: 0.15rem;
    padding-top: 0.15rem;
}
.verify-card-ok-title {
    margin: 0 0 0.3rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #065f46;
}
.verify-card-ok-text {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--brand-muted);
    line-height: 1.5;
}
.verify-card-ok-text strong { color: var(--brand); font-weight: 600; }
.verify-next-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.15rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid rgba(57, 48, 133, 0.12);
    background: var(--surface-2);
}
.verify-next-steps.is-warn {
    border-color: rgba(217, 119, 6, 0.25);
    background: #fffbeb;
}
.verify-next-steps strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--brand);
    font-size: 0.875rem;
}
.verify-next-steps p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--brand-muted);
    line-height: 1.45;
    max-width: 42rem;
}
@media (max-width: 800px) {
    .verify-status { grid-template-columns: 1fr; }
}

.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;
}

/* ========== Dark Mode (Temalar ? Dark Mode) ========== */
html[data-theme="dark"] {
    --brand: #a8b0ff;
    --brand-hover: #c4c9ff;
    --brand-light: rgba(168, 176, 255, 0.12);
    --brand-muted: rgba(168, 176, 255, 0.5);
    --bg: #0c0e14;
    --surface: #141821;
    --surface-2: #1a1f2b;
    --border: #2a3142;
    --text: #e8ebf4;
    --text-muted: #94a0b8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

html[data-theme="dark"] body.hpanel-body {
    color: var(--text);
    background: var(--bg);
}

.hpanel-theme-toggle {
    position: relative;
}
.hpanel-theme-toggle .hpanel-theme-icon {
    width: 20px;
    height: 20px;
    display: none;
}
html:not([data-theme="dark"]) .hpanel-theme-toggle .hpanel-theme-icon.is-moon { display: block; }
html[data-theme="dark"] .hpanel-theme-toggle .hpanel-theme-icon.is-sun { display: block; }
.hpanel-theme-toggle:hover {
    background: var(--brand-light);
}

html[data-theme="dark"] .hpanel-nav-bottom {
    background: var(--surface-2);
}
html[data-theme="dark"] .hpanel-sidebar-scroll::-webkit-scrollbar-thumb {
    background: #3a4258;
}
html[data-theme="dark"] .hpanel-sidebar-close {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .hpanel-sidebar-close:hover {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand);
}

html[data-theme="dark"] .hpanel-user-btn {
    color: var(--text);
}
html[data-theme="dark"] .hpanel-user-btn:hover {
    background: var(--brand-light);
}
html[data-theme="dark"] .hpanel-dropdown {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}
html[data-theme="dark"] .hpanel-dropdown a,
html[data-theme="dark"] .hpanel-dropdown button {
    color: var(--text);
}
html[data-theme="dark"] .hpanel-dropdown a:hover,
html[data-theme="dark"] .hpanel-dropdown button:hover {
    background: var(--brand-light);
}
html[data-theme="dark"] .hpanel-avatar {
    background: var(--brand-light);
    color: var(--brand);
}
html[data-theme="dark"] .hpanel-overlay {
    background: rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .hpanel-footer {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-muted);
}
html[data-theme="dark"] .hpanel-mobile-toggle {
    color: var(--brand);
}
html[data-theme="dark"] .hpanel-input:focus,
html[data-theme="dark"] .hpanel-select:focus,
html[data-theme="dark"] .hpanel-textarea:focus {
    box-shadow: 0 0 0 3px rgba(168, 176, 255, 0.2);
}
html[data-theme="dark"] .hpanel-btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
html[data-theme="dark"] .hpanel-btn-outline:hover {
    border-color: var(--brand);
    background: var(--brand-light);
}
html[data-theme="dark"] .hpanel-btn-white {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border);
}
html[data-theme="dark"] .hpanel-page-link {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
html[data-theme="dark"] .hpanel-table th {
    background: var(--surface-2);
    color: var(--text-muted);
    border-color: var(--border);
}
html[data-theme="dark"] .hpanel-table td {
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .hpanel-table tr:hover td {
    background: rgba(168, 176, 255, 0.05);
}
html[data-theme="dark"] .hpanel-alert {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .hpanel-alert-success {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.35);
}
html[data-theme="dark"] .hpanel-alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}
html[data-theme="dark"] .badge-active {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}
html[data-theme="dark"] .badge-inactive {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}
html[data-theme="dark"] .badge-suspended {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}
html[data-theme="dark"] .dash-widget,
html[data-theme="dark"] .dash-panel,
html[data-theme="dark"] .client-dash-empty,
html[data-theme="dark"] .module-menu-card,
html[data-theme="dark"] .module-detail-head,
html[data-theme="dark"] .settings-tabs,
html[data-theme="dark"] .hpanel-tabs,
html[data-theme="dark"] .ticket-thread,
html[data-theme="dark"] .notify-dropdown,
html[data-theme="dark"] .hpanel-confirm-modal,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .order-step-card {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .dash-panel-head:not(.is-dark) {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .dash-widget-label,
html[data-theme="dark"] .hpanel-muted,
html[data-theme="dark"] .module-menu-desc,
html[data-theme="dark"] .settings-tab-desc {
    color: var(--text-muted);
}
html[data-theme="dark"] .dash-widget-value {
    color: var(--text);
}
html[data-theme="dark"] .module-menu-card:hover,
html[data-theme="dark"] .module-menu-card.is-disabled {
    background: var(--surface-2);
}
html[data-theme="dark"] .module-badge.is-muted,
html[data-theme="dark"] .module-badge.is-slug,
html[data-theme="dark"] .module-badge.is-version,
html[data-theme="dark"] .module-badge.is-type {
    background: var(--surface-2);
    color: var(--text-muted);
    border-color: var(--border);
}
html[data-theme="dark"] .module-badge.is-success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}
html[data-theme="dark"] .module-log-item,
html[data-theme="dark"] .cust-action-btn,
html[data-theme="dark"] .svc-action-btn,
html[data-theme="dark"] .hpanel-type-toggle button {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .cust-action-btn.cust-action-btn-danger {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
}
html[data-theme="dark"] .cust-action-btn.cust-action-btn-danger:hover:not(:disabled) {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}
html[data-theme="dark"] .hpanel-tabs a,
html[data-theme="dark"] .settings-tabs a,
html[data-theme="dark"] .hpanel-tab {
    color: var(--text-muted);
}
html[data-theme="dark"] .hpanel-tabs a.is-active,
html[data-theme="dark"] .settings-tabs a.is-active,
html[data-theme="dark"] .hpanel-tab.is-active {
    color: var(--brand);
    border-color: var(--brand);
}
html[data-theme="dark"] .notify-dropdown,
html[data-theme="dark"] .notify-item {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .notify-item:hover {
    background: var(--brand-light);
}
html[data-theme="dark"] .notify-item.is-unread {
    background: rgba(168, 176, 255, 0.08);
}
html[data-theme="dark"] .impersonate-banner {
    background: #1e293b;
    color: #e2e8f0;
}
html[data-theme="dark"] .client-announce-bar.is-info {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
}
html[data-theme="dark"] .client-announce-bar.is-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}
html[data-theme="dark"] .client-announce-bar.is-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}
html[data-theme="dark"] .client-announce-bar.is-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
html[data-theme="dark"] .client-announce-bar.is-security {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.14), rgba(168, 176, 255, 0.1));
    border-color: rgba(168, 176, 255, 0.3);
    color: #c7d2fe;
}
html[data-theme="dark"] .ticket-bubble.is-client,
html[data-theme="dark"] .ticket-bubble.is-staff {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .order-domain-table,
html[data-theme="dark"] .order-summary,
html[data-theme="dark"] .invoice-box,
html[data-theme="dark"] .pay-box,
html[data-theme="dark"] .auth-card {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .hpanel-input-addon {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text-muted);
}
html[data-theme="dark"] .hpanel-input-addon:hover {
    background: var(--brand-light);
}
html[data-theme="dark"] .hpanel-confirm-backdrop {
    background: rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .hpanel-toast,
html[data-theme="dark"] .toast-item {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
    box-shadow: var(--shadow-md);
}
html[data-theme="dark"] code,
html[data-theme="dark"] pre,
html[data-theme="dark"] .hpanel-input-mono {
    background: var(--surface-2);
    color: #e2e8f0;
}
html[data-theme="dark"] .hpanel-welcome {
    background: linear-gradient(135deg, #2a2466 0%, #3d348b 55%, #4a3a9f 100%);
}
html[data-theme="dark"] .svc-avm-iframe-wrap,
html[data-theme="dark"] .svc-panel-frame {
    background: var(--surface);
    border-color: var(--border);
}
html[data-theme="dark"] .cust-kv,
html[data-theme="dark"] .svc-meta-grid,
html[data-theme="dark"] .stat-tile {
    background: var(--surface-2);
    border-color: var(--border);
}
html[data-theme="dark"] .hpanel-link-danger { color: #f87171; }
html[data-theme="dark"] .dash-widget-value.is-green { color: #4ade80; }
html[data-theme="dark"] .dash-widget-value.is-orange { color: #fb923c; }
html[data-theme="dark"] .dash-widget-value.is-blue { color: #60a5fa; }
html[data-theme="dark"] .dash-widget-value.is-red { color: #f87171; }

html[data-theme="dark"] .hpanel-table-wrap,
html[data-theme="dark"] .data-table-wrap {
    background: var(--surface);
}

html[data-theme="dark"] .hpanel-notify-dropdown,
html[data-theme="dark"] .hpanel-confirm-dialog {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    color: var(--text);
}
html[data-theme="dark"] .hpanel-notify-head,
html[data-theme="dark"] .hpanel-notify-foot,
html[data-theme="dark"] .hpanel-notify-list li {
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .hpanel-notify-list li.is-unread {
    background: rgba(168, 176, 255, 0.08);
}
html[data-theme="dark"] .hpanel-notify-item span,
html[data-theme="dark"] .hpanel-notify-item em,
html[data-theme="dark"] .hpanel-notify-empty {
    color: var(--text-muted);
}
html[data-theme="dark"] .hpanel-confirm-check {
    background: var(--surface-2);
    color: var(--text);
}
html[data-theme="dark"] .notify-item,
html[data-theme="dark"] .notify-target-card {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .notify-item.is-unread {
    background: rgba(168, 176, 255, 0.08);
}
html[data-theme="dark"] .hpanel-page-toolbar,
html[data-theme="dark"] .filters-bar,
html[data-theme="dark"] .hpanel-toolbar {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .settings-panel,
html[data-theme="dark"] .account-tabs,
html[data-theme="dark"] .profile-card {
    background: var(--surface);
    border-color: var(--border);
}

/* Dashboard + domain hub dark polish */
html[data-theme="dark"] .client-domain-banner {
    background: linear-gradient(180deg, var(--surface-2), rgba(168, 176, 255, 0.08));
}
html[data-theme="dark"] .client-dash-panel,
html[data-theme="dark"] .dash-panel {
    background: var(--surface);
    border-color: var(--border);
}
html[data-theme="dark"] .dash-panel-head.is-dark {
    background: #1a1f2b;
    border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .data-table th {
    background: rgba(168, 176, 255, 0.06);
    color: var(--brand);
}
html[data-theme="dark"] .data-table tr:hover td {
    background: rgba(168, 176, 255, 0.05);
}
html[data-theme="dark"] .client-dash-empty {
    color: var(--text);
}
html[data-theme="dark"] .client-activity-item strong,
html[data-theme="dark"] .client-ticket-item strong,
html[data-theme="dark"] .client-dash-table strong {
    color: var(--text);
}
html[data-theme="dark"] .domain-result-row.is-available {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}
html[data-theme="dark"] .domain-result-row.is-taken {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}
html[data-theme="dark"] .domain-alert.is-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
html[data-theme="dark"] .domain-alert.is-warn {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}
html[data-theme="dark"] .client-intro {
    background: var(--surface);
}
html[data-theme="dark"] .client-stat-chip {
    background: var(--surface-2);
}
html[data-theme="dark"] .domain-manage-meta dd,
html[data-theme="dark"] .domain-list-meta dd {
    color: var(--text);
}

/* Service manage (hizmet y?net) dark + theme tokens */
.svc-banner.is-pending-cancel {
    border-color: #f59e0b;
    background: #fffbeb;
}
.svc-banner.is-ended {
    background: var(--surface-2);
}
.svc-banner-text {
    margin: 0;
    font-size: 0.9rem;
    color: #92400e;
}
.svc-banner-text.is-muted { color: var(--brand-muted); }
.svc-install-note.is-warn {
    padding: 0.85rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.65rem;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
}
.svc-install-link {
    font-weight: 700;
    color: inherit;
    text-decoration: underline;
}
.svc-install-label {
    font-size: 0.8125rem;
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.svc-code-block {
    margin: 0;
    padding: 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    font-size: 0.72rem;
    white-space: pre-wrap;
    line-height: 1.45;
    color: var(--text);
}

html[data-theme="dark"] .svc-manage-head,
html[data-theme="dark"] .svc-gauge-card,
html[data-theme="dark"] .svc-related-card,
html[data-theme="dark"] .svc-feature-logo,
html[data-theme="dark"] .svc-suspended-card,
html[data-theme="dark"] .hpanel-secret {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .svc-gauge {
    --gauge-track: #2a3142;
}
html[data-theme="dark"] .svc-gauge::before {
    background: var(--surface);
}
html[data-theme="dark"] .svc-related-list a,
html[data-theme="dark"] .svc-related-list strong {
    color: var(--text);
}
html[data-theme="dark"] .svc-usage-alert {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}
html[data-theme="dark"] .svc-usage-alert.is-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
html[data-theme="dark"] .svc-usage-alert.is-warn {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}
html[data-theme="dark"] .svc-banner.is-pending-cancel,
html[data-theme="dark"] .svc-install-note.is-warn {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}
html[data-theme="dark"] .svc-banner.is-pending-cancel .svc-banner-text,
html[data-theme="dark"] .svc-install-note.is-warn {
    color: #fcd34d;
}
html[data-theme="dark"] .svc-suspended-reason {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}
html[data-theme="dark"] .svc-suspended-reason p,
html[data-theme="dark"] .svc-suspended-title {
    color: #fca5a5;
}
html[data-theme="dark"] .svc-suspended-icon {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}
html[data-theme="dark"] .svc-suspended-card {
    border-color: rgba(239, 68, 68, 0.35);
}
html[data-theme="dark"] .hpanel-secret-btn:hover {
    background: rgba(168, 176, 255, 0.18);
}
html[data-theme="dark"] .cust-kv > div {
    border-bottom-color: var(--border);
}
html[data-theme="dark"] .cust-kv dt {
    color: var(--brand-muted);
}
html[data-theme="dark"] .cust-kv-fa {
    color: var(--brand);
    opacity: 0.95;
}
html[data-theme="dark"] .cust-kv dd {
    color: var(--text);
}
html[data-theme="dark"] .svc-login-btn.is-webmail {
    background: var(--surface-2);
}
html[data-theme="dark"] .order-wait-box {
    background: var(--surface);
    color: var(--text);
}
html[data-theme="dark"] .data-table td,
html[data-theme="dark"] .data-table th {
    color: var(--text);
}

/* ===== Global dark polish: modules / invoices / import / settings / customers ===== */
html[data-theme="dark"] .hpanel-nav-bottom,
html[data-theme="dark"] .module-menu-foot,
html[data-theme="dark"] .module-log-item,
html[data-theme="dark"] .settings-form-tabs,
html[data-theme="dark"] .settings-side-nav,
html[data-theme="dark"] .settings-nav,
html[data-theme="dark"] .settings-main-foot,
html[data-theme="dark"] .invoice-view-side,
html[data-theme="dark"] .invoice-lines-wrap,
html[data-theme="dark"] .customer-picker-panel,
html[data-theme="dark"] .customer-picker-dropdown {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    scrollbar-color: rgba(168, 176, 255, 0.35) transparent;
}
html[data-theme="dark"] .customer-picker-dropdown::-webkit-scrollbar-thumb {
    background: rgba(168, 176, 255, 0.28);
}
html[data-theme="dark"] .customer-picker-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 176, 255, 0.45);
}
html[data-theme="dark"] .customer-picker-option {
    border-bottom-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .customer-picker-option:hover,
html[data-theme="dark"] .customer-picker-option.is-active {
    background: rgba(168, 176, 255, 0.1);
}
html[data-theme="dark"] .customer-picker-name,
html[data-theme="dark"] .customer-picker-name strong {
    color: var(--text);
}
html[data-theme="dark"] .customer-picker-meta,
html[data-theme="dark"] .customer-picker-hint {
    color: var(--brand-muted);
}
html[data-theme="dark"] .customer-picker-footer {
    background: var(--surface-2);
    border-top-color: var(--border);
    color: var(--brand);
}
html[data-theme="dark"] .customer-picker-footer:hover {
    background: rgba(168, 176, 255, 0.1);
}
html[data-theme="dark"] .simple-page-card-sub,
html[data-theme="dark"] .tpl-vars-box,
html[data-theme="dark"] .order-pay-option,
html[data-theme="dark"] .bank-account-card {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] label.bank-account-card:hover {
    border-color: rgba(168, 176, 255, 0.4);
}
html[data-theme="dark"] label.bank-account-card.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(168, 176, 255, 0.18);
    background: linear-gradient(180deg, var(--surface) 0%, rgba(168, 176, 255, 0.1) 100%);
}
html[data-theme="dark"] .bank-iban-block,
html[data-theme="dark"] .bank-transfer-note {
    background: var(--surface-2);
    border-color: var(--border);
}
html[data-theme="dark"] .bank-account-head h3,
html[data-theme="dark"] .bank-iban-value,
html[data-theme="dark"] .bank-account-dl dd {
    color: var(--text);
}


html[data-theme="dark"] .module-menu-card,
html[data-theme="dark"] .module-category-card,
html[data-theme="dark"] .module-detail-head,
html[data-theme="dark"] .invoice-card,
html[data-theme="dark"] .pay-card,
html[data-theme="dark"] .invoice-sheet,
html[data-theme="dark"] .hpanel-card,
html[data-theme="dark"] .import-provider-card,
html[data-theme="dark"] .import-choice,
html[data-theme="dark"] .import-check {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="dark"] .module-menu-title-row strong,
html[data-theme="dark"] .module-detail-info h2,
html[data-theme="dark"] .import-provider-name,
html[data-theme="dark"] .import-step-title,
html[data-theme="dark"] .invoice-card-amount,
html[data-theme="dark"] .invoice-sheet-number,
html[data-theme="dark"] .invoice-company-title,
html[data-theme="dark"] .pay-card-title,
html[data-theme="dark"] .pay-method-info strong,
html[data-theme="dark"] .pay-method-price {
    color: var(--text);
}

html[data-theme="dark"] .module-menu-card.is-orange .module-menu-icon,
html[data-theme="dark"] .module-detail-head.is-orange .module-detail-icon { background: rgba(234, 88, 12, 0.15); color: #fb923c; }
html[data-theme="dark"] .module-menu-card.is-blue .module-menu-icon,
html[data-theme="dark"] .module-detail-head.is-blue .module-detail-icon,
html[data-theme="dark"] .module-category-card.is-blue .module-menu-icon { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
html[data-theme="dark"] .module-menu-card.is-purple .module-menu-icon,
html[data-theme="dark"] .module-detail-head.is-purple .module-detail-icon,
html[data-theme="dark"] .module-category-card.is-purple .module-menu-icon { background: rgba(124, 58, 237, 0.18); color: #c4b5fd; }
html[data-theme="dark"] .module-menu-card.is-slate .module-menu-icon,
html[data-theme="dark"] .module-detail-head.is-slate .module-detail-icon { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; }
html[data-theme="dark"] .module-menu-card.is-green .module-menu-icon,
html[data-theme="dark"] .module-detail-head.is-green .module-detail-icon { background: rgba(22, 163, 74, 0.15); color: #4ade80; }
html[data-theme="dark"] .module-detail-head.is-teal .module-detail-icon,
html[data-theme="dark"] .module-category-card.is-teal .module-menu-icon { background: rgba(13, 148, 136, 0.15); color: #2dd4bf; }
html[data-theme="dark"] .module-menu-icon.has-logo,
html[data-theme="dark"] .module-detail-icon.has-logo { background: var(--surface-2) !important; }

html[data-theme="dark"] .module-badge.is-success { background: rgba(34, 197, 94, 0.15); color: #86efac; }
html[data-theme="dark"] .module-badge.is-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
html[data-theme="dark"] .module-badge.is-muted { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
html[data-theme="dark"] .module-badge.is-slug { background: rgba(168, 176, 255, 0.14); color: #c7d2fe; }
html[data-theme="dark"] .module-badge.is-version { background: rgba(14, 165, 233, 0.15); color: #7dd3fc; }
html[data-theme="dark"] .module-badge.is-type { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }

html[data-theme="dark"] .invoice-sheet-head { border-bottom-color: var(--border); }
html[data-theme="dark"] .invoice-sheet-meta-list dd,
html[data-theme="dark"] .invoice-sheet-totals dd,
html[data-theme="dark"] .invoice-sheet-table td,
html[data-theme="dark"] .invoice-sheet-parties p {
    color: var(--text);
}
html[data-theme="dark"] .invoice-sheet-table th,
html[data-theme="dark"] .invoice-sheet-parties {
    background: var(--surface-2);
}
html[data-theme="dark"] .invoice-sheet-table th,
html[data-theme="dark"] .invoice-sheet-table td {
    border-bottom-color: var(--border);
}
html[data-theme="dark"] .invoice-sheet-totals .is-total,
html[data-theme="dark"] .invoice-sheet-footer {
    border-color: var(--border);
}
html[data-theme="dark"] .invoice-havale-cta,
html[data-theme="dark"] .invoice-havale-hero,
html[data-theme="dark"] .invoice-havale-form-card {
    background: linear-gradient(135deg, rgba(168, 176, 255, 0.1) 0%, var(--surface) 70%);
    border-color: var(--border);
}

html[data-theme="dark"] .public-invoice-body { background: var(--bg); }
html[data-theme="dark"] .badge-inactive { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
html[data-theme="dark"] .hpanel-alert-success { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.35); }
html[data-theme="dark"] .hpanel-alert-error { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }

html[data-theme="dark"] .import-flash { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.35); color: #6ee7b7; }
html[data-theme="dark"] .import-flash.is-error { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
html[data-theme="dark"] .import-provider-badge { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; }
html[data-theme="dark"] .import-provider-badge.is-muted { background: var(--surface-2); color: var(--text-muted); }

html[data-theme="dark"] .settings-form-tab,
html[data-theme="dark"] .hpanel-tab,
html[data-theme="dark"] .account-tab {
    color: var(--text-muted);
    border-color: var(--border);
    background: transparent;
}
html[data-theme="dark"] .settings-form-tab.is-active,
html[data-theme="dark"] .hpanel-tab.is-active,
html[data-theme="dark"] .account-tab.is-active {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--brand-light);
}
html[data-theme="dark"] .settings-nav-item.is-active {
    color: var(--brand);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--border);
}
html[data-theme="dark"] .settings-shell {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}
html[data-theme="dark"] .settings-nav {
    background: var(--surface-2);
    border-color: var(--border);
}
html[data-theme="dark"] .settings-nav-label {
    color: var(--text-muted);
}
html[data-theme="dark"] .settings-nav-item {
    color: var(--text-muted);
}
html[data-theme="dark"] .settings-nav-item:hover {
    background: var(--brand-light);
    color: var(--brand);
}
html[data-theme="dark"] .settings-main,
html[data-theme="dark"] .settings-main-body {
    background: var(--surface);
    color: var(--text);
}
html[data-theme="dark"] .settings-main-foot {
    background: var(--surface-2);
    border-color: var(--border);
}
html[data-theme="dark"] .auto-accordion {
    background: var(--surface);
    border-color: var(--border);
}
html[data-theme="dark"] .auto-accordion-head {
    background: var(--surface-2);
    color: var(--brand);
}
html[data-theme="dark"] .auto-accordion-body {
    background: var(--surface);
    color: var(--text);
}
html[data-theme="dark"] .auto-accordion-head.is-open {
    border-bottom-color: var(--border);
}
html[data-theme="dark"] .hpanel-card.hpanel-card-pad {
    background: var(--surface-2);
    border-color: var(--border);
}

html[data-theme="dark"] .customer-pick-change,
html[data-theme="dark"] .hpanel-check-item,
html[data-theme="dark"] .order-wait-box,
html[data-theme="dark"] .btn-sq,
html[data-theme="dark"] .action-chip {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="dark"] .cash-td-amount.is-in { color: #4ade80; }
html[data-theme="dark"] .cash-td-amount.is-out { color: #f87171; }

html[data-theme="dark"] .auto-cron-card {
    background: linear-gradient(135deg, var(--surface-2) 0%, rgba(168, 176, 255, 0.08) 100%);
}

html[data-theme="dark"] .client-announcement,
html[data-theme="dark"] .client-announce-bar {
    border-color: var(--border);
}
html[data-theme="dark"] .client-announcement.is-info,
html[data-theme="dark"] .client-announce-bar.is-info { background: rgba(99, 102, 241, 0.12); color: #c7d2fe; }
html[data-theme="dark"] .client-announcement.is-warning,
html[data-theme="dark"] .client-announce-bar.is-warning { background: rgba(245, 158, 11, 0.12); color: #fcd34d; }
html[data-theme="dark"] .client-announcement.is-success,
html[data-theme="dark"] .client-announce-bar.is-success { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
html[data-theme="dark"] .client-announcement.is-danger,
html[data-theme="dark"] .client-announce-bar.is-danger { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }

/* Soften leftover light surfaces inside cards/tables */
html[data-theme="dark"] .hpanel-table-wrap,
html[data-theme="dark"] .data-table,
html[data-theme="dark"] .invoice-lines-table,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .ticket-compose,
html[data-theme="dark"] .ticket-thread-item,
html[data-theme="dark"] .order-summary-card,
html[data-theme="dark"] .cart-summary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

/* Destek talepleri ? dark */
html[data-theme="dark"] .ticket-room,
html[data-theme="dark"] .ticket-room-head,
html[data-theme="dark"] .ticket-compose,
html[data-theme="dark"] .ticket-list-item {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .ticket-handoff {
    background: var(--bg);
    border-color: var(--border);
}
html[data-theme="dark"] .ticket-handoff-status {
    color: var(--text-muted);
}
html[data-theme="dark"] .ticket-handoff-select,
html[data-theme="dark"] .ticket-handoff-btn {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .ticket-compose-box {
    background: var(--bg);
    border-color: var(--border);
}
html[data-theme="dark"] .ticket-compose-box:focus-within {
    background: var(--surface);
}
html[data-theme="dark"] .ticket-compose-input {
    color: var(--text);
}
html[data-theme="dark"] .ticket-compose-hint,
html[data-theme="dark"] .ticket-canned-select,
html[data-theme="dark"] .ticket-canned-link {
    color: var(--text-muted);
}
html[data-theme="dark"] .ticket-chat {
    background: var(--bg);
}
html[data-theme="dark"] .ticket-room-title,
html[data-theme="dark"] .ticket-list-item-head strong {
    color: var(--brand);
}
html[data-theme="dark"] .ticket-room-meta,
html[data-theme="dark"] .ticket-list-item-meta,
html[data-theme="dark"] .ticket-list-item-preview,
html[data-theme="dark"] .ticket-compose-closed,
html[data-theme="dark"] .ticket-chat-empty,
html[data-theme="dark"] .ticket-live-dot {
    color: var(--text-muted);
}
html[data-theme="dark"] .ticket-list-item:hover {
    background: var(--brand-light);
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .ticket-msg.is-mine .ticket-msg-inner {
    background: var(--brand);
    color: #0c0e14;
}
html[data-theme="dark"] .ticket-msg.is-mine .ticket-msg-head {
    color: rgba(12, 14, 20, 0.72);
}
html[data-theme="dark"] .ticket-msg.is-theirs .ticket-msg-inner {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}
html[data-theme="dark"] .ticket-msg.is-theirs .ticket-msg-head {
    color: var(--text-muted);
}
html[data-theme="dark"] .ticket-msg-system {
    background: var(--brand-light);
    color: var(--text-muted);
}
html[data-theme="dark"] .ticket-unread-pill {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}
html[data-theme="dark"] .is-unread-row {
    background: rgba(168, 176, 255, 0.08);
}
html[data-theme="dark"] .ticket-canned-bar .hpanel-label {
    color: var(--text-muted);
}
html[data-theme="dark"] .client-ticket-item:hover {
    background: var(--brand-light);
}
html[data-theme="dark"] .dash-filter-tab {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-muted);
}
html[data-theme="dark"] .dash-filter-tab:hover {
    background: var(--brand-light);
    color: var(--brand);
    border-color: var(--brand);
}
html[data-theme="dark"] .dash-filter-tab.is-active {
    background: var(--brand);
    color: #0c0e14;
    border-color: var(--brand);
}
html[data-theme="dark"] .simple-page-title {
    color: var(--brand);
}
html[data-theme="dark"] .simple-page-lead,
html[data-theme="dark"] .simple-page-note span,
html[data-theme="dark"] .simple-page-note em {
    color: var(--text-muted);
}
html[data-theme="dark"] .simple-page-note {
    background: var(--brand-light);
}
html[data-theme="dark"] .simple-page-note strong {
    color: var(--brand);
}
html[data-theme="dark"] .ticket-create-help {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(168, 176, 255, 0.1), transparent 55%),
        var(--surface);
    border-color: var(--border);
}
html[data-theme="dark"] .ticket-create-help-title,
html[data-theme="dark"] .ticket-create-help-kicker {
    color: var(--brand);
}
html[data-theme="dark"] .ticket-create-tips-list li {
    color: var(--text);
}
html[data-theme="dark"] .ticket-create-tips-block {
    border-top-color: var(--border);
}
html[data-theme="dark"] .ticket-create-tips-title {
    color: var(--brand);
}

html[data-theme="dark"] input[readonly].hpanel-input,
html[data-theme="dark"] .hpanel-input[readonly] {
    background: var(--surface-2);
    color: var(--text-muted);
}
html[data-theme="dark"] .verify-status {
    background: var(--surface-2);
    border-color: var(--border);
}
html[data-theme="dark"] .verify-status.is-complete {
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(16, 185, 129, 0.12), transparent 55%),
        var(--surface);
}
html[data-theme="dark"] .verify-status-title,
html[data-theme="dark"] .verify-next-steps strong {
    color: var(--brand);
}
html[data-theme="dark"] .security-card {
    background: var(--surface);
}
html[data-theme="dark"] .security-card.is-verified {
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--surface) 70%);
    border-color: rgba(16, 185, 129, 0.28);
}
html[data-theme="dark"] .verify-card-ok-title {
    color: #6ee7b7;
}
html[data-theme="dark"] .verify-next-steps {
    background: var(--surface-2);
    border-color: var(--border);
}
html[data-theme="dark"] .verify-next-steps.is-warn {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
}

/* Sipari? sihirbaz? ? dark */
html[data-theme="dark"] .order-hero {
    background:
        radial-gradient(1200px 180px at 0% 0%, rgba(168, 176, 255, 0.14), transparent 55%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
html[data-theme="dark"] .order-period-card:hover {
    border-color: rgba(168, 176, 255, 0.4);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .order-period-card.is-selected {
    box-shadow: 0 0 0 3px rgba(168, 176, 255, 0.22);
}
html[data-theme="dark"] .order-inline-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
html[data-theme="dark"] .order-acc-item.is-open {
    border-color: rgba(168, 176, 255, 0.35);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] .order-acc-item.is-open .order-acc-head {
    background: #2a3142;
    color: #fff;
}
html[data-theme="dark"] .order-domain-own-promo {
    background: linear-gradient(135deg, rgba(168, 176, 255, 0.12), rgba(168, 176, 255, 0.03));
    border-color: rgba(168, 176, 255, 0.22);
}
html[data-theme="dark"] .order-dns-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    border-color: rgba(16, 185, 129, 0.28);
}
html[data-theme="dark"] .order-dns-box-head strong { color: #6ee7b7; }
html[data-theme="dark"] .order-dns-box-head p { color: #a7f3d0; }
html[data-theme="dark"] .order-dns-list li {
    background: var(--surface-2);
    border-color: rgba(16, 185, 129, 0.25);
}
html[data-theme="dark"] .order-dns-label {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.15);
}
html[data-theme="dark"] .order-cart-table-wrap,
html[data-theme="dark"] .order-cart-table td {
    background: var(--surface);
    border-color: var(--border);
}
html[data-theme="dark"] .order-cart-table thead th {
    background: #1f2937;
}
html[data-theme="dark"] .order-cart-item-meta { color: #f472b6; }
html[data-theme="dark"] .order-cart-secure {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    border-color: rgba(16, 185, 129, 0.28);
}
html[data-theme="dark"] .order-ssl-desc { color: #a7f3d0; }
html[data-theme="dark"] .order-summary-head {
    background: #1f2937;
}
html[data-theme="dark"] .order-summary-row .is-accent { color: #fb923c; }
html[data-theme="dark"] .order-summary-total strong { color: #4ade80; }
html[data-theme="dark"] .order-pay-option.is-selected {
    background: var(--brand-light);
}
html[data-theme="dark"] .order-pay-hint { color: #fbbf24; }
html[data-theme="dark"] .order-req-optional { color: var(--text-muted); }
html[data-theme="dark"] .order-req-required { color: #f87171; }
html[data-theme="dark"] .order-tld-row.is-available .order-tld-status { color: #6ee7b7; }
html[data-theme="dark"] .order-tld-row.is-taken .order-tld-status { color: #fbbf24; }
html[data-theme="dark"] .btn-brand-lg:hover:not(:disabled) {
    box-shadow: 0 8px 18px rgba(168, 176, 255, 0.22);
}

/* Teklif Sihirbaz? */
.quote-wiz { margin-top: 0.25rem; }
.quote-wiz-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}
.quote-wiz-main { display: grid; gap: 1rem; min-width: 0; }
.quote-wiz-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 1.15rem 1.25rem 1.25rem;
}
.quote-wiz-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.quote-wiz-card-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text, #0f172a);
}
.quote-wiz-card-actions { display: flex; align-items: center; gap: 0.75rem; }
.quote-wiz-lines { border-radius: 10px; overflow: hidden; }
.quote-wiz-side { position: sticky; top: 1rem; }
.quote-wiz-summary {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 1.15rem 1.2rem;
}
.quote-wiz-summary > h3 {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
}
.quote-wiz-sum-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    padding: 0.35rem 0;
    color: var(--text-muted, #64748b);
}
.quote-wiz-sum-row strong { color: var(--text, #0f172a); font-weight: 600; }
.quote-wiz-sum-row.is-grand {
    margin-top: 0.35rem;
    padding-top: 0.7rem;
    border-top: 2px solid var(--border, #e2e8f0);
    font-size: 1rem;
    color: var(--text, #0f172a);
}
.quote-wiz-sum-row.is-grand strong { color: var(--brand, #4f46e5); font-size: 1.05rem; }
.quote-wiz-actions {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}
.quote-wiz-mail {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border, #e2e8f0);
}
.quote-wiz-mail h4 {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
}
.quote-wiz-warn {
    margin: 0.55rem 0 0;
    font-size: 0.8125rem;
    color: #b91c1c;
}
@media (max-width: 980px) {
    .quote-wiz-layout { grid-template-columns: 1fr; }
    .quote-wiz-side { position: static; }
}

/* Hizmet detay ara? ?ubu?u */
.svc-admin-toolbar {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}
.svc-admin-actions {
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}
.svc-admin-actions .btn-brand,
.svc-admin-actions .hpanel-btn-outline {
    white-space: nowrap;
}

/* Hizmet d?zenle ? Kaynaklar */
.svc-edit-section {
    margin: 0 0 1.5rem;
    padding: 0 0 1.35rem;
    border-bottom: 1px solid var(--border);
}
.svc-edit-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 1rem;
}
.svc-edit-section-title {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--brand-muted);
}
.svc-edit-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    margin: 0;
}
.svc-edit-check input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.svc-edit-check strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}
.svc-edit-check small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--brand-muted);
    line-height: 1.35;
}
.svc-resources-panel .settings-form-foot {
    margin-top: 0.5rem;
}
.hpanel-field-hint.is-error {
    color: #b91c1c;
}
html[data-theme="dark"] .hpanel-field-hint.is-error {
    color: #fca5a5;
}
html[data-theme="dark"] .svc-edit-section {
    border-color: var(--border);
}
html[data-theme="dark"] .svc-edit-check strong {
    color: var(--text);
}

/* Client-only TR / EN switcher */
.client-lang-switch { display:flex; align-items:center; position:relative; }
.client-lang-trigger {
    display:inline-flex; align-items:center; justify-content:center; gap:.38rem;
    height:2.25rem; min-width:4rem; padding:0 .55rem;
    border:1px solid var(--border); border-radius:9px; background:var(--surface);
    color:var(--text); font:700 .72rem/1 Inter,sans-serif; cursor:pointer;
    transition:border-color .15s ease,background .15s ease;
}
.client-lang-trigger:hover,.client-lang-trigger[aria-expanded="true"] { border-color:var(--brand); background:var(--brand-light); }
.client-lang-current-flag { width:1.2rem; height:1.2rem; border-radius:50%; object-fit:cover; }
.client-lang-chevron { color:var(--brand-muted); font-size:.7rem; transition:transform .15s ease; }
.client-lang-chevron.is-open { transform:rotate(180deg); }
.client-lang-menu {
    position:absolute; z-index:120; top:calc(100% + .45rem); right:0;
    width:10.5rem; padding:.35rem; background:var(--surface); border:1px solid var(--border);
    border-radius:10px; box-shadow:0 12px 30px rgba(15,23,42,.16);
}
.client-lang-menu form { margin:0; }
.client-lang-option {
    display:flex; align-items:center; gap:.55rem; width:100%; padding:.58rem .65rem;
    border:0; border-radius:7px; background:transparent; text-align:left;
    color:var(--text); font:600 .8rem/1 Inter,sans-serif; cursor:pointer;
    transition:border-color .15s ease,background .15s ease,color .15s ease;
}
.client-lang-option img { width:1.25rem; height:1.25rem; border-radius:50%; object-fit:cover; }
.client-lang-option span { flex:1; }
.client-lang-option b { color:var(--brand-muted); font-size:.65rem; }
.client-lang-option:hover,.client-lang-option.is-active { background:var(--brand-light); color:var(--brand); }
.client-lang-current-flag.is-en,.client-lang-current-label.is-en { display:none; }
html[data-client-lang="en"] .client-lang-current-flag.is-tr,html[data-client-lang="en"] .client-lang-current-label.is-tr { display:none; }
html[data-client-lang="en"] .client-lang-current-flag.is-en,html[data-client-lang="en"] .client-lang-current-label.is-en { display:inline; }
.client-lang-switch.is-mobile { display:none; }
html[data-theme="dark"] .client-lang-trigger,html[data-theme="dark"] .client-lang-menu { background:var(--surface); border-color:var(--border); }
html[data-theme="dark"] .client-lang-option { color:var(--text); }
html[data-theme="dark"] .client-lang-option:hover,html[data-theme="dark"] .client-lang-option.is-active { color:#fff; background:rgba(59,130,246,.18); }
@media (max-width:767px) {
    .client-lang-switch.is-desktop { display:none; }
    .client-lang-switch.is-mobile { display:block; padding:.5rem .65rem; border-bottom:1px solid var(--border); }
    .client-lang-switch.is-mobile .client-lang-trigger { width:100%; justify-content:flex-start; }
    .client-lang-switch.is-mobile .client-lang-chevron { margin-left:auto; }
    .client-lang-switch.is-mobile .client-lang-menu { position:static; width:100%; margin-top:.35rem; box-shadow:none; }
    .hpanel-dropdown .client-lang-trigger { display:flex; width:100%; padding:.55rem .65rem; border:1px solid var(--border); background:var(--surface); text-align:left; }
    .hpanel-dropdown .client-lang-option { display:flex; width:100%; padding:.58rem .65rem; border:0; background:transparent; text-align:left; }
    .hpanel-dropdown .client-lang-option:hover,.hpanel-dropdown .client-lang-option.is-active { background:var(--brand-light); }
}

/* Client service cancellation dialog */
.service-cancel-toolbar { justify-content:flex-end; }
.service-cancel-backdrop { z-index:140; padding:1rem; }
.service-cancel-dialog { width:min(100%,34rem); max-height:calc(100vh - 2rem); overflow:auto; }
.service-cancel-heading { display:flex; align-items:flex-start; gap:.85rem; margin-bottom:1rem; }
.service-cancel-heading .hpanel-confirm-title,
.service-cancel-heading .hpanel-confirm-message { text-align:left; }
.service-cancel-select-field { display:block; margin:1rem 0; }
.service-cancel-select-field .hpanel-select { width:100%; }
.service-cancel-icon {
    display:grid; place-items:center; flex:0 0 2.5rem; width:2.5rem; height:2.5rem;
    border-radius:50%; color:#b42318; background:#fff0ee; font-weight:800; font-size:1.1rem;
}
.service-cancel-other {
    position:relative; display:block; margin:1rem 0; padding:1rem;
    border:1px solid var(--border); border-radius:12px;
    background:linear-gradient(145deg,var(--surface),var(--surface-soft,#f8fafc));
}
.service-cancel-other-heading { display:flex; align-items:flex-start; gap:.65rem; margin-bottom:.75rem; }
.service-cancel-other-heading > span:last-child { display:grid; gap:.18rem; }
.service-cancel-other-heading strong { color:var(--text); font-size:.9rem; }
.service-cancel-other-heading small { color:var(--brand-muted); font-size:.76rem; line-height:1.4; }
.service-cancel-other-icon {
    display:grid; place-items:center; flex:0 0 1.9rem; width:1.9rem; height:1.9rem;
    border-radius:8px; color:var(--brand); background:var(--brand-light); font-size:.9rem;
}
.service-cancel-other textarea {
    width:100%; min-height:7rem; padding:.85rem .9rem 1.55rem; resize:vertical;
    border:1px solid var(--border); border-radius:9px; outline:0;
    color:var(--text); background:var(--surface); font:inherit; line-height:1.5;
    transition:border-color .15s ease,box-shadow .15s ease;
}
.service-cancel-other textarea:focus { border-color:var(--brand); box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.service-cancel-other textarea::placeholder { color:var(--brand-muted); opacity:.8; }
.service-cancel-counter { position:absolute; right:1.75rem; bottom:1.55rem; color:var(--brand-muted); font-size:.7rem; }
.service-cancel-counter b { color:var(--text); font-weight:650; }
.service-cancel-dialog button:disabled { opacity:.5; cursor:not-allowed; }
.svc-cancel-request-card { flex:1 1 100%; border-color:#d99b22; background:rgba(217,155,34,.06); }
html[data-theme="dark"] .service-cancel-icon { color:#fecaca; background:rgba(185,28,28,.24); }
@media (max-width:600px) {
    .service-cancel-dialog { padding:1rem; }
    .service-cancel-heading { gap:.65rem; }
}

/* Client-only service labels */
.service-client-label { display:block; margin-top:.32rem; }
.service-manage-btn {
    display:inline-flex; align-items:center; justify-content:center; gap:.42rem;
    min-height:2.15rem; padding:.42rem .68rem; border:1px solid var(--border);
    border-radius:8px; color:var(--brand); background:var(--surface);
    font-size:.76rem; font-weight:700; line-height:1; text-decoration:none; white-space:nowrap;
    transition:color .15s ease,border-color .15s ease,background .15s ease,transform .15s ease;
}
.service-manage-btn:hover {
    color:#fff; border-color:var(--brand); background:var(--brand); text-decoration:none;
    transform:translateY(-1px);
}
.service-manage-btn-icon { display:inline-grid; place-items:center; width:.95rem; height:.95rem; }
.service-manage-btn-icon svg { display:block; width:.95rem; height:.95rem; stroke:currentColor; }
html[data-theme="dark"] .service-manage-btn { background:var(--surface); border-color:var(--border); }
html[data-theme="dark"] .service-manage-btn:hover { color:#fff; border-color:var(--brand); background:var(--brand); }
.service-client-label-add {
    padding:0; border:0; background:transparent; color:var(--brand); cursor:pointer;
    font-size:.72rem; font-weight:650; line-height:1.3;
}
.service-client-label-add:hover { text-decoration:underline; }
.service-client-label-badge {
    display:inline-flex; align-items:center; gap:.38rem; max-width:100%; padding:.28rem .5rem;
    border:1px solid rgba(37,99,235,.22); border-radius:999px; background:var(--brand-light);
    color:var(--brand); cursor:pointer; font-size:.72rem; font-weight:700;
}
.service-client-label-badge span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.service-client-label-badge b { flex:0 0 auto; font-size:.65rem; }
.service-label-backdrop { z-index:145; padding:1rem; }
.service-label-dialog { width:min(100%,32rem); padding:1.35rem; overflow:hidden; }
.service-label-dialog-head {
    display:flex; align-items:flex-start; gap:.8rem; margin:-.15rem -.15rem 1.15rem;
    padding:.2rem .15rem 1rem; border-bottom:1px solid var(--border);
}
.service-label-dialog-head .hpanel-confirm-title,
.service-label-dialog-head .hpanel-confirm-message { text-align:left; }
.service-label-dialog-head .hpanel-confirm-title { margin:0; font-size:1.02rem; line-height:1.35; }
.service-label-dialog-head .hpanel-confirm-message { margin:.3rem 0 0; max-width:25rem; font-size:.8rem; line-height:1.55; }
.service-label-dialog-icon {
    display:grid; place-items:center; flex:0 0 2.25rem; width:2.25rem; height:2.25rem;
    border-radius:10px; color:var(--brand); background:var(--brand-light); font-weight:800;
}
.service-label-input-wrap { position:relative; display:block; }
.service-label-input-wrap input {
    width:100%; height:2.85rem; padding:0 4rem 0 .85rem; border:1px solid var(--border);
    border-radius:9px; outline:0; color:var(--text); background:var(--surface); font:inherit;
    transition:border-color .15s ease,box-shadow .15s ease;
}
.service-label-input-wrap input:focus { border-color:var(--brand); box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.service-label-input-wrap small { position:absolute; right:.75rem; bottom:.82rem; color:var(--brand-muted); font-size:.68rem; }
.service-label-actions {
    display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap;
    gap:.55rem; margin-top:1rem;
}
.service-label-actions > span { flex:1 1 auto; }
.service-label-actions button {
    display:inline-flex; align-items:center; justify-content:center; min-height:2.45rem;
    padding:.58rem .9rem; white-space:nowrap; border-radius:8px; font-size:.78rem;
}
.service-label-actions .is-danger-text { margin-right:auto; }
.service-label-actions button:disabled { opacity:.5; cursor:not-allowed; }
html[data-theme="dark"] .service-client-label-badge { border-color:rgba(96,165,250,.3); background:rgba(59,130,246,.16); }
@media (max-width:600px) {
    .service-label-dialog { padding:1rem; }
    .service-label-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; }
    .service-label-actions > span { display:none; }
    .service-label-actions button { width:100%; margin:0; }
    .service-label-actions .is-danger-text { grid-column:1 / -1; order:3; }
}
