﻿/* ==================== TRUEBLOCKER PREMIUM DESIGN SYSTEM ==================== */
/* Apple/Linear Aesthetic: Minimalista, Responsivo, Animações Orgânicas */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ==================== DESIGN TOKENS ==================== */
:root {
 
}

/* ==================== GLOBAL RESET & BASE STYLES ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-primary);
    font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Spotlight Effect Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(201, 151, 58, 0.08),
        transparent 40%
    );
    pointer-events: none;
    z-index: 0;
    transition: opacity var(--transition-smooth);
    opacity: 0.6;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.75rem);
}

h5 {
    font-size: clamp(1.125rem, 1rem + 0.3vw, 1.5rem);
}

h6 {
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.25rem);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

/* ==================== GLASSMORPHISM CARDS ==================== */
/* Apenas .glass-card (login/cadastro/planos) e .resource-card aqui.
   Os 9 cards interativos do dashboard (.protecao-card, .blindagem-card,
   .profile-card, .plano-card etc.) são totalmente definidos em dashboard.css
   e animados por dashboard-hover.css — não devem aparecer neste grupo. */
.glass-card,
.resource-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.25rem, 1rem + 1vw, 2rem);
    /* transition limitada para não interferir com transform/opacity controlados pelo GSAP */
    transition: background var(--transition-base),
                border-color var(--transition-base),
                box-shadow var(--transition-base),
                color var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(201, 151, 58, 0.3);
    /* transform removido — levitação de card é governada exclusivamente
       por dashboard-hover.css (fonte única, POLISH-MEGA 2/3) */
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201, 151, 58, 0.1);
}

.glass-card:hover::before {
    opacity: 1;
}

/* ==================== BUTTONS (LUXURY FEEDBACK) ==================== */
button,
.btn,
.btn-primary,
.btn-secondary {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
    padding: clamp(0.625rem, 0.5rem + 0.5vw, 1rem) clamp(1.25rem, 1rem + 1vw, 2rem);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    white-space: nowrap;
}

.btn-primary,
button:not(.btn-secondary):not(.btn-logout-sidebar):not(.nav-item):not(.sidebar-access-btn):not(.btn-icon):not(.btn-block):not(.btn-plain) {
    background: linear-gradient(135deg, #8B6914 0%, #C9973A 100%);
    color: #F0E6CC;
    box-shadow: 0 4px 12px rgba(201, 151, 58, 0.25);
}

.btn-primary:hover,
button:not(.btn-secondary):not(.btn-logout-sidebar):not(.nav-item):not(.sidebar-access-btn):not(.btn-icon):not(.btn-block):not(.btn-plain):hover {
    box-shadow: 0 6px 20px rgba(201, 151, 58, 0.4);
    transform: translateY(-0.125rem);
}

/* DASH-UI-POLISH: o :active generico saiu daqui. Existiam TRES animacoes de
   aperto concorrentes (esta scale(0.97), a elasticScale do dashboard.css e a
   elastic-press do .btn-delete). Sobrou UMA, no fim do dashboard.css. */

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Shimmer Effect on Hover */
.btn-primary::before,
button:not(.btn-secondary):not(.sidebar-access-btn):not(.btn-icon)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left var(--transition-slow);
}

.btn-primary:hover::before,
button:not(.btn-secondary):not(.sidebar-access-btn):not(.btn-icon):hover::before {
    left: 100%;
}

/* ==================== INPUTS ==================== */
input,
textarea,
select {
    font-family: var(--font-primary);
    font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
    padding: clamp(0.75rem, 0.6rem + 0.5vw, 1rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-base);
    width: 100%;
    backdrop-filter: var(--glass-blur);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-tertiary);
}

/* ==================== SIDEBAR (LUXURY HOVER) ==================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    padding: var(--space-xl) var(--space-lg);
    padding-bottom: 6rem;
    overflow-y: auto;
    z-index: var(--z-fixed);
    transition: transform var(--transition-base);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: clamp(0.75rem, 0.6rem + 0.3vw, 1rem) var(--space-md);
    margin-bottom: var(--space-xs);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
    text-align: left;
    font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
    position: relative;
    overflow: hidden;
}

/* Internal Glow on Hover */
.nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(201, 151, 58, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    transition: all var(--transition-base);
    border-radius: 50%;
}

.nav-item:hover::before {
    width: 200%;
    height: 200%;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(201, 151, 58, 0.08);
}

.nav-item:hover svg {
    transform: scale(1.1);
    transition: transform var(--transition-fast);
}

.nav-item.active {
    color: var(--color-primary);
    background: rgba(201, 151, 58, 0.12);
    font-weight: 600;
}

.nav-item svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

/* ==================== ADVANCED ANIMATIONS ==================== */

/* fadeInUpScale + .animate-in stagger REMOVIDOS — GSAP Fase 2 controla entrada de cards */

/* Pulse Effect for Buttons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(201, 151, 58, 0.25);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(201, 151, 58, 0.4);
    }
}

button:not(.btn-secondary):not(.btn-logout-sidebar):not(.nav-item):not(.nav-section-toggle):not(.sidebar-access-btn):hover {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Gradient Shift on Hover */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* DASH-UI-POLISH: `animation: gradientShift 3s ease infinite` saiu daqui.
   Esta regra pega TODO <button> sem as classes de excecao — eram ~53 botoes no
   dashboard pulsando o gradiente em loop, para sempre. O gradiente fica; o
   movimento perpetuo, nao. */
.btn-primary,
button:not(.btn-secondary):not(.btn-logout-sidebar):not(.nav-item):not(.nav-section-toggle):not(.sidebar-access-btn):not(.btn-icon):not(.btn-block):not(.btn-plain) {
    background: linear-gradient(135deg, #8B6914 0%, #E8C46A 50%, #C9973A 100%);
}

/* @keyframes spring REMOVIDO — sem uso (causava bolinhas duplicadas) */

/* Slide Lateral for Tab Transitions */
@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-2rem);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-section {
    animation: slideInRight 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.content-section.hiding {
    animation: slideOutLeft 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Item Deletion Animation */
@keyframes itemDelete {
    0% {
        opacity: 1;
        transform: scale(1);
        max-height: 100px;
        margin-bottom: var(--space-sm);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.deleting-item {
    animation: itemDelete 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

/* Trash Icon Styles */
.btn-delete,
.trash-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0.375rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    color: rgba(239, 68, 68, 0.7);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0; /* Prevent layout breaking on small screens */
}

.btn-delete:hover,
.trash-icon-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
}

.btn-delete svg,
.trash-icon-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* DASH-UI-POLISH: @keyframes elastic-press e seu unico uso (.btn-delete:active)
   removidos — o aperto agora e um so, no fim do dashboard.css. */

/* ==================== SKELETON LOADING ==================== */

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Skeleton Base */
.skeleton {
    background: linear-gradient(
        90deg,
        #1a1a1a 25%,
        #252525 50%,
        #1a1a1a 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

/* Skeleton Variants */
.skeleton-text {
    height: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-card {
    min-height: 8rem;
    padding: var(--space-lg);
}

.skeleton-list-item {
    height: 3rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    padding: 0 var(--space-md);
}

.skeleton-metric {
    min-height: 6rem;
    border-radius: var(--radius-lg);
}

/* Skeleton Grid */
.skeleton-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

/* Hide content when loading */
.loading-state > *:not(.skeleton) {
    display: none;
}

/* ==================== MASTER SWITCH GLOW PULSE ==================== */

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(201, 151, 58, 0.3),
            0 0 20px rgba(201, 151, 58, 0.2),
            0 0 30px rgba(201, 151, 58, 0.1);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(201, 151, 58, 0.5),
            0 0 30px rgba(201, 151, 58, 0.3),
            0 0 45px rgba(201, 151, 58, 0.2);
    }
}

/* Apply to Master Switch when ON */
.toggle-switch-large input:checked + .toggle-slider-large,
.master-switch.active .toggle-slider-large,
.shield-switch.active .toggle-slider-large {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Extra emphasis for master shield */
.master-shield-toggle input:checked + .toggle-slider-large {
    animation: glowPulse 2s ease-in-out infinite;
    border: 2px solid rgba(201, 151, 58, 0.5);
}

/* ==================== ENHANCED DELETION ==================== */

/* Improved deletion with smooth layout transition */
.deleting-item {
    animation: itemDelete 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

/* @keyframes itemDelete duplicado removido — definição canônica na linha ~485 */

/* Smooth list reorganization */
.list-container,
.url-list,
.keyword-list {
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== SIDEBAR PREMIUM INTERACTIONS ==================== */

/* Magnetic Slide Indicator */
.sidebar-nav {
    position: relative;
}

.magnetic-indicator {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.75rem;
    background: rgba(201, 151, 58, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 151, 58, 0.3);
    border-radius: 0.75rem;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

/* Nav Items Elastic Interaction */
.nav-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1);
    z-index: 1;
}

/* Spring Animation on Click */
@keyframes springPop {
    0% { transform: scale(1); }
    25% { transform: scale(0.96); }
    50% { transform: scale(1.04); }
    75% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.nav-item:active {
    animation: springPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Active Item - Icon Glow Pulse */
@keyframes iconGlowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(201, 151, 58, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(201, 151, 58, 0.7));
    }
}

.nav-item.active svg {
    animation: iconGlowPulse 3s ease-in-out infinite;
    color: #C9973A;
}

/* Active Item - Text Enhancement */
.nav-item.active span {
    letter-spacing: 0.03em;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1);
}

/* Hover Glass Effect with Cursor Tracking */
.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.08) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-item:hover::before {
    opacity: 1;
}

/* Hover State Enhancement */
.nav-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(0.125rem);
}

.nav-item:hover:not(.active) svg {
    transform: scale(1.1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Bottom Nav Items (Mobile) */
.bottom-nav-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1);
}

.bottom-nav-item:active {
    animation: springPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bottom-nav-item.active svg {
    animation: iconGlowPulse 3s ease-in-out infinite;
}

/* ==================== PROFILE SECTION PREMIUM ==================== */

/* Profile Container - Paridade com Dashboard Cards */
.profile-container {
    max-width: min(720px, 100%);  /* DASH-UI-POLISH: idem dashboard.css */
    margin: 0 auto;
    padding: 0 1rem;
}

.profile-header {
    margin-bottom: 2rem;
}

.profile-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #E8C46A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.profile-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Profile Card Enhanced - Paridade Total com Dashboard Cards */
.profile-card {
    background: var(--glass-bg, rgba(13, 13, 18, 0.7));
    backdrop-filter: var(--glass-blur, blur(20px));
    -webkit-backdrop-filter: var(--glass-blur, blur(20px));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-glass, 0 8px 32px 0 rgba(0, 0, 0, 0.37));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Header - Dashboard Style */
.profile-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
}

.profile-card .card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0;
    letter-spacing: -0.01em;
}

.profile-card .card-content {
    padding: 24px;
}

/* Avatar Section - Horizontal Layout */
.avatar-upload-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(201, 151, 58, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(201, 151, 58, 0.08);
}

.avatar-container {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.avatar-container > * {
    display: flex !important;
    visibility: visible !important;
}

#avatarPreviewContainer {
    position: relative;
    width: 5rem;
    height: 5rem;
    min-width: 5rem;
    min-height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201, 151, 58, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin: 0;
    flex-shrink: 0;
}

#avatarPreviewContainer:hover {
    transform: scale(1.05);
    border-color: rgba(201, 151, 58, 0.6);
    box-shadow: 
        0 0 30px rgba(201, 151, 58, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.4);
}

.avatar-image,
.avatar-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    background: linear-gradient(135deg, rgba(201, 151, 58, 0.2), rgba(201, 151, 58, 0.1));
    color: rgba(201, 151, 58, 0.7);
}

.avatar-placeholder svg {
    width: 3rem;
    height: 3rem;
}

/* Avatar Upload Button - Outline Secondary Style */
.avatar-upload-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.avatar-upload-btn:hover {
    background: rgba(201, 151, 58, 0.1);
    border-color: rgba(201, 151, 58, 0.4);
    color: #C9973A;
    transform: translateY(-1px);
}

.avatar-upload-btn:active {
    transform: scale(0.98);
}

.avatar-upload-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Form Styles */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.5));
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.form-group label svg {
    width: 0.875rem;
    height: 0.875rem;
    color: rgba(201, 151, 58, 0.6);
}

/* Premium Input Style - Dashboard Consistency */
.form-input {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    color: var(--text-primary, #ffffff);
    font-size: 0.875rem;
    font-family: var(--font-primary, 'Inter', sans-serif);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    outline: none;
    border-color: rgba(201, 151, 58, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.1);
    transform: translateY(-0.0625rem);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-group small {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Plan Badge Display - Compact */
.plan-display {
    padding: 0.75rem 1rem;
    background: rgba(201, 151, 58, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(201, 151, 58, 0.15);
    display: inline-block;
    width: fit-content;
}

/* Save Button - Primary Action */
.btn-save-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-premium, linear-gradient(135deg, #C9973A 0%, #E8C46A 100%));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(201, 151, 58, 0.3);
    margin-top: 0.5rem;
}

.btn-save-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 151, 58, 0.4);
}

.btn-save-profile:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(201, 151, 58, 0.3);
}

.btn-save-profile svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* ==================== RESPONSIVE UTILITIES ==================== */

.container {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
}

.main-container {
    margin-left: 16rem;
    padding: clamp(1.5rem, 2vw, 3rem);
    padding-top: clamp(5rem, 4rem + 2vh, 7rem);
    min-height: 100vh;
}

/* Grid System */
.grid {
    display: grid;
    gap: clamp(1rem, 1.5vw, 2rem);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

/* Flex Utilities */
.flex {
    display: flex;
    gap: var(--space-md);
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* ==================== MOBILE RESPONSIVENESS ==================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: var(--z-modal);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-container {
        margin-left: 0;
        padding-bottom: 5rem;
    }
    
    /* Profile Card Mobile */
    .profile-container {
        max-width: 100%;
        padding: 0 0.75rem;
    }
    
    .profile-card .card-header {
        padding: 1rem 1.25rem;
    }
    
    .profile-card .card-content {
        padding: 1.25rem;
    }
    
    .avatar-upload-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .avatar-container {
        flex-direction: column !important;
        gap: 1rem;
        width: auto;
    }
    
    #avatarPreviewContainer {
        width: 4.5rem;
        height: 4.5rem;
    }
    
    .avatar-upload-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Floating Bottom Navigation */
    .bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: var(--glass-blur);
        border-top: 1px solid var(--glass-border);
        padding: var(--space-sm) var(--space-md);
        justify-content: space-around;
        align-items: center;
        z-index: var(--z-fixed);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: var(--space-sm);
        color: var(--text-secondary);
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all var(--transition-fast);
        font-size: 0.75rem;
        flex: 1;
        max-width: 5rem;
    }
    
    .bottom-nav-item svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .bottom-nav-item:active {
        transform: scale(0.95);
    }
    
    .bottom-nav-item.active {
        color: var(--color-primary);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* ==================== LOADING & SKELETON ==================== */
/* @keyframes shimmer duplicado removido — definição canônica na linha ~560 */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* ==================== SCROLLBAR STYLING ==================== */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 151, 58, 0.3);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 151, 58, 0.5);
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
