/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --accent: #007aff;
    --bg: #000a29;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --font-main: 'Outfit', sans-serif;
    --radius-lg: 32px;
    --radius-md: 18px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-viewport {
    font-family: var(--font-main);
    color: var(--text);
    /* In preview, we might not want the fixed full-screen gradient if it's inside a phone frame, 
       but for exact match inside the frame, we do. 
       However, the phone frame provides the bounds. */
}

/* Main Content Wrapper */
.main-content {
    width: 100%;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    /* padding: 24px; Handled in JSX for better control */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
    z-index: 100;
    overflow-y: auto;
    height: 100%;
}

/* No Scrollbar */
.main-content::-webkit-scrollbar {
    display: none;
}

.main-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Identity */
.logo-wrap {
    text-align: center;
    margin-bottom: 25px;
}

.logo-wrap img {
    height: 40px;
    object-fit: contain;
}

.avatar-wrap {
    width: 115px;
    height: 115px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-name {
    text-align: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.job-title {
    text-align: center;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Unified Link Style */
.link-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    text-align: left;
    position: relative;
    cursor: pointer;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

.link-item .icon-box {
    width: 28px;
    font-size: 1.25rem;
    margin-right: 14px;
    text-align: center;
    color: var(--accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-item span {
    flex-grow: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.link-item small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.5;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 2px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 30px 0 12px 5px;
    letter-spacing: 1.2px;
}

.partners-bar {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 40px;
    opacity: 0.6;
}

.partners-bar img {
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Exchange Button Special Style */
.cta-exchange {
    background: var(--accent) !important;
    border: none !important;
    margin-top: 20px;
}

.cta-exchange .icon-box {
    color: white !important;
}

/* Animations */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-slide-right {
    animation: slideRight 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Panels */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reviews-scroll, .page-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
}

.reviews-scroll::-webkit-scrollbar, .page-scroll::-webkit-scrollbar {
    width: 4px;
}

.reviews-scroll::-webkit-scrollbar-thumb, .page-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

/* Hide scrollbar for main viewport but keep functional */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}