@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-deep: #0a0d0b;
    --accent-gold: #c5a059;
    --accent-gold-glow: rgba(197, 160, 89, 0.3);
    --text-light: #f1f3f5;
    --card-bg: #121614;
    --border-thin: rgba(255, 255, 255, 0.1);
    --radius-lg: 20px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #080a09;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    min-height: 100vh;
}

.auth-bg {
    background-image: 
        linear-gradient(rgba(8, 10, 9, 0.75), rgba(8, 10, 9, 0.9)),
        url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Glassmorphism Form Container for Auth */
.auth-form-container {
    background: rgba(18, 22, 20, 0.4);
    backdrop-filter: blur(25px) saturate(1.5);
    -webkit-backdrop-filter: blur(25px) saturate(1.5);
    padding: 45px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 90%;
    margin: 40px auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

body.landing-page {
    background-color: #080a09;
    background-image:
        radial-gradient(circle at 50% -20%, rgba(197, 160, 89, 0.12), transparent 50%),
        radial-gradient(circle at 0% 0%, rgba(29, 233, 182, 0.04), transparent 30%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-attachment: fixed;
}

/* Elegant Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10,13,11,0.9), transparent);
    backdrop-filter: blur(12px);
}

.logo {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 3px;
}

.logo span {
    color: var(--accent-gold);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-thin);
    padding: 8px 18px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.75rem;
    width: 220px;
    outline: none;
    transition: 0.3s;
    margin: 0 10px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 10px;
    right: 10px;
    background: #111410;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: none;
    z-index: 2000;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.suggestion-item {
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.active {
    background: rgba(197, 160, 89, 0.15);
    border-left: 3px solid var(--accent-gold);
    padding-left: 15px;
}

.suggestion-item .icon {
    font-size: 0.8rem;
    color: var(--accent-gold);
    opacity: 0.7;
}

.suggestion-item .text {
    font-size: 0.8rem;
    color: #eee;
    font-weight: 500;
}

.suggestion-item .type {
    font-size: 0.55rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: auto;
}

/* Premium Dashboard Background - Applied to Main Sections */
.dashboard-premium-bg {
    min-height: 100vh;
    width: 100%;
    background: transparent;
}

.dashboard-view-wrapper {
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    background: transparent;
    min-height: 100vh;
    padding-top: 100px;
}

.search-results-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(8, 10, 9, 0.85), rgba(8, 10, 9, 0.98)), 
                url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1500;
    display: none;
    padding: 140px 5% 80px;
    overflow-y: auto;
    backdrop-filter: blur(25px) saturate(1.2);
    -webkit-backdrop-filter: blur(25px) saturate(1.2);
    animation: fadeInOverlay 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInOverlay {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

.search-results-header {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding-bottom: 30px;
    position: relative;
}

.search-results-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-gold);
}

#search-results-title {
    font-family: 'Syncopate', sans-serif;
    color: #fff;
    letter-spacing: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin: 0;
    opacity: 0.9;
}

#search-results-title span {
    display: block;
    font-size: 2.2rem;
    color: var(--accent-gold);
    letter-spacing: -1px;
    margin-top: 10px;
    text-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    animation: slideUpResults 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

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

#close-search {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 30px;
    font-size: 0.65rem;
    letter-spacing: 2px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

#close-search:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.search-bar:focus {
    width: 280px;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.login-btn {
    border: 1px solid var(--accent-gold);
    padding: 8px 25px;
    border-radius: 30px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Sophisticated Hero Section */
.hero {
    min-height: 95vh;
    padding: 120px 5% 60px;
    background: linear-gradient(rgba(0,0,0,0.4), var(--bg-deep)),
                url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 10vw, 7.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 0.9;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 3px;
    max-width: 650px;
    font-weight: 300;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 2rem;
}

.feature-item span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
}

/* Balanced Grid & Cards */
.section-container {
    padding: 100px 5% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 70px;
    text-align: center;
}

.section-header h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 2.25rem;
    letter-spacing: -1px;
    margin-top: 8px;
}

.section-header p {
    font-size: 0.8rem;
    color: var(--accent-gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.filter-tab {
    background: transparent;
    border: 1px solid rgba(197,160,89,0.25);
    color: #666;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
}
.filter-tab:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.filter-tab.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: #111410;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(197, 160, 89, 0.18);
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(197, 160, 89, 0.08);
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.75);
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    z-index: 2;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 10px 0;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    letter-spacing: -0.5px;
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-family: 'Montserrat', sans-serif;
}

/* Forms - Professional Scale */
.form-container {
    background: var(--card-bg);
    padding: 45px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-thin);
    max-width: 550px;
    margin: 40px auto;
}

input, textarea, select {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-thin);
    color: #fff;
    padding: 14px 18px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
}

input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent-gold);
    background: rgba(255,255,255,0.08);
    outline: none;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.1);
}

/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 50px;
    margin-bottom: 0;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--accent-gold);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

select option {
    background: #121614;
    color: #fff;
}

.primary-btn {
    background: linear-gradient(135deg, #c5a059, #e2c285);
    color: #000;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 20px rgba(197,160,89,0.35);
    transition: box-shadow 0.3s, transform 0.2s;
}

.primary-btn:hover {
    box-shadow: 0 6px 30px rgba(197,160,89,0.55);
    transform: translateY(-2px);
}

/* Modal System - REFINED */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay::-webkit-scrollbar { width: 5px; }
.modal-overlay::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 10px; }

.modal-content {
    background: #080a09;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    position: relative;
    animation: modalEntry 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) transparent;
}

.modal-content::-webkit-scrollbar { width: 5px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 10px; }

@keyframes modalEntry {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, background 0.2s ease;
}

.close-modal:hover {
    transform: scale(1.1);
    background: #e2c285;
}

/* Action Buttons - Always Visible */
.action-btn-group {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 15;
    opacity: 1; /* Always visible */
    transform: none; /* No initial offset */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .action-btn-group {
    opacity: 1;
    transform: scale(1.05); /* Slight scale up on card hover instead of sliding in */
}

/* Professional Button States */
.primary-btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.primary-btn.loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

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

.primary-btn.success {
    background: #1de9b6 !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(29, 233, 182, 0.4) !important;
}

/* Modal Smooth Transitions */
.modal-overlay {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.4s ease;
}

.modal-content {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.modal-closing .modal-content {
    transform: translateY(20px) scale(0.98);
    opacity: 0;
}

.modal-closing {
    opacity: 0;
    pointer-events: none;
}

/* Card Fade In */
.project-card {
    animation: cardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(8, 10, 9, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
}

.action-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.action-btn:hover {
    transform: scale(1.15);
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.action-btn.del:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.modal-hero {
    height: 350px;
    width: 100%;
    position: relative;
}

.modal-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 60%;
    background: linear-gradient(transparent, #080a09);
    pointer-events: none;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 40px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 850px) {
    .modal-grid { grid-template-columns: 1fr; }
}

.impact-badge {
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Skeleton & Placeholder */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #151a17;
}

.skeleton {
    background: linear-gradient(90deg, #1a1d1b 25%, #2a2d2b 50%, #1a1d1b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Utility */
.badge-ai {
    background: var(--accent-gold);
    color: #000;
    padding: 4px 12px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Premium Glassmorphism & Micro-Interactions */
.glass-card {
    background: rgba(18, 22, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.05), transparent);
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(197, 160, 89, 0.1);
}

/* Shimmering Golden Skeleton */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(197, 160, 89, 0.05) 25%, 
        rgba(197, 160, 89, 0.15) 50%, 
        rgba(197, 160, 89, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
    margin-top: 50px;
}

.bento-item {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.bento-1 { grid-column: span 2; grid-row: span 2; }
.bento-2 { grid-column: span 2; grid-row: span 1; }
.bento-3 { grid-column: span 1; grid-row: span 1; }
.bento-4 { grid-column: span 1; grid-row: span 1; }

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .bento-1, .bento-2 { grid-column: span 2; }
    .bento-3, .bento-4 { grid-column: span 1; }
}

@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item { grid-column: span 1 !important; }
}

/* AI Hackathon Enhancements */
.ai-badge-floating {
  position: absolute; top: 15px; right: 15px; 
  background: rgba(197, 160, 89, 0.15);
  backdrop-filter: blur(10px); border: 1px solid var(--accent-gold);
  padding: 6px 14px; border-radius: 20px; font-family: 'Syncopate';
  font-size: 0.65rem; color: var(--accent-gold); display: flex; align-items: center; gap: 8px; z-index: 10;
}
.pulse-ai {
  width: 6px; height: 6px; background: var(--accent-gold); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-gold); animation: pulse-ai 2s infinite;
}
@keyframes pulse-ai { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }

.pipeline-container { display: flex; justify-content: space-between; margin-bottom: 30px; border-bottom: 1px solid #222; padding-bottom: 15px; }
.pipeline-step { font-size: 0.7rem; color: #444; text-transform: uppercase; letter-spacing: 2px; position: relative; }
.pipeline-step.active { color: var(--accent-gold); font-weight: bold; }
.pipeline-step.active::after { content: ''; position: absolute; bottom: -16px; left: 0; width: 100%; height: 2px; background: var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold); }

/* Intelligence Report Dashboard */
.ai-report-container {
    background: rgba(197, 160, 89, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
}
.ai-report-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
    font-family: 'Syncopate'; font-size: 0.8rem; color: var(--accent-gold);
}
.ai-scores-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; text-align: center;
}
.ai-score-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.circular-gauge {
    position: relative; width: 65px; height: 60px; border-radius: 50%;
    background: conic-gradient(var(--accent-gold) var(--score-deg, 0deg), rgba(255,255,255,0.05) 0);
    display: flex; justify-content: center; align-items: center;
    transition: --score-deg 1s ease-out;
}
.circular-gauge::before {
    content: ''; position: absolute; width: 52px; height: 52px; background: #080a09; border-radius: 50%;
}
.circular-gauge span {
    position: relative; font-family: 'Montserrat'; font-weight: 800; font-size: 1rem; color: #fff;
}
.gauge-label { font-size: 0.65rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.ai-summary-box {
    margin-top: 20px; padding: 15px; background: linear-gradient(90deg, rgba(197,160,89,0.1), transparent);
    border-left: 3px solid var(--accent-gold); border-radius: 0 10px 10px 0;
    font-size: 0.85rem; color: #ccc; font-style: italic; position: relative;
}
.ai-summary-box::before { content: '✨'; position: absolute; top: -10px; left: -10px; font-size: 1.2rem; }

/* Simulator Slider */
.simulator-container { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border-thin); }
.simulator-label { font-size: 0.75rem; color: #888; margin-bottom: 10px; display: flex; justify-content: space-between; }
input[type=range] { width: 100%; accent-color: var(--accent-gold); }

/* Admin AI Delta */
.delta-positive { color: #1de9b6; font-weight: 700; font-size: 0.75rem; }
.delta-negative { color: #ef4444; font-weight: 700; font-size: 0.75rem; }
.refresh-ai-btn { background: none; border: none; cursor: pointer; color: var(--accent-gold); font-size: 1rem; transition: transform 0.3s; }
.refresh-ai-btn:hover { transform: rotate(180deg); }

.founder-box-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    transition: all 0.3s ease;
}

.founder-box-premium {
    cursor: pointer;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, transform 0.2s ease;
}

.founder-box-premium:active {
    transform: scale(0.98);
}

.founder-box-premium:hover {
    background: rgba(197, 160, 89, 0.08);
    border-color: rgba(197, 160, 89, 0.4);
}

.identity-expanded {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid var(--accent-gold);
    padding-left: 20px;
    margin-top: 0;
}

.identity-expanded.active {
    max-height: 800px; /* Large enough for bio */
    opacity: 1;
    margin-top: 20px;
    padding-bottom: 10px;
}

/* Action Buttons & Icons */
.action-btn {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.8rem;
}

.action-btn:hover {
    transform: scale(1.1) translateY(-2px);
    background: #fff;
    color: #000;
    border-color: #fff;
}

.action-btn.del:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Profile Avatar Interaction */
.profile-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    cursor: pointer;
    border-radius: 50%;
    overflow: visible;
}

#profile-avatar-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 10, 9, 0.7);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    border: 3px solid var(--accent-gold);
}

.avatar-overlay svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-gold);
    margin-bottom: 5px;
}

.avatar-overlay span {
    color: #fff;
    font-size: 0.55rem;
    font-family: 'Syncopate';
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-avatar-container:hover #profile-avatar-preview {
    transform: scale(0.95);
    filter: blur(2px);
}

.profile-avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.camera-btn {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.camera-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px var(--accent-gold-glow);
}

.camera-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* AI Button Loading State */
#generate-thesis-btn.analyzing {
    position: relative;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.8;
}

#generate-thesis-btn.analyzing::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btn-scan 0.6s infinite;
}

@keyframes btn-scan {
    to { left: 100%; }
}

/* End of Stylesheet */
