/* DHost изглед, според dhostmk-example.html. Classic стиловите остануваат во страниците. */
@font-face { font-family: 'Portal Inter'; src: url('../fonts/inter/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
.portal-theme-dhost {
    --portal-text-xs: .8125rem;
    --portal-text-sm: .875rem;
    --portal-text-label: .9375rem;
    --portal-text-base: 1rem;
    --portal-heading-sm: 1.125rem;
    --portal-control: 44px;
    --portal-input-border: #7e8da3;
    --bg-primary: #f5f7fb;
    --bg-secondary: #fff;
    --bg-tertiary: #f8faff;
    --text-primary: #111827;
    --text-secondary: #475569;
    --border-color: #e6eaf2;
    --hover-color: #eff6ff;
    --primary-color: #145fca;
    --primary-dark: #125fcc;
    --portal-bg: #f5f7fb;
    --portal-surface: #fff;
    --portal-soft: #f8faff;
    --portal-ink: #111827;
    --portal-muted: #475569;
    --portal-line: #e6eaf2;
    --portal-blue: #145fca;
    --portal-blue-soft: #eff6ff;
    --portal-green: #16804a;
    --portal-red: #c4323c;
    --portal-shadow: 0 3px 18px rgba(17, 24, 39, .035);
    background: var(--portal-bg) !important;
    color: var(--portal-ink) !important;
    font-family: 'Portal Inter', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: var(--portal-text-base);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    color-scheme: light;
    margin: 0;
    min-height: 100vh;
}
.portal-theme-dhost *, .portal-theme-dhost *::before, .portal-theme-dhost *::after { box-sizing: border-box; }
.portal-theme-dhost h1, .portal-theme-dhost h2, .portal-theme-dhost h3, .portal-theme-dhost h4 { color: var(--portal-ink); letter-spacing: -.025em; }
.portal-theme-dhost h1 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 750; line-height: 1.25; }
.portal-theme-dhost h2 { font-size: var(--portal-heading-sm); font-weight: 700; }
.portal-theme-dhost h3 { font-size: var(--portal-heading-sm); font-weight: 700; }
.portal-theme-dhost a { color: var(--portal-blue); text-decoration: none; }
.portal-theme-dhost a:hover { text-decoration: none; }
.portal-theme-dhost button, .portal-theme-dhost input, .portal-theme-dhost textarea, .portal-theme-dhost select { font: inherit; }
.portal-theme-dhost button { cursor: pointer; }
.portal-theme-dhost button:disabled { cursor: not-allowed; opacity: .55; }
.portal-theme-dhost :focus-visible { outline: 3px solid #93c5fd !important; outline-offset: 3px; }
.portal-theme-dhost ::selection { background: #dbeafe; color: #111827; }
.portal-account { padding: 78px 0 0 264px; }
.portal-account .dashboard-container { display: block; min-height: calc(100vh - 78px); background: transparent; }
.portal-account .main-content { margin: 0; padding: 32px clamp(20px, 3vw, 48px) 48px; min-width: 0; width: 100%; max-width: 1660px; }
.portal-account > .container { width: 100%; max-width: 1510px; padding: 32px clamp(20px, 3vw, 48px) 48px; margin: 0 auto; }
.portal-account.portal-page-change-password > .container { max-width: 820px; }
.portal-account.portal-page-discord-connect > .container { max-width: 920px; }
.portal-theme-dhost .portal-sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--portal-line); z-index: 1100; overflow-y: auto; }
.portal-theme-dhost .portal-brand { display: flex; align-items: center; gap: 11px; min-height: 78px; padding: 18px 24px; font-size: var(--portal-heading-sm); font-weight: 780; color: var(--portal-ink); letter-spacing: -.035em; }
.portal-brand-mark { flex: 0 0 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--portal-blue); color: white; font-size: var(--portal-heading-sm); box-shadow: 0 4px 10px #1570ef22; }
.portal-brand small { display: block; font-weight: 500; font-size: var(--portal-text-xs); color: var(--portal-muted); letter-spacing: .09em; text-transform: uppercase; margin-top: 1px; }
.portal-nav { padding: 7px 15px 24px; flex: 1; }
.portal-nav-heading { margin: 24px 12px 9px; font-size: var(--portal-text-xs); font-weight: 750; letter-spacing: .115em; text-transform: uppercase; color: var(--portal-muted); }
.portal-theme-dhost .portal-nav > a { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 10px; min-height: 44px; margin: 3px 0; color: #596579; font-size: var(--portal-text-label); font-weight: 550; }
.portal-nav > a > i { width: 18px; text-align: center; font-size: var(--portal-text-label); color: var(--portal-muted); }
.portal-theme-dhost .portal-nav > a:hover { background: #f7f9fc; color: #111827; }
.portal-theme-dhost .portal-nav > a.is-active { background: var(--portal-blue-soft); color: var(--portal-blue); font-weight: 700; }
.portal-nav > a.is-active > i { color: var(--portal-blue); }
.portal-count { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: #eef1f6; color: #69758a; font-size: var(--portal-text-xs); }
.portal-sidebar-bottom { padding: 0 15px; }
.portal-theme-dhost .portal-help { display: flex; align-items: center; gap: 11px; border: 1px solid var(--portal-line); background: var(--portal-soft); border-radius: 12px; padding: 14px 11px; color: var(--portal-ink); }
.portal-help > i:first-child { color: var(--portal-blue); font-size: 1.25rem; }
.portal-help > i:last-child { margin-left: auto; font-size: var(--portal-text-xs); color: var(--portal-muted); }
.portal-help strong, .portal-account-row strong { display: block; font-size: var(--portal-text-sm); font-weight: 700; }
.portal-help small { display: block; color: var(--portal-muted); font-size: var(--portal-text-xs); margin-top: 2px; }
.portal-account-row { margin-top: 17px; border-top: 1px solid var(--portal-line); padding: 18px 2px; display: flex; align-items: center; gap: 9px; }
.portal-avatar { border-radius: 50%; background: #e9f1ff; color: var(--portal-blue); font-weight: 700; height: 33px; width: 33px; flex-shrink: 0; display: grid; place-items: center; }
.portal-account-row > a:nth-child(2) { flex: 1; min-width: 0; color: var(--portal-ink); }
.portal-account-row small { display: block; max-width: 150px; font-size: var(--portal-text-xs); color: var(--portal-muted); overflow: hidden; text-overflow: ellipsis; }
.portal-theme-dhost .portal-logout { color: var(--portal-muted); padding: 8px; }
.portal-theme-dhost .portal-topbar { position: fixed; height: 78px; top: 0; left: 264px; right: 0; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--portal-line); display: flex; align-items: center; gap: 15px; padding: 0 clamp(20px, 3vw, 48px); z-index: 1050; }
.portal-breadcrumb { display: flex; align-items: center; gap: 13px; font-size: var(--portal-text-sm); min-width: 0; }
.portal-breadcrumb > span { color: var(--portal-muted); white-space: nowrap; }
.portal-breadcrumb > i { font-size: 8px; color: #b1bbc9; }
.portal-breadcrumb > strong { color: #344054; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.portal-theme-dhost .portal-new-order { padding: 9px 13px; border: 1px solid var(--portal-line); border-radius: 9px; color: #344054; display: flex; gap: 8px; align-items: center; font-size: var(--portal-text-sm); font-weight: 650; background: #fff; }
.portal-new-order:hover { border-color: #b9d7ff; }
.portal-theme-dhost .portal-icon-link { color: #667085; padding: 5px 3px; font-size: var(--portal-heading-sm); }
.portal-theme-dhost .language-switcher { margin: 0; width: auto; gap: 6px; display: inline-flex; align-items: center; }
.portal-theme-dhost .lang-btn { width: 29px; height: 29px; min-width: 29px; min-height: 29px; border: 1px solid #e2e8f0; background: #fff; padding: 4px; border-radius: 8px; }
.portal-theme-dhost .lang-btn.active { border-color: #93c5fd; background: #eff6ff; }
.portal-theme-dhost .lang-flag-img { width: 20px !important; height: 16px !important; max-width: 20px; max-height: 16px; border-radius: 2px; object-fit: cover; }
.portal-account .main-content .language-switcher { display: none; }
.portal-menu-button, .portal-backdrop { display: none; }
.portal-skip { position: fixed; left: 280px; top: -100px; padding: 12px 20px; border-radius: 8px; background: #fff; z-index: 2000; }
.portal-skip:focus { top: 10px; }
.portal-preview-banner { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; background: #fff8e8; border-bottom: 1px solid #f1d79c; padding: 9px 20px; color: #946200; font-size: var(--portal-text-sm); }
.portal-preview-banner a { font-weight: 700; }
.portal-copy-notice { position: fixed; top: 90px; right: 24px; z-index: 2000; box-shadow: var(--portal-shadow); max-width: calc(100vw - 40px); }

/* Заглавија и распореди на сите постојни страници. */
.portal-theme-dhost .page-header, .portal-account > .container > .header { padding: 0 0 25px; margin-bottom: 24px; border-bottom: 1px solid var(--portal-line); }
.portal-theme-dhost .page-header h1, .portal-theme-dhost .header h1 { color: var(--portal-ink); margin: 0 0 7px; }
.portal-theme-dhost .page-header p, .portal-theme-dhost .header p, .portal-theme-dhost .page-subtitle { color: var(--portal-muted); font-size: var(--portal-text-sm); }
.portal-theme-dhost .back-link { font-size: var(--portal-text-sm); color: var(--portal-muted); margin: 0 0 17px; gap: 8px; }
.portal-theme-dhost .back-link:hover { color: var(--portal-blue); }
.portal-theme-dhost .page-title { gap: 14px; align-items: center; flex-wrap: wrap; }
.portal-theme-dhost .dashboard-grid { gap: 24px; }
.portal-theme-dhost .main-header { background: transparent; border-bottom: 1px solid var(--portal-line); padding: 0 0 25px; margin-bottom: 26px; }
.portal-theme-dhost .main-header h1 { color: #111827; }
.portal-theme-dhost .welcome-message { color: var(--portal-muted); font-size: var(--portal-text-sm); }
.portal-theme-dhost .btn-user { background: #fff; border: 1px solid var(--portal-line); color: var(--portal-muted); }
.portal-theme-dhost .dashboard-widgets { gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-theme-dhost .widget { background: #fff; border: 1px solid var(--portal-line); border-radius: 15px; box-shadow: var(--portal-shadow); overflow: hidden; }
.portal-theme-dhost .widget-header, .portal-theme-dhost .widget-announcements .widget-header { padding: 20px 23px; background: #fff; border-bottom: 1px solid var(--portal-line); }
.portal-theme-dhost .widget-header h3 { color: #111827; font-size: var(--portal-text-base); font-weight: 700; }
.portal-theme-dhost .widget-header h3 i { color: var(--portal-muted); margin-right: 7px; }
.portal-theme-dhost .widget-content { padding: 22px 23px; }
.portal-theme-dhost .widget-stats .widget-content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.portal-theme-dhost .widget-stats .stat { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0; border: 0; }
.portal-theme-dhost .widget-stats, .portal-theme-dhost .widget-actions { grid-column: 1 / -1; }
.portal-theme-dhost .widget-stats .stat { border: 1px solid var(--portal-line); border-radius: 12px; padding: 18px; background: #fafdff; }
.portal-theme-dhost .widget-actions .widget-content { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portal-theme-dhost .widget .portal-table-scroll table { min-width: 0; }
.portal-theme-dhost .widget table td, .portal-theme-dhost .widget table th { padding: 13px 11px; }
.portal-theme-dhost .widget .table td, .portal-theme-dhost .widget .table th { padding: 13px 11px; }
.portal-theme-dhost .stat-info h4 { color: var(--portal-muted); font-size: var(--portal-text-xs); font-weight: 500; }
.portal-theme-dhost .stat-info .stat-number { color: #111827; font-size: 1.875rem; line-height: 1.2; }
.portal-theme-dhost .widget-actions .action-btn { flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 56px; }
.portal-theme-dhost .widget-actions .action-btn i { font-size: var(--portal-heading-sm); margin: 0; color: #145fca; }
.portal-theme-dhost .services-grid, .portal-theme-dhost .orders-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 21px; }
.portal-theme-dhost .notifications-container { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.portal-theme-dhost .service-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 310px); gap: 24px; }
.portal-theme-dhost .profile-grid { grid-template-columns: minmax(0, 1.65fr) minmax(275px, 1fr); gap: 24px; }
.portal-theme-dhost .service-main, .portal-theme-dhost .service-sidebar, .portal-theme-dhost .profile-main, .portal-theme-dhost .profile-sidebar { min-width: 0; }
.portal-theme-dhost .card, .portal-theme-dhost .service-card, .portal-theme-dhost .order-card, .portal-theme-dhost .notification-card, .portal-theme-dhost .announcement-card, .portal-theme-dhost .ticket-form, .portal-theme-dhost .reply-form, .portal-theme-dhost .ticket-info, .portal-theme-dhost .invoice-container, .portal-theme-dhost .invoice-card, .portal-theme-dhost .auth-card, .portal-theme-dhost .register-card, .portal-theme-dhost .password-card, .portal-theme-dhost .forgot-card, .portal-theme-dhost .pending-card, .portal-theme-dhost .verification-card, .portal-theme-dhost .form-card, .portal-theme-dhost .legal-content, .portal-theme-dhost .terms-content, .portal-theme-dhost .privacy-content {
    background: var(--portal-surface); border: 1px solid var(--portal-line); border-radius: 15px; color: var(--portal-ink); box-shadow: var(--portal-shadow); padding: 24px;
}
.portal-theme-dhost .card:hover, .portal-theme-dhost .service-card:hover, .portal-theme-dhost .order-card:hover, .portal-theme-dhost .notification-card:hover { transform: none; border-color: #d3ddeb; box-shadow: 0 4px 16px #11182705; }
.portal-theme-dhost .card-header, .portal-theme-dhost .service-header, .portal-theme-dhost .order-header { padding-bottom: 17px; margin-bottom: 19px; border-bottom: 1px solid var(--portal-line); background: transparent; }
.portal-theme-dhost .card-header h2, .portal-theme-dhost .card-header h3, .portal-theme-dhost .card h2, .portal-theme-dhost .card h3, .portal-theme-dhost .service-header h3, .portal-theme-dhost .order-header h3 { color: var(--portal-ink); }
.portal-theme-dhost .card-header > i, .portal-theme-dhost .card h3 > i { color: var(--portal-blue); }
.portal-theme-dhost .card-header h3 { font-size: var(--portal-text-base); }
.portal-theme-dhost .stat-card, .portal-theme-dhost .stats-card, .portal-theme-dhost .summary-card { background: #fff; color: var(--portal-ink); border: 1px solid var(--portal-line); border-radius: 13px; box-shadow: none; padding: 23px; }
.portal-theme-dhost .stat-card .stat-number, .portal-theme-dhost .stat-number, .portal-theme-dhost .stat-value, .portal-theme-dhost .stat-item .value, .portal-theme-dhost .summary-value { color: var(--portal-ink); font-weight: 750; letter-spacing: -.04em; }
.portal-theme-dhost .stat-card h4, .portal-theme-dhost .stat-card p, .portal-theme-dhost .stat-label, .portal-theme-dhost .stat-item .label, .portal-theme-dhost .summary-label, .portal-theme-dhost .info-label, .portal-theme-dhost .info-item label, .portal-theme-dhost .detail-label { color: var(--portal-muted); font-size: var(--portal-text-sm); }
.portal-theme-dhost .stat-icon, .portal-theme-dhost .service-icon, .portal-theme-dhost .overview-icon, .portal-theme-dhost .notification-icon { background: #eff6ff; color: var(--portal-blue); border-radius: 12px; box-shadow: none; }
.portal-theme-dhost .info-value, .portal-theme-dhost .info-item span, .portal-theme-dhost .detail-value, .portal-theme-dhost .order-info span, .portal-theme-dhost .service-info span { color: var(--portal-ink); overflow-wrap: anywhere; }
.portal-theme-dhost .info-item, .portal-theme-dhost .stat-item, .portal-theme-dhost .product-details, .portal-theme-dhost .price-breakdown, .portal-theme-dhost .priority-label, .portal-theme-dhost .tips-card { background: #f8faff; border-color: var(--portal-line); color: #526278; border-radius: 10px; }
.portal-theme-dhost .payment-card, .portal-theme-dhost .ticket-card, .portal-theme-dhost .reply-form-container, .portal-theme-dhost .profile-form-card, .portal-theme-dhost .profile-card, .portal-theme-dhost .info-card { background: #fff; border: 1px solid var(--portal-line); color: #344054; border-radius: 15px; box-shadow: var(--portal-shadow); }
.portal-theme-dhost .profile-card h3, .portal-theme-dhost .profile-form-card h3, .portal-theme-dhost .info-card h3, .portal-theme-dhost .ticket-card h2, .portal-theme-dhost .reply-form-container h3, .portal-theme-dhost .payment-card h2 { color: #111827; border-color: var(--portal-line); }
.portal-theme-dhost .product-details h3, .portal-theme-dhost .price-breakdown h3, .portal-theme-dhost .tips-card h4 { color: #344054; }
.portal-theme-dhost .domain-section, .portal-theme-dhost .domain-result, .portal-theme-dhost .tld-prices { background: #f8faff; border-color: var(--portal-line); color: #526278; border-radius: 12px; }
.portal-theme-dhost .overview-stats, .portal-theme-dhost .account-info, .portal-theme-dhost .info-grid { background: transparent; border-color: var(--portal-line); }
.portal-theme-dhost .overview-info p, .portal-theme-dhost .features-list, .portal-theme-dhost .product-description, .portal-theme-dhost .order-notes { color: #667085; }
.portal-theme-dhost .empty-state { padding: 55px 24px; border: 1px dashed #d8e1ee; border-radius: 15px; background: #fff; color: var(--portal-muted); }
.portal-theme-dhost .empty-state h3 { color: var(--portal-ink); margin: 12px 0 8px; }
.portal-theme-dhost .empty-state > i { color: #c3d4e9; }

/* Формите и постојните дејства ги задржуваат нивните имиња и обработувачи. */
.portal-theme-dhost .btn, .portal-theme-dhost .action-btn, .portal-theme-dhost .new-order-btn, .portal-theme-dhost .new-service-btn, .portal-theme-dhost .btn-upload-proof, .portal-theme-dhost .direct-login-btn, .portal-theme-dhost .print-btn, .portal-theme-dhost .btn-check-domain, .portal-theme-dhost button[type="submit"] { border-radius: 10px; min-height: 41px; padding: 10px 17px; font-size: var(--portal-text-sm); font-weight: 650; box-shadow: none; transition: background .15s, border-color .15s; }
.portal-theme-dhost .btn-primary, .portal-theme-dhost .new-order-btn, .portal-theme-dhost .new-service-btn, .portal-theme-dhost .btn-upload-proof, .portal-theme-dhost .btn-check-domain, .portal-theme-dhost .print-btn { background: var(--portal-blue); border: 1px solid var(--portal-blue); color: #fff; }
.portal-theme-dhost .btn-primary:hover { background: #125fcc; border-color: #125fcc; color: #fff; transform: none; }
.portal-theme-dhost .btn-outline, .portal-theme-dhost .btn-secondary, .portal-theme-dhost .action-btn { background: #fff; color: #344054; border: 1px solid #dfe5ef; }
.portal-theme-dhost .btn-outline:hover, .portal-theme-dhost .btn-secondary:hover, .portal-theme-dhost .action-btn:hover { background: #f8faff; color: var(--portal-blue); border-color: #bfd7fc; transform: none; }
.portal-theme-dhost .btn-danger { background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; }
.portal-theme-dhost .btn-danger:hover { background: #ffe4e6; color: #9f1239; }
.portal-theme-dhost .btn-success { background: #effaf3; border: 1px solid #c9ead6; color: #16804a; }
.portal-theme-dhost .btn-warning { background: #fffbeb; border: 1px solid #fde6a5; color: #996500; }
.portal-theme-dhost .direct-login-btn { background: #111827; border: 1px solid #111827; color: #fff; }
.portal-theme-dhost .btn-icon, .portal-theme-dhost .btn-action, .portal-theme-dhost .copy-btn { background: #f8faff; color: #6b7c94; border: 1px solid var(--portal-line); border-radius: 8px; }
.portal-theme-dhost .btn-icon:hover, .portal-theme-dhost .btn-action:hover, .portal-theme-dhost .copy-btn:hover { background: #eff6ff; color: var(--portal-blue); }
.portal-theme-dhost .quick-actions { gap: 10px; }
.portal-theme-dhost label, .portal-theme-dhost .form-group label, .portal-theme-dhost .form-label { color: #344054; font-size: var(--portal-text-label); font-weight: 650; }
.portal-theme-dhost input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .portal-theme-dhost select, .portal-theme-dhost textarea, .portal-theme-dhost .form-control, .portal-theme-dhost .form-select { background: #fff; border: 1px solid #dce3ed; border-radius: 9px; color: #111827; box-shadow: none; max-width: 100%; }
.portal-theme-dhost .form-control, .portal-theme-dhost .form-select { min-height: 43px; padding: 10px 13px; }
.portal-theme-dhost input::placeholder, .portal-theme-dhost textarea::placeholder { color: #9aa6b5; }
.portal-theme-dhost input:focus, .portal-theme-dhost textarea:focus, .portal-theme-dhost select:focus { border-color: #84b8ff; box-shadow: 0 0 0 3px #1570ef12; }
.portal-theme-dhost input[readonly], .portal-theme-dhost input:disabled { background: #f7f9fc; color: #78859b; }
.portal-theme-dhost input[type="checkbox"], .portal-theme-dhost input[type="radio"] { accent-color: var(--portal-blue); }
.portal-theme-dhost .form-help, .portal-theme-dhost .form-text, .portal-theme-dhost .help-text, .portal-theme-dhost .sftp-note, .portal-theme-dhost .password-requirements, .portal-theme-dhost .password-hint { color: var(--portal-muted); font-size: var(--portal-text-sm); }
.portal-theme-dhost .toggle-password { color: #8b98ab; }
.portal-theme-dhost .file-upload, .portal-theme-dhost .file-upload-area, .portal-theme-dhost .upload-area { background: #f8faff; border-color: #cddcf0; color: var(--portal-muted); border-radius: 12px; }
.portal-theme-dhost .file-preview, .portal-theme-dhost .file-info { background: #eff6ff; border-color: #dbeafe; color: #344054; }
.portal-theme-dhost .proof-uploaded { background: #effaf3; border: 1px solid #d5efdf; color: #16804a; border-radius: 12px; }
.portal-theme-dhost .proof-uploaded p { color: #5f7c6b; }
.portal-theme-dhost .preview-box { background: #f8faff; border-color: var(--portal-line); }
.portal-theme-dhost .category-card, .portal-theme-dhost .product-card, .portal-theme-dhost .price-option, .portal-theme-dhost .payment-method, .portal-theme-dhost .tld-price-card { background: #fff; color: var(--portal-ink); border: 1px solid var(--portal-line); border-radius: 13px; box-shadow: none; }
.portal-theme-dhost .category-card:hover, .portal-theme-dhost .product-card:hover { transform: none; border-color: #b6d3ff; }
.portal-theme-dhost .product-card.selected, .portal-theme-dhost .price-option.selected, .portal-theme-dhost .payment-method.selected { background: #eff6ff; border-color: var(--portal-blue); box-shadow: 0 0 0 1px var(--portal-blue); }
.portal-theme-dhost .category-card h3, .portal-theme-dhost .product-card h3, .portal-theme-dhost .price-option h4, .portal-theme-dhost .payment-method h4 { color: var(--portal-ink); }
.portal-theme-dhost .price, .portal-theme-dhost .product-price, .portal-theme-dhost .order-price, .portal-theme-dhost .service-price { color: var(--portal-ink); letter-spacing: -.035em; }
.portal-theme-dhost .order-summary, .portal-theme-dhost .total-box { background: #111827; color: #fff; border-color: #111827; border-radius: 14px; }
.portal-theme-dhost .order-summary h2, .portal-theme-dhost .order-summary h3, .portal-theme-dhost .order-summary .summary-row, .portal-theme-dhost .total-box * { color: #fff; }

/* Фактури, банкарски инструкции, крипто-плаќања и прегледни табели. */
.portal-theme-dhost .portal-table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; }
.portal-theme-dhost table { width: 100%; color: #344054; border-collapse: collapse; background: #fff; font-size: var(--portal-text-sm); }
.portal-theme-dhost table th { background: #f8faff; color: #8893a6; font-size: var(--portal-text-xs); font-weight: 700; letter-spacing: .055em; text-transform: uppercase; padding: 14px 17px; border-bottom: 1px solid var(--portal-line); white-space: nowrap; }
.portal-theme-dhost table td { color: #344054; padding: 16px 17px; border-bottom: 1px solid #eef1f6; background: transparent; vertical-align: middle; }
.portal-theme-dhost table tr:last-child td { border-bottom: 0; }
.portal-theme-dhost table tbody tr:hover { background: #fbfcff; }
.portal-theme-dhost .portal-table-scroll table { margin: 0; min-width: 570px; }
.portal-theme-dhost .invoice-header { background: transparent; border-color: var(--portal-line); }
.portal-theme-dhost .invoice-title h1, .portal-theme-dhost .invoice-number { color: var(--portal-ink); }
.portal-theme-dhost .invoice-meta, .portal-theme-dhost .invoice-info, .portal-theme-dhost .invoice-parties, .portal-theme-dhost .company-info, .portal-theme-dhost .client-info { color: var(--portal-muted); border-color: var(--portal-line); }
.portal-theme-dhost .invoice-summary, .portal-theme-dhost .payment-info, .portal-theme-dhost .bank-details, .portal-theme-dhost .payment-instructions, .portal-theme-dhost .instructions, .portal-theme-dhost .sftp-section, .portal-theme-dhost .renewal-notice, .portal-theme-dhost .info-box, .portal-theme-dhost .tips-box, .portal-theme-dhost .security-info { background: #f8faff; border: 1px solid var(--portal-line); color: #526278; border-radius: 12px; }
.portal-theme-dhost .summary-row, .portal-theme-dhost .bank-row, .portal-theme-dhost .info-row, .portal-theme-dhost .sftp-row, .portal-theme-dhost .invoice-total-row { border-color: var(--portal-line); color: #344054; }
.portal-theme-dhost .summary-row .label, .portal-theme-dhost .bank-row .label, .portal-theme-dhost .bank-label { color: var(--portal-muted); }
.portal-theme-dhost .bank-row { background: #fff; border: 1px solid #e9edf5; border-radius: 9px; }
.portal-theme-dhost .bank-row .value, .portal-theme-dhost .bank-value, .portal-theme-dhost .summary-row .value { color: #111827; font-weight: 600; overflow-wrap: anywhere; }
.portal-theme-dhost .summary-row:last-child, .portal-theme-dhost .total-row, .portal-theme-dhost .invoice-total, .portal-theme-dhost .total-amount { color: #111827; font-weight: 750; }
.portal-theme-dhost .crypto-info, .portal-theme-dhost .crypto-payment, .portal-theme-dhost .crypto-instructions { background: #f8faff; border: 1px solid var(--portal-line); color: #526278; border-radius: 12px; }
.portal-theme-dhost .pp10-container, .portal-theme-dhost .pp10-form, .portal-theme-dhost .pp10-slip { color: #111827; background: #fff; border-color: #bbc5d4; }
.portal-theme-dhost .pp10-field, .portal-theme-dhost .pp10-section, .portal-theme-dhost .pp10-amount { color: #111827; border-color: #bdc7d5; }
.portal-theme-dhost .pp10-title, .portal-theme-dhost .pp10-label { color: #667085; }
.portal-theme-dhost .status, .portal-theme-dhost .invoice-status, .portal-theme-dhost .ticket-status, .portal-theme-dhost .order-status, .portal-theme-dhost .service-status, .portal-theme-dhost .priority { font-size: var(--portal-text-xs); font-weight: 650; padding: 5px 10px; border-radius: 7px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.portal-theme-dhost :is(.status-active, .status-paid, .invoice-status-paid, .service-status-active, .status-closed, .status-resolved) { background: #effaf3; color: #16804a; border: 1px solid #d5efdf; }
.portal-theme-dhost :is(.status-pending, .status-sent, .status-processing, .status-draft, .status-open, .invoice-status-sent, .invoice-status-draft, .invoice-status-processing) { background: #fff9eb; color: #8a5800; border: 1px solid #fae8be; }
.portal-theme-dhost :is(.status-overdue, .status-suspended, .status-failed, .invoice-status-overdue, .priority-high, .priority-urgent) { background: #fff1f2; color: #c4323c; border: 1px solid #ffe0e4; }
.portal-theme-dhost :is(.status-cancelled, .status-canceled, .invoice-status-cancelled, .priority-low) { background: #f3f5f9; color: var(--portal-muted); border: 1px solid #e7ebf2; }
.portal-theme-dhost :is(.status-answered, .status-accepted, .status-in_progress, .priority-medium) { background: #eff6ff; color: #145fca; border: 1px solid #dbeafe; }
.portal-theme-dhost .alert { border-radius: 11px; padding: 15px 18px; font-size: var(--portal-text-sm); }
.portal-theme-dhost .alert-success { background: #effaf3; border: 1px solid #ceeddc; color: #167343; }
.portal-theme-dhost .alert-danger, .portal-theme-dhost .alert-error { background: #fff1f2; border: 1px solid #ffd6dd; color: #b42336; }
.portal-theme-dhost .alert-warning { background: #fff9eb; border: 1px solid #f7e6b7; color: #9c6a0b; }
.portal-theme-dhost .alert-info { background: #eff6ff; border: 1px solid #d5e6ff; color: #2468c3; }

/* Поддршка, разговори, известувања и управувачки дијалози. */
.portal-theme-dhost .ticket-header, .portal-theme-dhost .ticket-meta, .portal-theme-dhost .ticket-details { background: #fff; color: #526278; border-color: var(--portal-line); border-radius: 12px; }
.portal-theme-dhost .conversation, .portal-theme-dhost .conversation-container, .portal-theme-dhost .messages-container { background: #f8faff; border-color: var(--portal-line); border-radius: 13px; }
.portal-theme-dhost .conversation-header, .portal-theme-dhost .reply-form-header { background: #fff; border-color: var(--portal-line); color: #344054; }
.portal-theme-dhost .conversation-header h3, .portal-theme-dhost .reply-form-header h3 { color: #344054; }
.portal-theme-dhost .conversation-message { background: #fff; border-color: var(--portal-line); color: #344054; }
.portal-theme-dhost .conversation-message.original-message { background: #fffcf4; border-color: #f7e6b7; }
.portal-theme-dhost .message, .portal-theme-dhost .message-body, .portal-theme-dhost .message-content, .portal-theme-dhost .reply-content { background: #fff; color: #344054; border-color: var(--portal-line); border-radius: 12px; }
.portal-theme-dhost .message-header, .portal-theme-dhost .reply-header, .portal-theme-dhost .message-time, .portal-theme-dhost .message-date { color: var(--portal-muted); border-color: var(--portal-line); background: transparent; }
.portal-theme-dhost .author-name { color: #344054; }
.portal-theme-dhost .author-role, .portal-theme-dhost .message-timestamp { color: #667085; }
.portal-theme-dhost .message.admin .message-body, .portal-theme-dhost .message-staff, .portal-theme-dhost .admin-reply { background: #eff6ff; border-color: #dbeafe; color: #344054; }
.portal-theme-dhost .attachment, .portal-theme-dhost .attachment-link, .portal-theme-dhost .message-attachment-box { background: #f8faff; color: #145fca; border-color: #e6eaf2; border-radius: 9px; }
.portal-theme-dhost .notification-card.unread, .portal-theme-dhost .announcement-card.unread { border-left: 3px solid #1570ef; background: #fff; }
.portal-theme-dhost .notification-message, .portal-theme-dhost .announcement-content, .portal-theme-dhost .announcement-description { color: #617086; line-height: 1.7; }
.portal-theme-dhost .notification-time, .portal-theme-dhost .announcement-date, .portal-theme-dhost .notification-meta { color: var(--portal-muted); }
.portal-theme-dhost .announcement-item, .portal-theme-dhost .activity-item { border-color: var(--portal-line); background: #fff; color: #526278; border-radius: 9px; }
.portal-theme-dhost .announcement-item.unread { background: #f4f8ff; }
.portal-theme-dhost .announcement-title, .portal-theme-dhost .notification-title { color: #111827; }
.portal-theme-dhost .mark-all-read { background: #fff; border: 1px solid var(--portal-line); color: #526278; border-radius: 9px; }
.portal-theme-dhost .modal-content, .portal-theme-dhost .modal-container { background: #fff !important; color: #344054 !important; border: 1px solid var(--portal-line) !important; border-radius: 16px; box-shadow: 0 25px 80px #11182730; }
.portal-theme-dhost .modal .modal-content { background: #fff !important; }
.portal-theme-dhost .modal { z-index: 1300 !important; }
.portal-theme-dhost .modal-header, .portal-theme-dhost .modal-footer { border-color: var(--portal-line); background: transparent; }
.portal-theme-dhost .modal-header h3, .portal-theme-dhost .modal-header h2 { color: #111827 !important; }
.portal-theme-dhost .modal-close, .portal-theme-dhost .close { color: var(--portal-muted) !important; }
.portal-theme-dhost .tabs { border-color: var(--portal-line); gap: 6px; overflow-x: auto; padding-bottom: 5px; }
.portal-theme-dhost .tab, .portal-theme-dhost .tab-btn { color: var(--portal-muted); background: #fff; border-color: var(--portal-line); border-radius: 8px; white-space: nowrap; }
.portal-theme-dhost .tab.active, .portal-theme-dhost .tab-btn.active { color: #145fca; background: #eff6ff; border-color: #dbeafe; }
.portal-theme-dhost .quick-link { color: #526278; background: #fff; border: 1px solid var(--portal-line); border-radius: 11px; }
.portal-theme-dhost .progress-bar, .portal-theme-dhost .usage-bar { background: #e9eff8; border-radius: 10px; }
.portal-theme-dhost .progress-fill, .portal-theme-dhost .usage-fill { background: #145fca; }
.portal-theme-dhost .cpanel-panel { width: 100%; max-width: 1500px; padding: 32px clamp(20px, 3vw, 48px); }
.portal-theme-dhost .panel-header { border-color: var(--portal-line); }
.portal-theme-dhost .panel-header h1, .portal-theme-dhost .stat-card .value { color: #111827; }
.portal-theme-dhost .tab-content { background: #fff; border: 1px solid var(--portal-line); border-radius: 13px; }
.portal-theme-dhost .requirements { background: #f8faff; border: 1px solid var(--portal-line); border-radius: 10px; }
.portal-theme-dhost .requirements h4 { color: var(--portal-muted); }
.portal-theme-dhost .requirements .invalid { color: var(--portal-muted); }
.portal-theme-dhost .requirements .valid { color: #16804a; }
.portal-theme-dhost.portal-page-discord-connect { display: block; }
.portal-theme-dhost.portal-page-discord-connect > .card { margin: 55px auto; width: min(640px, calc(100% - 40px)); }
.portal-theme-dhost.portal-page-discord-connect .muted, .portal-theme-dhost.portal-page-discord-connect .msg { color: var(--portal-muted); }
.portal-theme-dhost.portal-page-discord-connect .status.error { background: #fff1f2; border-color: #ffd6dd; color: #b42336; }
.portal-theme-dhost.portal-page-discord-connect .status.success { background: #effaf3; border-color: #d5efdf; color: #16804a; }
.portal-theme-dhost .resource-item, .portal-theme-dhost .sftp-row { color: #526278; background: transparent; border-color: var(--portal-line); }
.portal-theme-dhost .sftp-row span, .portal-theme-dhost .sftp-row input { color: #111827; }
.portal-theme-dhost .sftp-row button { color: var(--portal-muted); background: #fff; border-color: var(--portal-line); }

/* Постојните вградени темни стилови се усогласуваат само во новиот изглед. */
.portal-theme-dhost :is([style*="background: #1e1e1e"], [style*="background-color: #1e1e1e"], [style*="background:#1e1e1e"], [style*="background: #222"], [style*="background: #252525"], [style*="background: #2d2d2d"], [style*="background-color: #2d2d2d"], [style*="background: #1a1a1a"], [style*="background: #333"]) { background: #f8faff !important; border-color: #e6eaf2 !important; }
.portal-theme-dhost :is([style*="color: #fff"], [style*="color: white"], [style*="color:#fff"], [style*="color: #ffffff"]) { color: #344054 !important; }
.portal-theme-dhost :is(a, button)[style*="color: #fff"], .portal-theme-dhost :is(a, button)[style*="color: white"] { color: #fff !important; }
.portal-theme-dhost :is([style*="color: #888"], [style*="color: #999"], [style*="color: #aaa"], [style*="color: #b0b0b0"], [style*="color: #ccc"]) { color: var(--portal-muted) !important; }
.portal-theme-dhost :is([style*="color: #e0e0e0"], [style*="color: #e6edf3"]) { color: #526278 !important; }
.portal-theme-dhost [style*="color: #4a6fa5"] { color: #145fca !important; }
.portal-theme-dhost [style*="background: #4a6fa5"] { background: #145fca !important; }
.portal-theme-dhost [style*="border: 1px solid #333"] { border-color: #e6eaf2 !important; }
.portal-theme-dhost [style*="border-bottom: 1px solid #333"] { border-bottom-color: #e6eaf2 !important; }

/* Јавни страници и пристап до сметка. */
.portal-theme-dhost .portal-public-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1200px, 100%); padding: 5px 28px; margin: 0 auto; }
.portal-public-header .portal-brand { padding-left: 0; }
.portal-public-header nav { display: flex; align-items: center; gap: 20px; font-size: var(--portal-text-sm); }
.portal-public-header nav > a { color: #667085; }
.portal-public .navbar { background: #fff; border-bottom: 1px solid var(--portal-line); box-shadow: none; }
.portal-public { display: block !important; }
.portal-public > .language-switcher { display: none; }
.portal-public-header .language-switcher { position: static; top: auto; right: auto; }
.portal-public .navbar .logo a, .portal-public .nav-menu a:not(.btn-primary) { color: #344054; }
.portal-public .auth-container, .portal-public .register-container, .portal-public .forgot-container, .portal-public .verification-container, .portal-public .pending-container { min-height: calc(100vh - 110px); background: transparent; padding: 35px 20px; }
.portal-public .auth-card, .portal-public .register-card { box-shadow: 0 14px 40px #1a365d07; }
.portal-public .auth-box, .portal-public .login-card, .portal-public .pending-container, .portal-public .verification-container { background: #fff; border: 1px solid var(--portal-line); border-radius: 16px; box-shadow: 0 14px 40px #1a365d07; color: #111827; }
.portal-public .pending-container, .portal-public .verification-container { min-height: 0; margin: 45px auto; padding: 35px; }
.portal-public .pending-container, .portal-public .verification-container { width: min(520px, calc(100% - 32px)); }
.portal-public .login-container { background: transparent; min-height: calc(100vh - 90px); }
.portal-public .login-container { margin: 20px auto; max-width: 460px; min-width: 0; }
.portal-public .login-card { width: 100%; max-width: 100%; }
.portal-public .login-header h1 { color: #111827; }
.portal-public .login-header p, .portal-public .pending-message, .portal-public .check-spam, .portal-public .verification-message { color: #7d899b; }
.portal-public .email-display { background: #eff6ff; color: #145fca; border-color: #dbeafe; }
.portal-public .auth-header, .portal-public .register-header { border-color: var(--portal-line); background: transparent; }
.portal-public .auth-header p, .portal-public .auth-footer, .portal-public .register-footer, .portal-public .auth-links, .portal-public .verification-text, .portal-public .pending-text { color: var(--portal-muted); }
.portal-public .hero { background: linear-gradient(135deg, #eff6ff, #f8faff 65%, #fff); color: #111827; border-bottom: 1px solid var(--portal-line); }
.portal-public .hero h1 { color: #111827; }
.portal-public .hero p, .portal-public .section-subtitle, .portal-public .category-description { color: var(--portal-muted); }
.portal-public .features-section, .portal-public .faq-section, .portal-public .categories-section, .portal-public .services-section { background: transparent; }
.portal-public .feature-card, .portal-public .faq-item, .portal-public .category-item { background: #fff; color: #526278; border: 1px solid var(--portal-line); border-radius: 13px; box-shadow: var(--portal-shadow); }
.portal-public .feature-card h3, .portal-public .faq-item h3 { color: #111827; }
.portal-public .footer { background: #fff; border-top: 1px solid var(--portal-line); color: var(--portal-muted); }
.portal-public .footer h3 { color: #344054; }
.portal-public .footer a { color: var(--portal-muted); }
.portal-public .footer-bottom { border-color: var(--portal-line); }
.portal-theme-dhost .cookie-consent-banner, .portal-theme-dhost .cookie-banner { background: #fff; color: #526278; border: 1px solid var(--portal-line); box-shadow: 0 -5px 30px #1118270a; }
.portal-theme-dhost .cookie-consent-text h3, .portal-theme-dhost .cookie-consent-text p { color: #526278; }
.portal-theme-dhost .cookie-btn { border-radius: 8px; }
.portal-theme-dhost .cookie-btn-accept { background: #145fca; color: #fff; }
.portal-theme-dhost .cookie-btn-decline { background: #f8faff; color: #526278; border-color: #e6eaf2; }

@media (max-width: 1200px) {
    .portal-theme-dhost .service-grid, .portal-theme-dhost .profile-grid { grid-template-columns: minmax(0, 1fr); }
    .portal-theme-dhost .service-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
    .portal-theme-dhost .service-sidebar .card { margin-bottom: 0; }
}
@media (max-width: 980px) {
    .portal-theme-dhost .dashboard-widgets { grid-template-columns: minmax(0, 1fr); }
    .portal-account { padding-left: 0; }
    .portal-theme-dhost .portal-topbar { left: 0; padding: 0 22px; height: 70px; }
    .portal-account { padding-top: 70px; }
    .portal-theme-dhost .portal-sidebar { transform: translateX(-100%); width: 264px; transition: transform .18s ease; }
    .portal-theme-dhost .portal-sidebar { visibility: hidden; }
    .portal-menu-open { overflow: hidden; }
    .portal-menu-open .portal-sidebar { transform: translateX(0); visibility: visible; }
    .portal-theme-dhost .portal-menu-button { display: grid; place-items: center; border: 1px solid var(--portal-line); background: #fff; border-radius: 9px; color: var(--portal-muted); width: 36px; height: 36px; flex-shrink: 0; }
    .portal-menu-open .portal-backdrop { display: block; position: fixed; inset: 0; background: #11182766; border: 0; z-index: 1080; width: 100%; height: 100%; }
    .portal-skip { left: 20px; }
    .portal-account .main-content, .portal-account > .container { padding-top: 27px; }
}
@media (max-width: 640px) {
    .portal-public .login-container { padding: 15px; }
    .portal-public .login-card, .portal-public .auth-box { padding: 25px; }
    .portal-theme-dhost .widget-actions .widget-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-theme-dhost .widget .portal-table-scroll table { min-width: 440px; }
    .portal-theme-dhost .cpanel-panel { padding: 23px 15px; }
    .portal-theme-dhost .widget-header, .portal-theme-dhost .widget-announcements .widget-header, .portal-theme-dhost .widget-content { padding: 18px; }
    .portal-theme-dhost .widget-stats .widget-content { gap: 10px; }
    .portal-theme-dhost .stat-info h4 { font-size: var(--portal-text-xs); }
    .portal-theme-dhost .stat-info .stat-number { font-size: 25px; }
    .portal-theme-dhost .portal-topbar { height: 64px; padding: 0 15px; gap: 10px; }
    .portal-account { padding-top: 64px; }
    .portal-breadcrumb > span, .portal-breadcrumb > i, .portal-new-order span { display: none; }
    .portal-breadcrumb > strong { font-size: var(--portal-text-xs); max-width: 145px; }
    .portal-topbar-actions { gap: 9px; }
    .portal-theme-dhost .portal-new-order { padding: 8px 9px; }
    .portal-theme-dhost .portal-icon-link { display: none; }
    .portal-account .main-content, .portal-account > .container { padding: 23px 15px 30px; }
    .portal-theme-dhost .card, .portal-theme-dhost .service-card, .portal-theme-dhost .order-card, .portal-theme-dhost .notification-card, .portal-theme-dhost .ticket-form, .portal-theme-dhost .invoice-container, .portal-theme-dhost .reply-form { padding: 19px; border-radius: 12px; }
    .portal-theme-dhost .page-header, .portal-account > .container > .header { margin-bottom: 20px; padding-bottom: 20px; }
    .portal-theme-dhost .page-header h1, .portal-theme-dhost .header h1 { font-size: 1.625rem; }
    .portal-theme-dhost .stats-grid, .portal-theme-dhost .stats-row, .portal-theme-dhost .summary-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .portal-theme-dhost .service-sidebar, .portal-theme-dhost .overview-stats, .portal-theme-dhost .form-row, .portal-theme-dhost .info-grid, .portal-theme-dhost .price-options, .portal-theme-dhost .payment-methods { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .portal-theme-dhost .overview-stats { display: grid; }
    .portal-theme-dhost .stat-item { border-right: 0; }
    .portal-theme-dhost .invoice-header, .portal-theme-dhost .invoice-parties, .portal-theme-dhost .company-details, .portal-theme-dhost .client-details { display: block; }
    .portal-theme-dhost .invoice-header > *, .portal-theme-dhost .invoice-parties > * { margin-bottom: 18px; }
    .portal-theme-dhost .invoice-info { text-align: left; }
    .portal-theme-dhost .actions-bar { flex-wrap: wrap; }
    .portal-theme-dhost .bank-row { flex-wrap: wrap; gap: 7px; }
    .portal-theme-dhost .bank-row .label { min-width: 100%; }
    .portal-theme-dhost .modal-content { width: calc(100% - 28px) !important; max-height: 85vh; overflow-y: auto; }
    .portal-theme-dhost .portal-public-header { padding: 0 17px; gap: 10px; }
    .portal-public-header .portal-brand { font-size: var(--portal-text-base); gap: 8px; padding-right: 0; }
    .portal-public-header .portal-brand-mark { width: 30px; flex-basis: 30px; height: 30px; }
    .portal-public-header nav { gap: 10px; font-size: var(--portal-text-xs); }
    .portal-theme-dhost .pp10-container, .portal-theme-dhost .pp10-form { overflow-x: auto; }
    .portal-theme-dhost .pp10-slip { min-width: 560px; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-theme-dhost *, .portal-theme-dhost *::before, .portal-theme-dhost *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .portal-theme-dhost { padding: 0 !important; background: #fff !important; color: #000 !important; }
    .portal-sidebar, .portal-topbar, .portal-public-header, .portal-preview-banner, .portal-backdrop, .portal-skip, .cookie-consent-banner { display: none !important; }
    .portal-account > .container, .portal-account .main-content { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important; }
    .portal-theme-dhost .portal-table-scroll { overflow: visible !important; border: 0; }
    .portal-theme-dhost .portal-table-scroll table { min-width: 0; }
    .portal-theme-dhost .invoice-container, .portal-theme-dhost .invoice-card { box-shadow: none; border: 0; }
    .portal-theme-dhost .pp10-slip { min-width: 0; }
}

/* Точниот распоред и размери од визуелната референца. */
.portal-theme-dhost :where(div,span,p,a,button,input,select,textarea,h1,h2,h3,h4,h5,strong,small,label,th,td,li,summary,dt,dd) { font-family: 'Portal Inter', Inter, system-ui, sans-serif; }
.portal-theme-dhost [hidden] { display: none !important; }
.portal-theme-dhost h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.5; }
.portal-theme-dhost h2 { font-size: var(--portal-text-base); }
.portal-theme-dhost h3 { font-size: var(--portal-text-base); }
.portal-account { padding: 72px 0 0 288px; background: radial-gradient(ellipse 380px 340px at 30% 35%, #dcecffaa, transparent 100%), radial-gradient(ellipse 400px 350px at 86% 25%, #deecffb0, transparent 100%), #f5f8ff !important; background-attachment: fixed !important; }
.portal-account .main-content, .portal-account > .container { max-width: 1440px; padding: 32px 32px 48px; margin: 0 auto; }
.portal-line-icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.portal-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.portal-theme-dhost .portal-sidebar { width: 288px; }
.portal-theme-dhost .portal-brand { height: 72px; min-height: 72px; border-bottom: 1px solid #f1f5f9; padding: 16px 28px; gap: 12px; font-size: var(--portal-heading-sm); font-weight: 750; line-height: 1; text-transform: uppercase; letter-spacing: -.025em; }
.portal-brand-mark { border: 1px solid #0053dc; box-shadow: 0 4px 12px #1570ef40, inset 0 0 0 1px #ffffff20; border-radius: 10px; background: linear-gradient(145deg,#197aff,#0864e8); }
.portal-brand-mark .portal-line-icon { width: 23px; height: 23px; }
.portal-brand small { font-size: var(--portal-text-xs); font-weight: 500; letter-spacing: .18em; color: #111827; margin-top: 3px; }
.portal-theme-dhost .portal-public-header .portal-brand { padding: 0; border: 0; height: auto; min-height: 72px; min-width: 0; }
.portal-nav { padding: 24px 16px 24px; }
.portal-nav-heading { margin: 0 12px 12px; color: var(--portal-muted); font-size: var(--portal-text-xs); letter-spacing: .1em; font-weight: 700; }
.portal-theme-dhost .portal-nav > a { padding: 9px 12px; min-height: 40px; gap: 12px; margin: 4px 0; color: #111827; font-size: var(--portal-text-label); font-weight: 500; border: 1px solid transparent; }
.portal-nav > a > .portal-line-icon { width: 18px; height: 18px; color: var(--portal-muted); }
.portal-theme-dhost .portal-nav > a.is-active { border-color: #dbeafe; background: #eff6ff; font-weight: 600; }
.portal-nav > a.is-active > .portal-line-icon { color: #145fca; }
.portal-count { border: 1px solid #e6eaf2; background: #f8faff; color: #475569; border-radius: 50%; min-width: 20px; height: 20px; font-size: var(--portal-text-xs); }
.is-active .portal-count { background: #145fca; color: #fff; border-color: #145fca; }
.portal-theme-dhost .portal-nav > .portal-help { padding: 16px; gap: 12px; margin: 32px 4px 0; align-items: flex-start; background: #f8faff; border: 1px solid #e6eaf2; border-radius: 16px; }
.portal-help strong { font-size: var(--portal-text-sm); }
.portal-help small { font-size: var(--portal-text-sm); line-height: 1.5; margin: 5px 0 10px; }
.portal-help-link { color: #145fca; font-size: var(--portal-text-xs); font-weight: 600; }
.portal-sidebar-bottom { padding: 0; border-top: 1px solid #f1f5f9; }
.portal-account-row { border: 0; margin: 0; padding: 24px; gap: 12px; min-height: 84px; }
.portal-account-row strong { font-size: var(--portal-text-sm); }
.portal-account-row small { font-size: var(--portal-text-xs); max-width: 175px; }
.portal-avatar { background: #0868ec; border: 1px solid #0054cc; color: #fff; height: 36px; width: 36px; }
.portal-theme-dhost .portal-topbar { height: 72px; left: 288px; padding: 0 32px; gap: 24px; background: #ffffffdd; backdrop-filter: blur(16px); }
.portal-search { width: 560px; max-width: 60%; position: relative; min-width: 0; }
.portal-search > .portal-line-icon { position: absolute; left: 13px; top: 12px; width: 16px; height: 16px; color: var(--portal-muted); pointer-events: none; }
.portal-theme-dhost .portal-search input { width: 100%; height: 40px; min-height: 40px; padding: 0 14px 0 39px; border-radius: 12px; font-size: var(--portal-text-sm); background: #f8faff; border-color: #e6eaf2; }
.portal-search-results { position: absolute; top: 48px; left: 0; width: 100%; max-height: 380px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid #e6eaf2; border-radius: 12px; box-shadow: 0 12px 32px #11182720; }
.portal-theme-dhost .portal-search-results a { display: block; padding: 10px 12px; border-radius: 8px; color: #111827; }
.portal-search-results a:hover, .portal-search-results a:focus { background: #eff6ff; }
.portal-search-results strong, .portal-search-results small { display: block; }
.portal-search-results strong { font-size: var(--portal-text-sm); }
.portal-search-results small, .portal-search-results p { font-size: var(--portal-text-xs); color: #667085; }
.portal-topbar-actions { gap: 12px; }
.portal-theme-dhost .portal-icon-link { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #e6eaf2; border-radius: 12px; background: #fff; position: relative; color: #111827; }
.portal-notification-count { position: absolute; right: -4px; top: -5px; border: 2px solid #fff; background: #ef4444; color: #fff; min-width: 18px; height: 18px; padding: 0 3px; line-height: 14px; font-size: var(--portal-text-xs); border-radius: 50%; }
.portal-theme-dhost .portal-topbar-account { display: flex; align-items: center; gap: 12px; border-left: 1px solid #e6eaf2; padding-left: 12px; color: #111827; white-space: nowrap; }
.portal-topbar-account strong, .portal-topbar-account small { display: block; }
.portal-topbar-account strong { font-size: var(--portal-text-sm); font-weight: 600; }
.portal-topbar-account small { color: #667085; font-size: var(--portal-text-xs); }
.portal-skip { left: 304px; }
.portal-copy-notice { top: 84px; }
.portal-theme-dhost .page-header, .portal-account > .container > .header, .portal-theme-dhost .main-header { border-bottom: 0; padding-bottom: 0; margin-bottom: 24px; }
.portal-theme-dhost .card, .portal-theme-dhost .invoice-container, .portal-theme-dhost .ticket-form, .portal-theme-dhost .reply-form, .portal-theme-dhost .order-card, .portal-theme-dhost .service-card, .portal-theme-dhost .widget { border-radius: 16px; box-shadow: 0 4px 24px #11182705; }
.portal-theme-dhost .status-badge, .portal-theme-dhost .service-status, .portal-theme-dhost .order-status { border-radius: 999px; font-size: var(--portal-text-xs); font-weight: 500; padding: 4px 9px; line-height: 1.4; white-space: nowrap; }
.portal-theme-dhost .status-active, .portal-theme-dhost .status-paid, .portal-theme-dhost .status-closed { color: #067647; background: #f0fdf4; border: 1px solid #dcfce7; }
.portal-theme-dhost .status-sent, .portal-theme-dhost .status-open, .portal-theme-dhost .status-answered { color: #145fca; background: #eff6ff; border: 1px solid #dbeafe; }
.portal-theme-dhost .status-pending, .portal-theme-dhost .status-processing { color: #b54708; background: #fff7ed; border: 1px solid #ffedd5; }
.portal-theme-dhost .status-cancelled, .portal-theme-dhost .status-overdue, .portal-theme-dhost .status-failed { color: #b42318; background: #fef2f2; border: 1px solid #fecaca; }
.portal-outline-tile { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; color: #145fca; background: #f8faff; border: 1px solid #e6eaf2; border-radius: 9px; }
.portal-outline-tile .portal-line-icon { width: 19px; height: 19px; }
.portal-theme-dhost .portal-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 7px 12px; min-height: 32px; border: 1px solid #e6eaf2; border-radius: 9px; color: #111827; background: #f8faff; font-size: var(--portal-text-label); font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; }
.portal-theme-dhost .portal-button:hover { background: #eff6ff; border-color: #bfdbfe; }
.portal-theme-dhost .portal-button.is-blue { color: #fff; background: #145fca; border-color: #0058dd; box-shadow: 0 3px 8px #1570ef33; }
.portal-theme-dhost .portal-button.is-dark { color: #fff; background: #111827; border-color: #111827; }
.portal-theme-dhost .portal-button.is-icon { width: 32px; padding: 6px; background: #fff; color: #75839a; font-size: var(--portal-text-sm); }
.portal-button .portal-line-icon { width: 16px; height: 16px; }
.portal-panel { border: 1px solid #e6eaf2; border-radius: 16px; background: #fff; box-shadow: 0 4px 24px #11182705; overflow: hidden; min-width: 0; }
.portal-panel-heading { min-height: 56px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #f1f5f9; }
.portal-panel-heading h2 { font-size: var(--portal-text-base); font-weight: 700; margin: 0; display: flex; align-items: center; gap: 12px; }
.portal-panel-heading > a, .portal-panel-heading > span { font-size: var(--portal-text-sm); }
.portal-panel-heading > span { color: #667085; }
.portal-neutral-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 10px; border: 1px solid #e6eaf2; border-radius: 999px; background: #f8faff; color: #526278; font-size: var(--portal-text-xs); font-weight: 500; }
.portal-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; min-height: 42px; margin-bottom: 24px; color: #667085; font-size: var(--portal-text-sm); }
.portal-toolbar > .portal-button { min-height: 40px; padding: 10px 18px; }
.portal-segments, .portal-page-tabs { display: inline-flex; align-items: center; padding: 4px; gap: 4px; border: 1px solid #e6eaf2; border-radius: 12px; background: #fff; width: fit-content; max-width: 100%; overflow-x: auto; box-shadow: 0 3px 10px #11182704; }
.portal-segments button, .portal-theme-dhost .portal-page-tabs a { flex-shrink: 0; border: 1px solid transparent; padding: 8px 14px; border-radius: 9px; background: #fff; color: #475569; font-size: var(--portal-text-sm); font-weight: 500; line-height: 1.4; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.portal-segments button[aria-pressed="true"], .portal-theme-dhost .portal-page-tabs a[aria-current="page"] { background: #111827; border-color: #030712; color: #fff; font-weight: 600; }
.portal-page-tabs .portal-line-icon { width: 16px; height: 16px; }
.portal-compact-stats, .portal-invoice-stats, .portal-dashboard-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-bottom: 24px; }
.portal-compact-stat { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e6eaf2; border-radius: 16px; padding: 16px; min-width: 0; }
.portal-compact-stat .portal-outline-tile { width: 40px; height: 40px; flex-basis: 40px; background: var(--tone-soft,#eff6ff); color: var(--tone,#1570ef); border-color: var(--tone-line,#dbeafe); }
.portal-compact-stat small, .portal-compact-stat strong { display: block; }
.portal-compact-stat small { color: #667085; font-size: var(--portal-text-sm); margin-bottom: 3px; }
.portal-compact-stat strong { color: #111827; font-size: var(--portal-heading-sm); line-height: 1.35; font-weight: 650; }
.portal-tone-blue { --tone: #0066ff; --tone-soft: #eff6ff; --tone-line: #dbeafe; }
.portal-tone-green { --tone: #067647; --tone-soft: #f0fdf4; --tone-line: #dcfce7; }
.portal-tone-orange { --tone: #b54708; --tone-soft: #fff7ed; --tone-line: #ffedd5; }
.portal-tone-red { --tone: #b42318; --tone-soft: #fff2f3; --tone-line: #fecaca; }
.portal-theme-dhost .portal-metric { position: relative; display: block; padding: 24px; min-height: 154px; background: #fff; border: 1px solid #e6eaf2; border-radius: 16px; box-shadow: 0 6px 20px #11182705; color: #111827; }
.portal-metric-label { display: block; color: var(--portal-muted); font-size: var(--portal-text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; padding-right: 50px; }
.portal-metric-icon { position: absolute; right: 24px; top: 24px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; color: var(--tone); background: var(--tone-soft); border: 1px solid var(--tone-line); }
.portal-metric-icon .portal-line-icon { width: 24px; height: 24px; }
.portal-metric > strong { display: block; font-size: 2.25rem; line-height: 1.2; letter-spacing: -.035em; margin: 12px 0 14px; font-weight: 650; padding-right: 40px; }
.portal-metric-badge { width: fit-content; padding: 4px 10px; background: var(--tone-soft); color: var(--tone); border-radius: 999px; font-size: var(--portal-text-xs); display: flex; align-items: center; gap: 6px; }
.portal-metric-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.portal-metric-note { font-size: var(--portal-text-xs); color: var(--tone); }
.portal-invoice-stats .portal-metric { overflow: hidden; min-height: 140px; }
.portal-invoice-stats .portal-metric::before { content: ''; position: absolute; width: 95px; height: 95px; top: 0; right: 0; border-bottom-left-radius: 32px; background: var(--tone-soft); }
.portal-invoice-stats .portal-metric-icon { width: 44px; height: 44px; }
.portal-invoice-stats .portal-metric > strong { font-size: 1.5rem; padding-right: 25px; }
.portal-panel > .portal-table-scroll { border: 0; border-radius: 0; margin: 0; }
.portal-theme-dhost .portal-data-table { margin: 0; width: 100%; border-collapse: collapse; background: #fff; border: 0; border-radius: 0; }
.portal-theme-dhost .portal-data-table th { padding: 13px 24px; background: #f8faff; color: var(--portal-muted); font-size: var(--portal-text-xs); text-transform: uppercase; font-weight: 700; letter-spacing: .08em; border-bottom: 1px solid #f1f5f9; text-align: left; }
.portal-theme-dhost .portal-data-table td { padding: 18px 24px; border-bottom: 1px solid #f8faff; color: #475569; font-size: var(--portal-text-label); vertical-align: middle; }
.portal-theme-dhost .portal-data-table tbody tr:last-child td { border-bottom: 0; }
.portal-data-table td strong, .portal-data-table .portal-table-amount { color: #111827; font-weight: 600; }
.portal-data-table th:last-child, .portal-data-table td:last-child { text-align: right; }
.portal-table-product { display: flex; align-items: center; gap: 12px; }
.portal-table-product .portal-outline-tile { width: 32px; height: 32px; flex-basis: 32px; }
.portal-table-product .portal-line-icon { width: 16px; height: 16px; }
.portal-table-product small, .portal-table-secondary { display: block; font-size: var(--portal-text-xs); color: #667085; margin-top: 3px; }
.portal-table-actions { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.portal-table-actions .portal-button { min-height: 28px; padding: 5px 10px; font-size: var(--portal-text-xs); }
.portal-table-actions .is-icon { width: 28px; padding: 4px; }
.portal-row-details { font-size: var(--portal-text-sm); margin-top: 10px; }
.portal-row-details summary { color: #667085; font-size: var(--portal-text-xs); cursor: pointer; }
.portal-row-details dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px 12px; margin: 12px 0; font-size: var(--portal-text-xs); }
.portal-row-details dt { color: #667085; }
.portal-row-details dd { margin: 0; color: #111827; overflow-wrap: anywhere; }
.portal-key-values { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px 20px; font-size: var(--portal-text-sm); margin: 0 0 24px; }
.portal-key-values dt { color: #667085; }
.portal-key-values dd { margin: 0; color: #111827; overflow-wrap: anywhere; }
.portal-row-details pre, .portal-service-config { background: #f8faff; padding: 12px; border: 1px solid #e6eaf2; border-radius: 9px; font-size: var(--portal-text-xs); white-space: pre-wrap; overflow-wrap: anywhere; color: #475569; }
.portal-empty-copy, .portal-filter-empty { padding: 28px; text-align: center; color: #667085; font-size: var(--portal-text-sm); }
.portal-dashboard-intro h1 { margin: 0; }
.portal-dashboard-intro h1 > span { font-size: 23px; }
.portal-dashboard-intro p { margin: 4px 0 0; color: #667085; font-size: var(--portal-text-sm); line-height: 1.6; }
.portal-dashboard-intro + .portal-page-tabs { margin: 24px 0 32px; }
.portal-dashboard-columns, .portal-service-columns { display: grid; grid-template-columns: minmax(0,2.05fr) minmax(0,1fr); gap: 20px; align-items: start; }
.portal-dashboard-primary, .portal-dashboard-secondary, .portal-service-sidebar { min-width: 0; display: grid; gap: 20px; }
.portal-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: -6px; }
.portal-section-heading h2 { margin: 0; font-size: var(--portal-text-base); }
.portal-section-heading > span { font-size: var(--portal-text-sm); color: var(--portal-muted); }
.portal-quick-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.portal-theme-dhost .portal-quick-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 160px; padding: 16px; background: #fff; border: 1px solid #e6eaf2; border-radius: 16px; box-shadow: 0 4px 12px #11182704; color: #111827; }
.portal-quick-card > strong { font-size: var(--portal-text-base); margin: 12px 0 4px; font-weight: 650; }
.portal-quick-card > small { color: #667085; font-size: var(--portal-text-sm); margin-bottom: 12px; line-height: 1.4; }
.portal-quick-arrow { position: absolute; right: 14px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: #f8faff; border: 1px solid #e6eaf2; display: grid; place-items: center; }
.portal-quick-arrow .portal-line-icon { width: 14px; height: 14px; }
.portal-quick-button { margin-top: auto; background: #111827; color: #fff; padding: 6px 11px; line-height: 1.3; border-radius: 8px; font-size: var(--portal-text-xs); font-weight: 650; display: flex; align-items: center; gap: 8px; }
.portal-theme-dhost .portal-quick-card.is-featured { background: #145fca; border-color: #0059dd; color: #fff; box-shadow: 0 6px 14px #1570ef40; }
.portal-quick-card.is-featured .portal-quick-arrow, .portal-quick-card.is-featured .portal-outline-tile { background: #ffffff20; color: #fff; border-color: #ffffff30; }
.portal-quick-card.is-featured > small { color: #e1edff; }
.portal-quick-card.is-featured .portal-quick-button { background: #fff; color: #145fca; }
.portal-theme-dhost .portal-record-row { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 18px 24px; color: #111827; border-bottom: 1px solid #f8faff; }
.portal-record-row:last-child { border-bottom: 0; }
.portal-record-row:hover { background: #fafcff; }
.portal-record-copy { flex: 1; min-width: 0; }
.portal-record-copy strong { display: block; font-size: var(--portal-text-base); font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.portal-record-copy small { display: block; font-size: var(--portal-text-xs); color: var(--portal-muted); margin-top: 3px; line-height: 1.5; }
.portal-record-dot { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; background: #eff6ff; color: #145fca; border: 1px solid #dbeafe; border-radius: 9px; }
.portal-record-dot.is-paid { color: #067647; background: #f0fdf4; border-color: #dcfce7; }
.portal-record-dot i, .portal-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: #145fca; display: inline-block; flex-shrink: 0; }
.portal-record-dot i { background: currentColor; }
.portal-unread-dot.is-read { background: #cbd5e1; }
.portal-record-row > .portal-line-icon { width: 14px; color: var(--portal-muted); }
.portal-dark-card { border: 1px solid #030712; border-radius: 20px; padding: 24px; color: #fff; background: radial-gradient(ellipse at 110% 0,#1b427d80,transparent 65%),linear-gradient(135deg,#202735,#111827); }
.portal-dark-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #ffffff10; border-radius: 12px; background: #ffffff18; margin-bottom: 24px; }
.portal-theme-dhost .portal-dark-card h2 { color: #fff; font-size: var(--portal-text-base); margin: 0 0 8px; letter-spacing: -.025em; line-height: 1.5; }
.portal-dark-card p { color: #c7ccd6; font-size: var(--portal-text-sm); line-height: 1.6; margin: 0 0 24px; }
.portal-dark-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.portal-theme-dhost .portal-dark-metrics > a { display: block; background: #ffffff1a; border: 1px solid #ffffff10; border-radius: 12px; padding: 12px; color: #fff; }
.portal-dark-metrics strong { display: block; font-size: 1.25rem; line-height: 1.3; }
.portal-dark-metrics small { display: block; font-size: var(--portal-text-xs); margin-top: 4px; color: #d1d5df; }
.portal-featured-service, .portal-account-help { padding: 20px; }
.portal-featured-service > h2, .portal-account-help > h2 { margin: 0 0 18px; font-size: var(--portal-text-base); }
.portal-service-identity { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 18px; }
.portal-service-identity > div { min-width: 0; flex: 1; }
.portal-service-identity strong { display: block; color: #111827; font-size: var(--portal-text-base); line-height: 1.4; overflow-wrap: anywhere; }
.portal-service-identity small { display: block; font-size: var(--portal-text-xs); color: #667085; margin-top: 3px; overflow-wrap: anywhere; }
.portal-service-identity .status-badge { font-size: var(--portal-text-xs); padding: 4px 7px; }
.portal-data-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.portal-data-box { min-width: 0; background: #f8faff; border: 1px solid #e6eaf2; border-radius: 12px; padding: 12px; }
.portal-data-box small { display: block; color: var(--portal-muted); font-size: var(--portal-text-xs); margin-bottom: 4px; }
.portal-data-box strong { display: block; color: #111827; font-size: var(--portal-text-sm); font-weight: 600; overflow-wrap: anywhere; }
.portal-data-box > span { display: block; font-size: var(--portal-text-sm); }
.portal-card-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.portal-card-actions > .portal-button:not(.is-icon) { flex: 1; }
.portal-account-help ul { margin: 0; padding-left: 18px; color: #667085; font-size: var(--portal-text-sm); line-height: 2; }
.portal-account-help p, .portal-account-help > a { font-size: var(--portal-text-sm); }
.portal-service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; min-width: 0; }
.portal-service-card { padding: 20px; border: 1px solid #e6eaf2; border-radius: 16px; background: #fff; box-shadow: 0 4px 16px #11182705; min-width: 0; }
.portal-service-icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #145fca; border: 1px solid #0060e3; box-shadow: 0 3px 8px #1118271a; }
.portal-service-color-1 { background: #f56800; border-color: #da5700; }
.portal-service-color-2 { background: #08b98a; border-color: #00a67a; }
.portal-service-color-3 { background: #8b5cf6; border-color: #7742ea; }
.portal-service-statistics { padding: 20px; }
.portal-service-statistics h2 { margin: 0 0 16px; font-size: var(--portal-text-base); }
.portal-service-statistics .portal-compact-stat { background: #f8faff; border-radius: 12px; padding: 12px; margin-top: 12px; }
.portal-service-statistics .portal-compact-stat strong { font-size: var(--portal-text-sm); }
.portal-service-help { border-radius: 16px; padding: 20px; }
.portal-service-help h2 { display: flex; align-items: center; gap: 10px; }
.portal-service-help .portal-line-icon { color: #f5ce32; width: 16px; height: 16px; }
.portal-service-help p { margin: 8px 0 16px; }
.portal-service-help .portal-button { width: 100%; background: #fff; }
.portal-feed-row { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border-bottom: 1px solid #f1f5f9; }
.portal-feed-row:last-child { border-bottom: 0; }
.portal-feed-icon { position: relative; width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
.portal-feed-icon > .portal-unread-dot { position: absolute; top: -4px; right: -4px; border: 2px solid #fff; width: 10px; height: 10px; }
.portal-feed-content { flex: 1; min-width: 0; }
.portal-theme-dhost .portal-feed-content h3 { font-size: var(--portal-text-base); font-weight: 600; margin: 0 0 4px; line-height: 1.7; }
.portal-feed-content p { color: #526278; font-size: var(--portal-text-base); line-height: 1.7; margin: 8px 0; overflow-wrap: anywhere; }
.portal-feed-content > small { color: var(--portal-muted); font-size: var(--portal-text-xs); }
.portal-feed-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.portal-feed-actions .portal-button { min-height: 28px; font-size: var(--portal-text-xs); padding: 5px 10px; }
.portal-feed-row > .portal-unread-dot { margin-top: 16px; }
.portal-detail-dialog { width: 560px; max-width: calc(100vw - 32px); max-height: 90vh; border: 1px solid #cdd5df; border-radius: 20px; padding: 0; margin: auto; box-shadow: 0 20px 60px #11182740; color: #111827; background: #fff; overflow-y: auto; }
.portal-detail-dialog::backdrop { background: #11182766; backdrop-filter: blur(4px); }
.portal-detail-dialog[id^="portal-service-"] { width: 720px; }
.portal-detail-dialog[id^="portal-announcement-"] { width: 520px; }
.portal-detail-dialog[id^="portal-service-"] .portal-service-identity { padding: 16px; border: 1px solid #e6eaf2; border-radius: 12px; background: #f8faff; }
.portal-detail-dialog[id^="portal-service-"] .portal-data-box { background: #fff; }
.portal-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #f1f5f9; }
.portal-dialog-heading h2 { margin: 0; font-size: var(--portal-text-base); line-height: 1.5; }
.portal-dialog-body { padding: 24px; }
.portal-dialog-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 24px; }
.portal-dialog-status small { color: #667085; font-size: var(--portal-text-sm); }
.portal-dialog-body .portal-card-actions { margin-top: 24px; }
.portal-dialog-body .portal-card-actions .portal-button { min-height: 42px; }
.portal-invoice-total { display: flex; justify-content: space-between; padding: 20px 16px; margin-top: 20px; border: 1px solid #e6eaf2; border-radius: 12px; background: #f8faff; font-size: var(--portal-text-base); }
.portal-invoice-preview-summary { border: 1px solid #e6eaf2; border-radius: 12px; overflow: hidden; margin-top: 24px; }
.portal-invoice-preview-summary > h3 { padding: 12px 16px; margin: 0; background: #f8faff; border-bottom: 1px solid #e6eaf2; font-size: var(--portal-text-sm); }
.portal-invoice-preview-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 16px; font-size: var(--portal-text-sm); border-bottom: 1px solid #f1f5f9; }
.portal-invoice-preview-summary .portal-invoice-total { margin: 0; border: 0; border-radius: 0; font-size: var(--portal-text-sm); }
.portal-announcement-full { margin: 24px 0; color: #344054; font-size: var(--portal-text-sm); line-height: 1.8; overflow-wrap: anywhere; }
.portal-announcement-full img { max-width: 100%; height: auto; }
.portal-detail-dialog .portal-dialog-heading .portal-button { flex-shrink: 0; }
@media (max-width: 1180px) and (min-width: 1024px) { .portal-quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .portal-service-columns { grid-template-columns: minmax(0,2fr) minmax(220px,1fr); } .portal-service-grid { grid-template-columns: 1fr; } }
@media (max-width: 1023px) {
    .portal-account { padding: 64px 0 0; }
    .portal-theme-dhost .portal-sidebar { transform: translateX(-100%); width: 288px; }
    .portal-theme-dhost .portal-topbar { left: 0; height: 64px; padding: 0 20px; gap: 16px; }
    .portal-theme-dhost .portal-menu-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; flex-shrink: 0; background: #fff; border: 1px solid #e6eaf2; border-radius: 9px; color: #667085; }
    .portal-menu-open .portal-sidebar { transform: translateX(0); }
    .portal-menu-open .portal-backdrop { display: block; position: fixed; inset: 0; background: #11182766; border: 0; z-index: 1090; }
    .portal-search { flex: 1; max-width: 560px; width: auto; }
    .portal-skip { left: 20px; }
    .portal-dashboard-columns, .portal-service-columns { grid-template-columns: 1fr; }
    .portal-dashboard-secondary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .portal-service-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
    .portal-account .main-content, .portal-account > .container { padding: 24px 16px 36px; }
    .portal-theme-dhost .portal-public-header .portal-brand { min-height: 64px; font-size: var(--portal-text-base); gap: 8px; }
    .portal-theme-dhost h1 { font-size: 1.25rem; }
    .portal-theme-dhost .portal-topbar { padding: 0 12px; gap: 8px; }
    .portal-topbar-actions { gap: 8px; }
    .portal-theme-dhost .portal-topbar-account { border: 0; padding-left: 0; }
    .portal-topbar-account > span:last-child { display: none; }
    .portal-topbar-account .portal-avatar { width: 30px; height: 30px; font-size: var(--portal-text-sm); }
    .portal-theme-dhost .portal-icon-link { width: 32px; height: 34px; display: grid; border-radius: 9px; }
    .portal-theme-dhost .portal-topbar .lang-btn { width: 24px; min-width: 24px; height: 26px; min-height: 26px; padding: 3px; border-radius: 6px; }
    .portal-theme-dhost .portal-topbar .lang-flag-img { width: 16px !important; height: 13px !important; }
    .portal-theme-dhost .portal-topbar .language-switcher { gap: 3px; }
    .portal-search input { text-overflow: ellipsis; }
    .portal-theme-dhost .portal-search input { font-size: var(--portal-text-sm); padding-left: 31px; }
    .portal-search > .portal-line-icon { left: 10px; width: 14px; }
    .portal-search-results { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; }
    .portal-dashboard-stats, .portal-invoice-stats { grid-template-columns: 1fr; gap: 12px; }
    .portal-compact-stats { grid-template-columns: 1fr; gap: 10px; }
    .portal-compact-stat { padding: 13px 16px; }
    .portal-theme-dhost .portal-metric { min-height: 140px; padding: 20px; }
    .portal-metric-icon { right: 20px; top: 20px; }
    .portal-metric > strong { font-size: 1.875rem; margin: 10px 0; }
    .portal-dashboard-intro + .portal-page-tabs { margin: 20px 0 24px; }
    .portal-quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .portal-dashboard-secondary, .portal-service-grid, .portal-service-sidebar { grid-template-columns: 1fr; }
    .portal-panel-heading { padding: 16px 18px; }
    .portal-panel-heading > span { font-size: var(--portal-text-xs); }
    .portal-theme-dhost .portal-record-row { padding: 17px 18px; gap: 10px; flex-wrap: wrap; }
    .portal-record-copy strong { font-size: var(--portal-text-base); }
    .portal-record-row .status-badge { font-size: var(--portal-text-xs); }
    .portal-record-dot { width: 28px; height: 28px; }
    .portal-feed-row { padding: 20px 18px; gap: 12px; }
    .portal-feed-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .portal-toolbar { gap: 12px; }
    .portal-segments { max-width: 100%; }
    .portal-segments button, .portal-theme-dhost .portal-page-tabs a { font-size: var(--portal-text-sm); padding: 8px 11px; }
    .portal-service-card { padding: 18px; }
    .portal-dialog-heading, .portal-dialog-body { padding: 20px; }
    .portal-dialog-status { margin-bottom: 18px; }
    .portal-detail-dialog { border-radius: 16px; }
}
@media print { .portal-account { padding: 0 !important; background: #fff !important; } .portal-account .main-content, .portal-account > .container { max-width: none; padding: 0 !important; } .portal-detail-dialog { display: none !important; } }
