/* ==========================================================================
   UP Agenzia Web - Client Portal Modern Stylesheet
   ========================================================================== */

:root {
    --portal-bg: #090d16;
    --portal-sidebar-bg: #0b0f19;
    --portal-header-bg: rgba(11, 15, 25, 0.82);
    --portal-card-bg: rgba(17, 24, 39, 0.82);
    --portal-card-border: rgba(255, 255, 255, 0.08);
    --portal-accent: #ff5722;
    --portal-accent-light: #ff7043;
    --portal-accent-glow: rgba(255, 87, 34, 0.25);
    --portal-purple: #7137e8;
    --portal-purple-light: #a78bfa;
    --portal-emerald: #10b981;
    --portal-amber: #f59e0b;
    --portal-text-primary: #f8fafc;
    --portal-text-secondary: #94a3b8;
    --portal-text-muted: #64748b;
    --portal-input-bg: rgba(15, 23, 42, 0.7);
    --portal-input-border: rgba(255, 255, 255, 0.12);
    --portal-radius: 18px;
    --portal-sidebar-width: 270px;
}

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

body.client-portal-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--portal-bg);
    color: var(--portal-text-primary);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Layout Structure
   -------------------------------------------------------------------------- */
.portal-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.portal-sidebar {
    width: var(--portal-sidebar-width);
    background: var(--portal-sidebar-bg);
    border-right: 1px solid var(--portal-card-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 18px;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
    margin-bottom: 28px;
    padding: 0 8px;
}

.portal-logo {
    display: block;
    text-decoration: none;
    margin-bottom: 12px;
}

.portal-logo .logo-img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(113, 55, 232, 0.14);
    color: var(--portal-purple-light);
    border: 1px solid rgba(113, 55, 232, 0.3);
    border-radius: 9999px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.portal-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--portal-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item .nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--portal-text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item:hover .nav-icon {
    color: var(--portal-accent);
    transform: scale(1.1);
}

.nav-item.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(255, 87, 34, 0.15) 0%, rgba(255, 87, 34, 0.04) 100%);
    border: 1px solid rgba(255, 87, 34, 0.25);
}

.nav-item.active .nav-icon {
    color: var(--portal-accent);
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 12px 8px;
}

.nav-item.nav-logout:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
}

.nav-item.nav-logout:hover .nav-icon {
    color: #f87171;
}

/* Sidebar Footer / WhatsApp Widget */
.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
}

.sidebar-support-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-support-card .support-icon {
    font-size: 22px;
    color: #22c55e;
}

.sidebar-support-card .support-info strong {
    display: block;
    font-size: 12.5px;
    color: #ffffff;
}

.sidebar-support-card .support-info small {
    display: block;
    font-size: 11.5px;
    color: var(--portal-text-muted);
}

.btn-support-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    transition: all 0.2s ease;
}

.btn-support-sm:hover {
    background: #22c55e;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Main Content Area & Topbar
   -------------------------------------------------------------------------- */
.portal-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--portal-bg);
}

.portal-topbar {
    position: sticky;
    top: 0;
    height: 76px;
    background: var(--portal-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--portal-card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--portal-text-primary);
    font-size: 18px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--portal-accent);
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--portal-purple) 0%, var(--portal-accent) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(113, 55, 232, 0.35);
}

.user-meta .user-label {
    display: block;
    font-size: 11.5px;
    color: var(--portal-text-muted);
    line-height: 1.2;
}

.user-meta .user-name {
    display: block;
    font-size: 14.5px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-visit-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--portal-text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-visit-site:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Notification Bell & Dropdown
   -------------------------------------------------------------------------- */
.bell {
    position: relative;
}

.bell summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    list-style: none;
    transition: all 0.2s ease;
}

.bell summary::-webkit-details-marker {
    display: none;
}

.bell summary:hover,
.bell[open] summary {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--portal-accent);
}

.bell_icon {
    font-size: 18px;
    color: var(--portal-text-secondary);
    transition: transform 0.2s ease;
}

.bell summary:hover .bell_icon {
    color: #ffffff;
}

.bell summary b {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid var(--portal-sidebar-bg);
    border-radius: 9999px;
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.dropdown {
    position: absolute;
    right: 0;
    top: 52px;
    width: 360px;
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--portal-card-border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 150;
    animation: portalFadeDown 0.2s ease-out;
}

@keyframes portalFadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown_title strong {
    font-size: 13.5px;
    color: #ffffff;
}

.dropdown_title span {
    font-size: 11.5px;
    color: var(--portal-accent);
    font-weight: 600;
}

.dropdown_empty {
    padding: 24px 12px;
    text-align: center;
    color: var(--portal-text-muted);
    font-size: 13px;
    margin: 0;
}

.notification_item {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 4px;
    transition: background 0.15s ease;
}

.notification_item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification_item strong {
    display: block;
    font-size: 13px;
    color: #f1f5f9;
    margin-bottom: 2px;
}

.notification_item span {
    display: block;
    font-size: 12px;
    color: var(--portal-text-muted);
    line-height: 1.4;
}

.dropdown_all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--portal-accent);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    transition: background 0.15s ease;
    border-radius: 8px;
}

.dropdown_all:hover {
    background: rgba(255, 87, 34, 0.08);
}

/* --------------------------------------------------------------------------
   Content Section & Dashboard Banner
   -------------------------------------------------------------------------- */
.portal-content {
    flex: 1;
    padding: 36px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.dashboard-head-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.head-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 87, 34, 0.12);
    color: var(--portal-accent);
    border: 1px solid rgba(255, 87, 34, 0.28);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.portal-page-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.portal-page-subtitle {
    font-size: 14px;
    color: var(--portal-text-secondary);
    margin: 0;
}

.head-banner-date {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 13px;
    color: var(--portal-text-muted);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   KPI Metric Cards
   -------------------------------------------------------------------------- */
.kpi-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.kpi-card {
    background: var(--portal-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--portal-card-border);
    border-radius: var(--portal-radius);
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.kpi-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.kpi-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.kpi-total .kpi-icon-wrap {
    background: rgba(255, 87, 34, 0.12);
    color: var(--portal-accent);
    border: 1px solid rgba(255, 87, 34, 0.25);
}

.kpi-invested .kpi-icon-wrap {
    background: rgba(16, 185, 129, 0.12);
    color: var(--portal-emerald);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.kpi-pending .kpi-icon-wrap {
    background: rgba(245, 158, 11, 0.12);
    color: var(--portal-amber);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.kpi-content {
    flex: 1;
    min-width: 0;
}

.kpi-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--portal-text-muted);
    margin-bottom: 4px;
}

.kpi-value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
}

.kpi-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--portal-text-secondary);
}

/* --------------------------------------------------------------------------
   Section Headers & Buttons
   -------------------------------------------------------------------------- */
.portal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.section-subtitle {
    font-size: 13.5px;
    color: var(--portal-text-muted);
    margin: 0;
}

.btn-portal-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-portal-outline:hover {
    border-color: var(--portal-accent);
    color: var(--portal-accent);
    background: rgba(255, 87, 34, 0.06);
}

/* --------------------------------------------------------------------------
   Projects Grid & Cards
   -------------------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: var(--portal-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--portal-card-border);
    border-radius: var(--portal-radius);
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-link:hover .project-card {
    transform: translateY(-4px);
    border-color: rgba(255, 87, 34, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 87, 34, 0.08);
}

.project-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.project-id-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--portal-text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.project-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.project-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 600;
    flex-shrink: 0;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-progress {
    background: rgba(255, 87, 34, 0.12);
    color: #ff7043;
    border: 1px solid rgba(255, 87, 34, 0.25);
}

.status-approved {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-completed {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-paused {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-proposal,
.status-default {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.project-desc {
    font-size: 13.5px;
    color: var(--portal-text-secondary);
    margin: 0 0 18px 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Progress bar */
.project-progress-wrap {
    margin-bottom: 18px;
}

.progress-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
}

.progress-label {
    color: var(--portal-text-muted);
}

.progress-pct {
    color: #ffffff;
    font-weight: 700;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--portal-accent) 0%, var(--portal-accent-light) 100%);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* Financial Pills */
.project-financial-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 16px;
}

.fin-pill {
    text-align: center;
}

.fin-label {
    display: block;
    font-size: 11px;
    color: var(--portal-text-muted);
    margin-bottom: 2px;
}

.fin-value {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.fin-paid {
    color: #34d399 !important;
}

.fin-pending {
    color: #fbbf24 !important;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--portal-accent);
}

.project-card-footer i {
    transition: transform 0.2s ease;
}

.project-card-link:hover .project-card-footer i {
    transform: translateX(4px);
}

/* Empty State Card */
.empty-state-card {
    text-align: center;
    padding: 48px 24px;
    grid-column: 1 / -1;
}

.empty-state-card .empty-icon {
    font-size: 42px;
    color: var(--portal-text-muted);
    margin-bottom: 16px;
}

.empty-state-card h3 {
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.empty-state-card p {
    font-size: 14px;
    color: var(--portal-text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Generic Panels & Elements
   -------------------------------------------------------------------------- */
.panel {
    background: var(--portal-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--portal-card-border);
    border-radius: var(--portal-radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

input,
textarea,
select {
    width: 100%;
    background: var(--portal-input-bg);
    border: 1px solid var(--portal-input-border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #ffffff;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
    margin-bottom: 14px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--portal-accent);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px var(--portal-accent-glow);
}

button,
button[type="submit"],
button.btn-primary,
.btn-ticket-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--portal-accent) 0%, var(--portal-accent-light) 100%);
    border: none;
    border-radius: 12px;
    padding: 13px 26px;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 87, 34, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

button:hover,
button[type="submit"]:hover,
button.btn-primary:hover,
.btn-ticket-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 87, 34, 0.45);
    filter: brightness(1.06);
    color: #ffffff;
}

button:active,
button[type="submit"]:active,
button.btn-primary:active,
.btn-ticket-submit:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(255, 87, 34, 0.25);
}

button i,
button[type="submit"] i,
.btn-ticket-submit i {
    font-size: 14px;
    transition: transform 0.25s ease;
}

button:hover i,
button[type="submit"]:hover i,
.btn-ticket-submit:hover i {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   List & Chat Components (Tickets, Support, Messaging)
   -------------------------------------------------------------------------- */
.list {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.list a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.list article {
    background: var(--portal-card-bg);
    border: 1px solid var(--portal-card-border);
    border-radius: var(--portal-radius);
    padding: 20px 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.list a:hover article {
    transform: translateY(-2px);
    border-color: rgba(255, 87, 34, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.list article h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.list article p {
    font-size: 13.5px;
    color: var(--portal-text-secondary);
    margin: 0 0 8px 0;
}

.list article small {
    font-size: 12px;
    color: var(--portal-text-muted);
}

.chat {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}

.chat article {
    background: var(--portal-card-bg);
    border: 1px solid var(--portal-card-border);
    border-radius: 16px;
    padding: 20px 24px;
    max-width: 85%;
}

.chat article b {
    display: block;
    font-size: 13px;
    color: var(--portal-accent-light);
    margin-bottom: 6px;
}

.chat article p {
    font-size: 14px;
    color: var(--portal-text-primary);
    line-height: 1.55;
    margin: 0 0 8px 0;
}

.chat article small {
    font-size: 11.5px;
    color: var(--portal-text-muted);
}

.chat article.staff {
    margin-left: auto;
    background: rgba(113, 55, 232, 0.14);
    border-color: rgba(113, 55, 232, 0.3);
}

.chat article.staff b {
    color: #c4b5fd;
}

/* --------------------------------------------------------------------------
   Flash Alerts
   -------------------------------------------------------------------------- */
.flash {
    margin-bottom: 24px;
}

.flash:empty {
    display: none;
}

.message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 16px;
    box-sizing: border-box;
    animation: portalFadeDown 0.25s ease-out;
}

.message.error {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.message.success {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #86efac !important;
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
}

.message.warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fde047 !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

.message.info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

/* --------------------------------------------------------------------------
   Portal Footer
   -------------------------------------------------------------------------- */
.portal-footer {
    padding: 24px 36px;
    border-top: 1px solid var(--portal-card-border);
    text-align: center;
    font-size: 12.5px;
    color: var(--portal-text-muted);
}

.portal-footer strong {
    color: var(--portal-text-secondary);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .kpi-cards-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .portal-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 200;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
    }

    .portal-sidebar.is-open {
        transform: translateX(0);
    }

    .portal-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 190;
        display: none;
    }

    .portal-sidebar-overlay.is-open {
        display: block;
    }

    .btn-mobile-toggle {
        display: flex;
    }

    .portal-topbar {
        padding: 0 20px;
    }

    .portal-content {
        padding: 24px 16px;
    }

    .dashboard-head-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
