:root {
    --bg-body: #f0f4f8;
    --bg-surface: #ffffff;
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: rgba(255, 255, 255, 0.06);
    --bg-sidebar-active: rgba(59, 130, 246, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-on-dark: #f8fafc;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.12);
    --info: #06b6d4;
    --info-soft: rgba(6, 182, 212, 0.12);
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --sidebar-width: 272px;
    --topbar-height: 60px;
    --mobile-nav-height: 64px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.app-layout {
    overflow-x: hidden;
}

body.sidebar-open {
    overflow: hidden;
}

/* ── Public navbar ── */
.navbar-gpo {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 0;
}

.navbar-brand-gpo {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--info));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
}

/* ── Sidebar layout ── */
.app-shell {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #111827 55%, #0f172a 100%);
    color: var(--text-on-dark);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
}

.sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: radial-gradient(ellipse at 30% 0%, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-header {
    position: relative;
    z-index: 1;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 64px;
}

.sidebar-brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    letter-spacing: -0.02em;
    min-width: 0;
    flex: 1;
}

.sidebar-brand:hover {
    color: white;
}

.sidebar-brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.sidebar-nav {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 0.75rem 0.65rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-section {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(248, 250, 252, 0.32);
    padding: 0.85rem 0.85rem 0.4rem;
    margin-top: 0.25rem;
}

.sidebar-section:first-child {
    margin-top: 0;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.85rem;
    border-radius: 11px;
    color: rgba(248, 250, 252, 0.72);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition), transform 0.15s ease;
    margin-bottom: 3px;
    min-height: 44px;
}

.sidebar-link i {
    font-size: 1.05rem;
    width: 1.35rem;
    text-align: center;
    opacity: 0.85;
    flex-shrink: 0;
}

.sidebar-link span {
    line-height: 1.3;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
}

.sidebar-link:active {
    transform: scale(0.98);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: white;
    font-weight: 600;
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #60a5fa, #3b82f6);
    border-radius: 0 3px 3px 0;
}

.sidebar-link.active i {
    color: #60a5fa;
    opacity: 1;
}

.sidebar-footer {
    position: relative;
    z-index: 1;
    padding: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.5rem;
}

.sidebar-user-info {
    min-width: 0;
    flex: 1;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    line-height: 1.25;
}

.user-role {
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.45);
    margin-top: 1px;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    min-height: 42px;
    transition: all var(--transition);
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.4);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-width));
}

.topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-start {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.topbar-titles {
    min-width: 0;
}

.topbar-page {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.sidebar-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.sidebar-collapse {
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.sidebar-collapse:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

@media (min-width: 992px) {
    body.sidebar-hidden .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    body.sidebar-hidden .main-content {
        margin-left: 0;
        width: 100%;
    }
}

.page-wrapper {
    padding: 1.5rem 1.25rem 2rem;
    flex: 1;
    width: 100%;
    max-width: 1400px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 1030;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.25rem;
    border: none;
    background: none;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    transition: color var(--transition);
    min-height: 44px;
    cursor: pointer;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    line-height: 1;
}

.mobile-nav-item.active {
    color: var(--accent);
}

.mobile-nav-item.active i {
    transform: scale(1.05);
}

.mobile-nav-menu {
    color: var(--text-secondary);
}

/* ── Page header ── */
.page-header {
    margin-bottom: 1.75rem;
}

.page-header h1 {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.page-header--dashboard {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.page-header--dashboard h1 {
    font-size: 1.25rem;
    margin-bottom: 0.1rem;
    line-height: 1.3;
}

.page-header--dashboard .subtitle {
    font-size: 0.82rem;
}

.dashboard-username {
    display: inline-block;
    max-width: min(100%, 220px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

@media (min-width: 768px) {
    .dashboard-username {
        max-width: 320px;
    }
}

.page-header-main {
    flex: 1;
    min-width: 0;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.wave-emoji {
    display: inline-block;
    animation: wave-hand 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-hand {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(0deg); }
}

.breadcrumb-gpo {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.breadcrumb-gpo a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-gpo a:hover {
    color: var(--accent);
}

/* ── Cards ── */
.card-gpo {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    overflow: hidden;
}

.card-gpo:hover {
    box-shadow: var(--shadow-md);
}

.card-gpo-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-gpo-header-toolbar {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-gpo-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.card-gpo-header .header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.card-gpo-body {
    padding: 1.25rem;
}

/* ── Stat cards ── */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-accent, var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ── Action grid ── */
.action-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.15rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    height: 100%;
}

.action-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.action-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.action-card-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.action-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Buttons ── */
.btn-gpo {
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.1rem;
    transition: all var(--transition);
    border: none;
}

.btn-gpo-primary {
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.btn-gpo-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #4f46e5);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-gpo-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-gpo-success:hover {
    color: white;
    transform: translateY(-1px);
}

.btn-gpo-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-gpo-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-gpo-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.btn-gpo-ghost:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.btn-gpo-danger {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid transparent;
}

.btn-gpo-danger:hover {
    background: var(--danger);
    color: white;
}

/* ── Forms ── */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--bg-surface);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-text {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.form-group-gpo {
    margin-bottom: 1.1rem;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0;
}

/* ── Tables ── */
.table-gpo {
    margin: 0;
    font-size: 0.875rem;
}

.table-gpo thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    background: #f8fafc;
}

.table-gpo tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.table-gpo tbody tr:last-child td {
    border-bottom: none;
}

.table-gpo tbody tr {
    transition: background var(--transition);
}

.table-gpo tbody tr:hover {
    background: #f8fafc;
}

/* ── Badges ── */
.badge-gpo {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.badge-success {
    background: var(--success-soft);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge-warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-secondary {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
}

.badge-info {
    background: var(--info-soft);
    color: var(--info);
}

/* ── Fee calculator (referências) ── */
.amount-field-gpo {
    margin-bottom: 0.5rem;
}

.amount-input-wrap {
    position: relative;
}

.form-control-amount {
    font-size: 1.75rem;
    font-weight: 700;
    padding: 0.85rem 4.5rem 0.85rem 1rem;
    letter-spacing: -0.02em;
    border-width: 2px;
}

.form-control-amount:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.amount-currency {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
}

.fee-calculator {
    margin-top: 1.25rem;
    padding: 0;
    border: none;
    background: transparent;
}

.fee-calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.fee-calculator-header strong {
    font-size: 0.95rem;
}

.fee-method-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fee-method-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    padding: 1rem 0.25rem;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.fee-method-row:last-child {
    border-bottom: none;
}

.fee-method-row:hover {
    background: rgba(14, 165, 233, 0.04);
}

.fee-method-row-active {
    background: rgba(14, 165, 233, 0.06);
}

.fee-method-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    margin-top: 0.1rem;
}

.fee-method-icon--per {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.fee-method-icon--mcx {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
}

.fee-method-icon--multicx {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.fee-method-body {
    flex: 1;
    min-width: 0;
}

.fee-method-line1 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

.fee-method-deduction {
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.fee-method-line2 {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.fee-method-line2 strong {
    color: var(--text);
    font-weight: 700;
}

.fee-method-line3 {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.fee-method-empty {
    padding: 0.75rem 0;
}

/* ── Legal / termos ── */
.legal-content h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text);
}

.legal-content .lead {
    font-size: 1rem;
    font-weight: 600;
}

/* ── Toasts modernos ── */
.alert-gpo {
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border-left: 4px solid;
}

.toast-container-gpo {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    max-width: min(420px, calc(100vw - 2rem));
}

.toast-gpo {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 0.95rem 1rem 1.1rem 0.85rem;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 20px 40px rgba(15, 23, 42, 0.12);
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    gap: 0 0.75rem;
    align-items: start;
    min-width: 300px;
    pointer-events: auto;
    animation: toastEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast-gpo--leaving {
    animation: toastLeave 0.28s ease forwards;
}

.toast-gpo__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
    background: var(--accent);
}

.toast-gpo--success .toast-gpo__accent { background: var(--success); }
.toast-gpo--error .toast-gpo__accent { background: var(--danger); }
.toast-gpo--warning .toast-gpo__accent { background: var(--warning); }
.toast-gpo--info .toast-gpo__accent { background: var(--info); }

.toast-gpo__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.toast-gpo--success .toast-gpo__icon {
    background: var(--success-soft);
    color: var(--success);
}
.toast-gpo--error .toast-gpo__icon {
    background: var(--danger-soft);
    color: var(--danger);
}
.toast-gpo--warning .toast-gpo__icon {
    background: var(--warning-soft);
    color: var(--warning);
}
.toast-gpo--info .toast-gpo__icon {
    background: var(--info-soft);
    color: var(--info);
}

.toast-gpo__body {
    min-width: 0;
    padding-top: 0.15rem;
}

.toast-gpo__title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.toast-gpo__message {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-secondary);
    word-break: break-word;
}

.toast-gpo__close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}

.toast-gpo__close:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
}

.toast-gpo__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(59, 130, 246, 0.35));
    transform-origin: left center;
    animation: toastProgress linear forwards;
}

.toast-gpo--success .toast-gpo__progress {
    background: linear-gradient(90deg, var(--success), rgba(16, 185, 129, 0.35));
}
.toast-gpo--error .toast-gpo__progress {
    background: linear-gradient(90deg, var(--danger), rgba(239, 68, 68, 0.35));
}
.toast-gpo--warning .toast-gpo__progress {
    background: linear-gradient(90deg, var(--warning), rgba(245, 158, 11, 0.35));
}
.toast-gpo--info .toast-gpo__progress {
    background: linear-gradient(90deg, var(--info), rgba(6, 182, 212, 0.35));
}

@keyframes toastEnter {
    from {
        opacity: 0;
        transform: translateX(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastLeave {
    to {
        opacity: 0;
        transform: translateX(16px) scale(0.98);
    }
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeUp 0.45s ease forwards;
}

.animate-in-delay-1 { animation-delay: 0.05s; opacity: 0; }
.animate-in-delay-2 { animation-delay: 0.1s; opacity: 0; }
.animate-in-delay-3 { animation-delay: 0.15s; opacity: 0; }
.animate-in-delay-4 { animation-delay: 0.2s; opacity: 0; }

/* ── Result box ── */
.result-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1rem;
}

.result-box pre {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    font-size: 0.8rem;
    margin: 0.5rem 0 0;
    overflow-x: auto;
}

/* ── Landing hero ── */
body.landing-page {
    background: #0b1220;
    color: var(--text-on-dark);
}

body.landing-page .navbar-gpo {
    background: rgba(11, 18, 32, 0.85) !important;
}

.landing-mesh {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 45%);
}

body.landing-page > .container,
body.landing-page .hero-section {
    position: relative;
    z-index: 1;
}

.hero-section {
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-section--welcome {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: white;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent), var(--info));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.72);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-cta-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-note {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.5);
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    min-width: 140px;
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: #93c5fd;
}

.hero-stat-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(248, 250, 252, 0.55);
    margin-top: 0.2rem;
}

.btn-gpo-ghost-dark {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
}

.btn-gpo-ghost-dark:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: left;
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.35);
}

.feature-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}

.feature-card-icon--green {
    background: var(--success-soft);
    color: var(--success);
}

.feature-card-icon--purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.feature-card i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card h5 {
    color: white;
}

.feature-card p {
    color: rgba(248, 250, 252, 0.6) !important;
}

.how-it-works {
    margin-top: 3.5rem;
    text-align: left;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.how-it-works-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.how-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.how-steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
}

.how-step-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--info));
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.how-steps strong {
    color: white;
    display: block;
    margin-bottom: 0.15rem;
}

.how-steps p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.6);
}

/* ── Site footer (welcome page) ── */
.site-footer {
    margin-top: 2rem;
    padding: 2.5rem 0 1.5rem;
    background: #0f172a;
    color: rgba(248, 250, 252, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    letter-spacing: -0.02em;
}

.site-footer-contact h6 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(248, 250, 252, 0.45);
    margin-bottom: 0.35rem;
}

.site-footer-contact p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.65);
    font-style: italic;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer-links a {
    color: rgba(248, 250, 252, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.site-footer-links a:hover {
    color: white;
}

.site-footer-bottom {
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(248, 250, 252, 0.35);
}

@media (max-width: 575.98px) {
    .site-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .site-footer-brand {
        justify-content: center;
    }
}

/* ── Auth cards ── */
body.auth-page .navbar-gpo {
    display: none;
}

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-split-visual {
    position: relative;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
    color: white;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.auth-split-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 10%, rgba(59, 130, 246, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 90%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.auth-split-visual-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.auth-split-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.auth-split-brand:hover {
    color: white;
}

.auth-split-brand--sm {
    margin-bottom: 0;
}

.auth-split-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.auth-split-title span {
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-split-lead {
    color: rgba(248, 250, 252, 0.72);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.auth-split-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.auth-split-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.85);
}

.auth-split-features i {
    color: #34d399;
}

.auth-split-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--bg-body);
}

.auth-split-form-top {
    width: 100%;
    max-width: 420px;
    margin-bottom: 1.5rem;
}

.auth-card--flat {
    box-shadow: var(--shadow-md);
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.input-icon-wrap .form-control {
    padding-left: 2.5rem;
}

.input-password-wrap .form-control {
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.auth-link-inline {
    color: var(--accent);
    text-decoration: none;
}

.auth-link-inline:hover {
    text-decoration: underline;
}

.auth-submit {
    min-height: 46px;
    font-weight: 600;
}

.auth-card--register {
    max-width: 440px;
    width: 100%;
}

.auth-info-callout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.auth-info-callout > i {
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.auth-info-callout strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.auth-info-callout p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.auth-terms-check {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.auth-terms-check .form-check-input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.auth-terms-check .form-check-label {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.auth-terms-check .form-check-label a {
    font-weight: 600;
}

.auth-split-steps {
    display: flex;
    gap: 0.65rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.auth-split-step {
    flex: 1;
    min-width: 90px;
    text-align: center;
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-split-step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0 auto 0.35rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    font-weight: 800;
    font-size: 0.75rem;
}

.auth-split-step p {
    margin: 0;
    font-size: 0.68rem;
    color: rgba(248, 250, 252, 0.65);
    line-height: 1.3;
}

.auth-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-card-header {
    padding: 2rem 2rem 0;
    text-align: center;
}

.auth-card-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-card-body {
    padding: 1.5rem 2rem 2rem;
}

.auth-card-footer {
    padding: 1rem 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-card-footer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.verify-steps li {
    line-height: 1.55;
}

.verify-steps li::marker {
    color: var(--accent);
    font-weight: 700;
}

/* ── Modal confirm ── */
.gpo-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10100;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: modalFadeIn 0.22s ease;
}

.gpo-modal {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    animation: modalSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.gpo-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--warning-soft);
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.gpo-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.gpo-modal__message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.gpo-modal__actions {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── List items ── */
.list-item-gpo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.list-item-gpo:last-child {
    border-bottom: none;
}

.list-item-info strong {
    display: block;
    font-size: 0.875rem;
}

.list-item-info small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 0.75rem;
    display: block;
}

/* ── Collapse detail ── */
.detail-panel {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.detail-panel pre {
    font-size: 0.78rem;
    margin: 0.35rem 0 0.75rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.65rem;
}

/* ── Reference list (dashboard + histórico) ── */
.ref-table-wrap {
    padding: 0;
}

.ref-table thead th {
    white-space: nowrap;
}

.ref-table tbody tr.ref-table-row:hover {
    background: #f8fafc;
}

.ref-cell-date {
    white-space: nowrap;
    font-size: 0.82rem;
    line-height: 1.35;
}

.ref-cell-desc strong {
    font-size: 0.875rem;
    font-weight: 600;
}

.ref-cell-wallet {
    max-width: 160px;
}

.ref-cell-value {
    white-space: nowrap;
}

.ref-id-code {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    word-break: break-all;
}

.ref-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: nowrap;
}

.ref-detail-row > td {
    padding: 0 !important;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.ref-detail-panel {
    padding: 0.85rem 1.25rem 1rem;
}

.ref-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem 1.25rem;
}

.ref-detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
}

.ref-detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.ref-card-list {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ref-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.ref-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.ref-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    line-height: 1.35;
}

.ref-card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.ref-card-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
    margin: 0 0 0.85rem;
}

.ref-card-fields > div {
    min-width: 0;
}

.ref-card-fields-full {
    grid-column: 1 / -1;
}

.ref-card-fields dt {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.ref-card-fields dd {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.ref-card-fields code {
    font-size: 0.8rem;
    word-break: break-all;
}

.ref-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ref-detail-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.ref-detail-toggle i {
    transition: transform 0.2s ease;
    display: inline-block;
}

/* ── Dashboard trader terminal ── */
.trader-terminal {
    background: linear-gradient(165deg, #0f1419 0%, #151b23 45%, #121820 100%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.trader-terminal-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.trader-terminal-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.trader-terminal-brand .pair {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f1f5f9;
    letter-spacing: 0.02em;
}

.trader-terminal-brand .pair-sub {
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.trader-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.trader-tab {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: transparent;
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.trader-tab:hover {
    color: #e2e8f0;
    border-color: rgba(59, 130, 246, 0.4);
}

.trader-tab.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.55);
    color: #93c5fd;
}

.trader-ticker {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.trader-ticker::-webkit-scrollbar {
    display: none;
}

.ticker-cell {
    flex: 1 0 auto;
    min-width: 120px;
    padding: 0.65rem 1rem;
    border-right: 1px solid rgba(148, 163, 184, 0.08);
}

.ticker-cell:last-child {
    border-right: none;
}

.ticker-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(148, 163, 184, 0.75);
    margin-bottom: 0.15rem;
}

.ticker-value {
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
}

.ticker-value.up { color: #4ade80; }
.ticker-value.down { color: #f87171; }
.ticker-value.neutral { color: #94a3b8; }

.trader-chart-zone {
    position: relative;
    height: clamp(180px, 28vw, 300px);
    padding: 0.35rem 0.65rem 0.15rem;
}

.trader-chart-zone canvas {
    width: 100% !important;
    height: 100% !important;
}

.trader-chart-title {
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.65);
    padding: 0 1rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trader-terminal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.trader-progress-wrap {
    flex: 1 1 200px;
    min-width: 0;
}

.trader-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.85);
    margin-bottom: 0.35rem;
}

.trader-progress-bar {
    height: 6px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 99px;
    overflow: hidden;
}

.trader-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.trader-footer-stat {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.9);
    white-space: nowrap;
}

.trader-footer-stat strong {
    color: #e2e8f0;
}

.dashboard-kpi-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .dashboard-kpi-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 575.98px) {
    .trader-terminal-header {
        flex-direction: column;
        align-items: stretch;
    }

    .trader-tabs {
        width: 100%;
    }

    .trader-tab {
        flex: 1;
        text-align: center;
        padding: 0.45rem 0.5rem;
    }

    .ticker-cell {
        min-width: 100px;
        padding: 0.55rem 0.75rem;
    }

    .ticker-value {
        font-size: 0.9rem;
    }

    .card-gpo-header-toolbar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .card-gpo-header-toolbar .d-flex.gap-2 {
        width: 100%;
    }

    .card-gpo-header-toolbar .btn {
        flex: 1;
    }
}

/* legacy chart cards — removidos */
.chart-card .chart-card-body {
    padding: 1rem 1.15rem 1.25rem;
    min-height: 260px;
}

.chart-legend-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.chart-legend-row .bi-circle-fill {
    font-size: 0.55rem;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.chart-summary {
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.chart-summary div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.65rem;
    background: var(--surface-elevated);
    border-radius: var(--radius-sm);
}

/* ── Referências — painel melhorado ── */
.ref-panel-modern .ref-table tbody tr.ref-table-row {
    border-left: 3px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ref-panel-modern .ref-table tbody tr.ref-table-row:hover {
    background: rgba(59, 130, 246, 0.04);
    border-left-color: var(--accent);
}

.ref-panel-modern .ref-id-code {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.ref-panel-modern .ref-card {
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ref-panel-modern .ref-cell-value strong {
    color: var(--accent);
    font-size: 1.05rem;
}

.ref-source-tag {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ── Dashboard — últimas referências ── */
.card-gpo--dash-refs .card-gpo-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.dash-ref-panel {
    padding: 0.85rem 1rem 1rem;
}

.dash-ref-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.dash-ref-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.dash-ref-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    border-radius: 100px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.dash-ref-stat strong {
    color: var(--text-primary);
    font-weight: 700;
}

.dash-ref-stat--paid i {
    color: var(--success);
}

.dash-ref-stat--pending i {
    color: var(--warning);
}

.dash-ref-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.2rem;
    background: #f1f5f9;
    border-radius: 10px;
}

.dash-ref-filter {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.dash-ref-filter:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.6);
}

.dash-ref-filter.active {
    background: white;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.dash-ref-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dash-ref-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.dash-ref-item:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: var(--shadow-sm);
}

.dash-ref-item--paid {
    border-left: 3px solid var(--success);
}

.dash-ref-item--pending {
    border-left: 3px solid var(--warning);
}

.dash-ref-item-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem 0.5rem;
}

.dash-ref-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 0.45rem;
    flex-shrink: 0;
}

.dash-ref-item--paid .dash-ref-status-dot {
    background: var(--success);
    box-shadow: 0 0 0 3px var(--success-soft);
}

.dash-ref-item--pending .dash-ref-status-dot {
    background: var(--warning);
    box-shadow: 0 0 0 3px var(--warning-soft);
}

.dash-ref-body {
    flex: 1;
    min-width: 0;
}

.dash-ref-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.dash-ref-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

.dash-ref-amount {
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

.dash-ref-amount-value {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.dash-ref-amount-currency {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.15rem;
}

.dash-ref-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    margin-bottom: 0.55rem;
}

.dash-ref-num {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid var(--border);
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: border-color var(--transition), background var(--transition);
}

.dash-ref-num:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.dash-ref-num code {
    font-size: 0.78rem;
    background: none;
    color: inherit;
}

.dash-ref-copy-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dash-ref-pill {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.12rem 0.4rem;
    border-radius: 5px;
    background: var(--accent-soft);
    color: var(--accent);
}

.dash-ref-pill--muted {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
}

.dash-ref-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dash-ref-date i {
    margin-right: 0.15rem;
}

.dash-ref-progress-wrap {
    max-width: 280px;
}

.dash-ref-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.dash-ref-progress-bar {
    height: 5px;
    background: #e2e8f0;
    border-radius: 100px;
    overflow: hidden;
}

.dash-ref-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #34d399);
    border-radius: 100px;
    transition: width 0.35s ease;
}

.dash-ref-item--pending .dash-ref-progress-fill {
    background: linear-gradient(90deg, var(--warning), #fbbf24);
    width: 12% !important;
    opacity: 0.65;
}

.dash-ref-badges {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.dash-ref-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 1rem 0.85rem 2.35rem;
    border-top: 1px dashed transparent;
}

.dash-ref-detail {
    border-top: 1px solid var(--border);
    background: #f8fafc;
}

.dash-ref-detail .ref-detail-panel {
    padding: 0.75rem 1rem 1rem 2.35rem;
}

.dash-ref-detail-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.dash-ref-filter-empty {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 1.5rem 1rem;
    margin: 0;
}

.dash-ref-empty {
    padding: 1rem;
}

@media (max-width: 767.98px) {
    .dash-ref-panel {
        padding: 0.65rem 0.65rem 0.85rem;
    }

    .dash-ref-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dash-ref-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .dash-ref-filter {
        flex-shrink: 0;
    }

    .dash-ref-head {
        flex-direction: column;
        gap: 0.25rem;
    }

    .dash-ref-amount {
        text-align: left;
    }

    .dash-ref-actions {
        padding-left: 1rem;
    }

    .dash-ref-detail .ref-detail-panel {
        padding-left: 1rem;
    }

    .dash-ref-progress-wrap {
        max-width: none;
    }
}

/* ── Wallet session banner ── */
.wallet-session-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.06));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-sm);
}

.wallet-session-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.wallet-session-banner-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.wallet-session-banner-body strong {
    font-size: 0.875rem;
    word-break: break-all;
}

.wallet-session-banner-body small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wallet-session-banner-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.wallet-session-missing {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    background: var(--danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.wallet-session-missing > i {
    font-size: 1.5rem;
    color: var(--danger);
    flex-shrink: 0;
}

.wallet-session-missing strong {
    display: block;
    font-size: 0.9rem;
}

.wallet-session-missing p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ── Dashboard — espaçamento compacto ── */
body.dashboard-page .page-wrapper {
    padding: 0.65rem 1rem 1rem;
}

body.dashboard-page .topbar {
    min-height: 52px;
}

body.dashboard-page .page-header {
    margin-bottom: 0;
}

.dashboard-gap {
    margin-bottom: 0.75rem !important;
}

body.dashboard-page .dashboard-kpi-row {
    gap: 0.5rem;
}

body.dashboard-page .dashboard-kpi-row .stat-card {
    padding: 0.75rem 0.85rem;
}

body.dashboard-page .dashboard-kpi-row .stat-value {
    font-size: 1.5rem;
}

body.dashboard-page .dashboard-kpi-row .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

body.dashboard-page .trader-terminal-footer {
    padding: 0.55rem 0.85rem;
    gap: 0.65rem;
}

body.dashboard-page .ticker-cell {
    padding: 0.5rem 0.75rem;
    min-width: 100px;
}

body.dashboard-page .trader-chart-title {
    padding: 0 0.85rem 0.25rem;
}

body.dashboard-page .card-gpo-header {
    padding: 0.7rem 0.9rem;
}

body.dashboard-page .dash-ref-panel {
    padding: 0.65rem 0.75rem 0.75rem;
}

body.dashboard-page .dash-ref-toolbar {
    margin-bottom: 0.65rem;
    padding-bottom: 0.6rem;
}

/* ── Dashboard focus mode ── */
body.dashboard-focus .sidebar,
body.dashboard-focus .mobile-bottom-nav {
    display: none !important;
}

body.dashboard-focus .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-bottom: 0 !important;
}

body.dashboard-focus .dashboard-below-fold {
    display: none !important;
}

body.dashboard-focus .page-wrapper {
    max-width: none;
    padding-top: 0.5rem;
}

body.dashboard-focus .trader-chart-zone {
    min-height: min(52vh, 520px);
}

body.dashboard-focus .topbar-section {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
    }

    .sidebar-close {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0));
    }

    .sidebar-toggle {
        display: flex;
    }

    .page-wrapper {
        padding: 1rem 0.85rem 1.5rem;
    }

    .page-header h1 {
        font-size: 1.35rem;
    }

    .stat-value {
        font-size: 1.65rem;
    }

    .hero-section {
        padding: 2.5rem 0 2rem;
    }

    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-split-visual {
        display: none;
    }

    .auth-split-form {
        min-height: calc(100vh - 2rem);
        min-height: calc(100dvh - 2rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .auth-card-header,
    .auth-card-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .list-item-gpo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .list-item-gpo .btn {
        width: 100%;
    }

    .toast-container-gpo {
        left: 0.75rem;
        right: 0.75rem;
        top: auto;
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0) + 0.75rem);
    }

    .toast-gpo {
        min-width: 0;
        width: 100%;
    }

    .table-responsive {
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
    }

    .card-gpo-body {
        padding: 1rem;
    }

    .card-gpo-header {
        padding: 0.85rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        margin-bottom: 1.25rem;
    }

    .breadcrumb-gpo {
        font-size: 0.72rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .action-card {
        padding: 1rem;
    }

    .btn-gpo {
        font-size: 0.82rem;
    }

    .table-gpo thead th,
    .table-gpo tbody td {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    .page-wrapper {
        padding: 1.75rem 2rem 2.5rem;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .page-wrapper {
        padding: 2rem 2.5rem 3rem;
    }
}

/* Prevent hover lift on touch devices */
@media (hover: none) {
    .stat-card:hover,
    .action-card:hover,
    .card-gpo:hover,
    .feature-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
}

/* Icon color utilities */
.icon-blue { background: var(--accent-soft); color: var(--accent); }
.icon-green { background: var(--success-soft); color: var(--success); }
.icon-amber { background: var(--warning-soft); color: var(--warning); }
.icon-cyan { background: var(--info-soft); color: var(--info); }
.icon-purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.icon-red { background: var(--danger-soft); color: var(--danger); }

.stat-blue { --stat-accent: var(--accent); }
.stat-green { --stat-accent: var(--success); }
.stat-cyan { --stat-accent: var(--info); }
.stat-purple { --stat-accent: #8b5cf6; }
