/* ------------------------------------------- */
/* AJUSTES GERAIS DE ESPAÇAMENTO               */
/* ------------------------------------------- */
#account-account.container,
#account-transaction.container,
#account-report.container,
#account-gdpr.container,
.modern-account-page.container,
.DHSTYLE-modern-account-page.container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Remove o padding padrão das linhas do OpenCart que causa o gap no desktop */
.container.modern-account-page>.row,
.container.DHSTYLE-modern-account-page>.row,
#account-transaction>.row,
#account-report>.row,
#account-gdpr>.row,
#account-account>.row {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.container.modern-account-page>.row>.col-sm-12,
.container.DHSTYLE-modern-account-page>.row>.col-sm-12,
#account-transaction .col-sm-12,
#account-report .col-sm-12,
#account-gdpr .col-sm-12,
#account-account .col-sm-12 {
    padding-top: 0 !important;
}


/* ------------------------------------------- */
/* ESTILO GLOBAL DE BREADCRUMBS (CLEAN)        */
/* ------------------------------------------- */
.breadcrumb {
    background: transparent !important;
    border: none !important;
    margin: 0 auto !important;
    /* Centraliza o container do breadcrumb para alinhar com o site */
    padding: 0 20px !important;
    height: 30px !important;
    /* Retornado para 30px conforme solicitado */
    line-height: 30px !important;
    /* Sincroniza altura com linha de texto */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Alinhamento centralizado forçado */
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    max-width: 1540px !important;
    flex-wrap: wrap !important;
    /* Permite quebra para não sumir o primeiro item no mobile */
    overflow: hidden;
    margin-bottom: 0px !important;
    /* Fix Gap: Remove bottom space */
}




.breadcrumb>li {
    padding: 0 !important;
    text-shadow: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
}

.breadcrumb>li:after {
    display: none !important;
    /* Remove as setas de borda antigas do OC3 */
}

.breadcrumb>li+li:before {
    content: '/' !important;
    padding: 0 12px !important;
    color: #cbd5e1 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.breadcrumb>li a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.breadcrumb>li a:hover {
    color: #3751c6 !important;
}

.breadcrumb>li:last-child {
    color: #64748b !important;
    font-weight: 600 !important;
}




#account-account .row,
#content.account-page {
    padding-top: 0 !important;
    /* Fixed: Removed vertical gaps above banner */
}

.app-custom-navigation {
    -webkit-text-size-adjust: 100% !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    --fa-style-family-brands: "Font Awesome 6 Brands" !important;
    --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands" !important;
    --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free" !important;
    --fa-style-family-classic: "Font Awesome 6 Free" !important;
    --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free" !important;
    color: #333 !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    -webkit-font-smoothing: antialiased !important;
    box-sizing: border-box !important;
    list-style: none !important;
    border-radius: 0 !important;
    position: relative !important;
    background-color: transparent !important;
    width: 100% !important;
    margin: 0 auto !important;
    background-attachment: scroll !important;
    max-width: 1540px !important;
    display: block !important;
    /* Changed from flex to block per user request */
    text-align: center !important;
    padding: 10px 15px 0px 20px !important;
    /* Reduced bottom padding to 0 to approximate banner */
    white-space: nowrap !important;
    padding-left: 20px !important;
    overflow-x: hidden !important;
}

/* Ensure children behave in the block/centered container */
.app-btn-back {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    text-decoration: none !important;
    color: #3751c6 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    gap: 4px !important;
    margin-right: 15px !important;
}

.app-btn-back:hover {
    color: #293d96 !important;
    text-decoration: underline !important;
}

.app-btn-back svg {
    stroke-width: 2.5px !important;
    /* Thinner chevron arrow */
}

.app-current-page {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    color: #64748b !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    gap: 8px !important;
}

.app-current-page a {
    color: #64748b !important;
    text-decoration: none !important;
}

.app-current-page a:hover {
    color: #3751c6 !important;
}

.app-current-page .nav-slash {
    color: #cbd5e1 !important;
    /* Light gray for slash */
    font-weight: 300 !important;
}

.app-current-page i {
    font-size: 16px !important;
}

/* ------------------------------------------- */
/* HEADER ULTRA BANNER (V7)                    */
/* ------------------------------------------- */
/* ------------------------------------------- */
/* HEADER DARK PREMIUM (Modelo 4)              */
/* ------------------------------------------- */
.welcome-banner-image {
    background-color: #0f172a !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 12px !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 95px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Subtle Glow Effect from Modelo 4 */
.welcome-banner-glow {
    position: absolute !important;
    top: -50% !important;
    left: -20% !important;
    width: 60% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(55, 81, 198, 0.3) 0%, rgba(15, 23, 42, 0) 70%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.welcome-banner-glow-right {
    position: absolute !important;
    bottom: -50% !important;
    right: -10% !important;
    width: 50% !important;
    height: 180% !important;
    background: radial-gradient(circle, rgba(55, 81, 198, 0.2) 0%, rgba(15, 23, 42, 0) 70%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.welcome-banner-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 24, 0.8) 0%, rgba(15, 23, 24, 0.4) 100%) !important;
    padding: 0 25px !important;
    /* Remove vertical padding to allow perfect centering */
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    /* Alinha verticalmente no centro */
    z-index: 2 !important;
}

@media (max-width: 600px) {
    .welcome-banner-overlay {
        padding: 10px 15px !important;
        /* Tighter padding for mobile */
    }
}

/* Integrated Navigation Styles */
.nav-integrated {
    width: 100% !important;
    /* Changed from auto to 100% for mobile stability */
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    background: transparent !important;
}

.nav-integrated .app-btn-back,
.nav-integrated .app-current-page,
.nav-integrated .app-current-page a {
    color: #ffffff !important;
    /* Force white for integrated look */
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.nav-integrated .app-btn-back svg {
    width: 18px !important;
    height: 18px !important;
    stroke: rgba(255, 255, 255, 0.9) !important;
}

.nav-integrated .nav-slash {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Avatar Style: Smaller & Discrete */
.welcome-avatar-compact {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #38bdf8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    z-index: 2 !important;
}

.welcome-avatar-compact svg,
.welcome-avatar-compact i {
    width: 20px !important;
    height: 20px !important;
    color: #38bdf8 !important;
    /* Cor Sky Blue solicitada */
    stroke: #38bdf8 !important;
    /* Aplica ao contorno também */
    fill: none !important;
}

.welcome-texts {
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
    justify-content: center !important;
}

.welcome-texts h1 {
    color: #ffffff !important;
    font-size: 20px !important;
    margin: 0 !important;
    /* Remove margens que causam desalinhamento */
    padding: 0 !important;
    line-height: 1.2 !important;
}

.welcome-texts h1 strong {
    font-weight: 700 !important;
    color: #ffffff !important;
}

.welcome-texts p,
.welcome-texts p.subtitle-white {
    margin: 0 !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    padding: 0 !important;
}

.welcome-texts p.subtitle-white {
    color: #ffffff !important;
    opacity: 1 !important;
    padding: 0 !important;
    /* Force remove padding per user request */
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Sair Button in Header matching M4 style - Absolute Positioned */
.header-actions-placeholder {
    display: none !important;
    /* Removido para não interferir na centralização vertical */
}

/* Compact Section Headers */
.section-header-compact {
    display: flex !important;
    align-items: center !important;
    margin: 15px 0 12px 0 !important;
    /* Reduced top gap from 30px to 15px */
    gap: 12px !important;
    padding: 0 5px !important;
}

.section-header-compact svg {
    color: #3751c6 !important;
    flex-shrink: 0 !important;
}

.section-header-compact h2 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
}

.app-list-container {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 25px !important;
    overflow: hidden !important;
    display: block !important;
    width: 100% !important;
}

/* Row Reset and Force Row */
div#content .app-list-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 16px 20px !important;
    text-decoration: none !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: all 0.2s ease-in-out !important;
    background: #ffffff !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    gap: 15px !important;
    /* Added gap for consistent spacing between icon and title */
}

div#content .app-list-item:hover {
    background-color: #f8fafc !important;
    padding-left: 28px !important;
}

div#content .app-list-item:last-child {
    border-bottom: none !important;
}

div#content .app-list-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
}

div#content .app-list-item span {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    flex: 1 !important;
    text-align: left !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

div#content .chevron-right {
    color: #cbd5e1 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
}

div#content .app-list-item:hover .chevron-right {
    transform: translateX(4px) !important;
    color: #3751c6 !important;
}

div#content .app-list-item:hover .app-list-icon {
    color: #3751c6 !important;
}

/* Logout Override */
div#content .logout-item {
    color: #ef4444 !important;
}

div#content .logout-item:hover {
    background-color: #fef2f2 !important;
}

div#content .logout-item .app-list-icon {
    color: #ef4444 !important;
}

div#content .logout-item span {
    color: #ef4444 !important;
}

div#content .logout-item .chevron-right {
    color: #fca5a5 !important;
}

div#content .logout-item:hover .app-list-icon,
div#content .logout-item:hover .chevron-right {
    color: #dc2626 !important;
}

/* Item de Logout específico */
.logout-item {
    color: #ef4444;
    /* Vermelho claro */
}

.logout-item .app-list-icon {
    color: #ef4444;
}

.logout-item:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.logout-item:hover .app-list-icon {
    color: #dc2626;
}

.app-list-divider {
    height: 8px;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

/* ------------------------------------------- */
/* AJUSTES PARA REMOVER ESPAÇO VAZIO MOBILE    */
/* ------------------------------------------- */
@media (max-width: 767px) {
    #content {
        min-height: auto !important;
        /* Remove o min-height: 600px que causava o gap */
        display: flex !important;
        flex-direction: column !important;
    }

    /* Reduz o espaço após o último elemento útil */
    .buttons.clearfix.DHSTYLE-buttons-container {
        margin-bottom: 5px !important;
        margin-top: 5px !important;
    }

    #content.account-page,
    div#content.account-page,
    .container #content {
        padding-bottom: 5px !important;
    }

    /* Garante que o content_bottom fique colado se estiver presente */
    #content>div:last-child {
        margin-bottom: 0 !important;
    }

    /* Reduz o padding do container de linha no mobile */
    .container.modern-account-page>.row,
    #account-transaction>.row,
    #account-report>.row {
        padding-bottom: 5px !important;
    }
}

@media (max-width: 600px) {

    #account-account.container,
    #account-report.container,
    #account-gdpr.container,
    .container.modern-account-page,
    .container.DHSTYLE-modern-account-page {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }


    .welcome-banner-image {
        border-radius: 0;
        margin-left: -15px;
        /* Estica pra fora no mobile se a página tiver container pading */
        margin-right: -15px;
        margin-bottom: 0px;
        /* Reduced to control gap via inventory container */
        min-height: 140px;
    }

    .inventory-container {
        margin-top: 15px !important;
    }

    .app-list-container {
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        margin-bottom: 10px !important;
        /* Reduced from 20/25px to keep footer close */
    }

    #account-account .row,
    #content.account-page {
        padding-bottom: 10px !important;
        /* Fixed: Removed the 60px padding that created the gap */
    }

    .app-list-item {
        padding: 18px 0;
        /* Remove o padding lateral no mobile seguindo sua imagem limite a limite */
    }

    .app-list-item span {
        font-size: 16px;
    }

    .app-list-divider {
        margin: 0 -15px;
    }
}

/* Modern Back Button (Design matching Header) */
.DHSTYLE-modern-back-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #475569 !important;
    /* Dark slate for footer context */
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    padding: 8px 0 !important;
}

.DHSTYLE-modern-back-link:hover {
    color: #1e293b !important;
    transform: translateX(-3px);
}

.DHSTYLE-modern-back-link svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
}

/* ========================================================= */
/* INTEGRATED GRID / LIST VIEW CONTROLS                      */
/* ========================================================= */
.section-header-compact {
    display: flex !important;
    flex-direction: row !important;
    /* Força direção horizontal */
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    padding-bottom: 8px !important;
    width: 100% !important;
    gap: 15px !important;
}

.section-header-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-grow: 1 !important;
    gap: 12px !important;
    /* Added gap to prevent icon from touching text */
}

.section-header-left h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #334155 !important;
    line-height: normal !important;
}

.grid-list-view-controls {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.keys-view-controls-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    margin-bottom: 15px !important;
    padding: 0 5px !important;
    width: 100% !important;
    min-height: 35px !important;
    /* Garante altura para os botões */
}



.grid-list {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dh-view-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 32px;
    /* Reduzido de 42px para 32px para ficar mais discreto */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}


.dh-view-btn i {
    font-size: 16px;
}

.dh-view-btn:hover {
    background: #fff;
    color: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.dh-view-btn.active {
    background: #3b82f6;
    color: #fff !important;
    border-color: #2563eb;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.dh-view-btn.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    /* Garante que o ícone fique branco como no my_keys */
}

.view-label-modern {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* User Grid Layout (Dashboard v4) */
.card-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    /* border: 1px solid #e2e8f0; */
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.modern-button-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none !important;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 8px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
}

.modern-button-card i {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.modern-button-card.highlight-blue i,
.modern-button-card.highlight-blue svg,
.app-list-item.highlight-blue i,
.app-list-item.highlight-blue svg {
    color: #3b82f6 !important;
    stroke: #3b82f6 !important;
}

.modern-button-card.highlight-orange i,
.modern-button-card.highlight-orange svg,
.app-list-item.highlight-orange i,
.app-list-item.highlight-orange svg {
    color: #f59e0b !important;
    stroke: #f59e0b !important;
}

.modern-button-card.highlight-purple i,
.modern-button-card.highlight-purple svg,
.app-list-item.highlight-purple i,
.app-list-item.highlight-purple svg {
    color: #8b5cf6 !important;
    stroke: #8b5cf6 !important;
}

.modern-button-card span {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.modern-button-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    color: #3751c6;
}

.modern-button-card:hover i,
.modern-button-card:hover svg {
    color: #3751c6;
    stroke: #3751c6;
    transform: scale(1.1);
}

.modern-button-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

@media (max-width: 900px) {
    .user-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .section-header-compact h2 {
        font-size: 13px !important;
    }

    .card-container {
        padding: 15px;
    }

    .user-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .modern-button-card {
        padding: 15px 8px;
    }

    .modern-button-card i {
        font-size: 22px;
    }

    .modern-button-card span {
        font-size: 11px;
    }

    /* Forçar 30px no breadcrumb mobile */
    .breadcrumb {
        height: 30px !important;
        min-height: 30px !important;
        line-height: 30px !important;
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        overflow: hidden !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .breadcrumb li {
        display: flex !important;
        align-items: center !important;
        height: 30px !important;
        line-height: normal !important;
    }
}

.btn-como-usar-under-img {
    text-decoration: none !important;
    color: inherit !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    font-size: inherit !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.btn-como-usar-under-img:hover {
    text-decoration: none !important;
    opacity: 0.8 !important;
    outline: none !important;
}

.btn-como-usar-under-img:focus,
.btn-como-usar-under-img:focus-visible,
.btn-como-usar-under-img:active {
    outline: none !important;
    box-shadow: none !important;
}

/* AJUSTES ENDEREÇOS */
.address-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .modern-account-page .form-horizontal .form-group .col-sm-10 {
        width: 100% !important;
        /* Libera o container para ocupar a linha toda */
    }

    .modern-account-page .form-control {
        width: 50% !important;
        /* Campo ocupa 50% da linha */
        min-width: 320px !important;
    }

    .modern-account-page .control-label {
        width: 100% !important;
        text-align: left !important;
        padding-top: 0 !important;
        margin-bottom: 8px !important;
        display: block !important;
        float: none !important;
    }
}

.welcome-avatar-compact svg {
    width: 34px !important;
    height: 34px !important;
    display: block !important;
    margin: 0 auto !important;
}
/* ------------------------------------------------
   Order Details & Timeline (Shared)
   ------------------------------------------------ */
.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
}

.info-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
}

.info-item b {
    color: #1e293b;
    font-weight: 600;
}

.info-item .value {
    color: #64748b;
}

/* Timeline */
.history-timeline {
    position: relative;
    padding-left: 32px;
    margin-top: 15px;
}

.history-item {
    position: relative;
    padding: 12px 18px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 14px;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    z-index: 2;
}

.history-item.is-current::after,
.history-item:last-child::after {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    position: absolute;
    left: -28px;
    top: 14px;
    width: 24px;
    height: 24px;
    font-size: 11px;
    z-index: 3;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.history-connector {
    position: absolute;
    left: -17.5px;
    top: 38px;
    width: 3px;
    height: calc(100% + 5px);
    background: #f1f5f9;
    z-index: 1;
}

.history-item[data-status*="Aguardando"]::before, 
.history-item[data-status*="Processando"]::before { border-color: #f59e0b !important; background: #fffbeb !important; }
.history-item[data-status*="Aguardando"]::after { content: '\f017' !important; color: #b45309 !important; font-weight: 400 !important; }
.history-item[data-status*="Processando"]::after { content: '\f013' !important; color: #b45309 !important; }

.history-item[data-status*="Conclu�do"]::before,
.history-item[data-status*="Liberado"]::before,
.history-item[data-status*="Resgatado"]::before { border-color: #10b981 !important; background: #ecfdf5 !important; }
.history-item[data-status*="Conclu�do"]::after,
.history-item[data-status*="Liberado"]::after,
.history-item[data-status*="Resgatado"]::after { content: '\f00c' !important; color: #047857 !important; }

.history-item[data-status*="Cancelado"]::before { border-color: #ef4444 !important; background: #fee2e2 !important; }
.history-item[data-status*="Cancelado"]::after { content: '\f057' !important; color: #b91c1c !important; }

.order-id-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.order-copy-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-copy-btn:hover {
    background: #e2e8f0;
    color: #3b82f6;
}

.copy-feedback {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.copy-feedback.visible {
    opacity: 1;
}

@media (max-width: 767px) {
    .order-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .history-timeline {
        padding-left: 28px;
    }
    .history-item::before,
    .history-item.is-current::after,
    .history-item:last-child::after {
        left: -24px;
        width: 20px;
        height: 20px;
        top: 12px;
        font-size: 10px;
    }
    .history-connector {
        left: -15px;
    }
}


/* Address List Modern Actions */
.address-actions-modern {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: flex-start;
}
.address-actions-modern a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #edf2f9;
    background: #fff;
}
.address-actions-modern a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.btn-address-modern-edit { color: #3b82f6; }
.btn-address-modern-edit:hover { background: #f0f7ff; border-color: #3b82f6; }
.btn-address-modern-delete { color: #ef4444; }
.btn-address-modern-delete:hover { background: #fff1f2; border-color: #ef4444; }



/* Re-align Address Actions to Top Right */
.address-info {
    position: relative !important;
    padding-top: 20px !important;
    padding-right: 120px !important;
}
.address-actions-modern {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    margin-top: 0 !important;
    gap: 10px !important;
}
.address-actions-modern a {
    padding: 6px 10px !important;
    border-radius: 6px !important;
}
.address-actions-modern a span {
    display: none !important; /* Hide labels as requested by 'icons' preference */
}



/* Modern Modal Styles */
.modern-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}
.modern-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalAppear 0.3s ease-out;
}
@keyframes modalAppear {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modern-modal-icon {
    margin-bottom: 20px;
}
.modern-modal-content h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}
.modern-modal-content p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 30px;
}
.modern-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.btn-modal-cancel, .btn-modal-confirm {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none !important;
}
.btn-modal-cancel {
    background: #f1f5f9;
    color: #475569;
}
.btn-modal-cancel:hover { background: #e2e8f0; }
.btn-modal-confirm {
    background: #ef4444;
    color: #fff;
}
.btn-modal-confirm:hover { background: #dc2626; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }

