/* ========= VARIÁVEIS DO SISTEMA ========= */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #f39c12;
    --tertiary-color: #2ecc71;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --light-text: #666;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #64b5f6;
    --secondary-color: #ffb74d;
    --tertiary-color: #81c784;
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --light-text: #aaa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

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

html {
    font-size: 16px;
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: var(--text-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    transition: background-color var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ========= LOADING SCREEN ========= */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 300;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body.loaded .loading {
    opacity: 0;
    pointer-events: none;
}

/* ========= FORMAS ANIMADAS DE FUNDO ========= */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    opacity: 0.12;
    z-index: 0;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

.shape-1 {
    width: min(300px, 40vw);
    height: min(300px, 40vw);
    background: rgba(74, 144, 226, 0.4);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: min(200px, 30vw);
    height: min(200px, 30vw);
    background: rgba(243, 156, 18, 0.4);
    bottom: 10%;
    right: 5%;
    animation-delay: 5s;
}

.shape-3 {
    width: min(250px, 35vw);
    height: min(250px, 35vw);
    background: rgba(46, 204, 113, 0.4);
    top: 60%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(20px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-15px, 15px) rotate(240deg);
    }
}

/* ========= CONTAINER PRINCIPAL ========= */
.container {
    width: 100%;
    height: 100%;
    padding: 80px 20px 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
}

/* ========= CONTROLES FIXOS ========= */
.clock {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    font-weight: 600;
    color: var(--text-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: slideInLeft 0.8s ease-out;
    max-width: calc(100% - 120px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all var(--transition-speed) ease;
}

[data-theme="dark"] .clock {
    background: rgba(30, 30, 30, 0.95);
}

.clock i {
    color: var(--primary-color);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ========= BOTÃO DE TEMA ========= */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: none;
    width: 46px;
    height: 46px;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    animation: slideInRight 0.8s ease-out;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(30, 30, 30, 0.95);
}

.theme-toggle:hover {
    transform: rotate(15deg);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(40, 40, 40, 0.95);
}

.theme-toggle i {
    position: absolute;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.theme-toggle .fa-sun {
    color: var(--secondary-color);
}

.theme-toggle .fa-moon {
    color: var(--primary-color);
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 1;
    transform: rotate(0deg);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ========= HEADER ========= */
header {
    text-align: center;
    color: white;
    width: 100%;
    max-width: 800px;
    margin-bottom: 3rem;
    padding-top: 40px;
}

.header-content {
    padding: 0 20px;
}

.logo {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.3px;
    line-height: 1.3;
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--tertiary-color) 0%, 
        var(--tertiary-color) 20%, 
        var(--secondary-color) 20%, 
        var(--secondary-color) 100%);
    border-radius: 2px;
}

.subtitle {
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    opacity: 0.9;
    font-weight: 400;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========= CONTEÚDO PRINCIPAL ========= */
.main-content {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 0 30px;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}

/* ========= CARDS DOS PORTAIS ========= */
.portal-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: clamp(30px, 4vw, 40px);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    animation: fadeInUp 0.6s ease-out backwards;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .portal-card {
    background: #2d2d2d;
    border-color: #444;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--tertiary-color) 0%, 
        var(--tertiary-color) 20%, 
        var(--secondary-color) 20%, 
        var(--secondary-color) 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: transform var(--transition-speed) ease;
    transform: scaleX(0);
    transform-origin: left;
}

.portal-card:hover::before,
.portal-card:focus::before {
    transform: scaleX(1);
}

.portal-card:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

.portal-card:nth-child(1) {
    animation-delay: 0.3s;
}

.portal-card:nth-child(2) {
    animation-delay: 0.4s;
}

.portal-card:hover,
.portal-card:focus {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-color);
}

/* ========= ÍCONES DOS PORTAIS ========= */
.portal-icon {
    width: clamp(70px, 12vw, 85px);
    height: clamp(70px, 12vw, 85px);
    margin: 0 auto 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: white;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
}

.portal-icon.cav {
    background: linear-gradient(135deg, var(--primary-color), #3a7bc8);
}

.portal-icon.tupperware {
    background: linear-gradient(135deg, var(--tertiary-color), #27ae60);
}

.portal-card:hover .portal-icon,
.portal-card:focus .portal-icon {
    transform: scale(1.05);
    box-shadow: var(--card-hover-shadow);
}

/* ========= TEXTOS DOS CARDS ========= */
.portal-card h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.7rem);
    color: var(--text-color);
    margin-bottom: 12px;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
}

.portal-card p {
    color: var(--light-text);
    text-align: center;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}

/* ========= CONTADOR DE LINKS ========= */
.links-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 auto;
    width: fit-content;
    transition: all var(--transition-speed) ease;
}

[data-theme="dark"] .links-count {
    background: rgba(100, 181, 246, 0.15);
}

.portal-card:hover .links-count,
.portal-card:focus .links-count {
    background: rgba(243, 156, 18, 0.15);
    color: var(--secondary-color);
    transform: scale(1.05);
}

/* ========= SETA ANIMADA ========= */
.arrow-icon {
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-speed) ease;
}

.portal-card:hover .arrow-icon,
.portal-card:focus .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* ========= FOOTER ========= */
footer {
    background: var(--primary-color);
    color: white;
    padding: 18px;
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 800px;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    font-size: 0.85rem;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
}

footer p {
    margin: 0;
    line-height: 1.6;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

footer a:hover {
    color: var(--secondary-color);
}

/* ========= RESPONSIVIDADE AVANÇADA ========= */
@media (max-width: 768px) {
    .container {
        padding: 70px 15px 15px;
        justify-content: flex-start;
    }
    
    .clock {
        top: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
        max-width: calc(100% - 110px);
    }
    
    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    header {
        padding-top: 30px;
        margin-bottom: 2rem;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .portals-grid {
        gap: 20px;
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    
    .portal-card {
        min-height: 260px;
        padding: 25px 20px;
    }
    
    .portal-icon {
        margin-bottom: 20px;
    }
    
    footer {
        margin-top: 2rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 65px 12px 12px;
    }
    
    .clock {
        top: 12px;
        left: 12px;
        padding: 9px 14px;
        font-size: 0.8rem;
        max-width: calc(100% - 100px);
    }
    
    .theme-toggle {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    header {
        padding-top: 25px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .portals-grid {
        gap: 15px;
    }
    
    .portal-card {
        min-height: 240px;
        padding: 20px 15px;
    }
    
    .portal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .portal-card h2 {
        font-size: 1.3rem;
    }
    
    .portal-card p {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    
    .links-count {
        font-size: 0.8rem;
        padding: 7px 14px;
    }
    
    .arrow-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        right: 15px;
        bottom: 15px;
    }
    
    footer {
        padding: 12px;
        font-size: 0.8rem;
        margin-top: 1.5rem;
    }
}

/* ========= AJUSTES PARA SCALE 125% ========= */
@media screen and (min-resolution: 120dpi) {
    .container {
        transform: none !important;
        padding: 90px 25px 25px !important;
    }
    
    .clock {
        top: 25px;
        left: 25px;
        font-size: 0.95rem;
    }
    
    .theme-toggle {
        top: 25px;
        right: 25px;
    }
    
    header {
        padding-top: 40px !important;
    }
}

/* ========= AJUSTES PARA TELAS ALTAS E BAIXAS ========= */
@media (max-height: 700px) {
    .container {
        padding-top: 60px !important;
        justify-content: flex-start;
    }
    
    header {
        padding-top: 10px !important;
        margin-bottom: 1.5rem;
    }
    
    .portal-card {
        min-height: 220px;
    }
    
    .portal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .portal-card h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .portal-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    footer {
        margin-top: 1rem;
        padding: 12px;
    }
}

@media (min-height: 900px) {
    .container {
        padding-top: 100px;
    }
    
    header {
        padding-top: 60px;
        margin-bottom: 4rem;
    }
    
    .portal-card {
        min-height: 320px;
    }
    
    .portal-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
        margin-bottom: 30px;
    }
    
    .portal-card h2 {
        font-size: 1.8rem;
    }
    
    .portal-card p {
        font-size: 1.1rem;
    }
}

/* ========= LANDSCAPE ========= */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 60px 15px 15px;
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }
    
    header {
        margin-bottom: 0;
        padding-top: 0;
        max-width: 300px;
        text-align: left;
    }
    
    .main-content {
        padding-bottom: 0;
        flex: 1;
    }
    
    .portals-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        gap: 15px;
    }
    
    .portal-card {
        min-height: 200px;
        padding: 20px;
    }
    
    .portal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .portal-card h2 {
        font-size: 1.1rem;
    }
    
    .portal-card p {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .links-count {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    footer {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        padding: 10px;
        margin-top: 0;
    }
}

/* ========= TELAS MUITO LARGAS ========= */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
        padding: 100px 40px 40px;
    }
    
    .portals-grid {
        max-width: 1000px;
        gap: 40px;
    }
    
    .portal-card {
        min-height: 320px;
        padding: 40px;
    }
    
    .portal-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
        margin-bottom: 30px;
    }
    
    .portal-card h2 {
        font-size: 1.8rem;
    }
    
    .portal-card p {
        font-size: 1.1rem;
        max-width: 350px;
    }
    
    .links-count {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* ========= ACESSIBILIDADE ========= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .portal-card:hover .portal-icon {
        transform: scale(1.05);
    }
    
    .portal-card::before {
        transition: none;
    }
}

/* Melhorias de foco para acessibilidade */
.portal-card:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Suporte para navegadores antigos */
.portal-card:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

/* ========= IMPRESSÃO ========= */
@media print {
    .bg-shape,
    .clock,
    .theme-toggle,
    .arrow-icon,
    .loading {
        display: none !important;
    }
    
    .portal-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        transform: none !important;
        min-height: auto;
        padding: 20px !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        position: static;
        overflow: visible;
        height: auto;
        display: block;
    }
    
    .container {
        padding: 20px !important;
        max-width: none;
        height: auto;
        position: static;
    }
    
    .portal-icon {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
    
    footer {
        background: #f0f0f0 !important;
        color: #333 !important;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}

/* ========= ESTILOS PARA TEMA ESCURO ESPECÍFICOS ========= */
[data-theme="dark"] .clock i {
    color: var(--secondary-color);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(50, 50, 50, 0.95);
}

[data-theme="dark"] .portal-icon.cav {
    background: linear-gradient(135deg, #64b5f6, #3a7bc8);
}

[data-theme="dark"] .portal-icon.tupperware {
    background: linear-gradient(135deg, #81c784, #27ae60);
}

[data-theme="dark"] .arrow-icon {
    background: linear-gradient(135deg, #64b5f6, #81c784);
}

[data-theme="dark"] footer {
    background: linear-gradient(135deg, #64b5f6, #3a7bc8);
}

/* ========= ANIMAÇÃO PULSE PARA STATUS (Consistente com ticket.css) ========= */
@keyframes pulse-proto {
    0% { box-shadow: 0 0 0 0 rgba(74,144,226,0.45); }
    70% { box-shadow: 0 0 0 12px rgba(74,144,226,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,144,226,0); }
}

/* Aplicar animação de pulse nos cards quando em destaque */
.portal-card.highlight {
    animation: pulse-proto 2s infinite;
    border-color: var(--secondary-color);
}

/* ========= SCROLLBAR PERSONALIZADA ========= */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 10px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 5px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 5px;
        transition: background var(--transition-speed) ease;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }
    
    [data-theme="dark"] ::-webkit-scrollbar-track {
        background: #2d2d2d;
    }
    
    [data-theme="dark"] ::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
    }
    
    [data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
        background: var(--tertiary-color);
    }
}

/* ========= TOUCH DEVICE OPTIMIZATIONS ========= */
@media (hover: none) and (pointer: coarse) {
    .portal-card:hover {
        transform: none;
    }
    
    .portal-card:active {
        transform: scale(0.98);
        border-color: var(--primary-color);
    }
    
    .theme-toggle:active {
        transform: scale(0.95);
    }
    
    .portal-card:hover .arrow-icon {
        opacity: 0.5;
        transform: translateX(0);
    }
}

/* ========= HIGH CONTRAST MODE SUPPORT ========= */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --secondary-color: #d35400;
        --tertiary-color: #27ae60;
        --text-color: #000;
        --bg-color: #fff;
        --light-text: #444;
    }
    
    .portal-card {
        border: 2px solid var(--text-color);
    }
    
    .portal-card::before {
        height: 6px;
    }
}

/* ========= LOADING STATE STYLES ========= */
.portal-card.loading-state {
    position: relative;
    overflow: hidden;
}

.portal-card.loading-state::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}